From f0e0d9faa80ae663a494c1fc1009e228db07c2f8 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 16 Jul 2025 14:58:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=AE=A1=E5=88=92=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=87=87=E8=B4=AD=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchaseManage/productionPlan/index.vue | 36 ++++++++----------- 1 file changed, 15 insertions(+), 21 deletions(-) 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; + }); }, // 取消按钮