|
@@ -26,7 +26,7 @@
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data-source="list"
|
|
:data-source="list"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
- :scroll="{ y: 350 }"
|
|
|
|
|
|
+ :scroll="{ x: 1190, y: 350 }"
|
|
bordered>
|
|
bordered>
|
|
<!-- 销售数量 -->
|
|
<!-- 销售数量 -->
|
|
<template slot="salesNums" slot-scope="text, record">
|
|
<template slot="salesNums" slot-scope="text, record">
|
|
@@ -84,9 +84,9 @@ export default {
|
|
{ title: '成本价', dataIndex: 'cost', align: 'center', customRender: function (text) { return (text == undefined ? '--' : ('¥' + text)) } },
|
|
{ title: '成本价', dataIndex: 'cost', align: 'center', customRender: function (text) { return (text == undefined ? '--' : ('¥' + text)) } },
|
|
{ title: '原售价', dataIndex: 'productPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
|
|
{ title: '原售价', dataIndex: 'productPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
|
|
{ title: '促销价', dataIndex: 'promoRuleGoods.goodsPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
|
|
{ title: '促销价', dataIndex: 'promoRuleGoods.goodsPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
|
|
- { title: '数量', dataIndex: 'qty', scopedSlots: { customRender: 'salesNums' }, align: 'center' },
|
|
|
|
|
|
+ { title: '数量', dataIndex: 'qty', scopedSlots: { customRender: 'salesNums' }, width: 150, align: 'center' },
|
|
{ title: '单位', dataIndex: 'unit', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'unit', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '促销类型', dataIndex: 'promoRuleGoods.promoRuleTypeName', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
|
|
|
+ { title: '促销类型', dataIndex: 'promoRuleGoods.promoRuleTypeName', width: 200, align: 'center', customRender: function (text) { return text || '--' } }
|
|
],
|
|
],
|
|
selectedRowKeys: [], // Check here to configure the default column
|
|
selectedRowKeys: [], // Check here to configure the default column
|
|
selectedRows: [],
|
|
selectedRows: [],
|
|
@@ -99,6 +99,8 @@ export default {
|
|
getData (row) {
|
|
getData (row) {
|
|
this.loading = true
|
|
this.loading = true
|
|
this.salesBillDetailSn = row.salesBillDetailSn
|
|
this.salesBillDetailSn = row.salesBillDetailSn
|
|
|
|
+ this.selectedRowKeys = []
|
|
|
|
+ this.selectedRows = []
|
|
getPromoGoodsList({ salesBillDetailSn: row.salesBillDetailSn, buyerSn: this.buyerSn }).then(res => {
|
|
getPromoGoodsList({ salesBillDetailSn: row.salesBillDetailSn, buyerSn: this.buyerSn }).then(res => {
|
|
res.data.map(item => {
|
|
res.data.map(item => {
|
|
item.qty = 1
|
|
item.qty = 1
|