|
|
|
@ -66,6 +66,15 @@ |
|
|
|
<el-table-column prop="qty" label="数量" min-width="90" header-align="center" align="right"> |
|
|
|
<template slot-scope="scope">{{ formatQty(scope.row.qty) }}</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="wdr" label="WDR" min-width="90" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="engChgLevel" label="版本号" min-width="80" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="receiveDate" label="接收日期" min-width="110" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope">{{ formatStockDate(scope.row.receiveDate) }}</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="expiredDate" label="失效日期" min-width="110" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope">{{ formatStockDate(scope.row.expiredDate) }}</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="availabilityControlId" label="可用性控制ID" min-width="130" header-align="center" align="center" show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="warehouseId" label="标签仓库" min-width="110" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="locationId" label="标签库位" min-width="110" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="inStockFlag" label="在库" min-width="70" header-align="center" align="center"></el-table-column> |
|
|
|
@ -73,7 +82,6 @@ |
|
|
|
<el-table-column label="本次是否移库" min-width="110" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope">{{ scope.row.willTransfer ? '是' : '否' }}</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="skipReason" label="不移库原因" min-width="220" header-align="center" align="left" show-overflow-tooltip></el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -124,6 +132,22 @@ export default { |
|
|
|
this.clearRelocateRefreshTimers() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 接收日期、失效日期只显示自然日。后端已按yyyy-MM-dd返回,空值留空 - rqrq |
|
|
|
formatStockDate (value) { |
|
|
|
if (!value) { |
|
|
|
return '' |
|
|
|
} |
|
|
|
if (typeof value === 'string') { |
|
|
|
return value.length >= 10 ? value.substring(0, 10) : value |
|
|
|
} |
|
|
|
const date = new Date(value) |
|
|
|
if (Number.isNaN(date.getTime())) { |
|
|
|
return '' |
|
|
|
} |
|
|
|
const month = String(date.getMonth() + 1).padStart(2, '0') |
|
|
|
const day = String(date.getDate()).padStart(2, '0') |
|
|
|
return date.getFullYear() + '-' + month + '-' + day |
|
|
|
}, |
|
|
|
// 数量去尾零,空值显示0 - rqrq |
|
|
|
formatQty (qty) { |
|
|
|
if (qty === null || qty === undefined || qty === '') { |
|
|
|
|