uu
This commit is contained in:
parent
0865f1da12
commit
bedd4a5c18
@ -59,11 +59,16 @@ export const calcWaybillFee = (data = {})=> {
|
|||||||
return coreRequest(url.calcWaybillFee, data, {})
|
return coreRequest(url.calcWaybillFee, data, {})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 计算结算重量、体积重量
|
// 计算结算重量
|
||||||
export const calcSetteldWeight = (data = {})=> {
|
export const calcSetteldWeight = (data = {})=> {
|
||||||
return coreRequest(url.calcSetteldWeight, data, {})
|
return coreRequest(url.calcSetteldWeight, data, {})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 体积重量
|
||||||
|
export const calcVolumeWeight = (data = {})=> {
|
||||||
|
return coreRequest(url.calcVolumeWeight, data, {})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 下单-进仓列表
|
// 下单-进仓列表
|
||||||
export const warehouseInList = (data = {})=> {
|
export const warehouseInList = (data = {})=> {
|
||||||
|
|||||||
@ -34,7 +34,8 @@ export default {
|
|||||||
getDestPositionList: `/emis/emisDestination/listSimple`, // 目的地 列表
|
getDestPositionList: `/emis/emisDestination/listSimple`, // 目的地 列表
|
||||||
getCaculteDestSite: `/emis/emisDestination/getDestSite`, // 自动计算目的地
|
getCaculteDestSite: `/emis/emisDestination/getDestSite`, // 自动计算目的地
|
||||||
calcWaybillFee: `/emis/emisWaybill/calcWaybillFee`, // 计算运费
|
calcWaybillFee: `/emis/emisWaybill/calcWaybillFee`, // 计算运费
|
||||||
calcSetteldWeight: `/emis/emisWaybill/calcSetteldWeight`, // 计算结算重量、结算体积
|
calcSetteldWeight: `/emis/emisWaybill/calcSetteldWeight`, // 计算结算重量
|
||||||
|
calcVolumeWeight: `/emis/emisWaybill/calcVolumeWeight`, // 体积重量计算
|
||||||
warehouseInList: `/emis/emisWarehouseIn/listSimple`, // 下单-进仓单列表
|
warehouseInList: `/emis/emisWarehouseIn/listSimple`, // 下单-进仓单列表
|
||||||
|
|
||||||
getOrderList: `/emis/emisWaybill/listSimple`, // 订单列表
|
getOrderList: `/emis/emisWaybill/listSimple`, // 订单列表
|
||||||
|
|||||||
@ -85,10 +85,14 @@
|
|||||||
methods: {
|
methods: {
|
||||||
async calceOther() {
|
async calceOther() {
|
||||||
let { totalVolume, productType, billWeight } = this.modelInfo
|
let { totalVolume, productType, billWeight } = this.modelInfo
|
||||||
let res = await apiService.calcSetteldWeight({ totalVolume, productType, billWeight })
|
let voRes = await apiService.calcVolumeWeight({ productType, totalVolume })
|
||||||
const { settlementWeight, volumeWeight } = res.data
|
let { volumeWeight } = voRes.data
|
||||||
|
let stRes = await apiService.calcSetteldWeight({ volumeWeight, productType, billWeight })
|
||||||
|
const { settlementWeight } = stRes.data
|
||||||
this.modelInfo.volumeWeight = volumeWeight
|
this.modelInfo.volumeWeight = volumeWeight
|
||||||
this.modelInfo.settlementWeight = this.modelInfo.totalWeight = settlementWeight
|
this.modelInfo.settlementWeight = this.modelInfo.totalWeight = settlementWeight
|
||||||
|
|
||||||
|
//
|
||||||
},
|
},
|
||||||
async validData() {
|
async validData() {
|
||||||
await this.calceOther()
|
await this.calceOther()
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
<view style="width: 200rpx;" @click="handleSave">
|
<view style="width: 200rpx;" @click="handleSave">
|
||||||
<u-button type="primary" custom-style="border-radius: 10rpx;">保存到本地</u-button>
|
<u-button type="primary" custom-style="border-radius: 10rpx;">保存到本地</u-button>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 200rpx;">
|
<view style="width: 200rpx;" @click="handlePrint">
|
||||||
<u-button type="primary" plain="true" custom-style="border-radius: 10rpx;">打印</u-button>
|
<u-button type="primary" plain="true" custom-style="border-radius: 10rpx;">打印</u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
@ -68,6 +68,9 @@
|
|||||||
async handleSave(){
|
async handleSave(){
|
||||||
this.saveNetFile(this.qrCodeImgUrl)
|
this.saveNetFile(this.qrCodeImgUrl)
|
||||||
},
|
},
|
||||||
|
handlePrint() {
|
||||||
|
this.goto(`print/bluetoothPrinter?imageUrl=${this.qrCodeImgUrl}&paperWidth=${480}`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user