|
|
@@ -197,7 +197,15 @@
|
|
|
<PreviewOnline ref="previewOnlineRef" />
|
|
|
<el-dialog v-model="dialogVisible" title="下一节点签署人" width="500">
|
|
|
<el-form-item :label="currentLabel">
|
|
|
- <el-select v-model="signerId" placeholder="请选择" size="large" style="width: 100%" filterable remote :remote-method="remoteMethod">
|
|
|
+ <el-select
|
|
|
+ v-model="signerId"
|
|
|
+ placeholder="请选择"
|
|
|
+ size="large"
|
|
|
+ style="width: 100%"
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ :remote-method="remoteMethod"
|
|
|
+ >
|
|
|
<el-option v-for="item in userOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -336,13 +344,13 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-// if (signerId.value) {
|
|
|
-// // handleSubmitSign(firstSignItem).then(() => {
|
|
|
-// // handleSafetyResponsibilityDeptSaveSign(signerId.value, nextLevel, nextOrder);
|
|
|
-// // });
|
|
|
-// } else
|
|
|
+ // if (signerId.value) {
|
|
|
+ // // handleSubmitSign(firstSignItem).then(() => {
|
|
|
+ // // handleSafetyResponsibilityDeptSaveSign(signerId.value, nextLevel, nextOrder);
|
|
|
+ // // });
|
|
|
+ // } else
|
|
|
|
|
|
- if (currentLevel === 2 && currentDepartmentKey.value === 'D') {
|
|
|
+ if (currentLevel === 2 && currentDepartmentKey.value === 'D') {
|
|
|
handleSubmitSign(firstSignItem);
|
|
|
} else if (currentLevel === 3 && currentDepartmentKey.value === 'C') {
|
|
|
handleSubmitSign(firstSignItem);
|
|
|
@@ -407,7 +415,7 @@
|
|
|
submiting.value = false;
|
|
|
});
|
|
|
};
|
|
|
-// 下一节点签署人 保存
|
|
|
+ // 下一节点签署人 保存
|
|
|
const handleDialogConfirm = async () => {
|
|
|
const fullAttachment = formData.signRecords.every((item) => item.attachment || item.attachment?.length > 0);
|
|
|
const signList = formData.signRecords.filter((item) => item.signFlag && item.signStatus === 0);
|
|
|
@@ -419,26 +427,27 @@
|
|
|
const nextLevel = Math.min(currentLevel + 1, 3);
|
|
|
const nextOrder = currentOrder + 1;
|
|
|
if (signerId.value) {
|
|
|
- const params = {
|
|
|
- sign:{
|
|
|
- signStatus: 0,
|
|
|
- signLevel: nextLevel,
|
|
|
- contractId: route.query.id,
|
|
|
- signOrder: nextOrder,
|
|
|
- },
|
|
|
- signerId: signerId.value || null,
|
|
|
- ids: [route.query.id],
|
|
|
- attachment: JSON.stringify(firstSignItem?.attachment),
|
|
|
- };
|
|
|
- safetyResponsibilityDeptBatchSign(params).then(()=>{
|
|
|
- ElMessage.success('责任书签署成功');
|
|
|
- router.push({
|
|
|
- name: 'responsibilityAgreeManageDept',
|
|
|
- });
|
|
|
-
|
|
|
- }).finally(() => {
|
|
|
- submiting.value = false;
|
|
|
- });
|
|
|
+ const params = {
|
|
|
+ sign: {
|
|
|
+ signStatus: 0,
|
|
|
+ signLevel: nextLevel,
|
|
|
+ contractId: route.query.id,
|
|
|
+ signOrder: nextOrder,
|
|
|
+ },
|
|
|
+ signerId: signerId.value || null,
|
|
|
+ ids: [route.query.id],
|
|
|
+ attachment: JSON.stringify(firstSignItem?.attachment),
|
|
|
+ };
|
|
|
+ safetyResponsibilityDeptBatchSign(params)
|
|
|
+ .then(() => {
|
|
|
+ ElMessage.success('责任书签署成功');
|
|
|
+ router.push({
|
|
|
+ name: 'responsibilityAgreeManageDept',
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ submiting.value = false;
|
|
|
+ });
|
|
|
dialogVisible.value = false;
|
|
|
} else {
|
|
|
ElMessage.warning('请选择签署人');
|
|
|
@@ -571,7 +580,7 @@
|
|
|
border-right: 1px solid rgb(220, 223, 230);
|
|
|
background-color: rgb(245, 247, 250);
|
|
|
}
|
|
|
- .back{
|
|
|
+ .back {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 16px;
|