增加多店的联动

This commit is contained in:
2024-07-08 23:03:11 +08:00
parent 31586c2b00
commit dd04a64368
2 changed files with 7 additions and 3 deletions

View File

@@ -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 => {