Compare commits

..

2 Commits

Author SHA1 Message Date
zhaoyu 4768e5ce32 Merge remote-tracking branch 'origin/dev' 2023-12-27 20:16:18 +08:00
zhaoyu 9377031997 初始化两次地图bug修复 2023-12-27 20:15:23 +08:00
2 changed files with 1512 additions and 1460 deletions

View File

@ -29,7 +29,6 @@
}
function onLoad() {
map = new T.Map('mapDiv');
var imageURL = "http://t0.tianditu.gov.cn/img_w/wmts?" +
"SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
"&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=e8a16137fd226a62a23cc7ba5c9c78ce";

View File

@ -37,8 +37,7 @@
<view class="cu-form-textarea">
<view class="cu-form-title">作业内容</view>
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.WORK_CONTENT"
placeholder="请输入作业内容"></textarea>
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.WORK_CONTENT" placeholder="请输入作业内容" ></textarea>
</view>
<view class="cu-form-group">
@ -48,8 +47,7 @@
<view class="cu-form-group group-picker">
<view class="title">动火作业级别</view>
<picker v-if="!forbidEdit" @change="levelChange" :disabled="forbidEdit" :value="levelindex"
:range="levelList" range-key="name">
<picker v-if="!forbidEdit" @change="levelChange" :disabled="forbidEdit" :value="levelindex" :range="levelList" range-key="name">
<view class="picker">
{{pd.WORK_LEVEL?pd.WORK_LEVEL:'请选择'}}
</view>
@ -95,12 +93,16 @@
</view>
</view>
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">作业负责人</view>-->
<!-- <input name="input" ref="WORK_MANAGER" :disabled="forbidEdit" v-model="pd.WORK_MANAGER" placeholder="请输入"></input>-->
<!-- </view>-->
<view class="cu-form-textarea ">
<view style="display: flex;justify-content: space-between;align-items: center">
<view class="cu-form-title">动火人及证书编号</view>
<view class="cu-form-group" v-if="!forbidEdit && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98">
<picker @change="PickerWorkuser" :value="workuserindex" :range="workUserList" :disabled="forbidEdit"
range-key="NAME">
<picker @change="PickerWorkuser" :value="workuserindex" :range="workUserList" :disabled="forbidEdit" range-key="NAME">
<view class="picker">
请选择
</view>
@ -113,27 +115,43 @@
<view class="cu-form-textarea" >
<view class="cu-form-title">
关联的其他特殊作业及安全作业票编号
<button class="cu-btn bg-green sm reg-btn"
v-if="!forbidEdit && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98"
@click="otherAssignments = true">选择其它
</button>
<button class="cu-btn bg-green sm reg-btn" v-if="!forbidEdit && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98" @click="otherAssignments = true"></button>
</view>
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.SPECIAL_WORK"
placeholder="请输入关联的其他特殊作业及安全作业票编号"></textarea>
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.SPECIAL_WORK" placeholder="请输入关联的其他特殊作业及安全作业票编号"></textarea>
</view>
<view class="cu-form-textarea" >
<view class="cu-form-title">
风险辨识结果
<button class="cu-btn bg-green sm reg-btn"
v-if="!forbidEdit && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98"
@click="otherIdentification = true">选择其它
</button>
<button class="cu-btn bg-green sm reg-btn" v-if="!forbidEdit && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98" @click="otherIdentification = true"></button>
</view>
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.RISK_IDENTIFICATION"
placeholder="请输入风险辨识结果"></textarea>
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.RISK_IDENTIFICATION" placeholder="请输入风险辨识结果"></textarea>
</view>
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">安全交底人</view>-->
<!-- <input name="input" ref="CONFESS_USER" :disabled="forbidEdit" v-model="pd.CONFESS_USER" placeholder="请输入"></input>-->
<!-- </view>-->
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">安全教育人</view>-->
<!-- <input name="input" ref="EDUCATE_USER" :disabled="forbidEdit" v-model="pd.EDUCATE_USER" placeholder="请输入"></input>-->
<!-- </view>-->
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">接受交底人</view>-->
<!-- <input name="input" ref="ACCEPT_CONFESS_USER" :disabled="forbidEdit" v-model="pd.ACCEPT_EDUCATE_USER" placeholder="请输入"></input>-->
<!-- </view>-->
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">动火措施初审人</view>-->
<!-- <input name="input" ref="TRIAL_USER" :disabled="forbidEdit" v-model="pd.TRIAL_USER" placeholder="请输入"></input>-->
<!-- </view>-->
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">监护人</view>-->
<!-- <input name="input" ref="GUARDIAN_USER" :disabled="forbidEdit" v-model="pd.GUARDIAN_USER" placeholder="请输入"></input>-->
<!-- </view>-->
</view>
<view class="wui-form-list" style="padding-top: 20upx;" v-if="pd.APPLY_STATUS > 1">
@ -173,52 +191,49 @@
<radio-group class="wui-radio-group">
<view class="group" v-if="item.STATUS=='-1'">
<radio class='radio' value="-1" checked>
<text class="wui-pl10">不涉及</text>
</radio>
<text class="wui-pl10">不涉及</text></radio>
</view>
<view class="group" v-if="item.STATUS=='1'">
<radio class='radio' value="1" checked>
<text class="wui-pl10">&nbsp;&nbsp;&nbsp;&nbsp;</text>
</radio>
<text class="wui-pl10">&nbsp;&nbsp;&nbsp;&nbsp;</text></radio>
</view>
</radio-group>
</uni-td>
</uni-tr>
</uni-table>
</view>
<view
v-if="pd.CONFIRM_USER_MEASURES || pd.LEADER_USER_MEASURES || pd.AUDIT_USER_MEASURES || pd.APPROVE_USER_MEASURES || pd.MONITOR_USER_MEASURES">
<view v-if="pd.CONFIRM_USER_MEASURES || pd.LEADER_USER_MEASURES || pd.AUDIT_USER_MEASURES || pd.APPROVE_USER_MEASURES || pd.MONITOR_USER_MEASURES">
<view class="cu-form-group">
<view class="title">其他安全措施</view>
</view>
<view v-if="pd.CONFIRM_USER_MEASURES" class="ty-group">
<text class="title">
作业单位
</text>
作业单位</text>
<text>{{ pd.CONFIRM_USER_MEASURES}}</text>
</view>
<!-- <view v-if="pd.GUARDIAN_USER_MEASURES" class="ty-group">-->
<!-- <text class="title">-->
<!-- 监护人</text>-->
<!-- <text>{{ pd.GUARDIAN_USER_MEASURES}}</text>-->
<!-- </view>-->
<view v-if="pd.LEADER_USER_MEASURES" class="ty-group">
<text class="title">
车间
</text>
车间</text>
<text>{{ pd.LEADER_USER_MEASURES}}</text>
</view>
<view v-if="pd.AUDIT_USER_MEASURES" class="ty-group">
<text class="title">
安全管理部门
</text>
安全管理部门</text>
<text>{{ pd.AUDIT_USER_MEASURES}}</text>
</view>
<view v-if="pd.APPROVE_USER_MEASURES" class="ty-group">
<text class="title">
审批人
</text>
审批人</text>
<text>{{ pd.APPROVE_USER_MEASURES}}</text>
</view>
<view v-if="pd.MONITOR_USER_MEASURES" class="ty-group">
<text class="title">
班长
</text>
班长</text>
<text>{{ pd.MONITOR_USER_MEASURES}}</text>
</view>
</view>
@ -232,8 +247,7 @@
{{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.GUARDIAN_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + pd.GUARDIAN_USER_SIGNER_PATH)" style="height: 100%;"></image>
<image :src="baseImgPath + pd.GUARDIAN_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.GUARDIAN_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
@ -244,8 +258,7 @@
{{pd.CONFESS_USER_NAME}} {{pd.CONFESS_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + pd.CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<image :src="baseImgPath + pd.CONFESS_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
@ -255,12 +268,9 @@
<view class="title">接受交底人</view>
{{pd.ACCEPT_CONFESS_USER_NAME}} {{pd.ACCEPT_CONFESS_USER_SIGNER_TIME}}
</view>
<view class="cu-item" v-for="(item,index) in files" :key="index"
style="border-bottom: 1px solid #e3e3e3">
<view class="imgs"
style="display: flex;justify-content: space-between;align-items: flex-end;padding: 20upx 50upx;">
<image :src="baseImgPath+item.ACCEPT_CONFESS_USER_SIGNER_PATH" :data-index="index"
@click="ViewShowImage(baseImgPath+item.ACCEPT_CONFESS_USER_SIGNER_PATH)"
<view class="cu-item" v-for="(item,index) in files" :key="index" style="border-bottom: 1px solid #e3e3e3">
<view class="imgs" style="display: flex;justify-content: space-between;align-items: flex-end;padding: 20upx 50upx;">
<image :src="baseImgPath+item.ACCEPT_CONFESS_USER_SIGNER_PATH" :data-index="index" @click="ViewShowImage(baseImgPath+item.ACCEPT_CONFESS_USER_SIGNER_PATH)"
mode="" style="width: 200upx;height: 200upx;"></image>
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
</view>
@ -272,9 +282,7 @@
<view class="cu-form-group" >
<view class="title">分析单位</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showAnalyzeTree">
{{ pd.ANALYZE_DEPARTMENT_NAME ? pd.ANALYZE_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showAnalyzeTree">{{pd.ANALYZE_DEPARTMENT_NAME?pd.ANALYZE_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_analyze"
:selectParent=true
@ -285,8 +293,7 @@
</view>
<view class="cu-form-group" >
<view class="title">分析单位负责人</view>
<picker @change="PickerAnalyze" :value="analyzeindex" :range="analyzeUserList" range-key="NAME"
:disabled="analyzeUserList.length == 0" @click="isBlankList('analyze')">
<picker @change="PickerAnalyze" :value="analyzeindex" :range="analyzeUserList" range-key="NAME" :disabled="analyzeUserList.length == 0" @click="isBlankList('analyze')">
<view class="picker">
{{pd.ANALYZE_USER_NAME?pd.ANALYZE_USER_NAME:'请选择'}}
</view>
@ -297,9 +304,7 @@
<view class="cu-form-group" v-if="!forbidEdit">
<view class="title">作业负责人单位</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showConfirmTree">
{{ pd.CONFIRM_DEPARTMENT_NAME ? pd.CONFIRM_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showConfirmTree">{{pd.CONFIRM_DEPARTMENT_NAME?pd.CONFIRM_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_confirm"
:selectParent=true
@ -310,8 +315,7 @@
</view>
<view class="cu-form-group" v-if="!forbidEdit">
<view class="title">作业负责人</view>
<picker @change="PickerConfirm" :value="confirmindex" :range="confirmUserList" range-key="NAME"
:disabled="confirmUserList.length == 0" @click="isBlankList('confirm')">
<picker @change="PickerConfirm" :value="confirmindex" :range="confirmUserList" range-key="NAME" :disabled="confirmUserList.length == 0" @click="isBlankList('confirm')">
<view class="picker">
{{pd.CONFIRM_USER_NAME?pd.CONFIRM_USER_NAME:'请选择'}}
</view>
@ -319,12 +323,31 @@
</view>
</view>
<view class="wui-form-list" v-if="!forbidEdit">
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">监护人单位</view>-->
<!-- <view class="picker-tree-box">-->
<!-- <view class="picker-tree" @tap="showGuardianTree">{{pd.GUARDIAN_DEPARTMENT_NAME?pd.GUARDIAN_DEPARTMENT_NAME:''}}</view>-->
<!-- </view>-->
<!-- <tki-tree ref="tkiTree_guardian"-->
<!-- :selectParent=true-->
<!-- :range="treeNode"-->
<!-- rangeKey="name"-->
<!-- @confirm="guardiantreeConfirm"-->
<!-- @cancel="guardiantreeCancel"></tki-tree>-->
<!-- </view>-->
<!-- <view class="cu-form-group" >-->
<!-- <view class="title">监护人</view>-->
<!-- <picker @change="PickerGuardian" :value="guardianindex" :range="guardianUserList" range-key="NAME" :disabled="guardianUserList.length == 0" @click="isBlankList('guardian')">-->
<!-- <view class="picker">-->
<!-- {{pd.GUARDIAN_USER_NAME?pd.GUARDIAN_USER_NAME:'请选择'}}-->
<!-- </view>-->
<!-- </picker>-->
<!-- </view>-->
<view class="cu-form-group" v-if="!forbidEdit">
<view class="title">所在单位</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showLeaderTree">
{{ pd.LEADER_DEPARTMENT_NAME ? pd.LEADER_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showLeaderTree">{{pd.LEADER_DEPARTMENT_NAME?pd.LEADER_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_leader"
:selectParent=true
@ -335,8 +358,7 @@
</view>
<view class="cu-form-group" v-if="!forbidEdit">
<view class="title">所在单位负责人</view>
<picker @change="PickerLeader" :value="leaderindex" :range="leaderUserList" range-key="NAME"
:disabled="leaderUserList.length == 0" @click="isBlankList('leader')">
<picker @change="PickerLeader" :value="leaderindex" :range="leaderUserList" range-key="NAME" :disabled="leaderUserList.length == 0" @click="isBlankList('leader')">
<view class="picker">
{{pd.LEADER_USER_NAME?pd.LEADER_USER_NAME:'请选择'}}
</view>
@ -347,9 +369,7 @@
<view class="cu-form-group" v-if="pd.WORK_LEVEL != '二级'">
<view class="title">安全管理部门</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showAuditTree">
{{ pd.AUDIT_DEPARTMENT_NAME ? pd.AUDIT_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showAuditTree">{{pd.AUDIT_DEPARTMENT_NAME?pd.AUDIT_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_audit"
:selectParent=true
@ -360,8 +380,7 @@
</view>
<view class="cu-form-group" v-if="pd.WORK_LEVEL != '二级'">
<view class="title">安全管理部门负责人</view>
<picker @change="PickerAudit" :value="auditindex" :range="auditUserList" range-key="NAME"
:disabled="auditUserList.length == 0" @click="isBlankList('audit')">
<picker @change="PickerAudit" :value="auditindex" :range="auditUserList" range-key="NAME" :disabled="auditUserList.length == 0" @click="isBlankList('audit')">
<view class="picker">
{{pd.AUDIT_USER_NAME?pd.AUDIT_USER_NAME:'请选择'}}
</view>
@ -372,9 +391,7 @@
<view class="cu-form-group" v-if="pd.WORK_LEVEL != '二级' && pd.WORK_LEVEL != '一级'">
<view class="title">动火审批单位</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showApproveTree">
{{ pd.APPROVE_DEPARTMENT_NAME ? pd.APPROVE_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showApproveTree">{{pd.APPROVE_DEPARTMENT_NAME?pd.APPROVE_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_approve"
:selectParent=true
@ -385,8 +402,7 @@
</view>
<view class="cu-form-group" v-if="pd.WORK_LEVEL != '二级' && pd.WORK_LEVEL != '一级'">
<view class="title">动火审批负责人</view>
<picker @change="PickerApprove" :value="approveindex" :range="approveUserList" range-key="NAME"
:disabled="approveUserList.length == 0" @click="isBlankList('approve')">
<picker @change="PickerApprove" :value="approveindex" :range="approveUserList" range-key="NAME" :disabled="approveUserList.length == 0" @click="isBlankList('approve')">
<view class="picker">
{{pd.APPROVE_USER_NAME?pd.APPROVE_USER_NAME:'请选择'}}
</view>
@ -397,9 +413,7 @@
<view class="cu-form-group" v-if="!forbidEdit">
<view class="title">动火前在岗部门</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showMonitorTree">
{{ pd.MONITOR_DEPARTMENT_NAME ? pd.MONITOR_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showMonitorTree">{{pd.MONITOR_DEPARTMENT_NAME?pd.MONITOR_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_monitor"
:selectParent=true
@ -410,8 +424,7 @@
</view>
<view class="cu-form-group" v-if="!forbidEdit">
<view class="title">动火前在岗班长</view>
<picker @change="PickerMonitor" :value="monitorindex" :range="monitorUserList" range-key="NAME"
:disabled="monitorUserList.length == 0" @click="isBlankList('monitor')">
<picker @change="PickerMonitor" :value="monitorindex" :range="monitorUserList" range-key="NAME" :disabled="monitorUserList.length == 0" @click="isBlankList('monitor')">
<view class="picker">
{{pd.MONITOR_USER_NAME?pd.MONITOR_USER_NAME:'请选择'}}
</view>
@ -422,9 +435,7 @@
<view class="cu-form-group" >
<view class="title">监护人单位</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showGuardianTree">
{{ pd.GUARDIAN_DEPARTMENT_NAME ? pd.GUARDIAN_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showGuardianTree">{{pd.GUARDIAN_DEPARTMENT_NAME?pd.GUARDIAN_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_guardian"
:selectParent=true
@ -435,8 +446,7 @@
</view>
<view class="cu-form-group" >
<view class="title">监护人</view>
<picker @change="PickerGuardian" :value="guardianindex" :range="guardianUserList" range-key="NAME"
:disabled="guardianUserList.length == 0" @click="isBlankList('guardian')">
<picker @change="PickerGuardian" :value="guardianindex" :range="guardianUserList" range-key="NAME" :disabled="guardianUserList.length == 0" @click="isBlankList('guardian')">
<view class="picker">
{{pd.GUARDIAN_USER_NAME?pd.GUARDIAN_USER_NAME:'请选择'}}
</view>
@ -447,9 +457,7 @@
<view class="cu-form-group" >
<view class="title">安全交底人单位</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showConfessTree">
{{ pd.CONFESS_DEPARTMENT_NAME ? pd.CONFESS_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showConfessTree">{{pd.CONFESS_DEPARTMENT_NAME?pd.CONFESS_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_confess"
:selectParent=true
@ -460,8 +468,7 @@
</view>
<view class="cu-form-group" >
<view class="title">安全交底人</view>
<picker @change="PickerConfess" :value="confessindex" :range="confessUserList" range-key="NAME"
:disabled="confessUserList.length == 0" @click="isBlankList('confess')">
<picker @change="PickerConfess" :value="confessindex" :range="confessUserList" range-key="NAME" :disabled="confessUserList.length == 0" @click="isBlankList('confess')">
<view class="picker">
{{pd.CONFESS_USER_NAME?pd.CONFESS_USER_NAME:'请选择'}}
</view>
@ -472,9 +479,7 @@
<view class="cu-form-group" >
<view class="title">接受交底人单位</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showAcceptconfessTree">
{{ pd.ACCEPT_CONFESS_DEPARTMENT_NAME ? pd.ACCEPT_CONFESS_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showAcceptconfessTree">{{pd.ACCEPT_CONFESS_DEPARTMENT_NAME?pd.ACCEPT_CONFESS_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_acceptconfess"
:selectParent=true
@ -485,9 +490,7 @@
</view>
<view class="cu-form-group" >
<view class="title">接受交底人</view>
<picker @change="PickerAcceptconfess" :value="acceptconfessindex" :range="acceptconfessUserList"
range-key="NAME" :disabled="acceptconfessUserList.length == 0"
@click="isBlankList('acceptconfess')">
<picker @change="PickerAcceptconfess" :value="acceptconfessindex" :range="acceptconfessUserList" range-key="NAME" :disabled="acceptconfessUserList.length == 0" @click="isBlankList('acceptconfess')">
<view class="picker">
{{pd.ACCEPT_CONFESS_USER_NAME?pd.ACCEPT_CONFESS_USER_NAME:'请选择'}}
</view>
@ -498,9 +501,7 @@
<view class="cu-form-group" >
<view class="title">验收部门</view>
<view class="picker-tree-box">
<view class="picker-tree" @tap="showAcceptTree">
{{ pd.ACCEPT_DEPARTMENT_NAME ? pd.ACCEPT_DEPARTMENT_NAME : '请选择' }}
</view>
<view class="picker-tree" @tap="showAcceptTree">{{pd.ACCEPT_DEPARTMENT_NAME?pd.ACCEPT_DEPARTMENT_NAME:''}}</view>
</view>
<tki-tree ref="tkiTree_accept"
:selectParent=true
@ -511,8 +512,7 @@
</view>
<view class="cu-form-group" >
<view class="title">验收部门负责人</view>
<picker @change="PickerAccept" :value="acceptindex" :range="acceptUserList" range-key="NAME"
:disabled="acceptUserList.length == 0" @click="isBlankList('accept')">
<picker @change="PickerAccept" :value="acceptindex" :range="acceptUserList" range-key="NAME" :disabled="acceptUserList.length == 0" @click="isBlankList('accept')">
<view class="picker">
{{pd.ACCEPT_USER_NAME?pd.ACCEPT_USER_NAME:'请选择'}}
</view>
@ -533,14 +533,17 @@
<view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
</view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;">-->
<!-- <view class="title">作业负责人</view>-->
<!-- {{pd.CONFIRM_USER_NAME}} {{pd.CONFIRM_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
<view class="title">作业负责人</view>
{{pd.CONFIRM_USER_NAME}} {{pd.CONFIRM_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
<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>
@ -549,14 +552,17 @@
<view class="cu-form-title">所在单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea>
</view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;">-->
<!-- <view class="title">动火点所在单位负责人</view>-->
<!-- {{pd.LEADER_USER_NAME}} {{pd.LEADER_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
<view class="title">所在单位负责人</view>
{{pd.LEADER_USER_NAME}} {{pd.LEADER_USER_SIGNER_TIME}}
</view>
<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>
<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>
@ -565,14 +571,17 @@
<view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.AUDIT_CONTENT"></textarea>
</view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;">-->
<!-- <view class="title">安全管理部门负责人</view>-->
<!-- {{pd.AUDIT_USER_NAME}} {{pd.AUDIT_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
<view class="title">安全管理部门负责人</view>
{{pd.AUDIT_USER_NAME}} {{pd.AUDIT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.AUDIT_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + pd.AUDIT_USER_SIGNER_PATH)" style="height: 100%;"></image>
<image :src="baseImgPath + pd.AUDIT_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.AUDIT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
@ -581,14 +590,17 @@
<view class="cu-form-title">动火审批人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.APPROVE_CONTENT"></textarea>
</view>
<!-- <view class="cu-form-group" v-if="forbidEdit" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;">-->
<!-- <view class="title">审批人</view>-->
<!-- {{pd.APPROVE_USER_NAME}} {{pd.APPROVE_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
<view class="title">动火审批人</view>
{{pd.APPROVE_USER_NAME}} {{pd.APPROVE_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.APPROVE_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + pd.APPROVE_USER_SIGNER_PATH)" style="height: 100%;"></image>
<image :src="baseImgPath + pd.APPROVE_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.APPROVE_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
@ -597,14 +609,17 @@
<view class="cu-form-title">动火前在岗班长意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.MONITOR_CONTENT"></textarea>
</view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;">-->
<!-- <view class="title">动火前在岗班长</view>-->
<!-- {{pd.MONITOR_USER_NAME}} {{pd.MONITOR_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" >
<view class="title">动火前在岗班长</view>
{{pd.MONITOR_USER_NAME}} {{pd.MONITOR_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.MONITOR_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + pd.MONITOR_USER_SIGNER_PATH)" style="height: 100%;"></image>
<image :src="baseImgPath + pd.MONITOR_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.MONITOR_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
</view>
@ -618,12 +633,9 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view class="cu-item" v-for="(item,index) in files1" :key="index"
style="border-bottom: 1px solid #e3e3e3">
<view class="imgs"
style="display: flex;justify-content: space-between;align-items: flex-end;padding: 20upx 50upx;">
<image :src="baseImgPath+item.ACCEPT_USER_SIGNER_PATH" :data-index="index"
@click="ViewShowImage1(baseImgPath+item.ACCEPT_USER_SIGNER_PATH)"
<view class="cu-item" v-for="(item,index) in files1" :key="index" style="border-bottom: 1px solid #e3e3e3">
<view class="imgs" style="display: flex;justify-content: space-between;align-items: flex-end;padding: 20upx 50upx;">
<image :src="baseImgPath+item.ACCEPT_USER_SIGNER_PATH" :data-index="index" @click="ViewShowImage1(baseImgPath+item.ACCEPT_USER_SIGNER_PATH)"
mode="" style="width: 200upx;height: 200upx;"></image>
<text>{{item.ACCEPT_USER_SIGNER_TIME}}</text>
</view>
@ -633,17 +645,9 @@
</view>
</view>
<view class="cu-bar btn-group" style="margin-top: 30upx;">
<button
v-if="!forbidEdit && pd.APPLY_STATUS <1 && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98 || !pd.APPLY_STATUS "
:loading="buttonloading" class="cu-btn bg-blue margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'1')">提交
</button>
<button
v-if="!forbidEdit && pd.APPLY_STATUS <1 && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98 || !pd.APPLY_STATUS "
:loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'0')">暂存
</button>
<button v-if="forbidEdit || pd.APPLY_STATUS == -99 || pd.APPLY_STATUS == -98 "
class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goback)">返回
</button>
<button v-if="!forbidEdit && pd.APPLY_STATUS <1 && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98 || !pd.APPLY_STATUS " :loading="buttonloading" class="cu-btn bg-blue margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'1')"></button>
<button v-if="!forbidEdit && pd.APPLY_STATUS <1 && pd.APPLY_STATUS != -99 && pd.APPLY_STATUS != -98 || !pd.APPLY_STATUS " :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'0')"></button>
<button v-if="forbidEdit || pd.APPLY_STATUS == -99 || pd.APPLY_STATUS == -98 " class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goback)"></button>
</view>
<view class="padding flex flex-direction">
</view>
@ -662,7 +666,6 @@ import writingBoard from "@/components/writing-board/writing-board.vue"
import gcoord from '@/common/gcoord.js'
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
import OtherSelect from '@/components/other-select/index.vue';
export default {
components: {
tkiTree,ruiDatePicker,writingBoard,OtherSelect
@ -708,22 +711,33 @@ export default {
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
WORK_LONGITUDE: '119',
WORK_LATITUDE: '39',
WORK_LONGITUDE: '',
WORK_LATITUDE: '',
},//
measuresList:[],
rules:[
// {name:'CHECK_NO',message:''},
{name:'WORK_CONTENT',message:'请输入作业内容'},
{name:'WORK_PLACE',message:'请输入动火地点及动火部位'},
{name:'WORK_LEVEL',message:'请选择动火级别'},
// {name: 'WORK_LONGITUDE',message: '',},
{name:'WORK_FUNCTION',message:'请输入动火方式'},
{name:'WORK_START_DATE',message:'请选择工作开始时间'},
{name:'WORK_END_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:'请选择验收部门负责人'},
{name:'GUARDIAN_USER_ID',message:'请选择监护人'},
@ -750,6 +764,7 @@ export default {
this.pd.APPLY_USER_NAME = loginUser.NAME;
this.forbidEdit = false;
this.pd.OTHER_PROTECTIVE_MEASURES = ''
// this.getCode()
this.getWorkUserList();
}
//
@ -767,6 +782,8 @@ export default {
events: {
//
acceptDataFromOpenedPage: function (e) {
// console.log(e.data)
// console.info(e.data.longitue)
_this.pd.WORK_LONGITUDE = e.data.longitue;
_this.pd.WORK_LATITUDE = e.data.latitude;
console.info(_this.pd)
@ -1202,6 +1219,20 @@ export default {
break
}
},
/*
*监护人
*/
// //
// guardiantreeConfirm(e) {
// 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');
// },
/*
*安全交底人
*/
//
confesstreeConfirm(e) {
this.isUps=false;
@ -1212,6 +1243,9 @@ export default {
this.$forceUpdate();//
this.getUserList(e[0].id,'confessUserList');
},
/*
*接受交底人
*/
//
confesstreeAcceptconfirm(e) {
this.isUps=false;
@ -1344,7 +1378,26 @@ export default {
this.$forceUpdate();//
this.getUserList(e[0].id,'guardianUserList');
},
// //
// guardiantreeCancel(e) {
// this.isUps=false;
// },
// //
// showGuardianTree() {
// 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.$forceUpdate();//
// },
/*
*单位领导
*/
//
leadertreeConfirm(e) {
this.isUps=false;