Browse Source

router/index.js

master
liupopo 1 year ago
parent
commit
84ffa346bc
  1. 4
      src/router/index.js
  2. 70
      src/views/orderreserve/distributionCount.vue

4
src/router/index.js

@ -395,7 +395,7 @@ export const constantRoutes = [{
path: '/orderreserve/subBranch', path: '/orderreserve/subBranch',
component: () => component: () =>
import('@/views/orderreserve/subBranch.vue'), import('@/views/orderreserve/subBranch.vue'),
name: 'subBranch', name: 'OrderreserveSubBranch',
meta: { meta: {
title: '支行配货统计' title: '支行配货统计'
} }
@ -404,7 +404,7 @@ export const constantRoutes = [{
path: '/orderreserve/allDistributionCount', path: '/orderreserve/allDistributionCount',
component: () => component: () =>
import('@/views/orderreserve/allDistributionCount.vue'), import('@/views/orderreserve/allDistributionCount.vue'),
name: 'allDistributionCount', name: 'OrderreserveAllDistributionCount',
meta: { meta: {
title: '总配货统计' title: '总配货统计'
} }

70
src/views/orderreserve/distributionCount.vue

@ -147,21 +147,27 @@
this.$refs['btnbar'].setButtonList(this.btnList) this.$refs['btnbar'].setButtonList(this.btnList)
}, },
created() { created() {
this.getAllStore() this.initBank()
// this.loadList() this.initStore()
this.getBankList() this.initBrand()
}, },
methods: { methods: {
// 绿 initBank() {
cell({ reqBank.listBankAll()
row, .then(resp => {
column, this.bankList = resp.data
rowIndex, })
columnIndex },
}) { initStore() {
if (columnIndex == 3) { reqBank.listStoreOfBank(this.page.params.bankSid)
return 'padding: 0px' .then(resp => {
} this.storeList = resp.data
})
},
initBrand() {
reqMall.listAllBrand().then(resp => {
this.brandList = resp.data
})
}, },
// //
clicksearchShow() { clicksearchShow() {
@ -184,47 +190,15 @@
break 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) { bankSelect(val) {
console.log('>>>>>>>>>bankSelect', val) console.log('>>>>>>>>>bankSelect', val)
this.page.params.bankSid = 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() { loadList() {
this.tableLoading = true this.tableLoading = true
req.distributionList(this.page).then((resp) => { req.pageOfCustomer(this.page).then((resp) => {
this.tableLoading = false this.tableLoading = false
if (resp.success) { if (resp.success) {
const data = resp.data const data = resp.data

Loading…
Cancel
Save