|
|
@ -147,21 +147,27 @@ |
|
|
|
this.$refs['btnbar'].setButtonList(this.btnList) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getAllStore() |
|
|
|
// this.loadList() |
|
|
|
this.getBankList() |
|
|
|
this.initBank() |
|
|
|
this.initStore() |
|
|
|
this.initBrand() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 改变单行蓝色和绿色 |
|
|
|
cell({ |
|
|
|
row, |
|
|
|
column, |
|
|
|
rowIndex, |
|
|
|
columnIndex |
|
|
|
}) { |
|
|
|
if (columnIndex == 3) { |
|
|
|
return 'padding: 0px' |
|
|
|
} |
|
|
|
initBank() { |
|
|
|
reqBank.listBankAll() |
|
|
|
.then(resp => { |
|
|
|
this.bankList = resp.data |
|
|
|
}) |
|
|
|
}, |
|
|
|
initStore() { |
|
|
|
reqBank.listStoreOfBank(this.page.params.bankSid) |
|
|
|
.then(resp => { |
|
|
|
this.storeList = resp.data |
|
|
|
}) |
|
|
|
}, |
|
|
|
initBrand() { |
|
|
|
reqMall.listAllBrand().then(resp => { |
|
|
|
this.brandList = resp.data |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 搜索条件效果 |
|
|
|
clicksearchShow() { |
|
|
@ -184,47 +190,15 @@ |
|
|
|
break |
|
|
|
} |
|
|
|
}, |
|
|
|
selectTime1(val) { |
|
|
|
console.log('selectTime1:', val) |
|
|
|
this.page.params.startDate = val |
|
|
|
}, |
|
|
|
selectTime2(val) { |
|
|
|
console.log('selectTime2:', val) |
|
|
|
this.page.params.endDate = val |
|
|
|
}, |
|
|
|
|
|
|
|
giftPackSelect(val) { |
|
|
|
console.log('>>>>>>>>>giftPackSelect', val) |
|
|
|
this.page.params.store = val |
|
|
|
}, |
|
|
|
|
|
|
|
getBankList() { |
|
|
|
req2.bankSelect() |
|
|
|
.then(resp => { |
|
|
|
console.log('>>>>>>>>>getBankList', resp.data) |
|
|
|
this.bankList = resp.data |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
bankSelect(val) { |
|
|
|
console.log('>>>>>>>>>bankSelect', val) |
|
|
|
this.page.params.bankSid = val |
|
|
|
this.page.params.store = '' |
|
|
|
this.initStore() |
|
|
|
}, |
|
|
|
cardTypeSelect(val) { |
|
|
|
console.log('>>>>>>>>>cardTypeSelect', val) |
|
|
|
this.page.params.cardType = val |
|
|
|
}, |
|
|
|
getAllStore() { |
|
|
|
req.getAllStore().then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.giftPackList = resp.data |
|
|
|
} |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
|
|
|
|
loadList() { |
|
|
|
this.tableLoading = true |
|
|
|
req.distributionList(this.page).then((resp) => { |
|
|
|
req.pageOfCustomer(this.page).then((resp) => { |
|
|
|
this.tableLoading = false |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
|