Commit a34a41c0 authored by youjie's avatar youjie

客户省市区必选

parent 65dc0be2
......@@ -684,7 +684,7 @@
</el-form-item>
</el-col>
<el-col :span="6" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2 && currentUserInfo.RB_Branch_id !=1252">
<el-form-item :label="$t('pub.area')">
<el-form-item :label="$t('pub.area')" prop="District">
<el-select class="addMsgSW" filterable v-model='addMsg.Province' @change='getCity'>
<el-option v-for='item in provinceList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
......@@ -1200,6 +1200,11 @@
message: this.$t('objFill.qingshureml'),
trigger: "blur"
}],
District: [{
required: true,
message: this.$t('objFill.v101.LeaveGroupDownload.qingxzssq'),
trigger: "change"
}],
},
dataList: [],
CustomerBrandList: [],
......@@ -1933,8 +1938,10 @@
return
}
}
if (this.addMsg.District == '') {
this.addMsg.District = 0
if (this.addMsg.Province == ''||this.addMsg.City == ''||this.addMsg.District == '') {
this.$message.error(this.$t('objFill.v101.LeaveGroupDownload.qingxzssq'))
// this.addMsg.District = 0
return
}
if (this.HousePhotos) {
this.addMsg.HousePhotos = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment