|
|
|
@ -608,8 +608,8 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="状态"> |
|
|
|
<el-select v-model="seqDetailData.status" style="width: 100px" placeholder="请选择"> |
|
|
|
<el-option label="下达" value="下达"></el-option> |
|
|
|
<el-option label="关闭" value="关闭"></el-option> |
|
|
|
<el-option label="下达" value="N"></el-option> |
|
|
|
<el-option label="关闭" value="Y"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -1968,7 +1968,7 @@ |
|
|
|
operationDesc: '', |
|
|
|
qtyrequired: '', |
|
|
|
lotsize: '', |
|
|
|
status: '下达' |
|
|
|
status: 'N' |
|
|
|
}, |
|
|
|
seqDetailColumnList: [ |
|
|
|
{ |
|
|
|
@ -2598,16 +2598,16 @@ |
|
|
|
getOperatorList () { |
|
|
|
this.operatorData.flag = '1' |
|
|
|
this.operatorData.bu = this.detailData.site + '_' + this.detailData.buNo |
|
|
|
if (this.roleList.length > 0) { |
|
|
|
let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
|
if (filterList.length > 0) { |
|
|
|
this.operatorData.roleId = filterList[0].roleId |
|
|
|
} else { |
|
|
|
this.operatorData.roleId = this.roleList[0].roleId |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.operatorData.roleId = '' |
|
|
|
} |
|
|
|
// if (this.roleList.length > 0) { |
|
|
|
// let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
|
// if (filterList.length > 0) { |
|
|
|
// this.operatorData.roleId = filterList[0].roleId |
|
|
|
// } else { |
|
|
|
// this.operatorData.roleId = this.roleList[0].roleId |
|
|
|
// } |
|
|
|
// } else { |
|
|
|
// this.operatorData.roleId = '' |
|
|
|
// } |
|
|
|
// 先清空缓存选中 |
|
|
|
this.$nextTick(() => this.$refs.operatorTable.clearSelection()) |
|
|
|
// 拿到选中的人员编号 |
|
|
|
@ -2711,22 +2711,26 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.operatorData.flag === '1') { |
|
|
|
this.detailData.operator = '' |
|
|
|
this.detailData.operatorName = '' |
|
|
|
for (let i = 0; i < this.dataListSelections2.length; i++) { |
|
|
|
if (!this.detailData.operator.split(';').includes(this.dataListSelections2[i].adminID)) { |
|
|
|
//if (!this.detailData.operator.split(';').includes(this.dataListSelections2[i].adminID)) { |
|
|
|
this.detailData.operatorName = this.detailData.operatorName + ";" + this.dataListSelections2[i].adminName |
|
|
|
this.detailData.operator = this.detailData.operator + ";" + this.dataListSelections2[i].adminID |
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
if (this.detailData.operator.charAt(0) === ';') { |
|
|
|
this.detailData.operator = this.detailData.operator.substring(1) |
|
|
|
this.detailData.operatorName = this.detailData.operatorName.substring(1) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.detailData.responsiblePerson = '' |
|
|
|
this.detailData.responsiblePersonName = '' |
|
|
|
for (let i = 0; i < this.dataListSelections2.length; i++) { |
|
|
|
if (!this.detailData.responsiblePerson.split(';').includes(this.dataListSelections2[i].adminID)) { |
|
|
|
//if (!this.detailData.responsiblePerson.split(';').includes(this.dataListSelections2[i].adminID)) { |
|
|
|
this.detailData.responsiblePersonName = this.detailData.responsiblePersonName + ";" + this.dataListSelections2[i].adminName |
|
|
|
this.detailData.responsiblePerson = this.detailData.responsiblePerson + ";" + this.dataListSelections2[i].adminID |
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
if (this.detailData.responsiblePerson.charAt(0) === ';') { |
|
|
|
this.detailData.responsiblePerson = this.detailData.responsiblePerson.substring(1) |
|
|
|
|