|
|
@@ -137,7 +137,7 @@
|
|
|
|
|
|
import workOrderPop from './workOrderPop.vue'
|
|
|
import ProductModal from './ProductModal.vue'
|
|
|
-import { listBomBySalesOrderIds, listBomBySalesOrderId, save, getById } from '@/api/materialPlan/index';
|
|
|
+import {listBomByWorkOrderIds, save, getById } from '@/api/materialPlan/index';
|
|
|
import ProductionVersion from '@/components/CreatePlan/ProductionVersion2.vue';
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -242,7 +242,7 @@ export default {
|
|
|
|
|
|
{
|
|
|
prop: 'productionPlanId',
|
|
|
- label: '工艺路线物料',
|
|
|
+ label: '工序',
|
|
|
slot: 'productionPlanId',
|
|
|
|
|
|
align: 'center',
|
|
|
@@ -427,24 +427,24 @@ export default {
|
|
|
},
|
|
|
|
|
|
chooseOrder(list) {
|
|
|
- let salesOrderIds = []
|
|
|
+ let workOrderList = []
|
|
|
list.map((m => {
|
|
|
- salesOrderIds.push(m.id)
|
|
|
+ workOrderList.push(m.id)
|
|
|
return {
|
|
|
...m,
|
|
|
}
|
|
|
}))
|
|
|
- this.$refs.table.setData([...this.tableData, ...list]);
|
|
|
+ // this.$refs.table.setData([...this.tableData, ...list]);
|
|
|
|
|
|
|
|
|
|
|
|
- // if (salesOrderIds.length > 0) {
|
|
|
- // listBomBySalesOrderIds({ salesOrderIds: salesOrderIds }).then((res) => {
|
|
|
- // this.$refs.table.setData([...this.tableData, ...res]);
|
|
|
+ if (workOrderList.length > 0) {
|
|
|
+ listBomByWorkOrderIds({ workOrderList: workOrderList }).then((res) => {
|
|
|
+ this.$refs.table.setData([...this.tableData, ...res]);
|
|
|
|
|
|
- // this.$refs.table.toggleRowExpansionAll()
|
|
|
- // })
|
|
|
- // }
|
|
|
+ this.$refs.table.toggleRowExpansionAll()
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
remove(row, index) {
|