|
@@ -84,6 +84,10 @@
|
|
|
:data="loadData"
|
|
|
:scroll="{ x: 1760 }"
|
|
|
bordered>
|
|
|
+ <!-- 数量 -->
|
|
|
+ <template slot="qty" slot-scope="text, record">
|
|
|
+ <span :class="record.flowType=='PUT' ? 'green':'red'">{{ record.flowType=='PUT' ? '+':'-' }}{{ record.qty }}</span>
|
|
|
+ </template>
|
|
|
</s-table>
|
|
|
</a-card>
|
|
|
</div>
|
|
@@ -121,7 +125,7 @@ export default {
|
|
|
{ title: '单位名称', dataIndex: 'unitName', width: 200, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: 140, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: 140, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '数量', dataIndex: 'qty', width: 100, align: 'center' },
|
|
|
+ { title: '数量', scopedSlots: { customRender: 'qty' }, width: 100, align: 'center' },
|
|
|
{ title: '总成本', dataIndex: 'totalCost', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '总售价', dataIndex: 'totalPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
],
|