From 6be75d9f734ca3cfe1056fbe2b5556b7cf142cf9 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 28 二月 2024 14:51:43 +0800 Subject: [PATCH] 销售明细单 选择了销售报价单之后带出对应的产品列表,切换或者清空操作的时候清空产品管理,并修改 --- src/views/other/payment/collectionPlan/AddCollectionPlan.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue index 8b9d4d3..25b144d 100644 --- a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue +++ b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue @@ -198,7 +198,7 @@ amount: 130, sourceType: this.editCommonConfig.sourceType, // 婧愬崟绫诲瀷 1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁� sourceId: this.editCommonConfig.infomation.id, - principalId:0, + principalId: '', planAmount: 0, // 璁″垝閲戦 firstDate: this.getCurrentDate(1), collectionType: 1, @@ -209,7 +209,6 @@ created() { console.log(this.editCommonConfig) this.setData() - this.setTableForm() this.getCommonData() }, methods: { @@ -238,7 +237,7 @@ collectionType: this.collectionType, moneyType: "浜烘皯甯�", amountTotal: this.editCommonConfig.infomation.amountTotal, - principalId:0 + principalId:'' } }, getCommonData() { @@ -253,7 +252,9 @@ this.$set(this.editConfig.infomation, "principalId", item.id) } }) + this.principalId=this.editConfig.infomation.principalId } + this.setTableForm() }) .catch((err) => { console.log(err) @@ -343,7 +344,7 @@ id: 0, moneyType: "浜烘皯甯�", percent: ratio, - principalId: this.principalId, + principalId: Number(this.principalId), remark: "", sourceId: this.sourceId, sourceType: this.sourceType, -- Gitblit v1.8.0