|
@@ -50,13 +50,13 @@ export default {
|
|
|
classTree
|
|
|
},
|
|
|
methods:{
|
|
|
- async queryAgentiInfo () {
|
|
|
+ async queryAgentiInfo (callback) {
|
|
|
let param = {
|
|
|
"id": 20221223141802,
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- // "sys_enterpriseid":this.sys_enterpriseid(),
|
|
|
+ "sys_enterpriseid":this.sys_enterpriseid(),
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
@@ -74,8 +74,9 @@ export default {
|
|
|
this.tradefield = ''
|
|
|
// this.clickField(false)
|
|
|
}
|
|
|
+ callback && callback()
|
|
|
},
|
|
|
- async queryBrands () {
|
|
|
+ async queryBrands (callback) {
|
|
|
let param = {
|
|
|
"id": "20220924163702",
|
|
|
"content": {
|
|
@@ -87,18 +88,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (!this.sys_enterpriseid()) delete param.content.sys_enterpriseid
|
|
|
- return new Promise(async (re,rej) => {
|
|
|
- const res = await this.$api.requested(param)
|
|
|
- this.brands = res.data
|
|
|
- if (this.brands.length) {
|
|
|
- this.brand_act = res.data[0].sa_brandid
|
|
|
- // this.clickBrand(res.data[0].sa_brandid)
|
|
|
- } else {
|
|
|
- this.brand_act = 0
|
|
|
- // this.clickBrand(this.brand_act)
|
|
|
- }
|
|
|
- re()
|
|
|
- })
|
|
|
+ const res = await this.$api.requested(param)
|
|
|
+ this.brands = res.data
|
|
|
+ if (this.brands.length) {
|
|
|
+ this.brand_act = res.data[0].sa_brandid
|
|
|
+ // this.clickBrand(res.data[0].sa_brandid)
|
|
|
+ } else {
|
|
|
+ this.brand_act = 0
|
|
|
+ // this.clickBrand(this.brand_act)
|
|
|
+ }
|
|
|
+ callback && callback()
|
|
|
|
|
|
},
|
|
|
|