|
@@ -86,10 +86,7 @@
|
|
</template>
|
|
</template>
|
|
<!-- 包装数 -->
|
|
<!-- 包装数 -->
|
|
<template slot="baozh" slot-scope="text, record">
|
|
<template slot="baozh" slot-scope="text, record">
|
|
- <span v-if="record.productEntity.packQty&&record.productEntity.packQtyUnit">
|
|
|
|
- {{ record.productEntity.packQty||'--' }}{{ record.productEntity.unit }}/{{ record.productEntity.packQtyUnit||'--' }}
|
|
|
|
- </span>
|
|
|
|
- <span v-else>--</span>
|
|
|
|
|
|
+ {{ record.productEntity.packQty||'--' }}{{ record.productEntity.packQty ? record.productEntity.unit : '' }}/{{ record.productEntity.packQtyUnit||'--' }}
|
|
</template>
|
|
</template>
|
|
<!-- 产品编码 -->
|
|
<!-- 产品编码 -->
|
|
<template slot="productCode" slot-scope="text, record">
|
|
<template slot="productCode" slot-scope="text, record">
|
|
@@ -202,7 +199,7 @@ export default {
|
|
]
|
|
]
|
|
} else {
|
|
} else {
|
|
this.columns = [
|
|
this.columns = [
|
|
- { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '200px', align: 'center' },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '200px', align: 'center', fixed: 'left' },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '250px', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '250px', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '可用库存数量', dataIndex: 'currentStockQty', width: '140px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '可用库存数量', dataIndex: 'currentStockQty', width: '140px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '80px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
{ title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '80px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -344,8 +341,8 @@ export default {
|
|
},
|
|
},
|
|
pageInit (paramsData) {
|
|
pageInit (paramsData) {
|
|
this.paramsData = paramsData || {}
|
|
this.paramsData = paramsData || {}
|
|
- this.setTableH()
|
|
|
|
this.getColumns()
|
|
this.getColumns()
|
|
|
|
+ this.setTableH()
|
|
this.resetSearchForm()
|
|
this.resetSearchForm()
|
|
},
|
|
},
|
|
setTableH () {
|
|
setTableH () {
|