生产计划生成采购计划

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 handlePurchasePlan(row) { //purchaseManage/purchasePlanEdit
this.dialogTableList = []; this.dialogTableList = [];
this.rowData = row this.rowData = row
let param = { let param = row.productionPlanGoodsSumVOList
planId:row.planId this.loading2=true;
} dishesConvertApi(param).then(response => {
// this.dialogTableList = response;
getProductionPlanInfoApi(param).then((response) => { this.dialogTableList.forEach((item)=>{
let param = response.data.productionPlanDetailVOList this.$set(item,"rate",0)
this.loading2=true; this.$set(item,"purchaseNum",item.totalConvertWeight)
dishesConvertApi(param).then(response => { })
this.dialogTableList = response; this.title = "生成采购计划"
this.dialogTableList.forEach((item)=>{ this.open=true;
this.$set(item,"rate",0) this.loading2 = false;
this.$set(item,"purchaseNum",item.totalConvertWeight) }).catch(() => {
}) this.loading2 = false;
this.title = "生成采购计划" });
this.open=true;
this.loading2 = false;
}).catch(() => {
this.loading2 = false;
});
})
}, },
// //