uu
This commit is contained in:
parent
976923516a
commit
d3a15a5936
@ -69,6 +69,12 @@ export const getMonthpayAccountList = (data = {})=> {
|
|||||||
export const getDestPositionList = (data = {})=> {
|
export const getDestPositionList = (data = {})=> {
|
||||||
return coreRequest(url.getDestPositionList, data, {}, "GET")
|
return coreRequest(url.getDestPositionList, data, {}, "GET")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 发件网点列表
|
||||||
|
export const getSendSiteList = (data = {})=> {
|
||||||
|
return coreRequest(url.getSendSiteList, data, {}, "GET")
|
||||||
|
}
|
||||||
|
|
||||||
// 自动计算-目的地
|
// 自动计算-目的地
|
||||||
export const getCaculteDestSite = (data = {})=> {
|
export const getCaculteDestSite = (data = {})=> {
|
||||||
return coreRequest(url.getCaculteDestSite, data, {}, "GET")
|
return coreRequest(url.getCaculteDestSite, data, {}, "GET")
|
||||||
|
|||||||
@ -29,6 +29,7 @@ export default {
|
|||||||
getMonthpayAccountList: `/emis/emisMonthpayAccount/listSimple`, // 月结账号列表
|
getMonthpayAccountList: `/emis/emisMonthpayAccount/listSimple`, // 月结账号列表
|
||||||
getDestPositionList: `/emis/emisDestination/listSimple`, // 目的地 列表
|
getDestPositionList: `/emis/emisDestination/listSimple`, // 目的地 列表
|
||||||
getCaculteDestSite: `/emis/emisDestination/getDestSite`, // 自动计算目的地
|
getCaculteDestSite: `/emis/emisDestination/getDestSite`, // 自动计算目的地
|
||||||
|
getSendSiteList: `/emis/emisSite/listSimple`, // 出发地-网点列表
|
||||||
calcWaybillFee: `/emis/emisWaybill/calcWaybillFee`, // 计算运费
|
calcWaybillFee: `/emis/emisWaybill/calcWaybillFee`, // 计算运费
|
||||||
calcSetteldWeight: `/emis/emisWaybill/calcSetteldWeight`, // 计算结算重量
|
calcSetteldWeight: `/emis/emisWaybill/calcSetteldWeight`, // 计算结算重量
|
||||||
calcVolumeWeight: `/emis/emisWaybill/calcVolumeWeight`, // 体积重量计算
|
calcVolumeWeight: `/emis/emisWaybill/calcVolumeWeight`, // 体积重量计算
|
||||||
|
|||||||
@ -7,9 +7,11 @@
|
|||||||
|
|
||||||
<view>
|
<view>
|
||||||
<view class="yunf-input-item">
|
<view class="yunf-input-item">
|
||||||
<tpx-text-item label="始发网点">
|
<tpx-select v-model:value="submitParam.sendSiteCode" v-model:resObject="sndStRes" :getListFun="getSendSiteList" :transKeyVal="{valKey: 'siteCode',titleKey: 'siteName'}" :isWhite="true"
|
||||||
<template v-slot:right>{{submitParam.sendSiteName}}</template>
|
v-model:text="submitParam.sendSiteName" placeholder="请选择始发网点"
|
||||||
</tpx-text-item>
|
>
|
||||||
|
<tpx-text-item label="始发网点" :value="submitParam.sendSiteName"></tpx-text-item>
|
||||||
|
</tpx-select>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="yunf-input-item">
|
<view class="yunf-input-item">
|
||||||
@ -195,6 +197,7 @@
|
|||||||
queryOption: {
|
queryOption: {
|
||||||
},
|
},
|
||||||
proTypeList: [],
|
proTypeList: [],
|
||||||
|
sndStRes: { list: [] },
|
||||||
countryRes: { list: [] },
|
countryRes: { list: [] },
|
||||||
provRes: { list: [] },
|
provRes: { list: [] },
|
||||||
wayRes: { list: [] },
|
wayRes: { list: [] },
|
||||||
@ -219,6 +222,7 @@
|
|||||||
getEmisCountry: apiService.getEmisCountry,
|
getEmisCountry: apiService.getEmisCountry,
|
||||||
getTransLineList: apiService.getTransLineList,
|
getTransLineList: apiService.getTransLineList,
|
||||||
getEmisRegion: apiService.getEmisRegion,
|
getEmisRegion: apiService.getEmisRegion,
|
||||||
|
getSendSiteList: apiService.getSendSiteList,
|
||||||
async initData() { // 初始化
|
async initData() { // 初始化
|
||||||
this.pageLoading = false
|
this.pageLoading = false
|
||||||
},
|
},
|
||||||
@ -271,7 +275,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleGoXiaDan() {
|
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`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user