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

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

parents e500beee b7e56c06
...@@ -322,8 +322,8 @@ export default { ...@@ -322,8 +322,8 @@ export default {
}, },
/** 取消 */ /** 取消 */
cancel() { cancel(type) {
this.$emit("closeStart", "submit"); this.$emit('closeDialog', type)
}, },
/* 关闭弹窗 */ /* 关闭弹窗 */
closeDialog(type) { closeDialog(type) {
...@@ -361,7 +361,7 @@ export default { ...@@ -361,7 +361,7 @@ export default {
shipmentId: shipmentObj.id, shipmentId: shipmentObj.id,
}).then((res) => { }).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.cancel(); this.cancel("submit");
}); });
}); });
}, },
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<el-table-column :label="$t('重量') + '(kg)'" prop="weight" /> <el-table-column :label="$t('重量') + '(kg)'" prop="weight" />
<el-table-column :label="$t('数量(个)')" prop="quantityAll" /> <el-table-column :label="$t('数量(个)')" prop="quantityAll" />
<el-table-column :label="$t('入仓快递单号')" prop="expressNo" /> <el-table-column :label="$t('入仓快递单号')" prop="expressNo" />
<el-table-column :label="$t('入仓时间')" prop="inTime" > <el-table-column :label="$t('入仓时间')" prop="inTime" min-width="150">
<template slot-scope="{row}">{{row.inTime|parseTime}}</template> <template slot-scope="{row}">{{row.inTime|parseTime}}</template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('储位')" prop="orderLocationBackVOList" > <el-table-column :label="$t('储位')" prop="orderLocationBackVOList" >
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('入仓影像')" prop="orderLocationBackVOList" > <el-table-column :label="$t('入仓影像')" prop="orderLocationBackVOList" >
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" @click="seeMv(orderWarehouseInContent.pictures)">{{$t('查看')}}</el-button> <el-button type="primary" @click="seeMv(orderWarehouseInContent.pictureUrls)">{{$t('查看')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<el-table-column :label="$t('重量') + '(kg)'" prop="weight" /> <el-table-column :label="$t('重量') + '(kg)'" prop="weight" />
<el-table-column :label="$t('数量(个)')" prop="quantityAll" /> <el-table-column :label="$t('数量(个)')" prop="quantityAll" />
<el-table-column :label="$t('入仓快递单号')" prop="expressNo" /> <el-table-column :label="$t('入仓快递单号')" prop="expressNo" />
<el-table-column :label="$t('入仓时间')" prop="inTime" > <el-table-column :label="$t('入仓时间')" prop="inTime" min-width="150">
<template slot-scope="{row}">{{row.inTime|parseTime}}</template> <template slot-scope="{row}">{{row.inTime|parseTime}}</template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('储位')" prop="orderLocationBackVOList" > <el-table-column :label="$t('储位')" prop="orderLocationBackVOList" >
...@@ -293,6 +293,8 @@ export default { ...@@ -293,6 +293,8 @@ export default {
type: this.isImageFile(e) ? 'image' : 'video', type: this.isImageFile(e) ? 'image' : 'video',
} }
}) })
}else{
this.pictureUrls = []
} }
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-table-column :label="$t('箱数')" prop="cartonsNum"> <el-table-column :label="$t('箱数')" prop="cartonsNum">
<template slot-scope="{row}"> <template slot-scope="{row}">
<template v-if="row.orderWarehouseInDetailsVOList && row.orderWarehouseInDetailsVOList.length"> <template v-if="row.orderWarehouseInDetailsVOList && row.orderWarehouseInDetailsVOList.length">
<WarehouseRecordDetail v-model="row.orderWarehouseInDetailsVOList" text readonly /> <WarehouseRecordDetail v-model="row.orderWarehouseInDetailsVOList" :num="row.cartonsNum" text readonly />
</template> </template>
<template v-else>{{ row.cartonsNum }}</template> <template v-else>{{ row.cartonsNum }}</template>
</template> </template>
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<template slot-scope="props"> <template slot-scope="props">
<div style="padding-left: 80px"> <div style="padding-left: 80px">
<el-table v-if="wareItem(props.row.orderItemId).orderWarehouseInBackItemDoList" :data="wareItem(props.row.orderItemId).orderWarehouseInBackItemDoList"> <el-table v-if="wareItem(props.row.orderItemId).orderWarehouseInBackItemDoList" :data="wareItem(props.row.orderItemId).orderWarehouseInBackItemDoList">
<el-table-column :label="$t('序号')"> <el-table-column :label="$t('序号')" width="80px">
<template slot-scope="{row, column, $index}"> <template slot-scope="{row, column, $index}">
{{$index + 1}} {{$index + 1}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="cartonsNum" :label="$t('箱数')"></el-table-column> <el-table-column prop="cartonsNum" :label="$t('箱数')" width="60px"></el-table-column>
<el-table-column prop="areaName" :label="$t('入仓类型')"> <el-table-column prop="areaName" :label="$t('入仓类型')">
<template v-slot="{row}"> <template v-slot="{row}">
<dict-tag :type="DICT_TYPE.WAREHOUSING_SPECIFICATION_TYPE" :value="row.specificationType"></dict-tag> <dict-tag :type="DICT_TYPE.WAREHOUSING_SPECIFICATION_TYPE" :value="row.specificationType"></dict-tag>
...@@ -32,20 +32,22 @@ ...@@ -32,20 +32,22 @@
<dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="row.unit"></dict-tag> <dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="row.unit"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="areaName" :label="$t('长')"> <el-table-column prop="areaName" :label="$t('长') + '(cm)'" width="70px">
<template v-slot="{row}">{{row.boxGauge.split('*')[0]}}</template> <template v-slot="{row}">{{row.boxGauge.split('*')[0]}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="areaName" :label="$t('宽')"> <el-table-column prop="areaName" :label="$t('宽') + '(cm)'" width="70px">
<template v-slot="{row}">{{row.boxGauge.split('*')[1]}}</template> <template v-slot="{row}">{{row.boxGauge.split('*')[1]}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="areaName" :label="$t('高')"> <el-table-column prop="areaName" :label="$t('高') + '(cm)'" width="70px">
<template v-slot="{row}">{{row.boxGauge.split('*')[2]}}</template> <template v-slot="{row}">{{row.boxGauge.split('*')[2]}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="volume" :label="$t('体积')+'(m³)'"></el-table-column> <el-table-column prop="volume" :label="$t('体积')+'(m³)'"></el-table-column>
<el-table-column prop="weight" :label="$t('重量')+'(kg)'"></el-table-column> <el-table-column prop="weight" :label="$t('重量')+'(kg)'"></el-table-column>
<el-table-column prop="quantityAll" :label="$t('数量') + '(个)'"></el-table-column> <el-table-column prop="quantityAll" :label="$t('数量') + '(个)'"></el-table-column>
<el-table-column prop="expressNo" :label="$t('快递单号')"></el-table-column> <el-table-column prop="expressNo" :label="$t('快递单号')"></el-table-column>
<!--<el-table-column prop="areaName" :label="$t('首次入仓时间')"></el-table-column>--> <el-table-column prop="createTime" :label="$t('首次入仓时间')">
<template v-slot="{row}">{{parseTime(row.inTime)}}</template>
</el-table-column>
<el-table-column prop="areaName" :label="$t('储位')"> <el-table-column prop="areaName" :label="$t('储位')">
<template v-slot="{row}"> <template v-slot="{row}">
{{row.orderLocationStr4Merge}} {{row.orderLocationStr4Merge}}
...@@ -56,6 +58,13 @@ ...@@ -56,6 +58,13 @@
<el-button type="text" @click="showMedia(props.row)">{{$t('查看')}}</el-button> <el-button type="text" @click="showMedia(props.row)">{{$t('查看')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="areaName" :label="$t(' ')" width="220px">
<template v-slot="{row}">
<WarehouseRecordDetail v-model="row.orderWarehouseInDetailsVOList" @input="saveDetail(props.row)" />
<el-button class="pl-5 pr-5" size="mini" type="primary" @click="package(props.row, $t('修改打包'))">{{$t('修改')}}</el-button>
<el-button class="pl-5 pr-5" size="mini" type="danger" @click="package(props.row, $t('修改打包'))">{{$t('删除')}}</el-button>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>
...@@ -229,6 +238,7 @@ ...@@ -229,6 +238,7 @@
<script> <script>
import {getCurrencyList} from "@/api/ecw/currency" import {getCurrencyList} from "@/api/ecw/currency"
import { import {
finishPacked,
finishStock, finishStock,
getOrder, getOrder,
getOrderWarehouseIn, getOrderWarehouseIn,
...@@ -248,11 +258,14 @@ import Package from './components/Package' ...@@ -248,11 +258,14 @@ import Package from './components/Package'
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import {getProductAttrList} from "@/api/ecw/productAttr"; import {getProductAttrList} from "@/api/ecw/productAttr";
import MediaDialog from "@/views/ecw/order/stocking/components/MediaDialog.vue"; import MediaDialog from "@/views/ecw/order/stocking/components/MediaDialog.vue";
import WarehouseRecordDetail from "@/views/ecw/order/warehousing/components/WarehouseRecordDetail.vue";
import {formatTime} from "../../../../utils";
export default { export default {
name: "Stocking", name: "Stocking",
components: { components: {
WarehouseRecordDetail,
MediaDialog, MediaDialog,
Template, Template,
orderBaseInfo, orderBaseInfo,
...@@ -335,6 +348,7 @@ export default { ...@@ -335,6 +348,7 @@ export default {
}, },
methods: { methods: {
formatTime,
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)
...@@ -429,6 +443,24 @@ export default { ...@@ -429,6 +443,24 @@ export default {
return this.$message.info(this.$t('暂无影像')) return this.$message.info(this.$t('暂无影像'))
} }
this.curPictrues = wareItem.pictureUrls || [] this.curPictrues = wareItem.pictureUrls || []
},
// 保存箱明细
saveDetail(row){
const wareItem = this.wareItem(row.orderItemId)
const orderWarehouseInItemDtoList = wareItem.orderWarehouseInBackItemDoList
orderWarehouseInItemDtoList.map(item =>{
item.orderLocationCreateReqVOList = item.orderLocationBackVOList || []
return item
})
const data = {
orderId: row.orderId,
orderItemId: row.orderItemId,
orderWarehouseInItemDtoList: orderWarehouseInItemDtoList,
pictureUrls: wareItem.pictureUrls || []
}
finishPacked(data).then(res => {
this.$message.success(this.$t('操作成功'))
})
} }
}, },
watch: { watch: {
......
<template> <template>
<div style="display: inline-block"> <div style="display: inline-block">
<template v-if="text"> <template v-if="text">
<el-button size="mini" type="text" style="margin-right: 10px" @click="handleOpen">{{ value.length }}(混箱)</el-button> <el-button size="mini" type="text" style="margin-right: 10px" @click="handleOpen">{{ num }}(混箱)</el-button>
</template> </template>
<template v-else> <template v-else>
<el-button size="mini" type="primary" style="margin-right: 10px" @click="handleOpen">{{ title }}</el-button> <el-button size="mini" type="primary" style="margin-right: 10px" @click="handleOpen">{{ title }}</el-button>
...@@ -57,6 +57,10 @@ export default { ...@@ -57,6 +57,10 @@ export default {
text: { text: {
type: Boolean, type: Boolean,
default: false default: false
},
num:{
type:Number,
default:0
} }
}, },
......
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