diff --git a/pages/workSpace/visit/vpeopleSelect.vue b/pages/workSpace/visit/vpeopleSelect.vue
index 964c6a8..ca9b6a2 100644
--- a/pages/workSpace/visit/vpeopleSelect.vue
+++ b/pages/workSpace/visit/vpeopleSelect.vue
@@ -8,14 +8,14 @@
- 访客
+ *访客
- 返乡时间
+ *返乡时间
- 来源地
+ *来源地
- 行程轨迹
+ *行程轨迹
- 管控措施
+ *管控措施
- 核酸检测日期
+ *核酸日期
- 是否报备
+ *是否报备
- 是否主访客
+ *是否主访客
- 健康码
+ *健康码
- 行程码
+ *行程码
- 核酸报告
+ *核酸报告
@@ -146,11 +146,6 @@
this.getUserRange();
},
methods: {
- getHeader() {
- this.header = {
- Authorization: "Bearer " + this.vuex_token
- }
- },
getHeader() {
this.header = {
Authorization: "Bearer " + this.vuex_token
@@ -165,9 +160,6 @@
imgUpdataReport(data){
this.formData.test_report = data.path;
},
- /* imgUpdataReport(data){
- this.formData.test_report = data[0];
- }, */
//获取所有已注册游客
getUserRange() {
let that = this;
@@ -196,18 +188,78 @@
})
return false;
}
+ if (!nonNullCheck(this.formData.return_date)) {
+ uni.showToast({
+ title: '请选择返乡时间',
+ icon: "none"
+ })
+ return false;
+ }
+ if (!nonNullCheck(this.formData.come_place)) {
+ uni.showToast({
+ title: '请选择来源地',
+ icon: "none"
+ })
+ return false;
+ }
+ if (!nonNullCheck(this.formData.trip_desc)) {
+ uni.showToast({
+ title: '请选择行程轨迹',
+ icon: "none"
+ })
+ return false;
+ }
+ if (!nonNullCheck(this.formData.measure)) {
+ uni.showToast({
+ title: '请选择管控措施',
+ icon: "none"
+ })
+ return false;
+ }
+ if (!nonNullCheck(this.formData.test_date)) {
+ uni.showToast({
+ title: '请选择核酸日期',
+ icon: "none"
+ })
+ return false;
+ }
+ if (!nonNullCheck(this.formData.health_code)) {
+ uni.showToast({
+ title: '请上传健康码',
+ icon: "none"
+ })
+ return false;
+ }
+ if (!nonNullCheck(this.formData.travel_code)) {
+ uni.showToast({
+ title: '请上传行程码',
+ icon: "none"
+ })
+ return false;
+ }
+ if (!nonNullCheck(this.formData.test_report)) {
+ uni.showToast({
+ title: '请上传核酸报告',
+ icon: "none"
+ })
+ return false;
+ }
return true;
},
formSubmit(val) {
let that = this;
- that.$u.api.vpeopleCreate(that.formData).then(res => {
- if (res.err_msg) {} else {
- uni.navigateBack({
- delta: 1
- })
- }
- })
+ if (!that.paramsCheck()) {
+ return;
+ } else {
+ that.$u.api.vpeopleCreate(that.formData).then(res => {
+ if (res.err_msg) {} else {
+ uni.navigateBack({
+ delta: 1
+ })
+ }
+ })
+ }
},
goBack() {
uni.navigateBack({