This commit is contained in:
aihe 2024-04-28 11:27:41 +08:00
parent 318072ce93
commit 59d22e7296
3 changed files with 72 additions and 15 deletions

View File

@ -12,7 +12,7 @@
<u-row justify="between"> <u-row justify="between">
<text class="font-28">包裹重量</text> <text class="font-28">包裹重量</text>
<view> <view>
<tpx-input v-model:value="modelInfo.billWeight" :isWhite="true" placeholder="" suffix="cm"></tpx-input> <tpx-input v-model:value="modelInfo.billWeight" :isWhite="true" placeholder="" suffix="kg"></tpx-input>
</view> </view>
</u-row> </u-row>
</view> </view>
@ -33,7 +33,7 @@
</u-col> </u-col>
</u-row> </u-row>
<u-row v-if="modelInfo.totalVolume" customStyle="margin: 20rpx 0 0 0;" justify="end">{{modelInfo.totalVolume}}m³</u-row> <u-row v-if="totalVolume" customStyle="margin: 20rpx 0 0 0;" justify="end">{{modelInfo.totalVolume}}m³</u-row>
</view> </view>
</u-row> </u-row>
</view> </view>
@ -47,6 +47,18 @@
get(){ get(){
return this.value return this.value
} }
},
totalVolume() {
let totalVolume = this.modelInfo.totalVolume
const { chang, kuan, gao } = this.modelInfo
if(chang && kuan && gao){
totalVolume = chang/100 * kuan/100 * gao/100
}
if(totalVolume && totalVolume.toFixed) {
totalVolume = totalVolume.toFixed(2)
this.modelInfo.totalVolume = totalVolume
}
return totalVolume
} }
}, },
props: { props: {

View File

@ -16,16 +16,54 @@
<view class=""> <view class="">
<view class="font-28"> <view class="font-28">
<u-row justify="space-between"> <u-row justify="space-between">
<text>总件数:<text class="font-weight">{{modelInfo.parcelQty}}</text>件</text> <view class="sta-t-item">
<text>总体积:<text class="font-weight">{{modelInfo.totalVolume}}</text>m³</text> <view class="">
<text>实际重量:<text class="font-weight">{{modelInfo.billWeight}}</text>kg</text> <text class="font-weight">{{modelInfo.parcelQty || '-'}}</text>
<text class="clr-sub">件</text>
</view>
<view class="sta-lbl clr-sub">总件数</view>
</view>
<view class="sta-t-item">
<view class="">
<text class="font-weight">{{modelInfo.totalVolume || '-'}}</text>
<text class="clr-sub">m³</text>
</view>
<view class="sta-lbl clr-sub">总体积</view>
</view>
<view class="sta-t-item">
<view class="">
<text class="font-weight">{{modelInfo.billWeight || '-'}}</text>
<text class="clr-sub">kg</text>
</view>
<view class="sta-lbl clr-sub">实际重量</view>
</view>
</u-row> </u-row>
</view> </view>
<view class="font-28 mt-10"> <view class="font-28 mt-20">
<u-row justify="space-between"> <u-row justify="space-between">
<text>总重量:<text class="font-weight">150</text>kg</text> <view class="sta-t-item">
<text>体积重量:<text class="font-weight">150</text>kg</text> <view class="">
<text class="pl-20">结算重量:<text class="font-weight">150</text>kg</text> <text class="font-weight">{{modelInfo.totalWeight || '-'}}</text>
<text class="clr-sub">kg</text>
</view>
<view class="sta-lbl clr-sub">总重量</view>
</view>
<view class="sta-t-item">
<view class="">
<text class="font-weight">{{modelInfo.volumeWeight || '-'}}</text>
<text class="clr-sub">kg</text>
</view>
<view class="sta-lbl clr-sub">体积重量</view>
</view>
<view class="sta-t-item">
<view class="">
<text class="font-weight">{{modelInfo.settlementWeight || '-'}}</text>
<text class="clr-sub">kg</text>
</view>
<view class="sta-lbl clr-sub">结算重量</view>
</view>
</u-row> </u-row>
</view> </view>
</view> </view>
@ -69,6 +107,12 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.sta-t-item{
text-align: center;
}
.sta-lbl{
margin-top: 6rpx;
}
.yditem{ .yditem{
padding: 20rpx 20rpx; padding: 20rpx 20rpx;
background-color: #F6F6F6; background-color: #F6F6F6;

View File

@ -53,13 +53,13 @@ export const getOrderModels = () => {
"customerDeliveryBeginTime": undefined, "customerDeliveryBeginTime": undefined,
"goodsType": undefined, "goodsType": undefined,
"goodsInfo": undefined, "goodsInfo": undefined,
"totalWeight": undefined, "totalWeight": undefined, // 总重量
"totalVolume": undefined, "totalVolume": undefined, // 总体积
"parcelQty": undefined, "parcelQty": undefined, // 总件数
"billWeight": undefined, "billWeight": undefined, // 实际重量
"volumeWeight": undefined, "volumeWeight": undefined, // 体积重量
"currency": undefined, "currency": undefined,
"settlementWeight": undefined, "settlementWeight": undefined, // 结算重量
"feeWeight": undefined, "feeWeight": undefined,
"freight": undefined, "freight": undefined,
"blOverLong": undefined, "blOverLong": undefined,
@ -119,6 +119,7 @@ export const getOrderModels = () => {
// "goodsModel": "规格", // "goodsModel": "规格",
// "orderNum": "序号", // "orderNum": "序号",
// "supplier": "供应商", // // "supplier": "供应商", //
// "abnormalQty": "异常数量", //
// "isSave": "是否保存 1-保存" // "isSave": "是否保存 1-保存"
// } // }
], ],