出发地必须选至县级及以下

This commit is contained in:
shijingjing
2022-10-09 14:01:17 +08:00
parent eef85d2dcb
commit 2faf80cc22
2 changed files with 18 additions and 45 deletions

View File

@@ -572,8 +572,9 @@ export default {
return this.$toast('请选择出发地')
}
if (this.startAreaId.substr(this.startAreaId.length - 3, 3) === '000') {
return this.$toast('出发地必须选到村或社区')
if (this.startAreaId.substr(4,this.startAreaId.length - 4) === '00000000') {
return this.$toast('出发地必须选至县级及以下')
// return console.log(this.startAreaId.substr(6,this.startAreaId.length - 6));
}
// if (!this.form.startAddress) {