Commit 16e75f6d authored by youjie's avatar youjie

no message

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