uu
This commit is contained in:
parent
53d16166e0
commit
f6c146396f
@ -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, // 回款联系人
|
||||
|
||||
@ -128,15 +128,15 @@
|
||||
</template>
|
||||
|
||||
<view v-if="submitParam.transLine" class="yunf-input-item">
|
||||
<tpx-select v-model:value="submitParam.destinationCode" v-model:resObject="destPostRes" :getListFun="getDestPositionList" :transKeyVal="{valKey: 'prodCode',titleKey: 'prodName'}" :isWhite="true" :customInput="true"
|
||||
:searchParam="destPostParam"
|
||||
<tpx-select v-model:value="submitParam.destinationCode" v-model:resObject="destPostRes" :getListFun="getDestPositionList" :transKeyVal="{valKey: 'destCode',titleKey: 'destName'}" :isWhite="true" :customInput="true"
|
||||
:searchParam="destPostParam" @onChange="handleDestPostChange"
|
||||
>
|
||||
<tpx-text-item label="目的地" :value="submitParam.destinationCode" :list="destPostRes.list"></tpx-text-item>
|
||||
</tpx-select>
|
||||
</view>
|
||||
|
||||
<view v-if="submitParam.destinationCode" class="yunf-input-item">
|
||||
<tpx-text-item label="目的网点" :value="submitParam.payeeName"></tpx-text-item>
|
||||
<tpx-text-item label="目的网点" :value="submitParam.dispatchUnderlingSite"></tpx-text-item>
|
||||
</view>
|
||||
|
||||
<view class="yunf-input-item">
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user