|
@@ -77,8 +77,8 @@
|
|
|
<!-- 合计 -->
|
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
|
<div class="ftext" slot="message">
|
|
|
- 现有库存总数量(个):<strong>{{ currentStock&&(currentStock.totalCurrentStockQty || currentStock.totalCurrentStockQty==0) ? currentStock.totalCurrentStockQty : '--' }}</strong>;
|
|
|
- 现有库存总成本(¥):<strong>{{ currentStock&&(currentStock.totalCurrentStockCost || currentStock.totalCurrentStockCost==0) ? currentStock.totalCurrentStockCost : '--' }}</strong>。
|
|
|
+ 可用库存总数量(个):<strong>{{ currentStock&&(currentStock.totalCurrentStockQty || currentStock.totalCurrentStockQty==0) ? currentStock.totalCurrentStockQty : '--' }}</strong>;
|
|
|
+ 可用库存总成本(¥):<strong>{{ currentStock&&(currentStock.totalCurrentStockCost || currentStock.totalCurrentStockCost==0) ? currentStock.totalCurrentStockCost : '--' }}</strong>。
|
|
|
</div>
|
|
|
</a-alert>
|
|
|
<!-- 列表 -->
|
|
@@ -97,14 +97,6 @@
|
|
|
<span v-if="record.productTypeName2">{{ record.productTypeName2 || '' }} ></span>
|
|
|
<span v-if="record.productTypeName3">{{ record.productTypeName3 || '' }}</span>
|
|
|
</template>
|
|
|
- <!-- 现有库存数量 -->
|
|
|
- <template slot="currentStockQty" slot-scope="text, record">
|
|
|
- {{ (record.currentStockQty + record.freezeQty) || 0 }}
|
|
|
- <span v-if="Number(record.freezeQty)">(冻结{{ record.freezeQty }})</span>
|
|
|
- </template>
|
|
|
- <template slot="currentStockCost" slot-scope="text, record">
|
|
|
- {{ (Number(record.currentStockCost)*1000 + Number(record.freezeCost)*1000)/1000 || 0 }}
|
|
|
- </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
@@ -170,8 +162,8 @@ export default {
|
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品品牌', dataIndex: 'brandName', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品分类', scopedSlots: { customRender: 'productTypeName' }, width: 140, align: 'center' },
|
|
|
- { title: '现有库存数量(个)', dataIndex: 'currentStockQty', scopedSlots: { customRender: 'currentStockQty' }, width: 140, align: 'center', sorter: true },
|
|
|
- { title: '现有库存成本(¥)', dataIndex: 'currentStockCost', scopedSlots: { customRender: 'currentStockCost' }, width: 140, align: 'center', sorter: true },
|
|
|
+ { title: '可用库存数量(个)', dataIndex: 'currentStockQty', width: 140, align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '可用库存成本(¥)', dataIndex: 'currentStockCost', width: 140, align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 170, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|