Browse Source

小需求-中文客户列表增加所属区域筛选,英文客户列表增加销售筛选

cxmo 1 year ago
parent
commit
cf4b3f91ec

+ 10 - 1
src/views/custom_manage/customList/customList.vue

@@ -24,6 +24,14 @@
 		<div class="customList_bot">
 		<div class="customList_bot">
 			<div class="customList_top">
 			<div class="customList_top">
 				<el-row :span="24">
 				<el-row :span="24">
+					<el-select v-model="fromArea" placeholder="请选择所属区域" style="width:200px;marginRight:10px;marginBottom:8px;" clearable @change="changeFromArea">
+						<el-option
+							v-for="item in areaArr"
+							:key="item"
+							:label="item.name"
+							:value="item.name">
+						</el-option>
+					</el-select>
 					<el-select v-model="type" placeholder="请选择客户类型" style="width:200px;marginRight:10px;marginBottom:8px;" clearable v-if="Role=='finance'||Role=='admin'" @change="changeType">
 					<el-select v-model="type" placeholder="请选择客户类型" style="width:200px;marginRight:10px;marginBottom:8px;" clearable v-if="Role=='finance'||Role=='admin'" @change="changeType">
 						<el-option
 						<el-option
 							v-for="item in typeArr"
 							v-for="item in typeArr"
@@ -1279,7 +1287,8 @@ ShareListDialog},
 				PackageType: this.setmealSelect ? Number(this.setmealSelect) : 0,
 				PackageType: this.setmealSelect ? Number(this.setmealSelect) : 0,
 				TodoStatus:this.todoType,
 				TodoStatus:this.todoType,
 				SortByTodo:this.SortByTodo,
 				SortByTodo:this.SortByTodo,
-				TryStage: this.act_trialTag
+				TryStage: this.act_trialTag,
+				FromArea:this.fromArea
 			}
 			}
 			customInterence.customList(params).then(res => {
 			customInterence.customList(params).then(res => {
 				if(res.Ret === 200) {
 				if(res.Ret === 200) {

+ 37 - 2
src/views/custom_manage/customList/customListEn.vue

@@ -8,6 +8,23 @@
         <el-button type="primary" @click="isUnDoStatisticShow=true" style="height: 40px;width: 110px;padding:0;text-align:center;line-height:40px;">未完成TO-DO</el-button>
         <el-button type="primary" @click="isUnDoStatisticShow=true" style="height: 40px;width: 110px;padding:0;text-align:center;line-height:40px;">未完成TO-DO</el-button>
       </div>
       </div>
       <div>
       <div>
+        <el-cascader
+            v-model="sales"
+            placeholder="请选择销售"
+            :options="salesArr"
+            :props="{
+                emitPath:false,
+                multiple: true,
+                label:'RealName',
+                children:'ChildrenList',
+                value:'AdminId'
+            }"
+            :show-all-levels="false"
+            collapse-tags
+            clearable
+            filterable
+            @change="getList('search')">
+        </el-cascader>
         <el-cascader
         <el-cascader
           v-model="varietyVal"
           v-model="varietyVal"
           :options="varietyOpt"
           :options="varietyOpt"
@@ -21,6 +38,7 @@
           }"
           }"
           placeholder="请选择阅读权限"
           placeholder="请选择阅读权限"
           @change="handleChangeVariety"
           @change="handleChangeVariety"
+          style="margin-left:20px"
         />
         />
         <el-input 
         <el-input 
           v-model="searchParams.Keywords" 
           v-model="searchParams.Keywords" 
@@ -250,12 +268,17 @@ import reportVarietyEnSet from '@/components/reportVarietyEnSet.vue'
         showSetVariety:false,
         showSetVariety:false,
         checkedVariety:[],
         checkedVariety:[],
         activeItem:{},//当前编辑权限的客户信息
         activeItem:{},//当前编辑权限的客户信息
+
+        //销售筛选
+        sales:[],
+        salesArr:[]
       }
       }
     },
     },
     created(){
     created(){
       this.getList()
       this.getList()
       this.getSellerList()
       this.getSellerList()
       this.getENReportVarietyOpts()
       this.getENReportVarietyOpts()
+      this.getSale()
     },  
     },  
     methods: {
     methods: {
       handleSaveVariety(){
       handleSaveVariety(){
@@ -327,7 +350,11 @@ import reportVarietyEnSet from '@/components/reportVarietyEnSet.vue'
         this.varietyVal&&this.varietyVal.forEach(_e => {
         this.varietyVal&&this.varietyVal.forEach(_e => {
           arr.push(_e[1])
           arr.push(_e[1])
         });
         });
-        customInterence.getCustomListEn({...this.searchParams,EnPermissionIds:arr.join(',')}).then(res=>{
+        customInterence.getCustomListEn({
+            ...this.searchParams,
+            EnPermissionIds:arr.join(','),
+            Sales:this.sales.join(',')
+        }).then(res=>{
           // console.log(res);
           // console.log(res);
           if(res.Ret == 200){
           if(res.Ret == 200){
             this.dataList = res.Data.List || []
             this.dataList = res.Data.List || []
@@ -508,7 +535,15 @@ import reportVarietyEnSet from '@/components/reportVarietyEnSet.vue'
           this.$message.success(`${Enabled===1?'禁用':'启用'}成功`)
           this.$message.success(`${Enabled===1?'禁用':'启用'}成功`)
           this.getList()
           this.getList()
         })
         })
-      }
+      },
+      /* 获取销售 */
+      getSale() {
+        customInterence.getSale({Status:0}).then(res => {
+            if(res.Ret === 200) {
+                this.salesArr = res.Data.List||[];
+            }
+        })
+      },
     },
     },
   }
   }
 </script>
 </script>

+ 9 - 2
src/views/custom_manage/customList/mixins/customlistMixin.js

@@ -29,7 +29,9 @@ export default {
             isShareRecodeDialogShow:false,//控制服务记录弹窗
             isShareRecodeDialogShow:false,//控制服务记录弹窗
             allowEdit:true,//是否允许编辑服务记录
             allowEdit:true,//是否允许编辑服务记录
 			isCloseCustomDialogShow:false,
 			isCloseCustomDialogShow:false,
-			closeReason:''
+			closeReason:'',
+			fromArea:'',
+			areaArr:[{name:'国内'},{name:'海外'}],
 		}
 		}
 	},
 	},
 
 
@@ -112,6 +114,11 @@ export default {
 				})
 				})
 				
 				
 			}).catch(()=>{})
 			}).catch(()=>{})
-		}
+		},
+		/* 筛选所属区域 */
+		changeFromArea(){
+			this.page_no = 1;
+			this.getTableData()
+		},
 	}
 	}
 }
 }