ysy 1 год назад
Родитель
Сommit
129a9d191d

+ 1 - 1
src/api/materialPlan/index.js

@@ -111,7 +111,7 @@ export async function submit(data) {
 
 
 export async function listBomByWorkOrderIds(data) {
-  const res = await request.post(`/aps/batchingplandetail/listBomByWorkOrderIds`,data);
+  const res = await request.post(`/aps/batchingplandetail/listBomByMesWorkOrderIds`,data);
   if (res.data.code == 0) {
     return res.data.data;
   }

+ 5 - 4
src/views/materialPlan/components/ProductModal.vue

@@ -37,7 +37,7 @@
 
 import { getList } from '@/api/classifyManage/itemInformation';
 import ProductSearch from './product-search.vue'
-import { getTreeByPid } from '@/api/classifyManage';
+import { getTreeByGroup } from '@/api/classifyManage';
 export default {
   components: {
     ProductSearch
@@ -177,7 +177,7 @@ export default {
       try {
         this.treeLoading = true;
 
-        const res = await getTreeByPid(1);
+        const res = await getTreeByGroup({type: 3});
         this.treeLoading = false;
         if (res?.code === '0') {
           this.treeList = res.data;
@@ -227,7 +227,7 @@ export default {
         this.$message.error('请至少选择一条数据');
         return;
       }
-      if (this.type == 'add') {
+   
        _arr = this.selection.map(m => {
           m.categoryId = m.id
           m.unit = m.measuringUnit
@@ -236,7 +236,8 @@ export default {
             ...m
           }
         })
-      }
+
+
 
       this.$emit('chooseModal', _arr, this.current)
       this.handleClose()

+ 3 - 1
src/views/materialPlan/components/plan-edit-dialog.vue

@@ -600,8 +600,10 @@ export default {
         }
       })
 
-      this.$refs.table.setData([...tableList]);
 
+      console.log(tableList);
+      this.$refs.table.setData([...tableList]);
+      this.$forceUpdate()
     },
 
     remove2(row) {