molilang 3 vuotta sitten
vanhempi
commit
0b60a27871
1 muutettua tiedostoa jossa 30 lisäystä ja 22 poistoa
  1. 30 22
      src/pages/main/demandDevelop/index.vue

+ 30 - 22
src/pages/main/demandDevelop/index.vue

@@ -243,7 +243,12 @@
             action=""
             :http-request="handleMessage"
             :show-file-list="false"
-            ><el-button size="small" type="primary">导入</el-button></el-upload
+            ><el-button
+              size="small"
+              type="primary"
+              :disabled="tableSatus === '4'"
+              >导入</el-button
+            ></el-upload
           >
           <div
             style="margin: 20px 0; padding: 0 20px"
@@ -487,6 +492,7 @@ export default {
       file: [], // 附件数组
       titname: "",
       dialogStatus: false,
+      // 查看是否办结
       tableSatus: null,
       number: 0,
       // 按钮标识
@@ -520,19 +526,7 @@ export default {
       infolist: {},
       // 用户信息
       userInfo: {},
-      buttonList: [
-        "送部门人员审核",
-        "送领导审核",
-        "送申请人编号发送",
-        "确认编号",
-        "确认需求",
-        "送项目经理会签",
-        "送电商接口人阅办",
-        "送其他人办理",
-        "确认上线",
-        "已办结",
-        "打回",
-      ],
+      buttonList: [],
       params: {},
       centerDialogVisible: false,
       messTit: "",
@@ -784,7 +778,7 @@ export default {
       let reqdata = {
         operateName: this.operateName,
         type,
-        reviewOpinion: this.operateName + "," + this.remark,
+        reviewOpinion: this.remark,
         woId: this.woNo + "",
       };
       if (type === "2") {
@@ -828,7 +822,7 @@ export default {
         operateName: this.operateName,
         receiveId: receiveId.join(","),
         receiveName: receiveName.join(","),
-        reviewOpinion: this.operateName + "," + this.remark,
+        reviewOpinion: this.remark,
         woNo: this.woNo + "",
       };
       console.log(reqdata);
@@ -866,7 +860,7 @@ export default {
         operateName: this.operateName,
         receiveId: receiveId.join(","),
         receiveName: receiveName.join(","),
-        reviewOpinion: this.operateName + "," + this.remark,
+        reviewOpinion: this.remark,
         woNo: this.woNo + "",
       };
       console.log(reqdata);
@@ -1104,7 +1098,6 @@ export default {
             body: { button, mkOnlineChannel },
           },
         }) => {
-          this.buttonList = button;
           this.infolist = {
             ...mkOnlineChannel,
             carryChannelCode: mkOnlineChannel.carryChannelCode.split(","),
@@ -1137,11 +1130,28 @@ export default {
             this.disableStatus = false;
           } else {
             if (this.titname === "查看") {
+              this.buttonList = [];
               this.disableStatus = true;
               this.visionsts = "";
-              // 数组回显
-              this.infodatas = mkOnlineChannel.logList;
+              if (this.step === "7") {
+                this.vision = "信息补填";
+                // 查看也不能操作数据
+                this.tableSatus = "4";
+                this.visionsts = "";
+                this.infodatas = mkOnlineChannel.workloadAndsupport.length
+                  ? mkOnlineChannel.workloadAndsupport.map((el) => ({
+                      factoryName: el.support,
+                      workLoad: el.workload,
+                    }))
+                  : [
+                      {
+                        factoryName: "",
+                        workLoad: "",
+                      },
+                    ];
+              }
             } else {
+              this.buttonList = button;
               // 这里就是审批
               if (this.step === "0") {
                 this.disableStatus = false;
@@ -1165,8 +1175,6 @@ export default {
                       },
                     ];
               } else {
-                // 数组回显
-                this.infodatas = mkOnlineChannel.logList;
                 this.visionsts = "2";
               }
             }