From af8ea2b77b897b79ad811ba368c24e153fe9178a Mon Sep 17 00:00:00 2001 From: woody Date: Fri, 16 May 2025 09:29:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(waterPv):=20=E4=BF=AE=E5=A4=8D=E6=B3=A8?= =?UTF-8?q?=E6=B0=B4=E4=B8=9A=E7=BB=A9=E5=8A=A8=E6=80=81=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=B8=8D=E9=80=89=E6=97=B6=E8=AF=B7=E6=B1=82=E4=B9=9F=E4=BC=9A?= =?UTF-8?q?=E6=90=BA=E5=B8=A6=E8=AF=A5=E5=AD=97=E6=AE=B5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../information/specialBusiness/waterPv.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/information/specialBusiness/waterPv.vue b/src/views/information/specialBusiness/waterPv.vue index 1bf6c07..12ce028 100644 --- a/src/views/information/specialBusiness/waterPv.vue +++ b/src/views/information/specialBusiness/waterPv.vue @@ -814,7 +814,7 @@ export default { } } else { this.$message({ - message: '请先填写注水业绩', + message: '请先选择注水方式', type: 'warning' }) this.waterPvList.forEach((ele, index) => { @@ -974,6 +974,7 @@ export default { // this.$router.go(-1); } else if (index == 2 || index == 4) { // 免付和确认走签呈 + spe .saveInfusingWater({ infusingWaterType: this.form.infusingWaterType, @@ -996,10 +997,21 @@ export default { } }) } else { + const unSelectedField = this.waterTypeList.filter((item) => + !this.form.waterTypeList.includes(item.value) + ).map(item => item.field) + const waterPvList = this.waterPvList.map(item => { + const newItem = { ...item } + unSelectedField.forEach(field => { + delete newItem[field] + }) + return newItem + }) + spe .saveInfusingWater({ infusingWaterType: this.form.infusingWaterType, - cmalvList: this.waterPvList, + cmalvList: waterPvList, processType: index }) .then((res) => {