|
@@ -88,6 +88,16 @@
|
|
|
<span style="margin-right: 5px;">实际总成本</span> <a-icon type="question-circle" />
|
|
|
</a-tooltip>
|
|
|
</div>
|
|
|
+ <!-- 产品编码 -->
|
|
|
+ <template slot="productCode" slot-scope="text, record">
|
|
|
+ <a-badge count="急" v-if="record.oosFlag == 1">
|
|
|
+ <div style="padding-right: 15px;">{{ text }}</div>
|
|
|
+ </a-badge>
|
|
|
+ <a-badge count="缺" v-else-if="record.currentStockQty < record.qty">
|
|
|
+ <div style="padding-right: 15px;">{{ text }}</div>
|
|
|
+ </a-badge>
|
|
|
+ <span v-else>{{ text }}</span>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button size="small" type="link" v-if="record.oosFlag == 0" class="button-primary" @click="handleViewDetail(record)">出库明细</a-button>
|
|
@@ -168,7 +178,7 @@ export default {
|
|
|
columns () {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
- { title: '产品编码', dataIndex: 'productCode', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '11%', scopedSlots: { customRender: 'productCode' }, align: 'center' },
|
|
|
{ title: '产品名称', dataIndex: 'productName', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', width: '9%', align: 'center', customRender: function (text) { return text && text != ' ' ? text : '--' } },
|
|
|
{ title: '售价', dataIndex: 'price', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|