Commit aa1afbb2 authored by 黄奎's avatar 黄奎
parents a8d229dc 3a4e18e7
...@@ -107,11 +107,11 @@ ...@@ -107,11 +107,11 @@
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'></el-option> <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="系列" v-show="form.LineIdList.length==1 && form.LineIdList[0]!=-1"> <!-- <el-form-item label="系列" v-show="form.LineIdList.length==1 && form.LineIdList[0]!=-1">
<el-select class="multiple_input" filterable multiple collapse-tags v-model="form.LtIdList" > <el-select class="multiple_input" filterable multiple collapse-tags v-model="form.LtIdList" >
<el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'></el-option> <el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item> -->
<el-form-item label="描述"> <el-form-item label="描述">
<el-input class="w220" v-model="form.Description"></el-input> <el-input class="w220" v-model="form.Description"></el-input>
</el-form-item> </el-form-item>
...@@ -236,6 +236,7 @@ export default { ...@@ -236,6 +236,7 @@ export default {
this.getLineList(); this.getLineList();
this.getList(); this.getList();
this.getEmployeeList(); this.getEmployeeList();
this.getDepartment();
}, },
methods:{ methods:{
...@@ -294,7 +295,7 @@ export default { ...@@ -294,7 +295,7 @@ export default {
FInternMoney:item.FInternMoney, FInternMoney:item.FInternMoney,
} }
this.departmentMsg.RB_Branch_Id=item.BranchId; this.departmentMsg.RB_Branch_Id=item.BranchId;
this.getDepartment();
this.getLineTeamList(); this.getLineTeamList();
}, },
RulesOk(formName){ RulesOk(formName){
...@@ -307,10 +308,10 @@ export default { ...@@ -307,10 +308,10 @@ export default {
this.Error("请选择分负责OP!") this.Error("请选择分负责OP!")
return; return;
} }
if(this.form.FZLEmployeeIdList.length==0){ // if(this.form.FZLEmployeeIdList.length==0){
this.Error("请选择分助理!") // this.Error("请选择分助理!")
return; // return;
} // }
if(this.form.FInternMoney==0){ if(this.form.FInternMoney==0){
this.Error("请填写分负责人金额!") this.Error("请填写分负责人金额!")
return; return;
...@@ -415,9 +416,9 @@ export default { ...@@ -415,9 +416,9 @@ export default {
linkageDepartment(val){ linkageDepartment(val){
this.departmentMsg.RB_Branch_Id=this.form.BranchId; this.departmentMsg.RB_Branch_Id=this.form.BranchId;
this.departmentList=[]; // this.departmentList=[];
this.form.DepartmentId=-1; this.form.DepartmentId=-1;
this.getDepartment(); // this.getDepartment();
if(this.departmentMsg.RB_Branch_Id==0){ if(this.departmentMsg.RB_Branch_Id==0){
this.stateShow=false; this.stateShow=false;
...@@ -432,12 +433,13 @@ export default { ...@@ -432,12 +433,13 @@ export default {
}, },
getDepart(id){ getDepart(id){
this.form.DepartmentId= id; this.form.DepartmentId= id;
this.$forceUpdate(); // 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) {
this.departmentList = res.data.data; this.departmentList = res.data.data;
console.log("this.departmentList",this.departmentList)
} }
}, err => {}) }, err => {})
}, },
......
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