From 48adbb5e7759f33efb0a97c8baf22aaebba7987a Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 25 十月 2023 17:30:58 +0800 Subject: [PATCH] 销售明细单、销售退货单选择产品逻辑修改及新增字段 --- src/views/sales/salesDetails/index.vue | 35 +++++++++++++++++++++++++++++++---- 1 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/views/sales/salesDetails/index.vue b/src/views/sales/salesDetails/index.vue index 1bf349f..5761ed4 100644 --- a/src/views/sales/salesDetails/index.vue +++ b/src/views/sales/salesDetails/index.vue @@ -237,9 +237,23 @@ async getData() { this.loading = true let params = {} - if (this.addConfig.id) { + console.log("ssssssssssss") + console.log(this.addConfig) + if (this.addConfig.keywordType === "瀹㈡埛鍚嶇О") { params = { - saleChanceId: this.addConfig.id, + clientId: this.addConfig.client_id, + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + } + } else if (this.addConfig.keywordType === "閿�鍞満浼�") { + params = { + saleChanceId: this.addConfig.sale_chance_id, + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + } + } else if (this.addConfig.keywordType === "閿�鍞瓙鍗�") { + params = { + number: this.addConfig.subbill_name, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize } @@ -290,14 +304,27 @@ addBtnClick() { this.editConfig.visible = true this.editConfig.title = "鏂板缓" - this.editConfig.infomation = { ...this.addConfig, currency: "浜烘皯甯�" } + console.log(this.addConfig) + this.editConfig.infomation = { + ...this.addConfig, + currency: "浜烘皯甯�", + sale_chance_name: "", + subbill_name: "", + client_name: this.addConfig?.client_name ?? "" + } }, // 缂栬緫 handleClick(row) { console.log(row) this.editConfig.visible = true this.editConfig.title = "缂栬緫" - this.editConfig.infomation = { ...row, sale_chance_name: "", currency: "浜烘皯甯�" } + this.editConfig.infomation = { + ...row, + currency: "浜烘皯甯�", + sale_chance_name: row.saleChance.name, + deliverType: row.deliverType === 0 ? "" : row.deliverType, + quotation_number: row.quotation.number + } }, // 鍒犻櫎 delClick(rowID) { -- Gitblit v1.8.0