|
|
|
@ -598,7 +598,7 @@ |
|
|
|
<el-dialog title="到达" :close-on-click-modal="false" v-drag :visible.sync="chooseReachModelFlag" width="410px"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item > |
|
|
|
<span style="cursor: pointer" slot="label" @click="getOperatorList()"><a>选择到达人员</a></span> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getOperatorList(1)"><a>选择到达人员</a></span> |
|
|
|
<el-input v-model="saveData.operatorName" style="width: 389px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -1979,10 +1979,15 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取机修人员列表 |
|
|
|
getOperatorList () { |
|
|
|
getOperatorList (param) { |
|
|
|
this.operatorData.bu = this.saveData.site + '_' + this.saveData.buNo |
|
|
|
if (this.roleList.length > 0) { |
|
|
|
let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
|
let filterList |
|
|
|
if (param === 1) { |
|
|
|
filterList = this.roleList.filter(item => item.roleName === '换线组') |
|
|
|
} else { |
|
|
|
filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
|
} |
|
|
|
if (filterList.length > 0) { |
|
|
|
this.operatorData.roleId = filterList[0].roleId |
|
|
|
} else { |
|
|
|
@ -2302,12 +2307,12 @@ |
|
|
|
this.$message.warning('请选择到达人员!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.buNo != '01-Label' && this.planPeople){ |
|
|
|
if (!this.saveData.operatorName.includes(this.planPeople)){ |
|
|
|
this.$message.warning('到达人员中不包含计划人员!') |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
// if (this.buNo != '01-Label' && this.planPeople){ |
|
|
|
// if (!this.saveData.operatorName.includes(this.planPeople)){ |
|
|
|
// this.$message.warning('到达人员中不包含计划人员!') |
|
|
|
// return |
|
|
|
// } |
|
|
|
// } |
|
|
|
let tempData = { |
|
|
|
site: this.saveData.site, |
|
|
|
buNo: this.saveData.buNo, |
|
|
|
|