Commit c22777c7 by zhangxw

服务商负责人数据问题修改

1 parent 59ed6172
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { getShopSetting, listByMerchantIdAndYear, shopSetting, findSellerMerchantStaffList, getResidentStaffList } from '@/api/shopConfig.js' import { getShopSetting, listByMerchantIdAndYear, shopSetting, findSellerMerchantStaffList, getResidentStaffList } from '@/api/shopConfig.js'
import { serviceGetMerchantList } from '@api/merchant' import { serviceGetMerchantList } from '@api/merchant'
// import { findMerchantStaffList } from '@api/index' import { findMerchantStaffList } from '@api/index'
import { merchantStaffByRoleList } from '@api/index' import { merchantStaffByRoleList } from '@api/index'
import { businessNature, sceneForShop } from '@/common/constants.js' import { businessNature, sceneForShop } from '@/common/constants.js'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
...@@ -386,6 +386,7 @@ export default { ...@@ -386,6 +386,7 @@ export default {
this.nowDay = nowDate.getDate() this.nowDay = nowDate.getDate()
this.info = this.$route.params?.info this.info = this.$route.params?.info
this.getShopSetting(this.info) this.getShopSetting(this.info)
this.findMerchantStaffList()
this.merchantStaffByRoleList() this.merchantStaffByRoleList()
this.getSelectList(this.info) this.getSelectList(this.info)
this.listByMerchantIdAndYear(this.year) this.listByMerchantIdAndYear(this.year)
...@@ -486,9 +487,14 @@ export default { ...@@ -486,9 +487,14 @@ export default {
userNum: item.staffPhone userNum: item.staffPhone
} }
}) })
})
},
// 获取全部员工 过滤出服务商负责人可选数据
findMerchantStaffList() {
findMerchantStaffList({ merchantId: -1 }).then(res => {
// 服务商负责人(根据角色名过滤) // 服务商负责人(根据角色名过滤)
let arr = [] let arr = []
copyResult.map(val => { res?.map(val => {
if (val.roleName == baseConfig.roleName) arr.push({ if (val.roleName == baseConfig.roleName) arr.push({
userId: val.uuid, userId: val.uuid,
userName: val.staffName userName: val.staffName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!