From 5d774879dea0ad80dd8c1706a64d1025cf6d3f29 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 24 Jun 2026 16:29:41 +0800 Subject: [PATCH] =?UTF-8?q?2026-06-24=20=E5=BE=85=E6=8A=A5=E4=BB=B7?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E3=80=90=E6=8A=A5=E4=BB=B7=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E5=81=9A=E4=BA=86=E9=98=B2=E5=BE=A1=E6=80=A7?= =?UTF-8?q?=E4=BF=9D=E6=8A=A4=EF=BC=8C=E9=81=87=E5=88=B0=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E7=9A=84=E7=BB=93=E6=9E=84=E4=BC=9A=E7=BB=99?= =?UTF-8?q?=E5=87=BA=E6=98=8E=E7=A1=AE=E6=8F=90=E7=A4=BA=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/quotation/toBeQuoted.vue | 33 ++++++++++++++++------ 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/src/views/modules/quotation/toBeQuoted.vue b/src/views/modules/quotation/toBeQuoted.vue index 9865be7..a0adc6b 100644 --- a/src/views/modules/quotation/toBeQuoted.vue +++ b/src/views/modules/quotation/toBeQuoted.vue @@ -628,7 +628,8 @@ export default { // 批量新增报价信息 saveBatchQuotationHeader(list){ this.saveBatchQuotationLoading = true; - batchSaveQuote(list).then(({data})=>{ + const payload = this.buildBatchQuotePayload(list) + batchSaveQuote(payload).then(({data})=>{ this.saveBatchQuotationLoading = false; if (data && data.code === 0){ this.$message.success(data.msg); @@ -651,15 +652,31 @@ export default { this.$message.warning("请选择需报价的单号") return } - this.quotationSelections = this.quotationSelections.map(item=>{ - item.qty = undefined - item.currency = undefined - item.createBy = this.$store.state.user.name - item.site = this.$store.state.user.site - return item; - }) + this.quotationSelections = this.quotationSelections.map(item=>({ + ...item, + qty: undefined, + currency: undefined, + createBy: this.$store.state.user.name, + site: this.$store.state.user.site, + })) this.quoteVisible = true; }, + buildBatchQuotePayload(list){ + return list.map(item=>({ + site: item.site || this.$store.state.user.site, + quotationNo: item.quotationNo, + customerNo: item.customerNo, + projectId: item.projectId, + tracker: item.tracker, + quoter: item.quoter, + testPartNo: item.testPartNo, + finalPartNo: item.finalPartNo, + partName: item.partName, + createBy: item.createBy || this.$store.state.user.name, + qty: item.qty, + currency: item.currency, + })) + }, searchByAnyField(params){ params.site = this.$store.state.user.site params.menuId = '102004'