Commit c253ea47 authored by 邓春圆's avatar 邓春圆

Merge remote-tracking branch 'origin/dev' into dev

parents 929a4f14 debc0d9a
...@@ -1039,3 +1039,12 @@ export function getOrderItemDeleted(orderId){ ...@@ -1039,3 +1039,12 @@ export function getOrderItemDeleted(orderId){
method: 'get', method: 'get',
}) })
} }
// 打包页面订单数据统计
export function getPackStatistics(orderId){
return request({
url: '/ecw/order/order-packed-page-statistics/' + orderId,
method: 'get'
})
}
...@@ -200,15 +200,37 @@ ...@@ -200,15 +200,37 @@
</el-form-item>--> </el-form-item>-->
<h2>{{$t('订单数据')}}</h2> <h2>{{$t('订单数据')}}</h2>
<el-form-item :label="$t('总方数')" style="width: 380px"> <el-form-item :label="$t('下单统计')" class="mb-0">
<el-input v-model="form.sumVolume" :placeholder="$t('请输入总方数')" readonly> {{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
<span slot="append"></span> num: statistics.sumCartonsNumFinishedWarehouseIn,
</el-input> weight: statistics.sumWeightFinishedWarehouseIn,
volume: statistics.sumVolumeFinishedWarehouseIn,
quantity: statistics.sumQuantityAllFinishedWarehouseIn
}) }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('总重量')" style="width: 380px"> <el-form-item :label="$t('入仓统计')" class="mb-0">
<el-input v-model="form.sumWeight" :placeholder="$t('请输入总重量')" readonly> {{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
<span slot="append">kg</span> num: statistics.sumNum,
</el-input> weight: statistics.sumWeight,
volume: statistics.sumVolume,
quantity: statistics.sumQuantity
}) }}
</el-form-item>
<el-form-item :label="$t('打包前统计')" class="mb-0">
{{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
num: statistics.sumCartonsNumPrevPacked,
weight: statistics.sumWeightPrevPacked,
volume: statistics.sumVolumePrevPacked,
quantity: statistics.sumQuantityAllPrevPacked
}) }}
</el-form-item>
<el-form-item :label="$t('打包后统计')" class="mb-0">
{{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
num: statistics.sumNumInput,
weight: statistics.sumWeightInput,
volume: statistics.sumVolumeInput,
quantity: statistics.sumQuantityInput
}) }}
</el-form-item> </el-form-item>
<el-card style="margin-top: 15px;"> <el-card style="margin-top: 15px;">
...@@ -273,7 +295,8 @@ import { ...@@ -273,7 +295,8 @@ import {
getOrderWarehouseIn, getOrderWarehouseIn,
getSpecialListByOrderId, getSpecialListByOrderId,
noNeedPack, rollbackDelete, noNeedPack, rollbackDelete,
warehousePictureList warehousePictureList,
getPackStatistics
} from '@/api/ecw/order' } from '@/api/ecw/order'
import orderBaseInfo from "@/components/OrderBaseInfo" import orderBaseInfo from "@/components/OrderBaseInfo"
import WarehouseAreaDialog from '@/components/WarehouseAreaDialog' import WarehouseAreaDialog from '@/components/WarehouseAreaDialog'
...@@ -310,10 +333,9 @@ export default { ...@@ -310,10 +333,9 @@ export default {
mounted() { mounted() {
if(this.$route.query.id){ if(this.$route.query.id){
this.orderId = parseInt(this.$route.query.id || undefined) this.orderId = parseInt(this.$route.query.id || undefined)
this.getOrderItemList()
getSpecialListByOrderId(this.orderId).then(r => this.specialList = r.data)
this.getOrder() getSpecialListByOrderId(this.orderId).then(r => this.specialList = r.data)
this.getList()
} }
getCurrencyList().then(res => this.currencyList = res.data) getCurrencyList().then(res => this.currencyList = res.data)
getProductAttrList().then(res => this.productAttrList = res.data) getProductAttrList().then(res => this.productAttrList = res.data)
...@@ -377,12 +399,20 @@ export default { ...@@ -377,12 +399,20 @@ export default {
// 是否显示添加新品弹窗 // 是否显示添加新品弹窗
showNewProductDialog: false, showNewProductDialog: false,
// 是否显示打印标签弹层 // 是否显示打印标签弹层
showPrintTagDialog: false showPrintTagDialog: false,
// 统计数据
statistics:{}
} }
}, },
methods: { methods: {
formatTime, formatTime,
getStatistics() {
console.log('获取统计数据')
getPackStatistics(this.orderId).then(res => {
this.statistics = res.data
})
},
getOrderItemList(){ getOrderItemList(){
this.orderItemList = [] this.orderItemList = []
return getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data) return getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data)
...@@ -390,6 +420,7 @@ export default { ...@@ -390,6 +420,7 @@ export default {
getList(){ getList(){
this.getOrder() this.getOrder()
this.getOrderItemList() this.getOrderItemList()
this.getStatistics()
}, },
getWarehousePictureList(){ getWarehousePictureList(){
return warehousePictureList({ return warehousePictureList({
......
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