|
@@ -11,8 +11,8 @@
|
|
<!-- 合计 -->
|
|
<!-- 合计 -->
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
<div class="ftext" slot="message">
|
|
<div class="ftext" slot="message">
|
|
- 现有库存总数量(个):<strong>{{ stockQty }}</strong>;
|
|
|
|
- <span v-if="$hasPermissions('B_isShowCost')">现有库存总成本(¥):<strong>{{ stockCost }}</strong>。</span>
|
|
|
|
|
|
+ 可用库存总数量(个):<strong>{{ (currentStock&&(currentStock.currentStockQty || currentStock.currentStockQty==0)) ? currentStock.currentStockQty : '--' }}</strong>;
|
|
|
|
+ <span v-if="$hasPermissions('B_isShowCost')">可用库存总成本(¥):<strong>{{ (currentStock&&(currentStock.currentStockCost || currentStock.currentStockCost==0)) ? currentStock.currentStockCost : '--' }}</strong>。</span>
|
|
</div>
|
|
</div>
|
|
</a-alert>
|
|
</a-alert>
|
|
<!-- 库存详情 -->
|
|
<!-- 库存详情 -->
|
|
@@ -26,11 +26,6 @@
|
|
:data="loadData"
|
|
:data="loadData"
|
|
:scroll="{ x: 1210, y: 500 }"
|
|
:scroll="{ x: 1210, y: 500 }"
|
|
bordered>
|
|
bordered>
|
|
- <!-- 库存数量 -->
|
|
|
|
- <template slot="currentQty" slot-scope="text, record">
|
|
|
|
- {{ (record.currentQty + record.freezeQty) || 0 }}
|
|
|
|
- <span v-if="record.freezeQty">(冻结{{ record.freezeQty }})</span>
|
|
|
|
- </template>
|
|
|
|
</s-table>
|
|
</s-table>
|
|
<div class="btn-cont">
|
|
<div class="btn-cont">
|
|
<a-button id="inventoryQueryDetail-detail-modal-back" @click="isShow = false">返回列表</a-button>
|
|
<a-button id="inventoryQueryDetail-detail-modal-back" @click="isShow = false">返回列表</a-button>
|
|
@@ -91,7 +86,7 @@ export default {
|
|
},
|
|
},
|
|
columns () {
|
|
columns () {
|
|
const arr = [
|
|
const arr = [
|
|
- { title: '序号', dataIndex: 'no', width: 50, align: 'center', fixed: 'left' },
|
|
|
|
|
|
+ { title: '序号', dataIndex: 'no', width: 50, align: 'center' },
|
|
{ title: '产品编码', dataIndex: 'productCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品编码', dataIndex: 'productCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品名称', dataIndex: 'productName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '产品名称', dataIndex: 'productName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -99,7 +94,7 @@ export default {
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: 100, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: 100, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: 100, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: 100, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '入库类型', dataIndex: 'putBizTypeDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '入库类型', dataIndex: 'putBizTypeDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '库存数量', scopedSlots: { customRender: 'currentQty' }, width: 100, align: 'center' }
|
|
|
|
|
|
+ { title: '库存数量', dataIndex: 'currentQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
]
|
|
]
|
|
if (this.$hasPermissions('B_isShowCost')) {
|
|
if (this.$hasPermissions('B_isShowCost')) {
|
|
arr.splice(9, 0, { title: '成本单价', dataIndex: 'putCost', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
arr.splice(9, 0, { title: '成本单价', dataIndex: 'putCost', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|