daiqisheng 3 yıl önce
ebeveyn
işleme
691214342f

+ 18 - 8
src/pages/main/demandDevelop/index.vue

@@ -54,7 +54,7 @@
               <el-button
                 size="mini"
                 type="danger"
-                v-if="scope.row.sts != 1"
+                v-if="scope.row.sts !== '4'"
                 @click="dialogCheck(2, scope.row)"
                 >处理</el-button
               >
@@ -312,7 +312,7 @@
           </el-form-item>
 
           <div
-            style="margin-bottom: 20px; padding: 0 20px"
+            style="margin: 20px 0px; padding: 0 20px"
             v-if="titname !== '添加'"
           >
             <el-table
@@ -472,6 +472,7 @@ export default {
       // 操作名称
       operateName: "",
       woNo: "",
+      fileDeletId: [],
       // 当前进行到的步骤计数
       step: "",
       tooltit: "线上渠道业务需求",
@@ -624,6 +625,9 @@ export default {
       console.log(file, "Preview");
     },
     handleRemove(file) {
+      if (file.id) {
+        this.fileDeletId.push(file.id);
+      }
       this.file = this.file.filter((el) => el.uid !== file.uid);
     },
     handleSuccess({ file }) {
@@ -672,7 +676,6 @@ export default {
               break;
             case "送领导审核":
               this.type = "1";
-              // this.formSubmit()
               this.checkLaeder = true;
               console.log("送领导审核");
               break;
@@ -927,7 +930,8 @@ export default {
           createId: this.infolist.createId,
           createName: this.infolist.createName,
           id: this.infolist.id,
-        };
+          delFileId:this.fileDeletId.join(',')
+        }
       }
       let params = {
         ...origin_params,
@@ -1111,6 +1115,12 @@ export default {
             ...this.datalist,
             attList: mkOnlineChannel.attList,
           };
+          this.file = [
+            ...mkOnlineChannel.attList.map((el) => ({
+              ...el,
+              name: el.fileName,
+            })),
+          ];
           //表单编号
           this.woNo = mkOnlineChannel.woNo;
           // 步骤
@@ -1130,13 +1140,12 @@ export default {
               this.infodatas = mkOnlineChannel.logList;
             } else {
               if (this.step === "0") {
-                this.dialogStatus = false;
+                this.disableStatus = false;
+                this.visionsts = "";
                 return;
               }
               this.dialogStatus = true;
               if (this.step === "7") {
-                if (mkOnlineChannel.sts === "4") {
-                }
                 this.vision = "信息补填";
                 this.visionsts = "";
                 this.infodatas = mkOnlineChannel.workloadAndsupport.length
@@ -1784,6 +1793,7 @@ export default {
   }
   &-upload {
     width: 500px !important;
+    position: relative;
   }
 }
 .titbox {
@@ -1800,7 +1810,7 @@ export default {
 .upload {
   position: relative;
   left: calc(50% - 229px / 2);
-  vertical-align: middle;
+  top: -4px;
   display: flex !important;
   flex-direction: column;
 }

+ 6 - 10
src/pages/main/gridDivision/workersList.vue

@@ -416,22 +416,22 @@ export default {
               props: "add",
             },
           ];
-        }else if(huiZongButton && !insertButton){
+        } else if (huiZongButton && !insertButton) {
           this.table_handle = [
             {
               label: "工单汇总",
               props: "summary",
             },
           ];
-        }else if(!huiZongButton && insertButton){
+        } else if (!huiZongButton && insertButton) {
           this.table_handle = [
             {
               label: "新建",
               props: "add",
             },
           ];
-        }else{
-          this.table_handle = []
+        } else {
+          this.table_handle = [];
         }
 
         // 列表数据回显
@@ -507,20 +507,17 @@ export default {
     },
     //文件返回值
     uploadBack({ file }) {
-      console.log({}.constructor.name, "obj");
-      console.log(file.constructor.name, "file");
       // console.log( file instanceof Object,'sasdas');
       this.file.push(file);
-      console.log(this.file);
+      console.log(this.file, "file");
       this.file1 = this.file[0];
       this.file2 = this.file[1];
       this.file3 = this.file[2];
     },
     // 删除文件
     uploadRemove(file) {
-      // console.log(file);
+      console.log(file,'dada');
       this.file.forEach((item, index) => {
-        console.log(item, "rsr");
         if (item.uid === file.uid) {
           this.file.splice(index, 1);
           if (item.id) {
@@ -530,7 +527,6 @@ export default {
           }
         }
       });
-      console.log(this.file, this.delFile);
       this.file1 = this.file[0];
       this.file2 = this.file[1];
       this.file3 = this.file[2];