154 lines
4.2 KiB
Vue
154 lines
4.2 KiB
Vue
<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">
|
||
今天我公司已进行安全风险研判,各项安全风险防控措施已落实到位,我承诺所有生产设施处于安全运行状态,罐区、库房等危险源安全风险得到有效控制。
|
||
</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
|
||
} 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,
|
||
},
|
||
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>
|