Commit 9c7564d7 authored by dragondean@qq.com's avatar dragondean@qq.com

备货未入仓的显示品名但是不显示打包操作

parent 22176a3b
......@@ -15,14 +15,14 @@
-->
<el-table
v-if="order.orderItemVOList && order.orderItemVOList.length > 0 && orderItemList && orderItemList.length > 0"
:data="order.orderItemVOList.filter(item => !!wareItem(item.orderItemId).orderWarehouseInBackItemDoList.length) || []"
:data="order.orderItemVOList || []"
default-expand-all
style="width: 100%">
<!--入仓记录-->
<el-table-column type="expand">
<template slot-scope="props">
<div style="padding-left: 80px">
<el-table v-if="wareItem(props.row.orderItemId).orderWarehouseInBackItemDoList" :data="wareItem(props.row.orderItemId).orderWarehouseInBackItemDoList">
<div style="padding-left: 80px" v-if="orderWarehouseInList(props.row.orderItemId).length">
<el-table :data="orderWarehouseInList(props.row.orderItemId)">
<el-table-column :label="$t('序号')" width="80px">
<template slot-scope="{row, column, $index}">
{{$index + 1}}
......@@ -160,7 +160,8 @@
prop="address"
:label="$t('操作')" width="220">
<template v-slot="{ row, column, $index }">
<el-button-group>
<!--没有入仓记录的不显示打包按钮 https://zentao.test.jdshangmen.com/bug-view-5389.html-->
<el-button-group v-if="orderWarehouseInList(row.orderItemId).length">
<template v-if="wareItemPackStatus(row.orderItemId) == 1">
<el-button size="mini" type="warning" @click="noNeedPack(row)">{{$t('无需打包')}}</el-button>
<el-button size="mini" type="primary" @click="package(row, $t('打包'))">{{$t('打包')}}</el-button>
......@@ -516,6 +517,12 @@ export default {
return this.orderItemList.find(item => item.orderItemId == orderItemId)
}
},
// 根据orderItemId获取入仓记录
orderWarehouseInList(){
return (orderItemId) => {
return this.wareItem(orderItemId)?.orderWarehouseInBackItemDoList || []
}
},
// 获取打包状态
wareItemPackStatus(){
return orderItemId => {
......
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