From 684ea390fa8bad80e9da81d4ff1f8e0e85909bf5 Mon Sep 17 00:00:00 2001 From: makaba <985019473@qq.com> Date: Mon, 4 Mar 2024 10:06:59 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"task=20=E5=90=88=E5=90=8C=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20=E5=80=9F=E6=AC=BE=E8=AE=A1=E5=88=92=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=99=84=E4=BB=B6"=20=E6=92=A4=E9=94=80=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=94=99=E8=AF=AF=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 68295652 --- .../sunVillage_info/informationFunPlan.vue | 50 +--------------- .../sunVillage_info/informationFunPlanAdd.vue | 59 ++++--------------- 2 files changed, 13 insertions(+), 96 deletions(-) diff --git a/src/views/sunVillage_info/informationFunPlan.vue b/src/views/sunVillage_info/informationFunPlan.vue index eadcc015..4462f13a 100644 --- a/src/views/sunVillage_info/informationFunPlan.vue +++ b/src/views/sunVillage_info/informationFunPlan.vue @@ -38,7 +38,6 @@ @@ -46,17 +45,11 @@ - -
- 附件 - -
-
diff --git a/src/views/sunVillage_info/informationFunPlanAdd.vue b/src/views/sunVillage_info/informationFunPlanAdd.vue index 6e8faac6..272abb18 100644 --- a/src/views/sunVillage_info/informationFunPlanAdd.vue +++ b/src/views/sunVillage_info/informationFunPlanAdd.vue @@ -24,12 +24,12 @@ @cancel="showCollectionPay = false"/> - - + + - + @@ -76,11 +76,6 @@ settlementAmount:'', remark:'', }, - errorMessages: { - orderNum: '', - settlementDate: '', - settlementAmount: '', - }, queryParams:{ /* pageNum:1, pageSize:10, @@ -159,45 +154,15 @@ onSubmit(){ - event.preventDefault(); // 阻止表单默认提交行为 - - // 清除之前的错误消息 - this.errorMessages.orderNum = ''; - this.errorMessages.settlementDate = ''; - this.errorMessages.settlementAmount = ''; - - let isValid = true; - - // 验证结款序号 - if (!this.form.orderNum) { - this.errorMessages.orderNum = '结款序号不能为空'; - isValid = false; - } - - // 验证结款日期 - if (!this.form.settlementDate) { - this.errorMessages.settlementDate = '结款日期不能为空'; - isValid = false; - } - - // 验证结款金额 - if (!this.form.settlementAmount) { - this.errorMessages.settlementAmount = '结款金额不能为空'; - isValid = false; - } - - // 如果验证通过,进行提交处理 - if (isValid) { - this.form.contractionId = this.contractionId; - addPlan(this.form).then((response) => { - if (response.code == 200) { - this.$notify({type: 'success', message: '新增成功'}); - setTimeout(function () { - history.back(-1); - }, 2000) - } - }); - } + this.form.contractionId = this.contractionId; + addPlan(this.form).then((response) => { + if (response.code == 200){ + this.$notify({ type: 'success', message: '新增成功' }); + setTimeout(function(){ + history.back(-1); + },2000) + } + }); } }, }