需求变更

This commit is contained in:
shijingjing
2022-10-08 17:57:17 +08:00
parent a19bbe29d6
commit 7a2a4d11c4

View File

@@ -97,7 +97,7 @@
<div class="form-item__wrapper"> <div class="form-item__wrapper">
<div class="form-item__title"> <div class="form-item__title">
<i>*</i> <i>*</i>
<h2>出发地</h2> <h2>出发地</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<AiAreaPicker class="ai-area" v-model="startAreaId" :fullName.sync="startAreaName" all> <AiAreaPicker class="ai-area" v-model="startAreaId" :fullName.sync="startAreaName" all>
@@ -140,7 +140,7 @@
<div class="form-item__wrapper"> <div class="form-item__wrapper">
<div class="form-item__title"> <div class="form-item__title">
<i style="margin-right:8px;"></i> <i style="margin-right:8px;"></i>
<h2>车次/航班</h2> <h2>车次/车牌/航班</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<input placeholder="请输入" v-model="form.trainNo" :maxlength="20"/> <input placeholder="请输入" v-model="form.trainNo" :maxlength="20"/>
@@ -180,7 +180,7 @@
<div class="form-item__wrapper"> <div class="form-item__wrapper">
<div class="form-item__title"> <div class="form-item__title">
<i>*</i> <i>*</i>
<h2>目的地</h2> <h2>目的地</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<AiAreaPicker class="ai-area" v-model="form.arriveAreaId" :fullName.sync="form.arriveAreaName" :areaId="$areaId"> <AiAreaPicker class="ai-area" v-model="form.arriveAreaId" :fullName.sync="form.arriveAreaName" :areaId="$areaId">
@@ -424,7 +424,8 @@ export default {
getAuth() { getAuth() {
this.$nextTick(() => { this.$nextTick(() => {
if(this.token.length) { // if(this.token) {
this.token && this.getUserInfo()
this.form.gatewayId = this.scene this.form.gatewayId = this.scene
this.getewayList() this.getewayList()
this.$forceUpdate() this.$forceUpdate()
@@ -433,7 +434,7 @@ export default {
this.form.gatewayName = item?.[0].label this.form.gatewayName = item?.[0].label
},400) },400)
this.pageShow = true this.pageShow = true
} // }
}) })
}, },
@@ -567,11 +568,11 @@ export default {
} }
if (!this.startAreaId) { if (!this.startAreaId) {
return this.$toast('请选择出发地') return this.$toast('请选择出发地')
} }
if (this.startAreaId.substr(this.startAreaId.length - 3, 3) === '000') { if (this.startAreaId.substr(this.startAreaId.length - 3, 3) === '000') {
return this.$toast('出发地必须选到村或社区') return this.$toast('出发地必须选到村或社区')
} }
// if (!this.form.startAddress) { // if (!this.form.startAddress) {
@@ -591,11 +592,11 @@ export default {
} }
if (!this.form.arriveAreaName) { if (!this.form.arriveAreaName) {
return this.$toast('请选择目的地') return this.$toast('请选择目的地')
} }
if (this.form.arriveAreaId.substr(this.form.arriveAreaId.length - 3, 3) === '000') { if (this.form.arriveAreaId.substr(this.form.arriveAreaId.length - 3, 3) === '000') {
return this.$toast('目的地区必须选到村或社区') return this.$toast('请尽量填室至小区、楼栋号')
} }
// if (!this.form.arriveAddress) { // if (!this.form.arriveAddress) {
@@ -626,7 +627,7 @@ export default {
} }
} }
if (!this.form.companionCount) { if (!this.form.companionCount || this.form.companionCount == 0) {
this.form.companionCount = 0 this.form.companionCount = 0
this.form.companionList = [] this.form.companionList = []
} else { } else {