ysy 1 rok temu
rodzic
commit
bb884db8db

+ 4 - 4
src/views/productionPlan/components/disassemblePlanPop.vue

@@ -101,7 +101,7 @@
                 v-for="item of routingList"
                 :key="item.id"
                 :label="item.name"
-                :value="item.name"
+                :value="item.id"
               ></el-option>
             </el-select>
           </template>
@@ -128,7 +128,7 @@
 
 <script>
   import { deepClone } from '@/utils';
-  import { getBom } from '@/api/productionPlan/index.js';
+  import { getBom , batchSave} from '@/api/productionPlan/index.js';
   import { routeList } from '@/api/saleOrder';
   import EquipmentDialog from './EquipmentDialog.vue';
 
@@ -336,6 +336,7 @@
             produceRoutingId: '',
             produceRoutingName: '',
             requiredFormingNum: _num,
+            productUnitWeight: m.productUnitWeight,
             unit: this.unit,
             resourceType: 0
           };
@@ -365,6 +366,7 @@
             produceRoutingId: '',
             produceRoutingName: '',
             requiredFormingNum: '',
+            productUnitWeight: m.productUnitWeight,
             unit: this.unit,
             resourceType: 1
           };
@@ -405,9 +407,7 @@
           produceType: this.formData.produceType,
           id: this.formData.id
         };
-        return false
         batchSave(param).then((res) => {
-       
            this.$emit('close', true);
            this.visible = false;
         });