From cb058dffb0a562ec412d62a4361d048a431f8524 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Mon, 27 Mar 2023 14:16:50 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/visit/addrecord.vue | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/pages/visit/addrecord.vue b/pages/visit/addrecord.vue
index 17f7926..afd82ed 100644
--- a/pages/visit/addrecord.vue
+++ b/pages/visit/addrecord.vue
@@ -105,18 +105,18 @@
被访人信息
-
+
-
+
-
+
-
+
@@ -195,7 +195,9 @@
end_date: "",
accpet_department_id: "",
accept_admin_id: "",
- accept_goods_admin_id: ""
+ accept_goods_admin_id: "",
+ acceptName: "",
+ goodsName: '',
},
follw_people_obj: {
name: "",
@@ -253,11 +255,23 @@
errorMessage: '身份证格式错误'
}]
},
- compamy_name: {
+ company_name: {
rules: [{
required: true,
errorMessage: '单位名称不能为空'
}]
+ },
+ acceptName:{
+ rules: [{
+ required: true,
+ errorMessage: '请选择被访人'
+ }]
+ },
+ goodsName:{
+ rules: [{
+ required: true,
+ errorMessage: '请选择收货人'
+ }]
}
},
peoplerules: {
@@ -353,19 +367,19 @@
clearAccept(type){
if (type == 'accept') {
this.form.accept_admin_id = ''
- this.acceptName = ''
+ this.form.acceptName = ''
} else {
this.form.accept_goods_admin_id = ''
- this.goodsName = ''
+ this.form.goodsName = ''
}
},
submitAccept(e) {
if (this.acceptType == 'accept') {
this.form.accept_admin_id = e.id
- this.acceptName = e.name
+ this.form.acceptName = e.name
} else {
this.form.accept_goods_admin_id = e.id
- this.goodsName = e.name
+ this.form.goodsName = e.name
}
this.adminListShow = false
},