integrated_traffic_uniapp/pages/application/commitment-company/commitment-company-detail.vue

158 lines
4.5 KiB
Vue
Raw Normal View History

2024-01-16 17:24:49 +08:00
<template>
<view class="bg-white">
<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
<block slot="backText">返回</block>
<block slot="content">安全承诺</block>
</cu-custom>
<scroll-view scroll-y="false">
<view class="sure-box">
<view class="sure-h1">
<text>{{pd.CORP_NAME}}</text>
</view>
<view class="sure-title">
<text>企业状态</text>
</view>
<view class="sure-form">
<view class="sure-content">
<view class="sure-p">
生产装置<text class="sure-mark">{{pd.INPUT1}}</text>其中
</view>
<view class="sure-p">
运行<text class="sure-mark">{{pd.INPUT2}}</text>
停产<text class="sure-mark">{{pd.INPUT3}}</text>
检修<text class="sure-mark">{{pd.INPUT4}}</text>
</view>
<view class="sure-p">特殊作业</view>
<view class="sure-p">
特级动火作业<text class="sure-mark">{{pd.INPUT5}}</text>
一级动火作业<text class="sure-mark">{{pd.INPUT6}}</text>
二级动火作业<text class="sure-mark">{{pd.INPUT7}}</text>
受限空间作业<text class="sure-mark">{{pd.INPUT8}}</text>
登高作业<text class="sure-mark">{{pd.INPUT9}}</text>
其他特殊作业<text class="sure-mark">{{pd.INPUT10}}</text>
</view>
<view class="sure-p">
<text>是否处于生产</text>
<text class="sure-mark">{{pd.RADIO1==1?'是':'否'}}</text>
</view>
<view class="sure-p">
<text>是否处于开停车状态</text>
<text class="sure-mark">{{pd.RADIO2==1?'是':'否'}}</text>
</view>
<view class="sure-p">
<text>罐区库房等危险源是否处于安全状态</text>
<text class="sure-mark">{{pd.RADIO3==1?'是':'否'}}</text>
</view>
</view>
</view>
<view class="sure-title">
<text>企业承诺</text>
</view>
<view class="sure-form">
<view class="sure-p">
今日<text class="sure-mark">{{pd.START_TIME}}</text><text class="sure-mark">{{pd.END_TIME}}</text>
我公司已进行安全风险研判各项安全风险防控措施已落实到位我承诺所有生产设施处于安全运行状态罐区库房等危险源安全风险得到有效控制
</view>
<view class="sure-name">
<text class="text-grey">手写签名</text>
<image :src="baseImgPath+pd.SIGN_PATH" @click="ViewShowImage" mode=""></image>
</view>
<view class="sure-p">
<text>签字时间</text>
<text class="sure-mark">{{pd.SIGN_TIME}}</text>
</view>
</view>
</view>
</scroll-view>
</view>
</template>
<script>
import {
basePath,
corpinfoId,
deptId,
loginUser,
formatDate,
loginSession,
baseImgPath,
loginUserId
} from '@/common/tool.js';
import tkiTree from "@/components/select-tree/select-tree.vue"
import writingBoard from "@/components/writing-board/writing-board.vue"
import gcoord from '@/common/gcoord.js'
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
export default {
components: {
tkiTree,
ruiDatePicker,
writingBoard
},
data() {
return {
baseImgPath: baseImgPath,
isUps: false,
forbidEdit: true, // 禁止修改
msg: 'add',
noClick: true,
treeNode: [], //部门下拉数据
analyzeUserList: [],
analyzeindex: -1,
pd: {}, // 数据
}
},
onLoad(event) {
this.pd.COMMITMENTCOMPANY_ID = event.COMMITMENTCOMPANY_ID;
this.getData();
loginSession();
},
methods: {
getData() {
var _this = this;
uni.showLoading({
title: '请稍候'
})
uni.request({
url: basePath + '/app/commitmentcompany/goEdit',
method: 'POST',
header: {
'Content-type': 'application/x-www-form-urlencoded'
},
data: {
COMMITMENTCOMPANY_ID: _this.pd.COMMITMENTCOMPANY_ID,
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
},
success: (res) => {
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //参数map
} else if ("exception" == data.result) {
uni.showToast({
title: '错误',
duration: 2000
});
}
}
});
},
ViewShowImage(e) {
let files = [];
files.push(baseImgPath + this.pd.SIGN_PATH)
uni.previewImage({
urls: files,
current: 0
});
},
}
}
</script>
<style scoped>
</style>