八项作业特级,一级,二级动火流程通过
parent
55cbea71d8
commit
8a57daafec
|
@ -15,7 +15,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=提交申请">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||
<view v-if="count.CREATE" class="cu-tag badge">{{count.CREATE}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>动火作业</view>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=气体检测">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
|
||||
<view v-if="count.COUNTANALYZE" class="cu-tag badge">{{count.COUNTANALYZE}}</view>
|
||||
<view v-if="count.ANALYZE" class="cu-tag badge">{{count.ANALYZE}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>气体分析</view>
|
||||
|
@ -34,7 +34,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=设置安全措施确认人">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
||||
<view v-if="count.COUNTCONFIRM" class="cu-tag badge">{{count.COUNTCONFIRM}}</view>
|
||||
<view v-if="count.MEASURES_CONFIRM" class="cu-tag badge">{{count.MEASURES_CONFIRM}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>安全措施</view>
|
||||
|
@ -44,7 +44,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=监护人签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>
|
||||
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||
<view v-if="count.GUARDIAN" class="cu-tag badge">{{count.GUARDIAN}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>监护人</view>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=安全交底人签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
|
||||
<view v-if="count.COUNTLEADER" class="cu-tag badge">{{count.COUNTLEADER}}</view>
|
||||
<view v-if="count.CONFESS" class="cu-tag badge">{{count.CONFESS}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>安全交底人</view>
|
||||
|
@ -64,7 +64,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=接受安全交底人签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
||||
<view v-if="count.COUNTAUDIT" class="cu-tag badge">{{count.COUNTAUDIT}}</view>
|
||||
<view v-if="count.ACCEPT_CONFESS" class="cu-tag badge">{{count.ACCEPT_CONFESS}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>接受安全交底人</view>
|
||||
|
@ -74,7 +74,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=作业负责人签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
||||
<view v-if="count.COUNTAPPROVE" class="cu-tag badge">{{count.COUNTAPPROVE}}</view>
|
||||
<view v-if="count.CONFIRM" class="cu-tag badge">{{count.CONFIRM}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>作业负责人</view>
|
||||
|
@ -84,7 +84,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=所在单位签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
||||
<view v-if="count.COUNTMONITOR" class="cu-tag badge">{{count.COUNTMONITOR}}</view>
|
||||
<view v-if="count.LEADER" class="cu-tag badge">{{count.LEADER}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>所在单位</view>
|
||||
|
@ -94,7 +94,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=安全管理部门签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
||||
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||
<view v-if="count.AUDIT" class="cu-tag badge">{{count.AUDIT}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>安全管理部门</view>
|
||||
|
@ -104,7 +104,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=动火审批人签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
||||
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||
<view v-if="count.APPROVE" class="cu-tag badge">{{count.APPROVE}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>动火审批人</view>
|
||||
|
@ -115,7 +115,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=当班班长验票">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||
<view v-if="count.MONITOR" class="cu-tag badge">{{count.MONITOR}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>当班班长验票</view>
|
||||
|
@ -124,7 +124,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=开始进行作业">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||
<view v-if="count.WORK_START" class="cu-tag badge">{{count.WORK_START}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>开始进行作业时间</view>
|
||||
|
@ -133,7 +133,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=结束作业">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||
<view v-if="count.WORK_END" class="cu-tag badge">{{count.WORK_END}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>结束作业时间</view>
|
||||
|
@ -142,7 +142,7 @@
|
|||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=验收签字">
|
||||
<view class="imgs action">
|
||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||
<view v-if="count.ACCEPT" class="cu-tag badge">{{count.ACCEPT}}</view>
|
||||
</view>
|
||||
<view class="text-semi" style="text-align: center;">
|
||||
<view>验收归档</view>
|
||||
|
|
|
@ -0,0 +1,531 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">完工验收</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业开始时间:</view>
|
||||
{{pd.WORK_START_DATE}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业结束时间:</view>
|
||||
{{pd.WORK_END_DATE}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
|
||||
<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>
|
||||
</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.MONITOR_CONTENT"></textarea>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业开始负责人</view>
|
||||
{{pd.WORK_START_USER_NAME}} {{pd.WORK_START_USER_SIGNER_TIME}}
|
||||
</view>
|
||||
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
|
||||
<image :src="baseImgPath + pd.WORK_START_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.WORK_START_USER_SIGNER_PATH)" style="height: 100%;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业结束负责人</view>
|
||||
{{pd.WORK_END_USER_NAME}} {{pd.WORK_END_USER_SIGNER_TIME}}
|
||||
</view>
|
||||
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
|
||||
<image :src="baseImgPath + pd.WORK_END_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.WORK_END_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.DESCR" placeholder="请输入意见"></textarea>
|
||||
<view class="cu-form-group ">
|
||||
<view class="title">验收时间</view>
|
||||
<ruiDatePicker
|
||||
fields="minute"
|
||||
:value="pd.ACCEPT_TIME?pd.ACCEPT_TIME:''"
|
||||
@change="changeStartDate"
|
||||
></ruiDatePicker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-sign">
|
||||
<view class="title">验收部门负责人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">新增手写签字</button>
|
||||
</view>
|
||||
<view class="wui-sign-box wui-sign-box1" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
<view class="cu-tag bg-red" @tap.stop="DelImg(index)">
|
||||
<text class='cuIcon-close'></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
files: [],
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
gasList:[],
|
||||
todayDate:'',
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
changeStartDate(e) {
|
||||
this.pd.ACCEPT_TIME = e
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if(new Date(this.pd.ACCEPT_TIME).getTime() - new Date(this.pd.WORK_END_DATE).getTime() >= 3600000){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请在作业结束30分钟内完成验收',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
const formData={}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime.join(",")
|
||||
formData.ACCEPT_TIME = this.pd.ACCEPT_TIME
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.DESCR = this.pd.DESCR
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
uploadImgFaults(fileList,signtime) {
|
||||
this.imgList.map(item => {
|
||||
var img = {}
|
||||
img.name = 'file'+(fileList.length)
|
||||
img.uri = item.filePath
|
||||
fileList.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID : corpinfoId,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'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) {
|
||||
_this[list][i] = [];
|
||||
_this[list][i] = res.data.userList;
|
||||
_this.$forceUpdate();//强制刷新
|
||||
}else{
|
||||
_this[list]=res.data.userList;
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(ISSELF) {
|
||||
this.ISSELF = ISSELF
|
||||
this.modalName = 'Modal'
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
|
||||
subCanvas(e) {
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm')
|
||||
this.imgList.push(e);
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
DelImg(index){
|
||||
this.imgList.splice(index,1)
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.wui-sign-box1{
|
||||
margin-top: 20upx;
|
||||
display: block;
|
||||
}
|
||||
.sign-img{
|
||||
position: relative;
|
||||
border-bottom: 1px dashed #eee;
|
||||
padding-top: 20upx;
|
||||
}
|
||||
.cu-tag{
|
||||
position: absolute;
|
||||
right: 20upx;
|
||||
top: 20upx;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -0,0 +1,415 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">接受交底人签字确认</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.ACCEPT_CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">接受交底人</view>
|
||||
{{pd.ACCEPT_CONFESS_USER_NAME}} {{pd.ACCEPT_CONFESS_USER_SIGNER_TIME}}
|
||||
</view>
|
||||
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
|
||||
<image :src="baseImgPath + pd.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-form-list">
|
||||
<view class="wui-sign" v-if="!files.length">
|
||||
<view class="title">接受交底人</view>
|
||||
<view>
|
||||
<view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal">新增手写签字</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box wui-sign-box1" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
<view class="cu-tag bg-red" @tap.stop="DelImg(index)">
|
||||
<text class='cuIcon-close'></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
files: [],
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},
|
||||
measuresList:[],
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var fileList = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
|
||||
this.uploadImgFaults(fileList,signtime)
|
||||
formData.SIGNTIME = signtime.join(",")
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: fileList,
|
||||
formData: formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
uploadImgFaults(fileList,signtime) {
|
||||
this.imgList.map(item => {
|
||||
var img = {}
|
||||
img.name = 'file'+(fileList.length)
|
||||
img.uri = item.filePath
|
||||
fileList.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
DelImg(index){
|
||||
this.imgList.splice(index,1)
|
||||
},
|
||||
// 获取动火列表
|
||||
getLimitSpace(){
|
||||
var _this = this;
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath + '/app/limitspace/listAllSpace?tm=' + new Date().getTime(),
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: function (res) {
|
||||
_this.limitSpaceList = res.data.varList;
|
||||
}
|
||||
});
|
||||
},
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath+'/app/sys/listUser',
|
||||
data: {
|
||||
DEPARTMENT_ID:dept,
|
||||
tm:new Date().getTime(),
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
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{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(ISSELF) {
|
||||
this.ISSELF = ISSELF
|
||||
this.modalName = 'Modal'
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm')
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.wui-sign-box1{
|
||||
margin-top: 20upx;
|
||||
display: block;
|
||||
}
|
||||
.sign-img{
|
||||
position: relative;
|
||||
border-bottom: 1px dashed #eee;
|
||||
padding-top: 20upx;
|
||||
}
|
||||
.cu-tag{
|
||||
position: absolute;
|
||||
right: 20upx;
|
||||
top: 20upx;
|
||||
}
|
||||
</style>
|
|
@ -7,32 +7,32 @@
|
|||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group group-picker" >
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group group-picker" >
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" v-if="pd.CHECK_NO != '' && pd.CHECK_NO != null">
|
||||
<view class="title">编号:</view>
|
||||
<input name="input" ref="CHECK_NO" :disabled="true" v-model="pd.CHECK_NO" placeholder="请输入编号"></input>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-textarea">
|
||||
<view class="cu-form-textarea bb-default">
|
||||
<view class="cu-form-title">作业内容:</view>
|
||||
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.WORK_CONTENT" placeholder="请输入作业内容" ></textarea>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
<input name="input" :disabled="forbidEdit" v-model="pd.WORK_PLACE" placeholder="请输入"></input>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group group-picker">
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
<picker v-if="!forbidEdit" @change="levelChange" :disabled="forbidEdit" :value="levelindex" :range="levelList" range-key="name">
|
||||
<view class="picker">
|
||||
|
@ -42,32 +42,11 @@
|
|||
<view v-else>{{pd.WORK_LEVEL}}</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
<input name="input" :disabled="forbidEdit" v-model="pd.WORK_FUNCTION" placeholder="请输入"></input>
|
||||
</view>
|
||||
|
||||
<!-- <view v-if="!forbidEdit" class="cu-form-group ">-->
|
||||
<!-- <view class="title">作业开始时间</view>-->
|
||||
<!-- <ruiDatePicker v-if="!forbidEdit"-->
|
||||
<!-- :start="todayDate"-->
|
||||
<!-- fields="minute"-->
|
||||
<!-- :value="pd.WORK_START_DATE?pd.WORK_START_DATE:''"-->
|
||||
<!-- @change="changeStartDate"-->
|
||||
<!-- ></ruiDatePicker>-->
|
||||
<!-- <view v-else>{{pd.WORK_START_DATE}}</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view v-if="!forbidEdit" class="cu-form-group">-->
|
||||
<!-- <view class="title">作业结束时间</view>-->
|
||||
<!-- <ruiDatePicker v-if="!forbidEdit"-->
|
||||
<!-- :start="todayDate"-->
|
||||
<!-- fields="minute"-->
|
||||
<!-- :value="pd.WORK_END_DATE?pd.WORK_END_DATE:''"-->
|
||||
<!-- @change="changeEndDate"-->
|
||||
<!-- ></ruiDatePicker>-->
|
||||
<!-- <view v-else>{{pd.WORK_END_DATE}}</view>-->
|
||||
<!-- </view>-->
|
||||
|
||||
<view v-if="pd.WORK_START_DATE" class="cu-form-group" style="height: 140upx;">
|
||||
<view class="title" style="width: 175upx; height: 90upx; margin: 0;line-height: 1.6;">
|
||||
<view>动火作业</view>
|
||||
|
@ -80,11 +59,6 @@
|
|||
</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>
|
||||
|
@ -269,6 +243,72 @@
|
|||
</picker>
|
||||
</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>
|
||||
<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="showConfessTree">{{pd.CONFESS_DEPARTMENT_NAME?pd.CONFESS_DEPARTMENT_NAME:'请选择'}}</view>
|
||||
</view>
|
||||
<tki-tree ref="tkiTree_confess"
|
||||
:selectParent=true
|
||||
:range="treeNode"
|
||||
rangeKey="name"
|
||||
@confirm="confesstreeConfirm"
|
||||
@cancel="confesstreeCancel"></tki-tree>
|
||||
</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')">
|
||||
<view class="picker">
|
||||
{{pd.CONFESS_USER_NAME?pd.CONFESS_USER_NAME:'请选择'}}
|
||||
</view>
|
||||
</picker>
|
||||
</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="showAcceptconfessTree">{{pd.ACCEPT_CONFESS_DEPARTMENT_NAME?pd.ACCEPT_CONFESS_DEPARTMENT_NAME:'请选择'}}</view>
|
||||
</view>
|
||||
<tki-tree ref="tkiTree_acceptconfess"
|
||||
:selectParent=true
|
||||
:range="treeNode"
|
||||
rangeKey="name"
|
||||
@confirm="confesstreeAcceptconfirm"
|
||||
@cancel="acceptconfesstreeCancel"></tki-tree>
|
||||
</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')">
|
||||
<view class="picker">
|
||||
{{pd.ACCEPT_CONFESS_USER_NAME?pd.ACCEPT_CONFESS_USER_NAME:'请选择'}}
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-form-list" v-if="!forbidEdit">
|
||||
<view class="cu-form-group" v-if="!forbidEdit">
|
||||
<view class="title">作业负责人单位</view>
|
||||
|
@ -292,27 +332,6 @@
|
|||
</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">
|
||||
|
@ -400,72 +419,7 @@
|
|||
</picker>
|
||||
</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>
|
||||
<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="showConfessTree">{{pd.CONFESS_DEPARTMENT_NAME?pd.CONFESS_DEPARTMENT_NAME:'请选择'}}</view>
|
||||
</view>
|
||||
<tki-tree ref="tkiTree_confess"
|
||||
:selectParent=true
|
||||
:range="treeNode"
|
||||
rangeKey="name"
|
||||
@confirm="confesstreeConfirm"
|
||||
@cancel="confesstreeCancel"></tki-tree>
|
||||
</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')">
|
||||
<view class="picker">
|
||||
{{pd.CONFESS_USER_NAME?pd.CONFESS_USER_NAME:'请选择'}}
|
||||
</view>
|
||||
</picker>
|
||||
</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="showAcceptconfessTree">{{pd.ACCEPT_CONFESS_DEPARTMENT_NAME?pd.ACCEPT_CONFESS_DEPARTMENT_NAME:'请选择'}}</view>
|
||||
</view>
|
||||
<tki-tree ref="tkiTree_acceptconfess"
|
||||
:selectParent=true
|
||||
:range="treeNode"
|
||||
rangeKey="name"
|
||||
@confirm="confesstreeAcceptconfirm"
|
||||
@cancel="acceptconfesstreeCancel"></tki-tree>
|
||||
</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')">
|
||||
<view class="picker">
|
||||
{{pd.ACCEPT_CONFESS_USER_NAME?pd.ACCEPT_CONFESS_USER_NAME:'请选择'}}
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list" v-if="!forbidEdit">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业开始负责人单位</view>
|
||||
|
@ -534,135 +488,134 @@
|
|||
</view>
|
||||
|
||||
<view class="wui-form-list" v-if="forbidEdit">
|
||||
<view class="cu-form-group bb-default">
|
||||
<view>
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
</view>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
<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>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.LEADER_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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
<!-- <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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.MONITOR_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.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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files1.length > 0">
|
||||
<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.ACCEPT_CONTENT"></textarea>
|
||||
<view class="cu-form-title">作业负责人意见</view>
|
||||
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea>
|
||||
</view>
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">验收部门负责人</view>
|
||||
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
|
||||
<view class="title">作业负责人</view>
|
||||
{{pd.CONFIRM_USER_NAME}} {{pd.CONFIRM_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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_USER_SIGNER_TIME}}</text>
|
||||
<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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.LEADER_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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
|
||||
<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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.MONITOR_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.MONITOR_CONTENT"></textarea>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.WORK_START_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业开始负责人</view>
|
||||
{{pd.WORK_START_USER_NAME}} {{pd.WORK_START_USER_SIGNER_TIME}}
|
||||
</view>
|
||||
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
|
||||
<image :src="baseImgPath + pd.WORK_START_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.WORK_START_USER_SIGNER_PATH)" style="height: 100%;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.WORK_END_USER_SIGNER_PATH">
|
||||
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业结束负责人</view>
|
||||
{{pd.WORK_END_USER_NAME}} {{pd.WORK_END_USER_SIGNER_TIME}}
|
||||
</view>
|
||||
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
|
||||
<image :src="baseImgPath + pd.WORK_END_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.WORK_END_USER_SIGNER_PATH)" style="height: 100%;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files1.length > 0">
|
||||
<view class="cu-form-textarea" style="border: none;">
|
||||
<view class="cu-form-title">完工验收</view>
|
||||
<textarea maxlength="255" disabled="disabled" v-model="pd.ACCEPT_CONTENT"></textarea>
|
||||
</view>
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button v-if="!forbidEdit || !pd.STEP_ID " :loading="buttonloading" class="cu-btn bg-blue margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'1')">提交</button>
|
||||
<button v-if="!forbidEdit || !pd.STEP_ID " :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'0')">暂存</button>
|
||||
<button v-if="forbidEdit && pd.STEP_ID !== 0" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goback)">返回</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button v-if="!forbidEdit || !pd.STEP_ID " :loading="buttonloading" class="cu-btn bg-blue margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'1')">提交</button>
|
||||
<button v-if="!forbidEdit || !pd.STEP_ID " :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'0')">暂存</button>
|
||||
<button v-if="forbidEdit && pd.STEP_ID !== 0" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goback)">返回</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
<other-select :visible.sync="otherAssignments" v-model="pd.SPECIAL_WORK" type="assignments"/>
|
||||
|
@ -907,34 +860,6 @@
|
|||
required = false
|
||||
}
|
||||
}
|
||||
if(this.pd.WORK_LEVEL == '特级' || this.pd.WORK_LEVEL == '一级'){
|
||||
if(new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() >= 28800000){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '动火级别为特级或一级时,动火作业开始时间与结束时间应不超过8小时,请重新选择',
|
||||
duration: 1500
|
||||
});
|
||||
required = false
|
||||
}
|
||||
}
|
||||
if(new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() <=0){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '作业开始时间不能晚于或等于结束时间,请重新选择',
|
||||
duration: 1500
|
||||
});
|
||||
required = false
|
||||
}
|
||||
if(this.pd.WORK_LEVEL == '二级'){
|
||||
if(new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() >= 259200000){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '动火级别为二级时,动火作业开始时间与结束时间应不超过72小时,请重新选择',
|
||||
duration: 1500
|
||||
});
|
||||
required = false
|
||||
}
|
||||
}
|
||||
if (!required) {
|
||||
return
|
||||
}
|
||||
|
|
|
@ -0,0 +1,433 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">审批部门意见</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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.DESCR" placeholder="请输入意见"></textarea>
|
||||
</view>
|
||||
<view class="wui-sign" >
|
||||
<view class="title">动火审批人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
files: [],
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
validStr(str){
|
||||
if (str!=null && str!='' && typeof(str)!="undefined" && str!=0)
|
||||
return true
|
||||
return false
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.DESCR = this.pd.DESCR
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID : corpinfoId,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'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) {
|
||||
_this[list][i] = [];
|
||||
_this[list][i] = res.data.userList;
|
||||
_this.$forceUpdate();//强制刷新
|
||||
}else{
|
||||
_this[list]=res.data.userList;
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(e) {
|
||||
this.modalName = e.currentTarget.dataset.target
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
uploadImgFaults(files,signtime) {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
files.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,429 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">安全管理部门意见</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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.DESCR" placeholder="请输入意见"></textarea>
|
||||
</view>
|
||||
<view class="wui-sign">
|
||||
<view class="title">安全管理部门负责人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
files: [],
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
validStr(str){
|
||||
if (str!=null && str!='' && typeof(str)!="undefined" && str!=0)
|
||||
return true
|
||||
return false
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.DESCR = this.pd.DESCR
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath+'/app/sys/listUser',
|
||||
data: {
|
||||
DEPARTMENT_ID:dept,
|
||||
tm:new Date().getTime(),
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
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{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(e) {
|
||||
this.modalName = e.currentTarget.dataset.target
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
uploadImgFaults(files,signtime) {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
files.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,389 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">安全交底人签字确认</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-form-list">
|
||||
<view class="wui-sign" >
|
||||
<view class="title">安全交底人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
files: [],
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
uploadImgFaults(files,signtime) {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
files.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取动火列表
|
||||
getLimitSpace(){
|
||||
var _this = this;
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath + '/app/limitspace/listAllSpace?tm=' + new Date().getTime(),
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: function (res) {
|
||||
_this.limitSpaceList = res.data.varList;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath+'/app/sys/listUser',
|
||||
data: {
|
||||
DEPARTMENT_ID:dept,
|
||||
tm:new Date().getTime(),
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
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{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(e) {
|
||||
this.modalName = e.currentTarget.dataset.target
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,417 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">作业负责人意见</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
|
||||
<view class="cu-form-title">作业负责人意见</view>
|
||||
<textarea maxlength="255" v-model="pd.DESCR" placeholder="请输入意见"></textarea>
|
||||
</view>
|
||||
<view class="wui-sign" >
|
||||
<view class="title">作业负责人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
files: [],
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
todayDate:'',
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
uploadImgFaults(files,signtime) {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
files.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.DESCR = this.pd.DESCR
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取动火列表
|
||||
getLimitSpace(){
|
||||
var _this = this;
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath + '/app/limitspace/listAllSpace?tm=' + new Date().getTime(),
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: function (res) {
|
||||
_this.limitSpaceList = res.data.varList;
|
||||
}
|
||||
});
|
||||
},
|
||||
levelChange(e){
|
||||
this.levelindex = e.detail.value;
|
||||
this.pd.WORK_LEVEL=this.levelList[this.levelindex].name;
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath+'/app/sys/listUser',
|
||||
data: {
|
||||
DEPARTMENT_ID:dept,
|
||||
tm:new Date().getTime(),
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
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{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(e) {
|
||||
this.modalName = e.currentTarget.dataset.target
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,530 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">作业结束时间选择</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业开始时间:</view>
|
||||
{{pd.WORK_START_DATE}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
|
||||
<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>
|
||||
</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.MONITOR_CONTENT"></textarea>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业开始负责人</view>
|
||||
{{pd.WORK_START_USER_NAME}} {{pd.WORK_START_USER_SIGNER_TIME}}
|
||||
</view>
|
||||
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
|
||||
<image :src="baseImgPath + pd.WORK_START_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.WORK_START_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-group">
|
||||
<view class="title">作业结束时间</view>
|
||||
<ruiDatePicker fields="minute"
|
||||
:value="pd.WORK_END_DATE?pd.WORK_END_DATE:''"
|
||||
@change="changeEndDate"
|
||||
></ruiDatePicker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-sign">
|
||||
<view class="title">填写作业结束时间负责人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
import moment from 'moment';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
moment:moment,
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
files: [],
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
gasList:[],
|
||||
todayDate:'',
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
changeEndDate(e) {
|
||||
this.pd.WORK_END_DATE = e
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() <=0){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '作业开始时间不能晚于或等于结束时间,请重新选择',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(this.pd.WORK_LEVEL == '特级' || this.pd.WORK_LEVEL == '一级'){
|
||||
if(new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() >= 28800000){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '动火级别为特级或一级时,动火作业开始时间与结束时间应不超过8小时,请重新选择',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(this.pd.WORK_LEVEL == '二级'){
|
||||
if(new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() >= 259200000){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '动火级别为二级时,动火作业开始时间与结束时间应不超过72小时,请重新选择',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.WORK_END_DATE = this.pd.WORK_END_DATE
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
uploadImgFaults(fileList,signtime) {
|
||||
this.imgList.map(item => {
|
||||
var img = {}
|
||||
img.name = 'file'+(fileList.length)
|
||||
img.uri = item.filePath
|
||||
fileList.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID : corpinfoId,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'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) {
|
||||
_this[list][i] = [];
|
||||
_this[list][i] = res.data.userList;
|
||||
_this.$forceUpdate();//强制刷新
|
||||
}else{
|
||||
_this[list]=res.data.userList;
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(ISSELF) {
|
||||
this.ISSELF = ISSELF
|
||||
this.modalName = 'Modal'
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.wui-sign-box1{
|
||||
margin-top: 20upx;
|
||||
display: block;
|
||||
}
|
||||
.sign-img{
|
||||
position: relative;
|
||||
border-bottom: 1px dashed #eee;
|
||||
padding-top: 20upx;
|
||||
}
|
||||
.cu-tag{
|
||||
position: absolute;
|
||||
right: 20upx;
|
||||
top: 20upx;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -7,61 +7,58 @@
|
|||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group" >
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group" >
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
<input name="input" ref="CHECK_NO" :disabled="forbidEdit" v-model="pd.CHECK_NO" placeholder="请输入编号"></input>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-textarea">
|
||||
<view class="cu-form-title">作业内容:</view>
|
||||
<textarea maxlength="255" :disabled="forbidEdit" v-model="pd.WORK_CONTENT" placeholder="请输入作业内容"></textarea>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
<input name="input" :disabled="forbidEdit" v-model="pd.WORK_PLACE" placeholder="请输入"></input>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
<input name="input" :disabled="forbidEdit" v-model="pd.WORK_FUNCTION" 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>
|
||||
<textarea maxlength="255" v-model="pd.WORK_USER" placeholder="请输入动火人及证书编号"></textarea>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-textarea" >
|
||||
<view class="cu-form-title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.SPECIAL_WORK" placeholder="请输入关联的其他特殊作业及安全作业票编号"></textarea>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-textarea" >
|
||||
<view class="cu-form-title">风险辨识结果:</view>
|
||||
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.RISK_IDENTIFICATION" placeholder="请输入风险辨识结果"></textarea>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view>
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
</view>
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -96,7 +93,7 @@
|
|||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">保存</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
|
@ -130,54 +127,8 @@
|
|||
{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:';_;;_;;_;;_;;_;;_;;_;'
|
||||
},// 数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
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,
|
||||
imgList:[],
|
||||
}
|
||||
|
@ -229,14 +180,7 @@
|
|||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
_this.pd = Object.assign(_this.pd,
|
||||
{
|
||||
"CONFIRM_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[0]
|
||||
})
|
||||
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
|
||||
if(_this.pd.STEP_ID == 4){
|
||||
_this.forbidEdit = false;
|
||||
}
|
||||
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
|
@ -260,48 +204,42 @@
|
|||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
const formData={}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
Object.keys(this.pd).map(key => {
|
||||
formData[key]=this.pd[key]
|
||||
})
|
||||
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime.join(",")
|
||||
formData.CREATOR=loginUser.USER_ID
|
||||
formData.OPERATOR=loginUser.USER_ID
|
||||
formData.ACTION_USER=loginUser.NAME
|
||||
formData.CORPINFO_ID = loginUser.CORPINFO_ID
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取动火列表
|
||||
getLimitSpace(){
|
||||
|
@ -322,11 +260,6 @@
|
|||
}
|
||||
});
|
||||
},
|
||||
levelChange(e){
|
||||
this.levelindex = e.detail.value;
|
||||
this.pd.WORK_LEVEL=this.levelList[this.levelindex].name;
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
|
@ -415,9 +348,9 @@
|
|||
this.imgList.splice(index,1)
|
||||
},
|
||||
uploadImgFaults(files,signtime) {
|
||||
this.imgList.map(item => {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+(files.length)
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
files.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
|
@ -450,33 +383,6 @@
|
|||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
/*
|
||||
*确认人
|
||||
*/
|
||||
// 确定回调事件
|
||||
confirmtreeConfirm(e) {
|
||||
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');
|
||||
},
|
||||
// 取消回调事件
|
||||
confirmtreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
// 显示树形选择器
|
||||
showConfirmTree() {
|
||||
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.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
/*
|
||||
*监护人
|
||||
*/
|
||||
|
@ -504,154 +410,6 @@
|
|||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
|
||||
/*
|
||||
*单位领导
|
||||
*/
|
||||
// 确定回调事件
|
||||
leadertreeConfirm(e) {
|
||||
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');
|
||||
},
|
||||
// 取消回调事件
|
||||
leadertreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
// 显示树形选择器
|
||||
showLeaderTree() {
|
||||
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.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
/*
|
||||
*安全管理部门负责人
|
||||
*/
|
||||
// 确定回调事件
|
||||
audittreeConfirm(e) {
|
||||
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');
|
||||
},
|
||||
// 取消回调事件
|
||||
audittreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
// 显示树形选择器
|
||||
showAuditTree() {
|
||||
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.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
/*
|
||||
*审批人
|
||||
*/
|
||||
// 确定回调事件
|
||||
approvetreeConfirm(e) {
|
||||
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');
|
||||
},
|
||||
// 取消回调事件
|
||||
approvetreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
// 显示树形选择器
|
||||
showApproveTree() {
|
||||
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.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
/*
|
||||
*在岗班长
|
||||
*/
|
||||
// 确定回调事件
|
||||
monitortreeConfirm(e) {
|
||||
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');
|
||||
},
|
||||
// 取消回调事件
|
||||
monitortreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
// 显示树形选择器
|
||||
showMonitorTree() {
|
||||
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.$forceUpdate();//强制刷新
|
||||
},
|
||||
/*
|
||||
*验收部门
|
||||
*/
|
||||
// 确定回调事件
|
||||
accepttreeConfirm(e) {
|
||||
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');
|
||||
},
|
||||
// 取消回调事件
|
||||
accepttreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
// 显示树形选择器
|
||||
showAcceptTree() {
|
||||
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.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
changeStartDate(e) {
|
||||
this.pd.WORK_START_DATE = e
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
changeEndDate(e) {
|
||||
this.pd.WORK_END_DATE = e
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
changeRadio(i,value){
|
||||
this.measuresList[i].STATUS=value
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
|
|
|
@ -0,0 +1,434 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">所在单位意见</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
</view>
|
||||
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;">-->
|
||||
<!-- <view class="title">作业负责人</view>-->
|
||||
<!-- <image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" style="width: 90upx;height: 90upx;" @tap="ViewImage" :data-url="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH"></image>-->
|
||||
<!-- {{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>
|
||||
</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.DESCR" placeholder="请输入意见"></textarea>
|
||||
</view>
|
||||
<view class="wui-sign">
|
||||
<view class="title">所在单位负责人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
files: [],
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
validStr(str){
|
||||
if (str!=null && str!='' && typeof(str)!="undefined" && str!=0)
|
||||
return true
|
||||
return false
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.DESCR = this.pd.DESCR
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取动火列表
|
||||
getLimitSpace(){
|
||||
var _this = this;
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath + '/app/limitspace/listAllSpace?tm=' + new Date().getTime(),
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: function (res) {
|
||||
_this.limitSpaceList = res.data.varList;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath+'/app/sys/listUser',
|
||||
data: {
|
||||
DEPARTMENT_ID:dept,
|
||||
tm:new Date().getTime(),
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
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{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(e) {
|
||||
this.modalName = e.currentTarget.dataset.target
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
uploadImgFaults(files,signtime) {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
files.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
|
@ -7,12 +7,12 @@
|
|||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group group-picker" >
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group group-picker" >
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
@ -24,43 +24,43 @@
|
|||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list" style="padding-top: 20upx;">
|
||||
|
@ -73,57 +73,57 @@
|
|||
<uni-tr>
|
||||
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
|
||||
</uni-tr>
|
||||
<template v-for="(item,index) in measuresList">
|
||||
<uni-tr>
|
||||
<uni-td>
|
||||
<view style="margin-bottom: 20upx;">
|
||||
{{item.PROTECTIVE_MEASURES}}
|
||||
</view>
|
||||
<template v-for="(item,index) in measuresList">
|
||||
<uni-tr>
|
||||
<uni-td>
|
||||
<view style="margin-bottom: 20upx;">
|
||||
{{item.PROTECTIVE_MEASURES}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">确认单位:</view>
|
||||
<view class="picker-tree-box">
|
||||
<view class="picker-tree" @tap="showDeptTree(index)">{{measuresList[index].DEPARTMENT_NAME?measuresList[index].DEPARTMENT_NAME:'请选择'}}</view>
|
||||
</view>
|
||||
<tki-tree :ref="'tkiTree'+index"
|
||||
:selectParent=true
|
||||
:range="treeNode"
|
||||
rangeKey="name"
|
||||
@confirm="deptTreeConfirm($event,index)"
|
||||
@cancel="deptTreeCancel($event,index)"></tki-tree>
|
||||
</view>
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">确认单位:</view>
|
||||
<view class="picker-tree-box">
|
||||
<view class="picker-tree" @tap="showDeptTree(index)">{{measuresList[index].DEPARTMENT_NAME?measuresList[index].DEPARTMENT_NAME:'请选择'}}</view>
|
||||
</view>
|
||||
<tki-tree :ref="'tkiTree'+index"
|
||||
:selectParent=true
|
||||
:range="treeNode"
|
||||
rangeKey="name"
|
||||
@confirm="deptTreeConfirm($event,index)"
|
||||
@cancel="deptTreeCancel($event,index)"></tki-tree>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业结束负责人</view>
|
||||
<picker @change="pickerUser($event,index)" :value="item.userIndex" :range="item.userList" range-key="NAME" :disabled="item.userList.length == 0" @click="isBlankList(index)">
|
||||
<view class="picker">
|
||||
{{measuresList[index].USER_NAME?measuresList[index].USER_NAME:'请选择'}}
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</template>
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">作业结束负责人</view>
|
||||
<picker @change="pickerUser($event,index)" :value="item.userIndex" :range="item.userList" range-key="NAME" :disabled="item.userList.length == 0" @click="isBlankList(index)">
|
||||
<view class="picker">
|
||||
{{measuresList[index].USER_NAME?measuresList[index].USER_NAME:'请选择'}}
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</template>
|
||||
</uni-table>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign" >
|
||||
<view class="title"></view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
<view class="wui-sign" >
|
||||
<view class="title"></view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
|
@ -162,7 +162,7 @@
|
|||
},
|
||||
onLoad(event){
|
||||
this.pd.HOTWORK_ID = event.HOTWORK_ID;
|
||||
this.getData();
|
||||
this.getData();
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getMeasures();
|
||||
|
@ -210,54 +210,54 @@
|
|||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
for (let i = 0; i < this.measuresList.length; i++) {
|
||||
const measures = this.measuresList[i]
|
||||
if(!measures.USER_ID){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '第'+(i+1)+'项未设置确认人',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
for (let i = 0; i < this.measuresList.length; i++) {
|
||||
const measures = this.measuresList[i]
|
||||
if(!measures.USER_ID){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '第'+(i+1)+'项未设置确认人',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const formData={}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.HOTWORK_ID = _this.pd.HOTWORK_ID
|
||||
formData.SIGNTIME = signtime.join(",")
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
formData.PREPARERS = JSON.stringify(_this.measuresList)
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
// _this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
const formData={}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.HOTWORK_ID = _this.pd.HOTWORK_ID
|
||||
formData.SIGNTIME = signtime.join(",")
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
formData.PREPARERS = JSON.stringify(_this.measuresList)
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
// _this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
uploadImgFaults(files,signtime) {
|
||||
|
@ -319,40 +319,40 @@
|
|||
});
|
||||
},
|
||||
|
||||
showDeptTree(index) {
|
||||
this.isUps=true
|
||||
this.$refs['tkiTree'+index][0]._show();
|
||||
},
|
||||
showDeptTree(index) {
|
||||
this.isUps=true
|
||||
this.$refs['tkiTree'+index][0]._show();
|
||||
},
|
||||
|
||||
deptTreeConfirm(e,i) {
|
||||
this.isUps=false;
|
||||
this.measuresList[i].DEPARTMENT_ID=e[0].id;
|
||||
this.measuresList[i].DEPARTMENT_NAME=e[0].name;
|
||||
this.measuresList[i].USER_ID = ''
|
||||
this.measuresList[i].USER_NAME = ''
|
||||
this.getUserList(e[0].id,i);
|
||||
},
|
||||
deptTreeConfirm(e,i) {
|
||||
this.isUps=false;
|
||||
this.measuresList[i].DEPARTMENT_ID=e[0].id;
|
||||
this.measuresList[i].DEPARTMENT_NAME=e[0].name;
|
||||
this.measuresList[i].USER_ID = ''
|
||||
this.measuresList[i].USER_NAME = ''
|
||||
this.getUserList(e[0].id,i);
|
||||
},
|
||||
|
||||
deptTreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
deptTreeCancel(e) {
|
||||
this.isUps=false;
|
||||
},
|
||||
|
||||
pickerUser(e,i) {
|
||||
this.measuresList[i].userIndex = e.detail.value;
|
||||
this.measuresList[i].USER_ID=this.measuresList[i].userList[e.detail.value].USER_ID;
|
||||
this.measuresList[i].USER_NAME=this.measuresList[i].userList[e.detail.value].NAME;
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
pickerUser(e,i) {
|
||||
this.measuresList[i].userIndex = e.detail.value;
|
||||
this.measuresList[i].USER_ID=this.measuresList[i].userList[e.detail.value].USER_ID;
|
||||
this.measuresList[i].USER_NAME=this.measuresList[i].userList[e.detail.value].NAME;
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
isBlankList(i) {
|
||||
if (this.measuresList[i].userList.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请先选择确认单位',
|
||||
duration: 1500
|
||||
})
|
||||
}
|
||||
},
|
||||
isBlankList(i) {
|
||||
if (this.measuresList[i].userList.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请先选择确认单位',
|
||||
duration: 1500
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//获取人员列表
|
||||
getUserList(dept,i){
|
||||
|
|
|
@ -0,0 +1,461 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">班长验票</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
|
||||
<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>
|
||||
</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.DESCR" placeholder="请输入意见"></textarea>
|
||||
</view>
|
||||
<view class="wui-sign">
|
||||
<view class="title">动火前在岗班长</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
files: [],
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
todayDate:'',
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.DESCR = this.pd.DESCR
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取动火列表
|
||||
getLimitSpace(){
|
||||
var _this = this;
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
// dataType: 'json',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
url: basePath + '/app/limitspace/listAllSpace?tm=' + new Date().getTime(),
|
||||
data: {CORPINFO_ID: corpinfoId},
|
||||
dataType: 'json',
|
||||
success: function (res) {
|
||||
_this.limitSpaceList = res.data.varList;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID : corpinfoId,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'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) {
|
||||
_this[list][i] = [];
|
||||
_this[list][i] = res.data.userList;
|
||||
_this.$forceUpdate();//强制刷新
|
||||
}else{
|
||||
_this[list]=res.data.userList;
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(e) {
|
||||
this.modalName = e.currentTarget.dataset.target
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
uploadImgFaults(files,signtime) {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
files.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,494 @@
|
|||
<template>
|
||||
<view >
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" >
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">完工验收</block>
|
||||
</cu-custom>
|
||||
<scroll-view scroll-y="false" >
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请单位:</view>
|
||||
{{pd.APPLY_DEPARTMENT_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default" >
|
||||
<view class="title">申请人:</view>
|
||||
{{pd.APPLY_USER_NAME}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">编号:</view>
|
||||
{{pd.CHECK_NO}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">作业内容:</view>
|
||||
{{pd.WORK_CONTENT}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火地点及动火部位:</view>
|
||||
{{pd.WORK_PLACE}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火作业级别:</view>
|
||||
{{pd.WORK_LEVEL}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火方式:</view>
|
||||
{{pd.WORK_FUNCTION}}
|
||||
</view>
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">动火人及证书编号:</view>
|
||||
{{pd.WORK_USER}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">关联的其他特殊作业及安全作业票编号:</view>
|
||||
{{pd.SPECIAL_WORK}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<view class="title">风险辨识结果:</view>
|
||||
{{pd.RISK_IDENTIFICATION}}
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group bb-default">
|
||||
<text class="title">分析人:</text>
|
||||
<text>{{pd.ANALYZE_USER_NAME}}</text>
|
||||
<button class="cu-btn bg-green sm" @click="$noMultipleClicks(goToDetail,pd.HOTWORK_ID)">分析详情</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="wui-form-list">
|
||||
<view v-if="pd.GUARDIAN_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">监护人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="pd.CONFESS_USER_SIGNER_PATH">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<view class="title">安全交底人</view>
|
||||
{{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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="files.length > 0">
|
||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||
<view class="cu-form-group" >
|
||||
<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)"
|
||||
mode="" style="width: 200upx;height: 200upx;"></image>
|
||||
<text>{{item.ACCEPT_CONFESS_USER_SIGNER_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
<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>
|
||||
</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.MONITOR_CONTENT"></textarea>
|
||||
</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>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
|
||||
<view class="cu-form-group ">
|
||||
<view class="title">作业开始时间</view>
|
||||
<ruiDatePicker :start="todayDate"
|
||||
fields="minute"
|
||||
:value="pd.WORK_START_DATE?pd.WORK_START_DATE:''"
|
||||
@change="changeStartDate"
|
||||
></ruiDatePicker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wui-sign">
|
||||
<view class="title">填写作业开始时间负责人</view>
|
||||
<button class="cu-btn bg-green shadow" @tap="showModal" data-target="Modal">手写签字</button>
|
||||
</view>
|
||||
|
||||
<view class="wui-sign-box" v-show="imgList && imgList.length > 0">
|
||||
<view class="sign-title">
|
||||
签字照片:
|
||||
</view>
|
||||
<view class="wui-sign-cotent">
|
||||
<view class="sign-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" data-type="0" :data-url="imgList[index].filePath">
|
||||
<image :src="imgList[index].filePath" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName=='Modal'?'show':''">
|
||||
<writing-board @confirm="subCanvas" @cancel="hideModal"></writing-board>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(-1))">打回</button>
|
||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit(1))">通过</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction">
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
basePath,corpinfoId,deptId,loginUser,formatDate,loginSession,baseImgPath
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
import writingBoard from "@/components/writing-board/writing-board.vue"
|
||||
import gcoord from '@/common/gcoord.js'
|
||||
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiTree,ruiDatePicker,writingBoard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseImgPath:baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps:false,
|
||||
forbidEdit:true,// 禁止修改
|
||||
msg:'add',
|
||||
files: [],
|
||||
noClick:true,
|
||||
treeNode:[],//部门下拉数据
|
||||
pd:{},// 数据
|
||||
measuresList:[],
|
||||
gasList:[],
|
||||
|
||||
todayDate:'',
|
||||
modalName:null,
|
||||
imgList:[],
|
||||
}
|
||||
},
|
||||
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";
|
||||
this.getData();
|
||||
}else {
|
||||
// 初始化作业负责人
|
||||
this.pd.APPLY_DEPARTMENT_ID = loginUser.DEPARTMENT_ID;
|
||||
this.pd.APPLY_DEPARTMENT_NAME = loginUser.DEPARTMENT_NAME;
|
||||
this.pd.APPLY_USER_ID = loginUser.USER_ID;
|
||||
this.pd.APPLY_USER_NAME = loginUser.NAME;
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
// 初始化现场作业负责人
|
||||
this.getDept();
|
||||
this.getLimitSpace();
|
||||
loginSession();
|
||||
|
||||
},
|
||||
methods: {
|
||||
//跳转事件
|
||||
goToDetail(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hotwork/hotwork-gas/gas-list?HOTWORK_ID='+e
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
uni.request({
|
||||
url: basePath + '/app/hotwork/findById',
|
||||
method: 'POST',
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
HOTWORK_ID: _this.pd.HOTWORK_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.pd = res.data.pd; //参数map
|
||||
} else if ("exception" == data.result) {
|
||||
uni.showToast({
|
||||
title: '错误',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ViewShowImage(url) {
|
||||
let files = [];
|
||||
files.push(url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
||||
if (_this.imgList.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请签字',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(new Date(this.pd.WORK_START_DATE).getTime() - new Date(this.pd.ANALYZE_TIME).getTime() >= 3600000){
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '气体分析时间与开始时间间隔超过30分钟,请重新上传气体检测结果',
|
||||
duration: 1500
|
||||
});
|
||||
return;
|
||||
}
|
||||
var files = [];
|
||||
var signtime = [];
|
||||
const formData={}
|
||||
this.uploadImgFaults(files,signtime)
|
||||
formData.SIGNTIME = signtime
|
||||
formData.WORK_START_DATE = this.pd.WORK_START_DATE
|
||||
formData.HOTWORK_ID = this.pd.HOTWORK_ID
|
||||
formData.USER_ID = loginUser.USER_ID
|
||||
uni.uploadFile({
|
||||
url: basePath+'app/hotwork/nextStep',
|
||||
files: files,
|
||||
formData:formData,
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title: '保存成功',
|
||||
duration: 2000
|
||||
});
|
||||
_this.goback()
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
uploadImgFaults(fileList,signtime) {
|
||||
this.imgList.map((item,index) => {
|
||||
var img = {}
|
||||
img.name = 'file'+index
|
||||
img.uri = item.filePath
|
||||
fileList.push(img)
|
||||
signtime.push(item.SIGNER_TIME)
|
||||
})
|
||||
},
|
||||
changeStartDate(e) {
|
||||
this.pd.WORK_START_DATE = e
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
getDept() {
|
||||
var _this = this;
|
||||
uni.request({
|
||||
url: basePath + '/app/sys/listTree',//部门下拉接口
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID : corpinfoId,
|
||||
},
|
||||
success: (res) => {
|
||||
if("success" == res.data.result){
|
||||
_this.treeNode=eval(res.data.zTreeNodes);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取人员列表
|
||||
getUserList(dept,list,i){
|
||||
//发送 post 请求
|
||||
var _this=this
|
||||
uni.request({
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header: {
|
||||
'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) {
|
||||
_this[list][i] = [];
|
||||
_this[list][i] = res.data.userList;
|
||||
_this.$forceUpdate();//强制刷新
|
||||
}else{
|
||||
_this[list]=res.data.userList;
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*手写板
|
||||
*/
|
||||
showModal(ISSELF) {
|
||||
this.ISSELF = ISSELF
|
||||
this.modalName = 'Modal'
|
||||
},
|
||||
hideModal(e) {
|
||||
this.modalName = null
|
||||
},
|
||||
//完成
|
||||
subCanvas(e) {
|
||||
this.imgList.splice(0,this.imgList.length);
|
||||
this.imgList.push(e);
|
||||
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
|
||||
this.hideModal()
|
||||
},
|
||||
ViewImage(e) {
|
||||
let files =[];
|
||||
files.push(e.currentTarget.dataset.url)
|
||||
uni.previewImage({
|
||||
urls: files,
|
||||
current: e.currentTarget.dataset.url
|
||||
});
|
||||
},
|
||||
|
||||
goback(){
|
||||
var pages = getCurrentPages(); // 获取当前页面栈
|
||||
var prePage = pages[pages.length - 2]; // 上二级页面
|
||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||
uni.navigateBack({delta: 1});
|
||||
uni.hideLoading();
|
||||
},
|
||||
radioType(e){
|
||||
this.HASINSTRUCTOR = e.detail.value
|
||||
},
|
||||
goToEdit(){
|
||||
this.forbidEdit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.wui-sign-box1{
|
||||
margin-top: 20upx;
|
||||
display: block;
|
||||
}
|
||||
.sign-img{
|
||||
position: relative;
|
||||
border-bottom: 1px dashed #eee;
|
||||
padding-top: 20upx;
|
||||
}
|
||||
.cu-tag{
|
||||
position: absolute;
|
||||
right: 20upx;
|
||||
top: 20upx;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue