生产计划生成采购计划

This commit is contained in:
zzyuan 2025-07-16 14:58:02 +08:00
parent de636dc350
commit f0e0d9faa8
1 changed files with 15 additions and 21 deletions

View File

@ -378,27 +378,21 @@ export default {
/** 生成采购计划操作 */
handlePurchasePlan(row) { //purchaseManage/purchasePlanEdit
this.dialogTableList = [];
this.rowData = row
let param = {
planId:row.planId
}
//
getProductionPlanInfoApi(param).then((response) => {
let param = response.data.productionPlanDetailVOList
this.loading2=true;
dishesConvertApi(param).then(response => {
this.dialogTableList = response;
this.dialogTableList.forEach((item)=>{
this.$set(item,"rate",0)
this.$set(item,"purchaseNum",item.totalConvertWeight)
})
this.title = "生成采购计划"
this.open=true;
this.loading2 = false;
}).catch(() => {
this.loading2 = false;
});
})
this.rowData = row
let param = row.productionPlanGoodsSumVOList
this.loading2=true;
dishesConvertApi(param).then(response => {
this.dialogTableList = response;
this.dialogTableList.forEach((item)=>{
this.$set(item,"rate",0)
this.$set(item,"purchaseNum",item.totalConvertWeight)
})
this.title = "生成采购计划"
this.open=true;
this.loading2 = false;
}).catch(() => {
this.loading2 = false;
});
},
//