This commit is contained in:
aihe 2024-05-29 16:09:20 +08:00
parent 976923516a
commit d3a15a5936
3 changed files with 20 additions and 4 deletions

View File

@ -69,6 +69,12 @@ export const getMonthpayAccountList = (data = {})=> {
export const getDestPositionList = (data = {})=> {
return coreRequest(url.getDestPositionList, data, {}, "GET")
}
// 发件网点列表
export const getSendSiteList = (data = {})=> {
return coreRequest(url.getSendSiteList, data, {}, "GET")
}
// 自动计算-目的地
export const getCaculteDestSite = (data = {})=> {
return coreRequest(url.getCaculteDestSite, data, {}, "GET")

View File

@ -29,6 +29,7 @@ export default {
getMonthpayAccountList: `/emis/emisMonthpayAccount/listSimple`, // 月结账号列表
getDestPositionList: `/emis/emisDestination/listSimple`, // 目的地 列表
getCaculteDestSite: `/emis/emisDestination/getDestSite`, // 自动计算目的地
getSendSiteList: `/emis/emisSite/listSimple`, // 出发地-网点列表
calcWaybillFee: `/emis/emisWaybill/calcWaybillFee`, // 计算运费
calcSetteldWeight: `/emis/emisWaybill/calcSetteldWeight`, // 计算结算重量
calcVolumeWeight: `/emis/emisWaybill/calcVolumeWeight`, // 体积重量计算

View File

@ -7,9 +7,11 @@
<view>
<view class="yunf-input-item">
<tpx-text-item label="始发网点">
<template v-slot:right>{{submitParam.sendSiteName}}</template>
</tpx-text-item>
<tpx-select v-model:value="submitParam.sendSiteCode" v-model:resObject="sndStRes" :getListFun="getSendSiteList" :transKeyVal="{valKey: 'siteCode',titleKey: 'siteName'}" :isWhite="true"
v-model:text="submitParam.sendSiteName" placeholder="请选择始发网点"
>
<tpx-text-item label="始发网点" :value="submitParam.sendSiteName"></tpx-text-item>
</tpx-select>
</view>
<view class="yunf-input-item">
@ -195,6 +197,7 @@
queryOption: {
},
proTypeList: [],
sndStRes: { list: [] },
countryRes: { list: [] },
provRes: { list: [] },
wayRes: { list: [] },
@ -219,6 +222,7 @@
getEmisCountry: apiService.getEmisCountry,
getTransLineList: apiService.getTransLineList,
getEmisRegion: apiService.getEmisRegion,
getSendSiteList: apiService.getSendSiteList,
async initData() { // 初始化
this.pageLoading = false
},
@ -271,7 +275,12 @@
}
},
handleGoXiaDan() {
this.goto(`post/openorder?defaultSubParams=${encodeURIComponent(JSON.stringify(this.submitParam))}&type=create`)
let cpData = JSON.parse(JSON.stringify(this.submitParam))
// 下单,需要重置 发件的网点信息,使用登录者的信息
let { sendSiteCode, sendSiteName } = this.getDefaultData()
cpData.sendSiteCode = sendSiteCode
cpData.sendSiteName = sendSiteName
this.goto(`post/openorder?defaultSubParams=${encodeURIComponent(JSON.stringify(cpData))}&type=create`)
}
}
}