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) => {