|
@@ -46,7 +46,7 @@
|
|
|
|
|
|
<div class="table-page-search-wrapper">
|
|
<div class="table-page-search-wrapper">
|
|
<a-row :gutter="15" type="flex" justify="space-between" align="middle">
|
|
<a-row :gutter="15" type="flex" justify="space-between" align="middle">
|
|
- <a-col :md="8" :sm="24" style="text-align:left;">
|
|
|
|
|
|
+ <a-col :md="12" :sm="24" style="text-align:left;">
|
|
<a-dropdown>
|
|
<a-dropdown>
|
|
<a-menu slot="overlay" @click="handleMenuClick">
|
|
<a-menu slot="overlay" @click="handleMenuClick">
|
|
<a-menu-item key="0" id="salesEdit-pl-0">
|
|
<a-menu-item key="0" id="salesEdit-pl-0">
|
|
@@ -86,7 +86,7 @@
|
|
@click="handleMenuClick({key:2})"
|
|
@click="handleMenuClick({key:2})"
|
|
><a-icon type="delete"/> 全部删除</a-button>
|
|
><a-icon type="delete"/> 全部删除</a-button>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="16" :sm="24" style="text-align:right;">
|
|
|
|
|
|
+ <a-col :md="12" :sm="24" style="text-align:right;">
|
|
<a-button
|
|
<a-button
|
|
type="link"
|
|
type="link"
|
|
class="button-info"
|
|
class="button-info"
|
|
@@ -327,20 +327,20 @@ export default {
|
|
{ title: '序号', dataIndex: 'no', width: '40px', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '40px', align: 'center' },
|
|
{ title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '100px', align: 'left' },
|
|
{ title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '100px', align: 'left' },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '150px', align: 'left', ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '150px', align: 'left', ellipsis: true },
|
|
- { title: '销售数量', scopedSlots: { customRender: 'salesNums' }, width: '100px', align: 'center' },
|
|
|
|
|
|
+ { title: '销售数量', scopedSlots: { customRender: 'salesNums' }, width: '80px', align: 'center' },
|
|
{ title: '库存', dataIndex: 'stockQty', scopedSlots: { customRender: 'stockQty' }, width: '100px', align: 'center' },
|
|
{ title: '库存', dataIndex: 'stockQty', scopedSlots: { customRender: 'stockQty' }, width: '100px', align: 'center' },
|
|
{ title: '出库仓库', scopedSlots: { customRender: 'warehouseBox' }, width: '100px', align: 'center' },
|
|
{ title: '出库仓库', scopedSlots: { customRender: 'warehouseBox' }, width: '100px', align: 'center' },
|
|
{ title: '单位', dataIndex: 'productEntity.unit', width: '60px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'productEntity.unit', width: '60px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '100px', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '100px', align: 'center' }
|
|
]
|
|
]
|
|
if (this.showStockCol) {
|
|
if (this.showStockCol) {
|
|
- arr.splice(5, 0, { title: '第三方库存', dataIndex: 'thirdStockQty', width: '100px', align: 'center', customRender: text => ((text || text == 0) ? text : '--') })
|
|
|
|
|
|
+ arr.splice(5, 0, { title: '第三方库存', dataIndex: 'thirdStockQty', width: '80px', align: 'center', customRender: text => ((text || text == 0) ? text : '--') })
|
|
}
|
|
}
|
|
// 售价权限
|
|
// 售价权限
|
|
if (this.$hasPermissions('B_salesEdit_salesPrice')) {
|
|
if (this.$hasPermissions('B_salesEdit_salesPrice')) {
|
|
- arr.splice(3, 0, { title: '售价', dataIndex: 'price', width: '100px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
|
|
- arr.splice(4, 0, { title: '价格级别', dataIndex: 'priceLevelDictValue', width: '100px', align: 'center', customRender: function (text) { return text || '--' } })
|
|
|
|
- arr.splice(this.showStockCol ? 8 : 7, 0, { title: '售价小计', dataIndex: 'totalAmount', width: '100px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
|
|
|
|
+ arr.splice(3, 0, { title: '售价', dataIndex: 'price', width: '80px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
|
|
+ arr.splice(4, 0, { title: '价格级别', dataIndex: 'priceLevelDictValue', width: '80px', align: 'center', customRender: function (text) { return text || '--' } })
|
|
|
|
+ arr.splice(this.showStockCol ? 8 : 7, 0, { title: '售价小计', dataIndex: 'totalAmount', width: '80px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
}
|
|
}
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|