增加多店的联动
This commit is contained in:
@@ -102,8 +102,9 @@ export default {
|
||||
methods: {
|
||||
getData() {
|
||||
const {$http, $waitFor} = window
|
||||
const {groupCodeList, type, compareDate} = this.search
|
||||
console.log("筛选条件:", this.search)
|
||||
$waitFor($http && this.search.groupCodeList.length > 0).then(() => this.getStores())
|
||||
$waitFor($http && groupCodeList.length > 0 && (type != 3 || compareDate)).then(() => this.getStores())
|
||||
.then(codes => Promise.all([this.getCameras(), this.getStoreKeyGoods(), this.getCategorySales()]).then(() => codes))
|
||||
.then((codes = []) => {
|
||||
this.stores = codes?.map(storeCode => {
|
||||
|
||||
Reference in New Issue
Block a user