diff --git a/src/views/foodManage/purchaseManage/productionPlan/index.vue b/src/views/foodManage/purchaseManage/productionPlan/index.vue index bc3ccbe7..77db67e8 100644 --- a/src/views/foodManage/purchaseManage/productionPlan/index.vue +++ b/src/views/foodManage/purchaseManage/productionPlan/index.vue @@ -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; + }); }, // 取消按钮