Jelajahi Sumber

修改派单bug

695593266@qq.com 4 bulan lalu
induk
melakukan
18852b57c7

+ 1 - 1
src/views/workOrder/components/details.vue

@@ -307,7 +307,7 @@
                   <el-option
                   <el-option
                     v-for="item in shiftList"
                     v-for="item in shiftList"
                     :key="item.id"
                     :key="item.id"
-                    :label="item.name"
+                    :label="item.dutyName"
                     :value="item.id"
                     :value="item.id"
                   >
                   >
                   </el-option>
                   </el-option>

+ 12 - 2
src/views/workOrder/mixins/release.js

@@ -316,7 +316,7 @@ export default {
       console.log(this.current, 'this.current 查询工位数据');
       console.log(this.current, 'this.current 查询工位数据');
       // let id = this.current.taskId || this.current.firstTaskId;
       // let id = this.current.taskId || this.current.firstTaskId;
       let id = '';
       let id = '';
-      if (this.isTpye == 'detail' && this.current.taskAss == 1) {
+      if (this.isTpye == 'detail') {
         id = this.current.firstTaskId;
         id = this.current.firstTaskId;
       } else {
       } else {
         if (!this.current.taskId || this.current.taskId < 0) {
         if (!this.current.taskId || this.current.taskId < 0) {
@@ -326,7 +326,6 @@ export default {
         }
         }
       }
       }
 
 
-      console.log(id, 'id 查询工位数据');
       await listByFirstTaskId(taskId ? taskId : id)
       await listByFirstTaskId(taskId ? taskId : id)
         .then((res) => {
         .then((res) => {
           this.stationList = res;
           this.stationList = res;
@@ -955,6 +954,17 @@ export default {
       this.$set(dataRow, 'selection', []);
       this.$set(dataRow, 'selection', []);
       let tab = `tableRef${[dataRow.index]}`;
       let tab = `tableRef${[dataRow.index]}`;
       this.$refs[tab][0].setSelectedRowKeys([]);
       this.$refs[tab][0].setSelectedRowKeys([]);
+      // this.$nextTick(() => {
+      //   const tab = `tableRef${dataRow.index}`;
+      //   const tableRefs = this.$refs[tab];
+
+      //   if (!tableRefs || !tableRefs[0]) {
+      //     console.warn(`table ref ${tab} not ready`);
+      //     return;
+      //   }
+
+      //   tableRefs[0].setSelectedRowKeys([]);
+      // });
     },
     },
 
 
     mergeNewRows(oldList, newList) {
     mergeNewRows(oldList, newList) {