Commit 78c736d0 authored by zhengke's avatar zhengke

修改

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