|
@@ -63,7 +63,7 @@
|
|
|
ref="table"
|
|
|
:style="modes=='pages'?{ height: tableHeight+84.5+'px' }:{}"
|
|
|
size="small"
|
|
|
- :row-selection="modes=='pages'?{ columnWidth: 40 }:{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: !record.productEntity.purchasePrice || !(record.productEntity.onlineFalg == 1&& record.dealerScopeFlag == 1) } }) }"
|
|
|
+ :row-selection="modes=='pages'?{ columnWidth: 40 }:{ columnWidth: 40, getCheckboxProps: record => ({ props:{disabled: (purchaseType&&purchaseType=='SUPPLIER_SYS'&&record.productEntity.onlineFalg == 0) || record.dealerScopeFlag == 0 }}) }"
|
|
|
@rowSelection="rowSelectionFun"
|
|
|
rowKeyName="productSn"
|
|
|
:rowKey="(record) => record.productSn"
|
|
@@ -98,7 +98,7 @@
|
|
|
<div v-else>
|
|
|
<span style="padding-right: 15px;">{{ text }}</span>
|
|
|
<a-tag v-if="record.productEntity.onlineFalg == 0">下架</a-tag>
|
|
|
- <a-tag color="red" v-else-if="record.productEntity.onlineFalg == 1&& record.dealerScopeFlag == 0">无权限</a-tag>
|
|
|
+ <a-tag color="red" v-if="record.dealerScopeFlag == 0">无权限</a-tag>
|
|
|
</div>
|
|
|
</template>
|
|
|
</s-table>
|
|
@@ -121,6 +121,10 @@ export default {
|
|
|
modes: {
|
|
|
type: String,
|
|
|
default: 'pages'
|
|
|
+ },
|
|
|
+ purchaseType: {
|
|
|
+ type: String,
|
|
|
+ default: null
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -198,7 +202,7 @@ export default {
|
|
|
{ title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '20%', align: 'center' },
|
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '可用库存数量', dataIndex: 'currentStockQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
+ { title: '成本价', dataIndex: 'productEntity.productPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '单位', dataIndex: 'productEntity.unit', width: '8%', align: 'center', customRender: function (text) { return (!text || text == ' ') ? '--' : text } },
|
|
|
{ title: '包装数', scopedSlots: { customRender: 'baozh' }, dataIndex: 'productEntity.packQty', width: '8%', align: 'center' },
|
|
|
{ title: '采购数量', scopedSlots: { customRender: 'purchaseQty' }, width: '12%', align: 'center' }
|
|
@@ -208,7 +212,7 @@ export default {
|
|
|
{ title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '200px', align: 'center', fixed: 'left' },
|
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', 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: 'productEntity.purchasePrice', width: '80px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
+ { title: '成本价', dataIndex: 'productEntity.productPrice', width: '80px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '单位', dataIndex: 'productEntity.unit', width: '80px', align: 'center', customRender: function (text) { return (!text || text == ' ') ? '--' : text } },
|
|
|
{ title: '包装数', scopedSlots: { customRender: 'baozh' }, dataIndex: 'productEntity.packQty', width: '80px', align: 'center' },
|
|
|
{ title: '采购数量', scopedSlots: { customRender: 'purchaseQty' }, width: '120px', align: 'center', fixed: 'right' }
|