Przeglądaj źródła

批记录-生成工单详情功能修改

lucw 8 miesięcy temu
rodzic
commit
8860f871b9

+ 5 - 2
src/views/batchRecord/components/tables/workOrderTable.vue

@@ -32,6 +32,7 @@
   import tableColumnsMixin from '@/mixins/tableColumnsMixin';
   import { batchRecordPage } from '@/api/workOrderList';
   import detailsPop from '@/views/produceOrder/components/details/index.vue';
+  import { getById } from '@/api/produceOrder/index';
 
   export default {
     mixins: [dictMixins, tableColumnsMixin],
@@ -201,8 +202,10 @@
       search(where) {
         this.reload(where);
       },
-      goToDetail(row) {
-        this.$refs.detailsRef.open(row);
+      async goToDetail(row) {
+        // 查询详情
+        const data = await getById(row.id);
+        this.$refs.detailsRef.open(data);
       }
     }
   };