xiao-xx 2 months ago
parent
commit
4791b04fc9

+ 3 - 1
src/views/clocking/sealApplication.vue

@@ -491,7 +491,9 @@ export default {
     onSubmit() {
       this.$refs["ruleFormRef"].validate((valid) => {
         this.form.useTime = this.form1.useTime;
-        this.form.fileId = this.fujian[0].response.data.fileId;
+        if(this.fujian.length>0){
+          this.form.fileId = this.fujian[0].response.data.fileId;
+        }
         this.form.signetType = this.form1.signetType;
         this.form.usingReason = this.form1.usingReason;
         this.form.activeSend = this.form1.activeSend;

+ 0 - 19
src/views/liucheng/todowork/formView/swViewPdf.vue

@@ -1310,24 +1310,6 @@ const onSubmit = async () => {
     guidangData.value.workId = flowDatas.value.WorkID;
     let { archiveRes } = await saveArchive(guidangData.value);
   }
-  // 如果市最后一个节点则执行 完成
-  if (isEndNodeFlg.value) {
-    //todo 调用修改接口 修改
-    await receive(receiverData.value).then((response) => {});
-    generNextStepAllNode(
-      flowDatas.value.FK_Flow,
-      flowDatas.value.WorkID,
-      "",
-      getJToken()
-    ).then((res) => {
-      ElMessage({
-        message: "当前工作已结束",
-        type: "success",
-      });
-      colsedialog();
-      proxy.$modal.closeLoading();
-    });
-  } else {
     //todo 调用修改接口 修改
     await receive(receiverData.value).then((response) => {});
     // receiverData.value.feedbackFileList = [];
@@ -1369,7 +1351,6 @@ const onSubmit = async () => {
       loadingWebLoad.value = false;
       proxy.$modal.closeLoading();
     });
-  }
 };
 
 function openRetrunWork() {}