|
@@ -351,7 +351,7 @@ import { mapGetters, mapActions } from 'vuex'
|
|
import ResetPwd from '@/views/user/ResetPwd.vue'
|
|
import ResetPwd from '@/views/user/ResetPwd.vue'
|
|
import newProduct from '@/views/productManagement/newProduct/modal.vue'
|
|
import newProduct from '@/views/productManagement/newProduct/modal.vue'
|
|
import { queryNewProductPage } from '@/api/product'
|
|
import { queryNewProductPage } from '@/api/product'
|
|
-import { bizStateCount, bizData, dealerData } from '@/api/data'
|
|
|
|
|
|
+import { bizStateCount, bizData, dealerData, findAllLookup } from '@/api/data'
|
|
export default {
|
|
export default {
|
|
name: 'Home',
|
|
name: 'Home',
|
|
components: { ResetPwd, newProduct },
|
|
components: { ResetPwd, newProduct },
|
|
@@ -787,7 +787,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['getLookUpDataByCode']),
|
|
|
|
|
|
+ ...mapActions(['getAllLookUp','getLookUpDataByCode']),
|
|
hasNewProduct () {
|
|
hasNewProduct () {
|
|
queryNewProductPage({ pageNo: 1, pageSize: 20, onlineFalg: this.onlineFalg }).then(res => {
|
|
queryNewProductPage({ pageNo: 1, pageSize: 20, onlineFalg: this.onlineFalg }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
@@ -884,9 +884,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated () {
|
|
activated () {
|
|
|
|
+ const vm = this
|
|
|
|
+
|
|
// 请求导航指引合计
|
|
// 请求导航指引合计
|
|
this.getNavCount()
|
|
this.getNavCount()
|
|
this.getMerchantData()
|
|
this.getMerchantData()
|
|
|
|
+
|
|
|
|
+ // 获取所有数据字典
|
|
|
|
+ this.getAllLookUp()
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {
|
|
next(vm => {
|
|
@@ -900,17 +905,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
vm.openResetPwd = true
|
|
vm.openResetPwd = true
|
|
}
|
|
}
|
|
- // 退货原因列表
|
|
|
|
- vm.getLookUpDataByCode({
|
|
|
|
- code: 'GOOD_PRODUCT_RETURN',
|
|
|
|
- key: 'goodReturnReason',
|
|
|
|
- isEnable: 1
|
|
|
|
- })
|
|
|
|
- vm.getLookUpDataByCode({
|
|
|
|
- code: 'DEFECTIVE_PRODUCT_RETURN',
|
|
|
|
- key: 'defectiveReturnReason',
|
|
|
|
- isEnable: 1
|
|
|
|
- })
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|