Commit 78c736d0 authored by zhengke's avatar zhengke

修改

parent 5dff5bee
......@@ -87,13 +87,14 @@
</el-form-item>
<el-form-item label="参与人员">
<el-select class="multiple_input" filterable multiple collapse-tags v-model="form.EmployeeIdList" >
<el-option label='全部' :value='-1'></el-option>
<el-option v-for="item in EmployeeList" :label="item.EmName"
:value="item.EmployeeId" :key="item.EmployeeId"></el-option>
</el-select>
</el-form-item>
<el-form-item label="部门">
<el-select filterable v-model="form.DepartmentId" >
<el-option label='全部' :value='-1' :key='-1'></el-option>
<el-select filterable v-model="form.DepartmentId" @change='getDepart(form.DepartmentId)'>
<el-option label='全部' :value='-1'></el-option>
<el-option v-for="item in departmentList" :label="item.DepartmentName"
:value="item.DepartmentID" :key="item.DepartmentID"></el-option>
</el-select>
......@@ -147,7 +148,7 @@ export default {
ruleVisible:false,
form:{
BranchId:"",
DepartmentId:'',
DepartmentId:-1,
Description:"",
EmployeeIdList:[],
LineIdList:[],
......@@ -222,7 +223,6 @@ export default {
}
},
SetRules(item){
console.log(item);
this.ruleVisible=true;
this.form={
Id:item.Id,
......@@ -235,13 +235,14 @@ export default {
ManagerMoney:item.ManagerMoney,
DepartmentId:item.DepartmentId
}
// console.log("item",item);
// console.log("form",this.form);
this.departmentMsg.RB_Branch_Id=item.BranchId;
this.getDepartment();
this.getLineTeamList();
},
RulesOk(formName){
if(this.form.EmployeeIdList.length==0){
this.form.EmployeeIdList.push(-1)
}
this.$refs[formName].validate((valid) => {
if (valid) {
this.apipost(
......@@ -300,11 +301,9 @@ export default {
let msg = {
lineID: this.form.LineIdList[0],
}
console.log(" this.form.LineIdList[0]", this.form.LineIdList[0])
this.apipost('team_post_GetList', msg, res => {
if (res.data.resultCode == 1) {
this.LineTeamList = res.data.data;
console.log("this.LineTeamList",this.LineTeamList)
}
})
},
......@@ -339,9 +338,14 @@ export default {
linkageDepartment(){
this.departmentMsg.RB_Branch_Id=this.form.BranchId;
this.departmentList=[];
this.form.DepartmentId=-1;
this.getDepartment();
},
getDepart(id){
this.form.DepartmentId= id;
this.$forceUpdate();
},
getDepartment() {
this.apipost('admin_get_DepartmentGetList', this.departmentMsg, res => {
if(res.data.resultCode == 1) {
......@@ -352,11 +356,9 @@ export default {
getList(){
this.loading=true;
this.apipost("sellcommission_GetOPCommissionRuleList", this.obj, res => {
// console.log("ressfaf",res);
this.loading=false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data;
console.log(this.dataList,'dataList');
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment