高危作业申请提交后,下一步的操作人员账号中在主界面和高危作业界面中都没有相应的提示。

bug优化0603
WenShiJun 2024-06-05 15:04:52 +08:00
parent fcc5d47399
commit f4f91b834c
20 changed files with 1128 additions and 842 deletions

View File

@ -181,7 +181,6 @@
if ("success" == res.data.result) {
_this.count = res.data.count;
}
}
})
},

View File

@ -10,6 +10,12 @@
<navigator class="a" hover-class="none" :url="item.url">
<view class="image">
<image :src="item.image" mode=""></image>
<view v-if="item.hotWorkCount > 0" class="badge">{{ item.hotWorkCount }}</view>
<view v-if="item.hightWorkCount > 0" class="badge">{{ item.hightWorkCount }}</view>
<view v-if="item.blindBoardCount > 0" class="badge">{{ item.blindBoardCount }}</view>
<view v-if="item.HoistingCount > 0" class="badge">{{ item.HoistingCount }}</view>
<view v-if="item.confinedSpaceCount > 0" class="badge">{{ item.confinedSpaceCount }}</view>
<view v-if="item.electricityCount > 0" class="badge">{{ item.electricityCount }}</view>
</view>
<view class="title">
<text>{{ item.title }}</text>
@ -22,51 +28,126 @@
</template>
<script>
import { basePath, loginUser } from '@/common/tool.js';
export default {
data() {
return {
highRiskList:[
highRiskList: [
{
title:'动火作业',
url:'/pages/application/eight-assignments/index',
image:require('../../../static/new_images/i1.png'),
},
// {
// title: '',
// url:'/pages/application/hotwork_cfd/home',
// image:require('../../../static/new_images/i1.png'),
// },
{
title:'高处作业',
url:'/pages/application/gf-eight-work/high-work/home',
image:require('../../../static/new_images/i2.png'),
title: '动火作业',
url: '/pages/application/eight-assignments/index',
image: require('../../../static/new_images/i1.png'),
hotWorkCount: 0,
},
{
title:'盲板作业',
url:'/pages/application/gf-eight-work/blind-board/home',
image:require('../../../static/new_images/i3.png'),
title: '高处作业',
url: '/pages/application/gf-eight-work/high-work/home',
image: require('../../../static/new_images/i2.png'),
hightWorkCount: 0,
},
{
title:'吊装作业',
url:'/pages/application/gf-eight-work/hoisting/home',
image:require('../../../static/new_images/i4.png'),
title: '盲板作业',
url: '/pages/application/gf-eight-work/blind-board/home',
image: require('../../../static/new_images/i3.png'),
blindBoardCount: 0,
},
{
title:'有限空间安全作业',
url:'/pages/application/gf-eight-work/confinedspace/home',
image:require('../../../static/new_images/i5.png'),
title: '吊装作业',
url: '/pages/application/gf-eight-work/hoisting/home',
image: require('../../../static/new_images/i4.png'),
HoistingCount: 0,
},
{
title:'临时用电安全作业',
url:'/pages/application/gf-eight-work/electricity/home',
image:require('../../../static/new_images/i6.png'),
title: '有限空间安全作业',
url: '/pages/application/gf-eight-work/confinedspace/home',
image: require('../../../static/new_images/i5.png'),
confinedSpaceCount: 0,
},
{
title: '临时用电安全作业',
url: '/pages/application/gf-eight-work/electricity/home',
image: require('../../../static/new_images/i6.png'),
electricityCount: 0,
},
],
}
};
},
}
onShow() {
this.updateWorkCounts('/app/hotwork/cfd/countCheck', '动火作业', 'hotWorkCount');
this.updateWorkCounts('/app/gfHighwork/countCheck', '高处作业', 'hightWorkCount');
this.updateWorkCounts('/app/gfBlindBoard/countCheck', '盲板作业', 'blindBoardCount');
this.updateWorkCounts('/app/gfHoisting/countCheck', '吊装作业', 'blindBoardCount');
this.updateWorkCounts('/app/gfConfinedSpace/countCheck', '有限空间安全作业', 'blindBoardCount');
this.updateWorkCounts('//app/gfElectricity/countCheck', '临时用电安全作业', 'electricityCount');
},
methods: {
updateWorkCounts(url, title, countKey) {
uni.showLoading({ title: "加载中..." }); //
uni.request({
url: basePath + url,
method: 'POST',
dataType: 'json',
header: { 'Content-type': 'application/x-www-form-urlencoded' },
data: {
tm: new Date().getTime(),
CORPINFO_ID: loginUser.CORPINFO_ID,
USER_ID: loginUser.USER_ID,
},
success: (res) => {
uni.hideLoading(); //
if (res.data.result === "success") {
let totalCount = res.data.count.SUMCOUNT;
this.highRiskList = this.highRiskList.map(item => {
if (item.title === title) {
return { ...item, [countKey]: totalCount };
}
return item;
});
}
}
});
}
}
};
</script>
<style>
.new-apps-box {
padding: 20upx;
}
.new-apps-warp {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.new-apps-item {
position: relative;
width: 30%;
margin-bottom: 20upx;
text-align: center;
}
.new-apps-item .image {
position: relative;
width: 100%;
height: 100upx;
}
.new-apps-item .badge {
position: absolute;
top: -10px;
right: 0;
background-color: #dd514c;
color: white;
border-radius: 50%;
padding: 2px 5px;
font-size: 12px;
}
.new-apps-item .title {
margin-top: -5upx;
}
</style>

View File

@ -454,7 +454,7 @@
<!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view v-if="pd.APPROVAL_SIGNATURE">
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -101,10 +101,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}
@ -253,10 +255,10 @@
</view>
<view class="wui-form-list">
<view v-if="pd.CONFIRM_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -267,10 +269,11 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.BELONGING_OPINIONS"></textarea>
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -281,11 +284,11 @@
<image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="previewImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image>
</view>
</view>
</view>
<view v-if="pd.LEADER_CONTENT && pd.LEADER_CONTENT !== '无'">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -295,11 +298,12 @@
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
<view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.AUDIT_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedAuditContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -314,7 +318,7 @@
<view v-if="pd.APPROVE_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">动火审批人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.APPROVE_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedApproveContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -328,7 +332,7 @@
</view>
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">动火前验票负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.MONITOR_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedMonitorContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -340,6 +344,27 @@
</view>
</view>
<view class="cu-form-group">
<view class="title">动火已完成</view>
<radio-group @change="updateRadioValue('FIRE_COMPLETED', $event)">
<radio value="0" :checked="pd.FIRE_COMPLETED === '0'"></radio>
<radio value="1" :checked="pd.FIRE_COMPLETED === '1'"></radio>
</radio-group>
</view>
<view class="cu-form-group">
<view class="title">作业现场已清理</view>
<radio-group @change="updateRadioValue('SITE_CLEANED', $event)">
<radio value="0" :checked="pd.SITE_CLEANED === '0'"></radio>
<radio value="1" :checked="pd.SITE_CLEANED === '1'"></radio>
</radio-group>
</view>
<view class="cu-form-group">
<view class="title">无遗留火种</view>
<radio-group @change="updateRadioValue('NO_REMAINING_EMBERS', $event)">
<radio value="0" :checked="pd.NO_REMAINING_EMBERS === '0'"></radio>
<radio value="1" :checked="pd.NO_REMAINING_EMBERS === '1'"></radio>
</radio-group>
</view>
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
<view class="cu-form-title">完工验收</view>
@ -382,93 +407,115 @@
</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 {
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 ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
export default {
components: {
tkiTree,ruiDatePicker,writingBoard
tkiTree, ruiDatePicker, writingBoard
},
data() {
return {
baseImgPath:baseImgPath,
baseImgPath: baseImgPath,
buttonloading: false,
isUps:false,
forbidEdit:true,//
msg:'add',
isUps: false,
forbidEdit: true,
msg: 'add',
files: [],
noClick:true,
treeNode:[],//
levelList:[
{id:'特级',name:'特级'},
{id:'一级',name:'一级'},
{id:'二级',name:'二级'},
noClick: true,
treeNode: [],
levelList: [
{ id: '特级', name: '特级' },
{ id: '一级', name: '一级' },
{ id: '二级', name: '二级' },
],
levelindex:-1,
analyzeUserList:[],
analyzeindex:-1,
confirmUserList:[],
confirmindex:-1,
guardianUserList:[],
guardianindex:-1,
leaderUserList:[],
leaderindex:-1,
auditUserList:[],
auditindex:-1,
approveUserList:[],
approveindex:-1,
monitorUserList:[],
monitorindex:-1,
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
},//
measuresList:[],
gasList:[],
rules:[
{name:'CHECK_NO',message:'请输入编号'},
{name:'WORK_CONTENT',message:'请输入作业内容'},
{name:'WORK_PLACE',message:'请输入作业地点'},
{name:'WORK_LEVEL',message:'请选择动火级别'},
{name:'WORK_FUNCTION',message:'请输入动火方式'},
{name:'WORK_START_DATE',message:'请选择工作开始时间'},
{name:'WORK_START_DATE',message:'请选择工作结束时间'},
{name:'WORK_MANAGER',message:'请输入作业负责人'},
{name:'WORK_USER',message:'请输入作业人'},
{name:'SPECIAL_WORK',message:'请输入关联的其他特殊作业及安全作业票编号'},
{name:'RISK_IDENTIFICATION',message:'请输入风险辨识结果'},
{name:'CONFESS_USER',message:'请输入安全交底人'},
{name:'EDUCATE_USER',message:'请输入安全教育人'},
{name:'ACCEPT_EDUCATE_USER',message:'请输入接受交底、教育人'},
{name:'TRIAL_USER',message:'请输入动火措施初审人'},
{name:'ANALYZE_USER_ID',message:'请选择气体分析单位负责人'},
{name:'CONFIRM_USER_ID',message:'请选择作业负责人'},
{name:'GUARDIAN_USER_ID',message:'请选择监护人'},
{name:'LEADER_USER_ID',message:'请选择动火点车间负责人'},
{name:'AUDIT_USER_ID',message:'请选择安全管理部门负责人'},
{name:'APPROVE_USER_ID',message:'请选择审批人'},
{name:'MONITOR_USER_ID',message:'请选择验票班长'},
{name:'ACCEPT_USER_ID',message:'请选择验收部门负责人'}
levelindex: -1,
analyzeUserList: [],
analyzeindex: -1,
confirmUserList: [],
confirmindex: -1,
guardianUserList: [],
guardianindex: -1,
leaderUserList: [],
leaderindex: -1,
auditUserList: [],
auditindex: -1,
approveUserList: [],
approveindex: -1,
monitorUserList: [],
monitorindex: -1,
acceptUserList: [],
acceptindex: -1,
pd: {
FIRE_COMPLETED: '0',
SITE_CLEANED: '0',
NO_REMAINING_EMBERS: '0',
OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;'
},
measuresList: [],
gasList: [],
rules: [
{ name: 'CHECK_NO', message: '请输入编号' },
{ name: 'WORK_CONTENT', message: '请输入作业内容' },
{ name: 'WORK_PLACE', message: '请输入作业地点' },
{ name: 'WORK_LEVEL', message: '请选择动火级别' },
{ name: 'WORK_FUNCTION', message: '请输入动火方式' },
{ name: 'WORK_START_DATE', message: '请选择工作开始时间' },
{ name: 'WORK_START_DATE', message: '请选择工作结束时间' },
{ name: 'WORK_MANAGER', message: '请输入作业负责人' },
{ name: 'WORK_USER', message: '请输入作业人' },
{ name: 'SPECIAL_WORK', message: '请输入关联的其他特殊作业及安全作业票编号' },
{ name: 'RISK_IDENTIFICATION', message: '请输入风险辨识结果' },
{ name: 'CONFESS_USER', message: '请输入安全交底人' },
{ name: 'EDUCATE_USER', message: '请输入安全教育人' },
{ name: 'ACCEPT_EDUCATE_USER', message: '请输入接受交底、教育人' },
{ name: 'TRIAL_USER', message: '请输入动火措施初审人' },
{ name: 'ANALYZE_USER_ID', message: '请选择气体分析单位负责人' },
{ name: 'CONFIRM_USER_ID', message: '请选择作业负责人' },
{ name: 'GUARDIAN_USER_ID', message: '请选择监护人' },
{ name: 'LEADER_USER_ID', message: '请选择动火点车间负责人' },
{ name: 'AUDIT_USER_ID', message: '请选择安全管理部门负责人' },
{ name: 'APPROVE_USER_ID', message: '请选择审批人' },
{ name: 'MONITOR_USER_ID', message: '请选择验票班长' },
{ name: 'ACCEPT_USER_ID', message: '请选择验收部门负责人' }
],
todayDate:'',
modalName:null,
todayDate: '',
modalName: null,
signModalShow: false,
imgList:[],
imgList: [],
}
},
onLoad(event){
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意';
},
formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';
},
formattedMonitorContent() {
return this.pd.MONITOR_CONTENT && this.pd.MONITOR_CONTENT !== '无' ? this.pd.MONITOR_CONTENT : '同意';
}
},
onLoad(event) {
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID;
if(this.pd.HOTWORK_ID){
this.msg="edit";
if (this.pd.HOTWORK_ID) {
this.msg = "edit";
this.getData();
}else {
} else {
//
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
@ -480,13 +527,14 @@
this.getDept();
this.getLimitSpace();
loginSession();
},
methods: {
//
updateRadioValue(key, event) {
this.pd[key] = event.detail.value;
},
goToDetail(e) {
uni.navigateTo({
url: '/pages/application/hotwork_cfd/hotwork-gas/gas-list?HOTWORK_ID='+e
url: '/pages/application/hotwork_cfd/hotwork-gas/gas-list?HOTWORK_ID=' + e
});
},
getData() {
@ -520,7 +568,7 @@
_this.files = res.data.imgList;
_this.measuresList = res.data.measuresList
_this.gasList = res.data.gasList
if(_this.pd.APPLY_STATUS < 1){
if (_this.pd.APPLY_STATUS < 1) {
_this.forbidEdit = false;
}
@ -550,33 +598,72 @@
},
async goSubmit(STATUS) {
var _this = this;
let required = true
let required = true;
uni.showLoading({
title: '请稍候'
})
});
this.buttonloading = true; //
if (STATUS == 8) {
if (_this.pd.FIRE_COMPLETED === "0") {
uni.showModal({
title: "提示",
content: "动火已完成为“否”,不允许通过。",
showCancel: false,
confirmText: "知道了"
});
this.buttonloading = false; //
uni.hideLoading(); //
return;
}
if (_this.pd.SITE_CLEANED === "0") {
uni.showModal({
title: "提示",
content: "作业现场已清理为“否”,不允许通过。",
showCancel: false,
confirmText: "知道了"
});
this.buttonloading = false; //
uni.hideLoading(); //
return;
}
if (_this.pd.NO_REMAINING_EMBERS === "0") {
uni.showModal({
title: "提示",
content: "无遗留火种为“否”,不允许通过。",
showCancel: false,
confirmText: "知道了"
});
this.buttonloading = false; //
uni.hideLoading(); //
return;
}
if (_this.imgList.length <= 0) {
uni.showToast({
icon: 'none',
title: '请签字',
duration: 1500
});
this.buttonloading = false; //
uni.hideLoading(); //
return;
}
}
var fileList = [];
var signtime = [];
const formData = {}
Object.keys(this.pd).map(key => {
formData[key] = this.pd[key]
})
this.uploadImgFaults(fileList, signtime)
formData.SIGNTIME = signtime.join(",")
formData.CORPINFO_ID = corpinfoId
formData.CREATOR = loginUser.USER_ID
formData.OPERATOR = loginUser.USER_ID
formData.ACTION_USER = loginUser.NAME
formData.APPLY_STATUS = STATUS
});
this.uploadImgFaults(fileList, signtime);
formData.SIGNTIME = signtime.join(",");
formData.CORPINFO_ID = corpinfoId;
formData.CREATOR = loginUser.USER_ID;
formData.OPERATOR = loginUser.USER_ID;
formData.ACTION_USER = loginUser.NAME;
formData.APPLY_STATUS = STATUS;
if (STATUS == 8) {
if (new Date(this.pd.WORK_START_DATE).getTime() - new Date().getTime() > 0) {
uni.showModal({
@ -586,13 +673,13 @@
cancelText: '取消',
confirmText: '确定',
success: res => {
this.buttonloading = false
_this.goback()
this.buttonloading = false; //
this.goback();
}
})
});
} else {
formData.STATUS = STATUS
this.buttonloading = true
formData.STATUS = STATUS;
this.buttonloading = true;
uni.uploadFile({
url: basePath + '/app/hotwork/cfd/editAcceptStatus',
files: fileList,
@ -603,21 +690,23 @@
title: '保存成功',
duration: 2000
});
_this.goback()
this.buttonloading = false
this.goback();
this.buttonloading = false; //
uni.hideLoading(); //
},
fail: (err) => {
uni.hideLoading();
uni.hideLoading(); //
this.buttonloading = false; //
uni.showModal({
content: err.errMsg,
showCancel: false
});
}
})
});
}
} else {
formData.STATUS = STATUS
this.buttonloading = true
formData.STATUS = STATUS;
this.buttonloading = true;
uni.request({
url: basePath + "/app/hotwork/cfd/editStatus",
method: 'POST',
@ -632,21 +721,23 @@
title: '保存成功',
duration: 2000
});
_this.goback()
this.buttonloading = false
this.goback();
this.buttonloading = false; //
uni.hideLoading(); //
},
fail: (err) => {
uni.hideLoading();
uni.hideLoading(); //
this.buttonloading = false; //
uni.showModal({
content: err.errMsg,
showCancel: false
});
}
})
});
}
},
getGasFlag(){
return new Promise((resolve,reject)=> {
getGasFlag() {
return new Promise((resolve, reject) => {
if (this.gasList.length < 1) {
uni.showModal({
title: '',
@ -668,18 +759,18 @@
}
})
},
uploadImgFaults(fileList,signtime) {
uploadImgFaults(fileList, signtime) {
this.imgList.map(item => {
var img = {}
img.name = 'file'+(fileList.length)
img.name = 'file' + (fileList.length)
img.uri = item.filePath
// img.SIGNER_TIME = item.SIGNER_TIME
fileList.push(img)
signtime.push(item.SIGNER_TIME)
})
},
getConfess(){
return new Promise((resolve,reject)=> {
getConfess() {
return new Promise((resolve, reject) => {
if (!this.pd.CONFESS_USER_SIGNER_PATH) {
uni.showModal({
title: '',
@ -701,8 +792,8 @@
}
})
},
getAcceptconfess(){
return new Promise((resolve,reject)=> {
getAcceptconfess() {
return new Promise((resolve, reject) => {
if (!this.pd.ACCEPT_CONFESS_USER_SIGNER_PATH) {
uni.showModal({
title: '',
@ -724,8 +815,8 @@
}
})
},
getGuardian(){
return new Promise((resolve,reject)=> {
getGuardian() {
return new Promise((resolve, reject) => {
if (!this.pd.GUARDIAN_USER_SIGNER_PATH) {
uni.showModal({
title: '',
@ -747,8 +838,7 @@
}
})
},
//
getLimitSpace(){
getLimitSpace() {
var _this = this;
uni.request({
method: 'POST',
@ -757,15 +847,15 @@
'Content-type': 'application/x-www-form-urlencoded'
},
url: basePath + '/app/limitspace/listAllSpace?tm=' + new Date().getTime(),
data: {CORPINFO_ID: corpinfoId},
data: { CORPINFO_ID: corpinfoId },
success: function (res) {
_this.limitSpaceList = res.data.varList;
}
});
},
levelChange(e){
levelChange(e) {
this.levelindex = e.detail.value;
this.pd.WORK_LEVEL=this.levelList[this.levelindex].name;
this.pd.WORK_LEVEL = this.levelList[this.levelindex].name;
this.$forceUpdate();//
},
getDept() {
@ -775,14 +865,14 @@
method: 'POST',
dataType: 'json',
header: {
'Content-type':'application/x-www-form-urlencoded'
'Content-type': 'application/x-www-form-urlencoded'
},
data: {
CORPINFO_ID : corpinfoId,
CORPINFO_ID: corpinfoId,
},
success: (res) => {
if("success" == res.data.result){
_this.treeNode=eval(res.data.zTreeNodes);
if ("success" == res.data.result) {
_this.treeNode = eval(res.data.zTreeNodes);
} else {
uni.showToast({
title: res.data.message,
@ -792,28 +882,27 @@
}
});
},
//
getUserList(dept,list,i){
getUserList(dept, list, i) {
// post
var _this=this
var _this = this
uni.request({
method: 'POST',
dataType: 'json',
header: {
'Content-type':'application/x-www-form-urlencoded'
'Content-type': 'application/x-www-form-urlencoded'
},
url: basePath+'/app/sys/listUser',
data: {DEPARTMENT_ID:dept,tm:new Date().getTime()},
success: function(res){
if("success" == res.data.result){
if(i>-1) {
url: basePath + '/app/sys/listUser',
data: { DEPARTMENT_ID: dept, tm: new Date().getTime() },
success: function (res) {
if ("success" == res.data.result) {
if (i > -1) {
_this[list][i] = [];
_this[list][i] = res.data.userList;
_this.$forceUpdate();//
}else{
_this[list]=res.data.userList;
} else {
_this[list] = res.data.userList;
}
}else{
} else {
uni.showToast({
title: res.data.message,
duration: 2000
@ -822,10 +911,7 @@
}
})
},
/*
*手写板
*/
//
showModal(ISSELF) {
this.ISSELF = ISSELF
this.modalName = 'Modal'
@ -834,7 +920,6 @@
this.modalName = null
},
//
subCanvas(e) {
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm')
this.imgList.push(e);
@ -842,232 +927,208 @@
this.signModalShow = false;
},
ViewImage(e) {
let files =[];
let files = [];
files.push(e.currentTarget.dataset.url)
uni.previewImage({
urls: files,
current: e.currentTarget.dataset.url
});
},
DelImg(index){
this.imgList.splice(index,1)
DelImg(index) {
this.imgList.splice(index, 1)
},
/*
*分析人
*/
//
//
analyzetreeConfirm(e) {
this.isUps=false;
this.pd.ANALYZE_DEPARTMENT_ID=e[0].id;
this.pd.ANALYZE_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.ANALYZE_DEPARTMENT_ID = e[0].id;
this.pd.ANALYZE_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'analyzeUserList');
this.getUserList(e[0].id, 'analyzeUserList');
},
//
analyzetreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
showAnalyzeTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_analyze._show();
},
PickerAnalyze(e) {
this.analyzeindex = e.detail.value;
this.pd.ANALYZE_USER_ID=this.analyzeUserList[this.analyzeindex].USER_ID;
this.pd.ANALYZE_USER_NAME=this.analyzeUserList[this.analyzeindex].NAME;
this.pd.ANALYZE_USER_ID = this.analyzeUserList[this.analyzeindex].USER_ID;
this.pd.ANALYZE_USER_NAME = this.analyzeUserList[this.analyzeindex].NAME;
this.$forceUpdate();//
},
/*
*确认人
*/
//
//
confirmtreeConfirm(e) {
this.isUps=false;
this.pd.CONFIRM_DEPARTMENT_ID=e[0].id;
this.pd.CONFIRM_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.CONFIRM_DEPARTMENT_ID = e[0].id;
this.pd.CONFIRM_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'confirmUserList');
this.getUserList(e[0].id, 'confirmUserList');
},
//
confirmtreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
showConfirmTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_confirm._show();
},
PickerConfirm(e) {
this.confirmindex = e.detail.value;
this.pd.CONFIRM_USER_ID=this.confirmUserList[this.confirmindex].USER_ID;
this.pd.CONFIRM_USER_NAME=this.confirmUserList[this.confirmindex].NAME;
this.pd.CONFIRM_USER_ID = this.confirmUserList[this.confirmindex].USER_ID;
this.pd.CONFIRM_USER_NAME = this.confirmUserList[this.confirmindex].NAME;
this.$forceUpdate();//
},
/*
*监护人
*/
//
//
guardiantreeConfirm(e) {
this.isUps=false;
this.pd.GUARDIAN_DEPARTMENT_ID=e[0].id;
this.pd.GUARDIAN_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.GUARDIAN_DEPARTMENT_ID = e[0].id;
this.pd.GUARDIAN_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'guardianUserList');
this.getUserList(e[0].id, 'guardianUserList');
},
//
guardiantreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
showGuardianTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_guardian._show();
},
PickerGuardian(e) {
this.guardianindex = e.detail.value;
this.pd.GUARDIAN_USER_ID=this.guardianUserList[this.guardianindex].USER_ID;
this.pd.GUARDIAN_USER_NAME=this.guardianUserList[this.guardianindex].NAME;
this.pd.GUARDIAN_USER_ID = this.guardianUserList[this.guardianindex].USER_ID;
this.pd.GUARDIAN_USER_NAME = this.guardianUserList[this.guardianindex].NAME;
this.$forceUpdate();//
},
/*
*单位领导
*/
//
//
//
leadertreeConfirm(e) {
this.isUps=false;
this.pd.LEADER_DEPARTMENT_ID=e[0].id;
this.pd.LEADER_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.LEADER_DEPARTMENT_ID = e[0].id;
this.pd.LEADER_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'leaderUserList');
this.getUserList(e[0].id, 'leaderUserList');
},
//
//
leadertreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
//
showLeaderTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_leader._show();
},
PickerLeader(e) {
this.leaderindex = e.detail.value;
this.pd.LEADER_USER_ID=this.leaderUserList[this.leaderindex].USER_ID;
this.pd.LEADER_USER_NAME=this.leaderUserList[this.leaderindex].NAME;
this.pd.LEADER_USER_ID = this.leaderUserList[this.leaderindex].USER_ID;
this.pd.LEADER_USER_NAME = this.leaderUserList[this.leaderindex].NAME;
this.$forceUpdate();//
},
/*
*安全管理部门负责人
*/
//
//
audittreeConfirm(e) {
this.isUps=false;
this.pd.AUDIT_DEPARTMENT_ID=e[0].id;
this.pd.AUDIT_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.AUDIT_DEPARTMENT_ID = e[0].id;
this.pd.AUDIT_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'auditUserList');
this.getUserList(e[0].id, 'auditUserList');
},
//
audittreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
showAuditTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_audit._show();
},
PickerAudit(e) {
this.auditindex = e.detail.value;
this.pd.AUDIT_USER_ID=this.auditUserList[this.auditindex].USER_ID;
this.pd.AUDIT_USER_NAME=this.auditUserList[this.auditindex].NAME;
this.pd.AUDIT_USER_ID = this.auditUserList[this.auditindex].USER_ID;
this.pd.AUDIT_USER_NAME = this.auditUserList[this.auditindex].NAME;
this.$forceUpdate();//
},
/*
*审批人
*/
//
//
approvetreeConfirm(e) {
this.isUps=false;
this.pd.APPROVE_DEPARTMENT_ID=e[0].id;
this.pd.APPROVE_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.APPROVE_DEPARTMENT_ID = e[0].id;
this.pd.APPROVE_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'approveUserList');
this.getUserList(e[0].id, 'approveUserList');
},
//
approvetreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
showApproveTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_approve._show();
},
PickerApprove(e) {
this.approveindex = e.detail.value;
this.pd.APPROVE_USER_ID=this.approveUserList[this.approveindex].USER_ID;
this.pd.APPROVE_USER_NAME=this.approveUserList[this.approveindex].NAME;
this.pd.APPROVE_USER_ID = this.approveUserList[this.approveindex].USER_ID;
this.pd.APPROVE_USER_NAME = this.approveUserList[this.approveindex].NAME;
this.$forceUpdate();//
},
/*
*在岗班长
*/
//
//
//
monitortreeConfirm(e) {
this.isUps=false;
this.pd.MONITOR_DEPARTMENT_ID=e[0].id;
this.pd.MONITOR_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.MONITOR_DEPARTMENT_ID = e[0].id;
this.pd.MONITOR_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'monitorUserList');
this.getUserList(e[0].id, 'monitorUserList');
},
//
//
monitortreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
//
showMonitorTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_monitor._show();
},
PickerMonitor(e) {
this.monitorindex = e.detail.value;
this.pd.MONITOR_USER_ID=this.monitorUserList[this.monitorindex].USER_ID;
this.pd.MONITOR_USER_NAME=this.monitorUserList[this.monitorindex].NAME;
this.pd.MONITOR_USER_ID = this.monitorUserList[this.monitorindex].USER_ID;
this.pd.MONITOR_USER_NAME = this.monitorUserList[this.monitorindex].NAME;
this.$forceUpdate();//
},
/*
*验收部门
*/
//
//
//
accepttreeConfirm(e) {
this.isUps=false;
this.pd.ACCEPT_DEPARTMENT_ID=e[0].id;
this.pd.ACCEPT_DEPARTMENT_NAME=e[0].name;
this.isUps = false;
this.pd.ACCEPT_DEPARTMENT_ID = e[0].id;
this.pd.ACCEPT_DEPARTMENT_NAME = e[0].name;
this.$forceUpdate();//
this.getUserList(e[0].id,'acceptUserList');
this.getUserList(e[0].id, 'acceptUserList');
},
//
//
accepttreeCancel(e) {
this.isUps=false;
this.isUps = false;
},
//
//
showAcceptTree() {
this.isUps=true
this.isUps = true
this.$refs.tkiTree_accept._show();
},
PickerAccept(e) {
this.acceptindex = e.detail.value;
this.pd.ACCEPT_USER_ID=this.acceptUserList[this.acceptindex].USER_ID;
this.pd.ACCEPT_USER_NAME=this.acceptUserList[this.acceptindex].NAME;
this.pd.ACCEPT_USER_ID = this.acceptUserList[this.acceptindex].USER_ID;
this.pd.ACCEPT_USER_NAME = this.acceptUserList[this.acceptindex].NAME;
this.$forceUpdate();//
},
changeStartDate(e) {
this.pd.WORK_START_DATE = e
this.$forceUpdate();//
@ -1076,41 +1137,39 @@
this.pd.WORK_END_DATE = e
this.$forceUpdate();//
},
changeRadio(i,value){
this.measuresList[i].STATUS=value
changeRadio(i, value) {
this.measuresList[i].STATUS = value
},
goback(){
goback() {
var pages = getCurrentPages(); //
var prePage = pages[pages.length - 2]; //
prePage.$vm.initflag = true; // A init true
uni.navigateBack({delta: 1});
uni.navigateBack({ delta: 1 });
uni.hideLoading();
},
radioType(e){
radioType(e) {
this.HASINSTRUCTOR = e.detail.value
},
goToEdit(){
goToEdit() {
this.forbidEdit = false;
}
}
}
}
</script>
<style scoped>
.wui-sign-box1{
.wui-sign-box1 {
margin-top: 20upx;
display: block;
}
.sign-img{
}
.sign-img {
position: relative;
border-bottom: 1px dashed #eee;
padding-top: 20upx;
}
.cu-tag{
}
.cu-tag {
position: absolute;
right: 20upx;
top: 20upx;
}
}
</style>

View File

@ -88,10 +88,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}

View File

@ -446,7 +446,7 @@
</view>
</view>
</view>
<view v-if="pd.APPROVAL_SIGNATURE">
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -107,10 +107,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}
@ -249,7 +251,7 @@
<view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -260,10 +262,21 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
<view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
</view>
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -277,7 +290,7 @@
<view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.AUDIT_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedAuditContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -409,6 +422,20 @@
imgList:[],
}
},
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意';
}
},
onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -454,7 +454,7 @@
<!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view v-if="pd.APPROVAL_SIGNATURE">
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -131,10 +131,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}
@ -271,7 +273,7 @@
<view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;;">-->
<!-- <view class="title">作业负责人</view>-->
@ -295,10 +297,22 @@
<!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
</view>
<view>
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;;">-->
<!-- <view class="title">动火点属地监管单位负责人</view>-->
@ -313,7 +327,7 @@
<image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
<view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" v-model="pd.CONTENT" placeholder="请输入意见"></textarea>
@ -432,6 +446,17 @@
imgList:[],
}
},
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
}
},
onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -131,10 +131,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}

View File

@ -442,7 +442,7 @@
</view>
</view>
</view>
<view v-if="pd.APPROVAL_SIGNATURE">
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -102,10 +102,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 80px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}

View File

@ -107,10 +107,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}

View File

@ -659,7 +659,7 @@
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意';
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意';
},
formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';

View File

@ -102,10 +102,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}
@ -264,10 +266,9 @@
</view>
</view>
<view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -278,9 +279,11 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.BELONGING_OPINIONS"></textarea>
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -410,6 +413,14 @@
imgList:[],
}
},
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
}
},
onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -136,10 +136,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}}
@ -452,7 +454,7 @@
<!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view v-if="pd.APPROVAL_SIGNATURE">
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -264,7 +264,7 @@
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -276,23 +276,22 @@
</view>
</view>
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.BELONGING_OPINIONS"></textarea>
</view>
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.BELONGING_USER_NAME}} {{pd.BELONGING_SIGNATURE_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="previewImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
</view>
<view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -303,10 +302,11 @@
<image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
<view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.AUDIT_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedAuditContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -320,8 +320,8 @@
</view>
<view v-if="pd.APPROVE_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">动火审批意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.APPROVE_CONTENT"></textarea>
<view class="cu-form-title">动火审批意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedApproveContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
@ -453,6 +453,23 @@
imgList:[],
}
},
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意';
},
formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';
}
},
onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -446,7 +446,7 @@
</view>
</view>
</view>
<view v-if="pd.APPROVAL_SIGNATURE">
<view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
@ -659,7 +659,7 @@
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意';
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意';
},
formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';

View File

@ -102,10 +102,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据">
<!-- 表头行 -->
<uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td>
<view style="margin-bottom: 20upx;">
{{ item.PROTECTIVE_MEASURES }}
@ -274,7 +276,7 @@
<view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
<textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
@ -409,6 +411,11 @@ export default {
imgList: [],
}
},
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
}
},
onLoad(event) {
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -20,6 +20,7 @@
<navigator class="a" hover-class="none" :url="item.url">
<view class="image">
<image :src="item.image" mode=""></image>
<view v-if="item.title === '高危作业' && totalUnreadCount > 0" class="badge">{{ totalUnreadCount }}</view>
</view>
<view class="title">
<text>{{ item.title }}</text>
@ -274,6 +275,7 @@
mixins: [MescrollMixin], // 使mixin (main.js)
data() {
return {
totalUnreadCount: 0,
girdList:[
{
title:'基本资料',
@ -398,6 +400,7 @@
this.getData()
this.getHiddenData()
this.getSafetyEnvironmentalCount()
this.getSumCount();
// this.getListData()
console.info(loginUser)
// this._freshing = false;
@ -603,6 +606,42 @@
// }
// });
},
async getSumCount() {
const hotWorkCount = await this.getCount('/app/hotwork/cfd/countCheck');
const highWorkCount = await this.getCount('/app/gfHighwork/countCheck');
const blindBoardCount = await this.getCount('/app/gfBlindBoard/countCheck');
const hoistingCount = await this.getCount('/app/gfHoisting/countCheck');
const confinedSpaceCount = await this.getCount('/app/gfConfinedSpace/countCheck');
const electricityCount = await this.getCount('/app/gfElectricity/countCheck');
this.totalUnreadCount = hotWorkCount + highWorkCount + blindBoardCount + hoistingCount + confinedSpaceCount + electricityCount;
},
getCount(url) {
return new Promise((resolve, reject) => {
uni.request({
url: basePath + url,
method: 'POST',
dataType: 'json',
header: { 'Content-type': 'application/x-www-form-urlencoded' },
data: {
tm: new Date().getTime(),
CORPINFO_ID: loginUser.CORPINFO_ID,
USER_ID: loginUser.USER_ID,
},
success: (res) => {
if (res.data.result === "success") {
resolve(res.data.count.SUMCOUNT || 0);
} else {
resolve(0);
}
},
fail: (err) => {
console.error(err);
resolve(0);
},
});
});
},
//
getHiddenData() {
return new Promise((resolve, reject) => {
@ -851,10 +890,21 @@
.image{
flex-basis: 100%;
text-align: center;
position: relative; //
image{
width: 84upx;
height: 84upx;
}
.badge {
position: absolute;
top: -10px; //
right: 0; //
background-color: #dd514c;
color: white;
border-radius: 50%;
padding: 2px 5px;
font-size: 12px;
}
}
.title{
flex-basis: 100%;