diff --git a/src/router/index.js b/src/router/index.js index 2dcae7c..d322c71 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -395,7 +395,7 @@ export const constantRoutes = [{ path: '/orderreserve/subBranch', component: () => import('@/views/orderreserve/subBranch.vue'), - name: 'subBranch', + name: 'OrderreserveSubBranch', meta: { title: '支行配货统计' } @@ -404,7 +404,7 @@ export const constantRoutes = [{ path: '/orderreserve/allDistributionCount', component: () => import('@/views/orderreserve/allDistributionCount.vue'), - name: 'allDistributionCount', + name: 'OrderreserveAllDistributionCount', meta: { title: '总配货统计' } diff --git a/src/views/orderreserve/distributionCount.vue b/src/views/orderreserve/distributionCount.vue index 62a5dae..270d4fe 100644 --- a/src/views/orderreserve/distributionCount.vue +++ b/src/views/orderreserve/distributionCount.vue @@ -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