Selaa lähdekoodia

fix:调整业务员管理参数

wuguojie 1 vuosi sitten
vanhempi
commit
1bf0d31991

+ 1 - 1
src/api/modules/operation.ts

@@ -92,7 +92,7 @@ const operationApi = (axiosInstance: ApiInstance) => ({
     leaderId: string,
     getAll: number
   }) => axiosInstance.post('/userInfo/batchLeader', data), // 设置负责人
-  getUser: (data: GetUser) => axiosInstance.post('/userInfo/getUser', data), // 获取管理人/推荐人
+  getUser: (data: any) => axiosInstance.post('/userInfo/getUser', data), // 获取管理人/推荐人
   addBankCard: (data: AddBankCard) => axiosInstance.post('/userInfo/addBankCard', data), // 添加银行卡
   salesmanAuthSuccess: (data: { userInfoId: string }) => axiosInstance.post('/userInfo/salesmanAuthSuccess', data), // 审核通过
   salesmanAuthFailed: (data: {

+ 1 - 1
src/views/operationManagement/modules/addOperation.vue

@@ -714,7 +714,7 @@ let editId = ref('')
 const initEditData = (id, ids) => {
   if(ids) {
     editId.value = id
-    api.operationApi.operationDetail(ids).then(res => {
+    api.operationApi.operationDetail(id).then(res => {
       if(res?.code == 200) {
         let formData = res.data
         initTeamData(formData?.typeAttr==='5'?'1':formData?.typeAttr==='8'?'2':formData?.typeAttr==='7'?'3':'')

+ 3 - 1
src/views/operationManagement/modules/allocation.vue

@@ -53,7 +53,9 @@ let emits = defineEmits(['closeDialog'])
 // 初始化负责人
 let userList = ref([])
 const initUser = (id) => {
-  api.operationApi.getUser(id).then(res => {
+  api.operationApi.getUser({
+      deptId: id
+  }).then(res => {
     if(res.code == 200) {
       userList.value = res.data
     } else {

+ 9 - 8
src/views/operationManagement/operation.vue

@@ -94,7 +94,7 @@
               <el-dropdown-item command="启用">启用</el-dropdown-item>
               <el-dropdown-item command="禁用">禁用</el-dropdown-item>
               <el-dropdown-item command="删除">删除</el-dropdown-item>
-              <el-dropdown-item command="分配管理人">分配管理人</el-dropdown-item>
+<!--              <el-dropdown-item command="分配管理人">分配管理人</el-dropdown-item>-->
             </el-dropdown-menu>
           </template>
         </el-dropdown>
@@ -437,7 +437,7 @@ const dropdownCommand = (e) => {
           let ids = []
           if(selectedList.value.length>0) {
             selectedList.value.forEach(item => {
-              ids.push(item.id)
+              ids.push(item.userId)
             })
           } else {
             if(selectType == 'cur') {
@@ -472,7 +472,7 @@ const dropdownCommand = (e) => {
           let ids = []
           if(selectedList.value.length>0) {
             selectedList.value.forEach(item => {
-              ids.push(item.id)
+              ids.push(item.userId)
             })
           } else {
             if(selectType == 'cur') {
@@ -494,9 +494,10 @@ const dropdownCommand = (e) => {
 
       })
       break;
-    case '分配管理人':
-      allocationShow.value = true
-      break;
+    // case '分配管理人':
+    //   allocationShow.value = true
+    //
+    //   break;
   }
 }
 // 列表数据
@@ -576,7 +577,7 @@ const tableDataCommand = (scope, e) => {
       }).then(( action ) => {
         if(action === 'confirm') {
           let data = {
-            ids: [scope.row.id],
+            ids: [scope.row.userId],
             isEnable: 1,
             getAll: selectType.value == 'all'?1:0
           }
@@ -613,7 +614,7 @@ const tableDataCommand = (scope, e) => {
       }).then(( action ) => {
         if(action === 'confirm'){
           let data = {
-            ids: [scope.row.id],
+            ids: [scope.row.userId],
             isEnable: 0,
             getAll: selectType.value == 'all'?1:0
           }

+ 2 - 2
src/views/operationManagement/operationDetail.vue

@@ -418,7 +418,7 @@ let dialogShow = ref(false)
 const editDetail = () => {
   dialogShow.value = true
   nextTick(() => {
-    AddOperationRef.value.initEditData(dataDetail.value.userId)
+    AddOperationRef.value.initEditData(dataDetail.value.userId, dataDetail.value.id)
   })
 }
 const closeAddOperation = (text: string) => {
@@ -453,7 +453,7 @@ const imageView = (type) => {
 // 详情
 let dataDetail = ref(null)
 const initDetail = () => {
-  let id = myRoute.query?.ids
+  let id = myRoute.query?.id
   api.operationApi.operationDetail(id).then(res => {
     if(res?.code == 200) {
       dataDetail.value = res.data