Commit e1644258 authored by zhengyi's avatar zhengyi

订单详情中的到仓详情页面修改

parent d70180dc
...@@ -83,13 +83,20 @@ export default { ...@@ -83,13 +83,20 @@ export default {
volume: new Decimal(0), volume: new Decimal(0),
quantity: new Decimal(0) quantity: new Decimal(0)
} }
// 入仓数据 // 装柜/出货数据
let warehouseInData = { let warehouseInData = {
num: new Decimal(0), num: new Decimal(0),
weight: new Decimal(0), weight: new Decimal(0),
volume: new Decimal(0), volume: new Decimal(0),
quantity: new Decimal(0) quantity: new Decimal(0)
} }
// 到仓数据
let toWarehouseData = {
checkNum: new Decimal(0),
checkWeight: new Decimal(0),
checkVolume: new Decimal(0),
checkQuantity: new Decimal(0)
}
// 收费数据 // 收费数据
let chargeData = { let chargeData = {
weight: new Decimal(0), weight: new Decimal(0),
...@@ -107,19 +114,19 @@ export default { ...@@ -107,19 +114,19 @@ export default {
warehouseInData.volume = warehouseInData.volume.plus(item.warehouseInInfoVO.volume || 0) warehouseInData.volume = warehouseInData.volume.plus(item.warehouseInInfoVO.volume || 0)
warehouseInData.quantity = warehouseInData.quantity.plus(item.warehouseInInfoVO.quantityAll || 0) warehouseInData.quantity = warehouseInData.quantity.plus(item.warehouseInInfoVO.quantityAll || 0)
} }
toWarehouseData.checkNum = toWarehouseData.checkNum.plus(item.checkNum || 0)
toWarehouseData.checkWeight = toWarehouseData.checkWeight.plus(item.checkWeight || 0)
toWarehouseData.checkVolume = toWarehouseData.checkVolume.plus(item.checkVolume || 0)
toWarehouseData.checkQuantity = toWarehouseData.checkQuantity.plus(item.checkQuantity || 0)
chargeData.weight = chargeData.weight.plus(item.chargeWeight || 0) chargeData.weight = chargeData.weight.plus(item.chargeWeight || 0)
chargeData.volume = chargeData.volume.plus(item.chargeVolume || 0) chargeData.volume = chargeData.volume.plus(item.chargeVolume || 0)
}) })
const summary = Array(19).fill(null) const summary = Array(8).fill(null)
summary[3] = this.$t("合计") summary[3] = this.$t("合计")
// 入仓 // 入仓
summary[4] = `${warehouseInData.num}${this.$t('')} ${warehouseInData.weight}KG ${warehouseInData.volume}${warehouseInData.quantity}${this.$t('')}` summary[4] = `${warehouseInData.num}${this.$t('')} ${warehouseInData.weight}KG ${warehouseInData.volume}${warehouseInData.quantity}${this.$t('')}`
// 货值 // 到仓
summary[7] = worth.toNumber() summary[5] = `${toWarehouseData.checkNum}${this.$t('')} ${toWarehouseData.checkWeight}KG ${toWarehouseData.checkVolume}${toWarehouseData.checkQuantity}${this.$t('')}`
// 收费数九
summary[10] = `${chargeData.weight}KG ${chargeData.volume}m³`
// 填单数据
summary[17] = `${fillData.num}${this.$t('')} ${fillData.weight}KG ${fillData.volume}${fillData.quantity}${this.$t('')}`
return summary return summary
} }
} }
...@@ -137,25 +144,25 @@ export default { ...@@ -137,25 +144,25 @@ export default {
<el-table-column :label="$t('序号')" width="90px"> <el-table-column :label="$t('序号')" width="90px">
<template slot-scope="scope">{{scope.$index + 1}}</template> <template slot-scope="scope">{{scope.$index + 1}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="prodTitleZh" :label="$t('品名')"> <el-table-column :label="$t('品名')">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ getProdTypeName(row.prodType) }}</span> <span>{{ getProdTypeName(row.prodType) }}</span>
<span>{{row.prodTitleZh}}/{{row.prodTitleEn}}</span> <span>{{row.prodTitleZh}}/{{row.prodTitleEn}}</span>
</template> </template>
</el-table-column> </el-table-column>
<!--<el-table-column prop="prodTitleEn" :label="$t('品名')" />--> <!--<el-table-column prop="prodTitleEn" :label="$t('品名')" />-->
<el-table-column prop="brand" :label="$t('品牌')" width="90px"> <el-table-column :label="$t('品牌')" width="90px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<template v-if="row.brandName">{{row.brandName}}</template> <template v-if="row.brandName">{{row.brandName}}</template>
<dict-tag v-else :type="DICT_TYPE.ECW_IS_BRAND" :value="row.brandType" /> <dict-tag v-else :type="DICT_TYPE.ECW_IS_BRAND" :value="row.brandType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="brand" :label="$t('特性')" width="90px"> <el-table-column :label="$t('特性')" width="90px">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{showAttrText(row.warehouseInInfoVO ? row.warehouseInProdAttrIds : row.prodAttrIds)}} {{showAttrText(row.warehouseInInfoVO ? row.warehouseInProdAttrIds : row.prodAttrIds)}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="sumNum" :label="$t('装柜/出货信息')" width="90px"> <el-table-column :label="$t('装柜/出货信息')" width="90px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<div v-if="row.warehouseInInfoVO"> <div v-if="row.warehouseInInfoVO">
{{row.warehouseInInfoVO.cartonsNum}}{{$t('')}} {{row.warehouseInInfoVO.cartonsNum}}{{$t('')}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment