Commit c22777c7 by zhangxw

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

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