Просмотр исходного кода

修复工艺文件显示问题和修改工位的时候不显示工序

695593266@qq.com 5 месяцев назад
Родитель
Сommit
19b7178095

+ 3 - 1
src/views/factoryModel/station/components/edit.vue

@@ -913,7 +913,9 @@
           }
           this.$nextTick(() => {
             // console.log(res.tMainFactoryWorkstationOperationAddPOList);
-            this.$refs.stationMeter.setValue(res.factoryWorkstationOperations);
+            this.$refs.stationMeter.setValue(
+              res.tMainFactoryWorkstationOperationAddPOList
+            );
           });
           const baseForm = defaultForm();
 

+ 2 - 4
src/views/material/BOMmanage/components/workingProcedure.vue

@@ -1773,15 +1773,13 @@
           }
         } else if (this.activeName === '工艺文件') {
           if (
-            JSON.stringify(
-              this.tableData.taskParam[this.currentIndex].fileParam
-            ) == '{}'
+            this.tableData.taskParam[this.currentIndex].fileParam.length == 0
           ) {
             this.tableData.taskParam[this.currentIndex].fileParam = [];
             this.$refs.fileTable.setData([]);
           } else {
             let fileId = this.tableData.taskParam[this.currentIndex].fileParam;
-            console.log('111111');
+
             if (fileId.length > 0) {
               this.fileParamDatasource(fileId);
             }