交办、整改责任人修改
This commit is contained in:
@@ -27,9 +27,13 @@
|
||||
<view style="color: #999; margin-bottom: 10rpx;">实际投资资金:</view>
|
||||
<view style="word-break: break-all; line-height: 1.6; color: #333;">{{ formatMoney(rectifyData.actualCost) }}</view>
|
||||
</view>
|
||||
<view class="margin-top">
|
||||
<view style="color: #999; margin-bottom: 10rpx;">安全管理人员:</view>
|
||||
<view style="word-break: break-all; line-height: 1.6; color: #333;">{{ formatPersonNames(rectifyData.managerNames) }}</view>
|
||||
</view>
|
||||
<view class="margin-top">
|
||||
<view style="color: #999; margin-bottom: 10rpx;">整改责任人:</view>
|
||||
<view style="word-break: break-all; line-height: 1.6; color: #333;">{{ rectifyData.rectifierName || '暂无' }}</view>
|
||||
<view style="word-break: break-all; line-height: 1.6; color: #333;">{{ formatPersonNames(rectifyData.memberNames) }}</view>
|
||||
</view>
|
||||
<view class="margin-top">
|
||||
<view style="color: #999; margin-bottom: 10rpx;">完成情况:</view>
|
||||
@@ -63,8 +67,35 @@
|
||||
<!-- 隐藏的 Canvas,用于渲染防作弊时间戳水印 -->
|
||||
<canvas canvas-id="watermarkCanvas" :width="canvasWidth" :height="canvasHeight" :style="{ width: canvasWidth + 'px', height: canvasHeight + 'px', position: 'fixed', left: '-9999px', top: '-9999px' }"></canvas>
|
||||
|
||||
<!-- 电子签名部分 -->
|
||||
<view class="flex justify-between margin-bottom margin-top-sm align-center">
|
||||
<view class="flex margin-bottom margin-top">
|
||||
<view class="text-gray">下一步流程</view>
|
||||
<view class="text-red">*</view>
|
||||
</view>
|
||||
<view class="static-field">申请隐患销号</view>
|
||||
|
||||
<view class="flex margin-bottom margin-top">
|
||||
<view class="text-gray">下一步处理人</view>
|
||||
<view class="text-red">*</view>
|
||||
</view>
|
||||
<view class="static-field">部门、企业管理员</view>
|
||||
|
||||
<!-- 短信提醒(暂不使用)
|
||||
<view class="flex margin-bottom margin-top">
|
||||
<view class="text-gray">短信提醒</view>
|
||||
<view class="text-red">*</view>
|
||||
</view>
|
||||
<up-radio-group v-model="sendMsgFlagRadio" placement="row" activeColor="#2667e9">
|
||||
<up-radio
|
||||
label="是"
|
||||
name="yes"
|
||||
:customStyle="{ marginRight: '48rpx' }"
|
||||
></up-radio>
|
||||
<up-radio label="否" name="no"></up-radio>
|
||||
</up-radio-group>
|
||||
-->
|
||||
|
||||
<!-- 电子签名(表单最底部) -->
|
||||
<view class="flex justify-between margin-bottom margin-top align-center">
|
||||
<view class="text-gray flex align-center">
|
||||
电子签名
|
||||
<view class="text-red">*</view>
|
||||
@@ -139,10 +170,23 @@
|
||||
rectifyResult: '',
|
||||
planCost: null,
|
||||
actualCost: null,
|
||||
rectifierName: '',
|
||||
managerNames: [],
|
||||
memberNames: [],
|
||||
rectifyStatusName: ''
|
||||
});
|
||||
|
||||
const formatPersonNames = (names) => {
|
||||
if (!names) return '暂无';
|
||||
if (Array.isArray(names)) {
|
||||
const text = names.filter(Boolean).join('、');
|
||||
return text || '暂无';
|
||||
}
|
||||
if (typeof names === 'string') {
|
||||
return names.trim() || '暂无';
|
||||
}
|
||||
return '暂无';
|
||||
};
|
||||
|
||||
const formatMoney = (value) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '暂无';
|
||||
@@ -164,6 +208,10 @@
|
||||
});
|
||||
|
||||
const fileList1 = ref([]);
|
||||
|
||||
// 短信提醒(暂不使用)
|
||||
// const sendMsgFlagRadio = ref('yes');
|
||||
// const sendMsgFlag = computed(() => sendMsgFlagRadio.value === 'yes');
|
||||
|
||||
// 防作弊时间戳水印 Canvas 大小配置
|
||||
const canvasWidth = ref(300);
|
||||
@@ -245,6 +293,7 @@
|
||||
signatureLocalPath: signatureLocalPath.value,
|
||||
showCanvas: showCanvas.value,
|
||||
signaturePaths: signaturePaths.value
|
||||
// sendMsgFlagRadio: sendMsgFlagRadio.value
|
||||
}),
|
||||
hasContent: acceptDraftHasContent,
|
||||
applyPayload: (data) => {
|
||||
@@ -264,6 +313,7 @@
|
||||
signatureLocalPath.value = '';
|
||||
isSignatureEmpty.value = true;
|
||||
}
|
||||
// sendMsgFlagRadio.value = data.sendMsgFlagRadio === 'no' ? 'no' : 'yes';
|
||||
},
|
||||
clearForm: () => {
|
||||
formData.result = 1;
|
||||
@@ -277,6 +327,7 @@
|
||||
if (signatureRef.value) {
|
||||
signatureRef.value.clear();
|
||||
}
|
||||
// sendMsgFlagRadio.value = 'yes';
|
||||
},
|
||||
canSave: () => !!rectifyId.value,
|
||||
requireInitialized: true,
|
||||
@@ -303,6 +354,7 @@
|
||||
signatureLocalPath.value,
|
||||
showCanvas.value,
|
||||
signaturePaths.value
|
||||
// sendMsgFlagRadio.value
|
||||
]);
|
||||
|
||||
// 获取完整图片路径
|
||||
@@ -349,7 +401,8 @@
|
||||
rectifyData.rectifyResult = rectify.rectifyResult || '';
|
||||
rectifyData.planCost = rectify.planCost ?? null;
|
||||
rectifyData.actualCost = rectify.actualCost ?? null;
|
||||
rectifyData.rectifierName = rectify.rectifierName || '';
|
||||
rectifyData.managerNames = rectify.managerNames || [];
|
||||
rectifyData.memberNames = rectify.memberNames || [];
|
||||
rectifyData.rectifyStatusName = rectify.rectifyStatusName || '';
|
||||
rectifyAttachments.value = rectify.attachments || [];
|
||||
};
|
||||
@@ -447,6 +500,7 @@
|
||||
verifyRemark: formData.verifyRemark || '',
|
||||
attachments: attachments,
|
||||
signPath: signatureServerPath.value || '' // 电子签名路径
|
||||
// sendMsgFlag: sendMsgFlag.value
|
||||
};
|
||||
|
||||
console.log('提交验收参数:', params);
|
||||
@@ -645,6 +699,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
.static-field {
|
||||
background: #fff;
|
||||
border: 1rpx solid #dcdfe6;
|
||||
border-radius: 8rpx;
|
||||
padding: 20rpx 24rpx;
|
||||
margin-bottom: 20rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
// 签名相关样式
|
||||
.signature-box {
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user