|
@@ -18,6 +18,7 @@
|
|
|
:rowKey="(record) => record.goodsSn"
|
|
|
:columns="nowColumns"
|
|
|
:dataSource="loadData"
|
|
|
+ :loading="loading"
|
|
|
:scroll="{ y: 200 }"
|
|
|
:pagination="false"
|
|
|
bordered>
|
|
@@ -32,6 +33,7 @@
|
|
|
:rowKey="(record) => record.goodsCode"
|
|
|
:columns="nowUnColumns"
|
|
|
:dataSource="unLoadData"
|
|
|
+ :loading="loading"
|
|
|
:scroll="{ y: 200 }"
|
|
|
:pagination="false"
|
|
|
bordered>
|
|
@@ -157,13 +159,16 @@ export default {
|
|
|
{ title: this.paramsData && this.paramsData.promoRuleType == 'PROMO_PROD' ? '特惠单价(¥)' : '换购单价(¥)', dataIndex: 'goodsPrice', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '备注', dataIndex: 'remark', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
|
|
|
],
|
|
|
- unLoadData: []
|
|
|
+ unLoadData: [],
|
|
|
+ loading: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
getData () {
|
|
|
const _this = this
|
|
|
+ this.loading = true
|
|
|
promoRuleGoods(this.paramsData).then(res => {
|
|
|
+ this.loading = false
|
|
|
if (res.status == 200) {
|
|
|
if (res.data.okGoodsList && res.data.okGoodsList.length > 0) {
|
|
|
res.data.okGoodsList.map((item, index) => {
|