diff --git a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue index 43426c7..3716992 100644 --- a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue +++ b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue @@ -16,7 +16,7 @@ -
+
@@ -34,7 +34,7 @@

手机号码

- +
@@ -76,7 +76,7 @@
行程信息
-
+
* -

出发地

+

从哪来

{{ startAreaName }} - 请选择 + 请选择
@@ -122,7 +122,7 @@
-
+ -
+ +
@@ -180,13 +180,13 @@
* -

目的地

+

到哪去

{{ form.arriveAreaName }} - 请选择 + 请选择
@@ -208,7 +208,7 @@
-
健康状况
+ -
同行情况
+ @@ -507,25 +507,23 @@ export default { }) }, - idNumberChange(e) { + phoneChange(e) { if(e.detail.value.length) { this.getOwnerInfo(e.detail.value) } }, // 获取个人信息 - getOwnerInfo(idNumber) { + getOwnerInfo(phoneNumber) { this.$instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailByIdNumber`, null, { params: { - idNumber: idNumber, + phone: phoneNumber, } }).then(res => { if(res?.data) { this.form.name = res.data.name || '' - this.form.phone = res.data.phone || '' this.startAreaId = res.data.startAreaId this.startAreaName = res.data.startAreaName - this.form.description = res.data.description || '' this.form.arriveAreaId = res.data.arriveAreaId this.form.arriveAreaName = res.data.arriveAreaName this.form.startAddress = res.data.startAddress || '' @@ -540,13 +538,13 @@ export default { return this.$toast('请选择卡口') } - if (!this.form.idNumber) { - return this.$toast('请输入身份证号') - } + // if (!this.form.idNumber) { + // return this.$toast('请输入身份证号') + // } - if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)) { - return this.$toast('请输入正确的身份证账号') - } + // if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)) { + // return this.$toast('请输入正确的身份证账号') + // } if (!this.form.phone) { return this.$toast('请输入手机号码') @@ -564,13 +562,13 @@ export default { // return this.$toast('请选择人员类别') // } - if (!this.form.startTime) { - return this.$toast('请选择出发时间') - } + // if (!this.form.startTime) { + // return this.$toast('请选择出发时间') + // } - if (new Date(this.form.startTime.replace(/-/g, '/')).getTime() > new Date().getTime()) { - return this.$toast('出发时间不得晚于当前时间') - } + // if (new Date(this.form.startTime.replace(/-/g, '/')).getTime() > new Date().getTime()) { + // return this.$toast('出发时间不得晚于当前时间') + // } if (!this.startAreaId) { return this.$toast('请选择出发地') @@ -584,9 +582,9 @@ export default { // return this.$toast('请输入出发地详址') // } - if (!this.travelType.length) { - return this.$toast('请选择出行方式') - } + // if (!this.travelType.length) { + // return this.$toast('请选择出行方式') + // } if (!this.form.arriveTime) { return this.$toast('请选择抵平时间') @@ -608,49 +606,49 @@ export default { // return this.$toast('请输入到达地址') // } - if (!this.form.fromHighRiskArea) { - return this.$toast('请选择是否有风险旅居史') - } + // if (!this.form.fromHighRiskArea) { + // return this.$toast('请选择是否有风险旅居史') + // } - if (this.form.fromHighRiskArea == 1) { - if (!this.form.highRiskAreaId) { - return this.$toast('请选择风险旅居地区') - } - } + // if (this.form.fromHighRiskArea == 1) { + // if (!this.form.highRiskAreaId) { + // return this.$toast('请选择风险旅居地区') + // } + // } - if (!this.form.contactPatients) { - return this.$toast('请选择近七日内是否接触新冠确诊或疑似患者') - } + // if (!this.form.contactPatients) { + // return this.$toast('请选择近七日内是否接触新冠确诊或疑似患者') + // } - if (!this.form.abnormalHealth) { - return this.$toast('请选择是否有健康异常情况') - } + // if (!this.form.abnormalHealth) { + // return this.$toast('请选择是否有健康异常情况') + // } - if (this.form.abnormalHealth == 1) { - if (!this.form.abnormalType) { - return this.$toast('请选择异常情况') - } - } + // if (this.form.abnormalHealth == 1) { + // if (!this.form.abnormalType) { + // return this.$toast('请选择异常情况') + // } + // } - if (!this.form.companionCount || this.form.companionCount == 0) { - this.form.companionCount = 0 - this.form.companionList = [] - } else { + // if (!this.form.companionCount || this.form.companionCount == 0) { + // this.form.companionCount = 0 + // this.form.companionList = [] + // } else { - if(this.form.companionCount > 100) { - return this.$u.toast('同行人数最多可填写100人。') - } + // if(this.form.companionCount > 100) { + // return this.$u.toast('同行人数最多可填写100人。') + // } - if(this.people.length != this.form.companionCount) { - return this.$u.toast('请输入正确的同行人信息') - } else { - if(this.people.some(val=> (val.name=='') || (val.phone=='')) ) { - return this.$u.toast('请输入完整的同行人信息') - } else { - this.form.companionList = this.people - } - } - } + // if(this.people.length != this.form.companionCount) { + // return this.$u.toast('请输入正确的同行人信息') + // } else { + // if(this.people.some(val=> (val.name=='') || (val.phone=='')) ) { + // return this.$u.toast('请输入完整的同行人信息') + // } else { + // this.form.companionList = this.people + // } + // } + // } if (this.flag) return this.flag = true diff --git a/src/project/pingchang/AppGetewayRegister/getewayDetail.vue b/src/project/pingchang/AppGetewayRegister/getewayDetail.vue index 8824476..e9ebc03 100644 --- a/src/project/pingchang/AppGetewayRegister/getewayDetail.vue +++ b/src/project/pingchang/AppGetewayRegister/getewayDetail.vue @@ -31,14 +31,14 @@ {{ info.name }}
-
+
@@ -67,7 +67,7 @@

行程信息

-
+ + +
@@ -102,22 +102,22 @@ {{ info.startAreaName }}
-
+ +
@@ -143,7 +143,7 @@
-
+ +
编辑