生产计划生成采购计划
This commit is contained in:
parent
de636dc350
commit
f0e0d9faa8
|
|
@ -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;
|
||||
});
|
||||
|
||||
},
|
||||
// 取消按钮
|
||||
|
|
|
|||
Loading…
Reference in New Issue