diff --git a/pages/post/model.js b/pages/post/model.js
index 1edca76..f074c2e 100644
--- a/pages/post/model.js
+++ b/pages/post/model.js
@@ -73,11 +73,12 @@ export const getOrderModels = () => {
"dispFdDate": undefined,
"takePieceEmployeeCode": undefined, // 收派员
"sendSiteCode": undefined,
- "destinationCode": undefined,
+ "destinationCode": undefined, // 目的地 code
"destinationProvince": undefined,
"destinationCity": undefined,
"destinationCounty": undefined,
- "dispatchUnderlingSiteCode": undefined,
+ "dispatchUnderlingSiteCode": undefined, // 目的网点 - code
+ "dispatchUnderlingSite": undefined, // 目的网点 - 名称
"destinationCenterCode": undefined,
"marketManCode": undefined,
"payee": undefined, // 回款联系人
diff --git a/pages/post/openorder.vue b/pages/post/openorder.vue
index 9bcf359..22b6e41 100644
--- a/pages/post/openorder.vue
+++ b/pages/post/openorder.vue
@@ -128,15 +128,15 @@
-
-
+
@@ -263,8 +263,9 @@
productSearchParam() {
return { transLineCode: this.submitParam.transLine }
},
- destPostParam(){
- return { lineCode: this.submitParam.transLine, ...this.submitParam.reciever }
+ destPostParam(){
+ const { country } = this.submitParam.reciever
+ return { lineCode: this.submitParam.transLine, countryCode: country }
},
dicData() {
return this.$store.getters.dicData
@@ -309,17 +310,9 @@
getRSDStaffList: apiService.getRSDStaffList,
getMonthpayAccountList: apiService.getMonthpayAccountList,
getDestPositionList: apiService.getDestPositionList,
- getCaculteDestSite: apiService.getCaculteDestSite,
getWarehouseInList: apiService.warehouseInList,
async initData() {
- // uni.showLoading({
- // title: '加载中'
- // });
- this.showLoading()
-
-
- this.hideLoading()
},
initEvent() {
@@ -334,14 +327,27 @@
this.submitParam.payee = item.payee
this.submitParam.salesmen = item.salesmen
this.submitParam.salesmenName = item.salesmenName
- this.submitParam.payeeName = item.payeeName
+ this.submitParam.payee = item.payeeName
},
handleWayChange(val) {
const item = this.wayRes.list.filter(t=> t.val == val)[0]
this.submitParam.meterRate = item.meterRate
+ this.updateDltDestSite({ lineCode: val })
+ },
+ handleDestPostChange(val) {
+ const item = this.destPostRes.list.filter(t=> t.val == val)[0]
+ this.submitParam.dispatchUnderlingSiteCode = item.siteCode;
+ this.submitParam.dispatchUnderlingSite = item.siteName;
},
handleDialogClick(curModal){
curModal.show = true
+ },
+ async updateDltDestSite({ lineCode }) {
+ const { country, province, city, county, address } = this.submitParam.reciever
+ let res = await apiService.getCaculteDestSite({ lineCode, country, province, city, county, address })
+ // 更新路线推荐的默认目的地
+ this.submitParam.destinationCode = res.data.destCode
+ this.handleDestPostChange(this.submitParam.destinationCode)
}
}
}