|
@@ -104,11 +104,11 @@
|
|
|
:pageSize="30"
|
|
|
bordered>
|
|
|
<!-- 售价 -->
|
|
|
- <template slot="price" slot-scope="text, record">
|
|
|
+ <template slot="salePrice" slot-scope="text, record">
|
|
|
<div @dblclick.stop>
|
|
|
¥
|
|
|
<a-input-number
|
|
|
- v-model="record.dealerProduct.cityPrice"
|
|
|
+ v-model="record.salePrice"
|
|
|
:precision="2"
|
|
|
:min="0"
|
|
|
:max="999999"
|
|
@@ -233,7 +233,7 @@ export default {
|
|
|
{ title: '单位', dataIndex: 'unit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '成本价', dataIndex: 'putCost', width: 100, align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
|
|
|
{ title: '市级价', dataIndex: 'dealerProduct.cityPrice', width: 100, align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
|
|
|
- { title: '售价', dataIndex: 'price', scopedSlots: { customRender: 'price' }, width: 150, align: 'center' },
|
|
|
+ { title: '售价', dataIndex: 'salePrice', scopedSlots: { customRender: 'salePrice' }, width: 150, align: 'center' },
|
|
|
{ title: '销售数量', dataIndex: 'salesNums', scopedSlots: { customRender: 'nums' }, width: 150, align: 'center' },
|
|
|
{ title: '操作', dataIndex: 'action', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' }
|
|
|
],
|
|
@@ -277,7 +277,7 @@ export default {
|
|
|
onSettingChange (v) {
|
|
|
const k = ['productOrigCode', 'brandName', 'warehouseName', 'warehouseLocationName', 'currentQty', 'unit', 'putCost', 'dealerProduct.cityPrice']
|
|
|
const a = ['no', 'productCode', 'productName']
|
|
|
- const b = ['price', 'salesNums', 'action']
|
|
|
+ const b = ['salePrice', 'salesNums', 'action']
|
|
|
const c = this.settingColVal
|
|
|
const q = k.filter(item => c.indexOf(item) >= 0)
|
|
|
const r = a.concat(q).concat(b)
|