动火app代码格式化

dev-2024年1月8日
liujun 2024-01-25 16:36:15 +08:00
parent f74ed73a67
commit 5ef11fd65a
1 changed files with 1459 additions and 1512 deletions

View File

@ -37,7 +37,8 @@
<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">
@ -47,7 +48,8 @@
<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>
@ -93,16 +95,12 @@
</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>
@ -115,43 +113,27 @@
<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">
@ -191,49 +173,52 @@
<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>
@ -247,7 +232,8 @@
{{ 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>
@ -258,7 +244,8 @@
{{ 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>
@ -268,9 +255,12 @@
<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>
@ -282,7 +272,9 @@
<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
@ -293,7 +285,8 @@
</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>
@ -304,7 +297,9 @@
<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
@ -315,7 +310,8 @@
</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>
@ -323,31 +319,12 @@
</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
@ -358,7 +335,8 @@
</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>
@ -369,7 +347,9 @@
<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
@ -380,7 +360,8 @@
</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>
@ -391,7 +372,9 @@
<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
@ -402,7 +385,8 @@
</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>
@ -413,7 +397,9 @@
<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
@ -424,7 +410,8 @@
</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>
@ -435,7 +422,9 @@
<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
@ -446,7 +435,8 @@
</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>
@ -457,7 +447,9 @@
<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
@ -468,7 +460,8 @@
</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>
@ -479,7 +472,9 @@
<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
@ -490,7 +485,9 @@
</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>
@ -501,7 +498,9 @@
<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
@ -512,7 +511,8 @@
</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,17 +533,14 @@
<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>
@ -552,17 +549,14 @@
<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>
@ -571,17 +565,14 @@
<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>
@ -590,17 +581,14 @@
<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>
@ -609,17 +597,14 @@
<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>
@ -633,9 +618,12 @@
<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>
@ -645,9 +633,17 @@
</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>
@ -666,6 +662,7 @@
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
@ -711,33 +708,22 @@
acceptindex: -1,
pd: {
OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;',
WORK_LONGITUDE: '',
WORK_LATITUDE: '',
WORK_LONGITUDE: '119',
WORK_LATITUDE: '39',
},//
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: '请选择监护人'},
@ -764,7 +750,6 @@
this.pd.APPLY_USER_NAME = loginUser.NAME;
this.forbidEdit = false;
this.pd.OTHER_PROTECTIVE_MEASURES = ''
// this.getCode()
this.getWorkUserList();
}
//
@ -782,8 +767,6 @@
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)
@ -1219,20 +1202,6 @@
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;
@ -1243,9 +1212,6 @@
this.$forceUpdate();//
this.getUserList(e[0].id, 'confessUserList');
},
/*
*接受交底人
*/
//
confesstreeAcceptconfirm(e) {
this.isUps = false;
@ -1378,26 +1344,7 @@
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;