From 93453ff402154d748882766d09fdfbfaf03e57cb Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Wed, 18 May 2022 08:42:21 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mods/work/AppHelpDeclaration/add.vue | 49 +++++++++++++++++++-----
1 file changed, 40 insertions(+), 9 deletions(-)
diff --git a/src/mods/work/AppHelpDeclaration/add.vue b/src/mods/work/AppHelpDeclaration/add.vue
index aaeb407..1af2bfe 100644
--- a/src/mods/work/AppHelpDeclaration/add.vue
+++ b/src/mods/work/AppHelpDeclaration/add.vue
@@ -27,14 +27,14 @@
*家庭人口数
-
+
*所在地区
-
- {{ areaName || "请选择" }}
+
+ {{ form.areaName || "请选择" }}
@@ -42,7 +42,7 @@
*详细地址
-
+
@@ -60,17 +60,17 @@
- *上传佐证材料(最多9张)
+ 上传佐证材料(最多9张)
@@ -87,9 +87,14 @@ export default {
name: '',
idNumber: '',
phone: '',
- checkPhoto: []
+ householdNumber: '',
+ areaId: '',
+ areaName: '',
+ address: '',
+ reason: '',
+ files: []
},
- areaName: '',
+ flag: false,
list: ['张是','订单','电动蝶阀','斤斤计较','坎坎坷坷']
}
},
@@ -103,6 +108,32 @@ export default {
methods: {
helpCheck(e) {
e.checked = !e.checked
+ },
+ comfirm() {
+ if(this.flag) return
+ if(!this.form.name) {
+ return this.$u.toast('请输入姓名')
+ }
+ if(!this.form.idNumber) {
+ return this.$u.toast('请输入身份证号')
+ }
+ if(!this.form.phone) {
+ return this.$u.toast('请输入手机号')
+ }
+ if(!this.form.householdNumber) {
+ return this.$u.toast('请输入家庭人口数')
+ }
+ if(!this.form.areaId) {
+ return this.$u.toast('请选择所在地区')
+ }
+ if(!this.form.address) {
+ return this.$u.toast('请输入详细地址')
+ }
+
+ this.flag = true
+ this.$instance.post('/app/apphelpdeclarationinfo/addByApplet').then((res) => {
+ console.log(res);
+ })
}
},
}