Commit 16e75f6d authored by youjie's avatar youjie

no message

parent 4f45ca34
......@@ -399,7 +399,7 @@
map-options
emit-value
option-label="Name"
option-value="ID"
option-value="Name"
v-model="chosenObj.ReceiverProvince"
:options="provinceList"
ref="ReceiverProvince"
......@@ -408,13 +408,14 @@
/>
</div>
<div :class="filedTypeWidth">
{{ chosenObj.ReceiverCity }}
<q-select
label="市"
standout
map-options
emit-value
option-label="Name"
option-value="ID"
option-value="Name"
v-model="chosenObj.ReceiverCity"
:options="cityList"
ref="ReceiverCity"
......@@ -616,6 +617,7 @@ export default {
Receiver: '',// 收件人
ReceiverPhone: '',// 收件人电话
ReceiverProvince: '',// 收件人省
ReceiverProvinceId: '',
// ReceiverProvinceObj: '',
ReceiverCity: '',// 收件人市
ReceiverCityObj: '',
......@@ -717,7 +719,11 @@ export default {
if(type=='Invoice') this.chosenObj.InvoiceType = e.value
if(type=='AreaCode') this.userInfo.RelationPhoneType = e.PhoneCode
if(type=='Province') {
// this.chosenObj.ReceiverProvince = e.ID
this.provinceList.filter(item=>{
if(item.Name==e) {
this.chosenObj.ReceiverProvinceId = item.ID
}
})
this.getCity()
}
// if(type=='Receiver') this.chosenObj.ReceiverCity = e.ID
......@@ -778,7 +784,7 @@ export default {
//市
getCity() {
this.apipost('dict_post_Destination_GetChildList', {
Id: this.chosenObj.ReceiverProvince,
Id: this.chosenObj.ReceiverProvinceId,
"level": 2
}, res => {
if (res.data.resultCode == 1) {
......@@ -798,7 +804,6 @@ export default {
}, err => {})
},
async submitHandler() {
this.submiting = true;
let flag = true;
flag = await this.formValidateHandler("baseUserInfo");
if (!flag) {
......@@ -826,6 +831,7 @@ export default {
// if(flag&&this.chosenObj.PeopleNum==0) return this.$message.error("请输入成人或者儿童人数!");
if (flag) {
this.submiting = true;
this.submitOrderHandler();
return;
}
......
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