|
|
|
@ -167,7 +167,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 slot="label" @click="getOperatorList()"><a>选择计划执行人员</a></span> |
|
|
|
<span slot="label" @click="getOperatorList(0)"><a>选择计划执行人员</a></span> |
|
|
|
<el-input v-model="this.xdplanOperatorName" style="width: 389px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -298,7 +298,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :rules="saveRules.planOperatorName"> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getOperatorList"><a>计划维修人员</a></span> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getOperatorList(0)"><a>计划维修人员</a></span> |
|
|
|
<el-input v-model="saveModalData.planOperatorName" disabled style="width: 130px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
@ -1561,15 +1561,28 @@ |
|
|
|
} |
|
|
|
this.saveFeedMatterFlag = true |
|
|
|
}, |
|
|
|
getClassesList() { |
|
|
|
async getClassesList() { |
|
|
|
let split = this.saveModalData.bu.split('_') |
|
|
|
let params = { |
|
|
|
site: split[0], |
|
|
|
buNo: split[1] |
|
|
|
} |
|
|
|
getClassesList(params).then(({data}) => { |
|
|
|
await getClassesList(params).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.classesList = data.rows |
|
|
|
let h = new Date().getHours(); |
|
|
|
this.classesList.forEach((options)=>{ |
|
|
|
//判断当前时间是白班|夜班 |
|
|
|
if (h >= 8 && h < 20){ |
|
|
|
if (options.description.includes('白班')){ |
|
|
|
this.$set(this.operatorData,'classesCode',options.code) |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (options.description.includes('夜班')){ |
|
|
|
this.$set(this.operatorData,'classesCode',options.code) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
@ -1683,13 +1696,25 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// 列表方法的回调 |
|
|
|
getBaseData (val) { |
|
|
|
async getBaseData (val) { |
|
|
|
if (this.tagNo === 201) { |
|
|
|
this.saveMatterData.trackingPersonnel = val.username |
|
|
|
} |
|
|
|
if (this.tagNo === 200) { |
|
|
|
this.saveModalData.objectID = val.ObjectID |
|
|
|
this.saveModalData.objectDesc = val.ObjectDesc |
|
|
|
if (val.deviceManager!=''&&val.deviceManager!=null){ |
|
|
|
let peopleList = val.deviceManager.split(';') |
|
|
|
await this.getOperatorList(1) |
|
|
|
peopleList.forEach((username)=>{ |
|
|
|
this.operatorList.forEach((item)=>{ |
|
|
|
if (item.adminID === username){ |
|
|
|
this.saveModalData.planOperator = item.adminID |
|
|
|
this.saveModalData.planOperatorName = item.adminName |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.tagNo === 1055) { |
|
|
|
this.saveModalData.defectID = val.DefectID |
|
|
|
@ -1843,7 +1868,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取机修人员列表 |
|
|
|
getOperatorList () { |
|
|
|
async getOperatorList (type) { |
|
|
|
this.operatorData.bu = this.saveModalData.bu |
|
|
|
this.$set(this.operatorData,'date',this.saveModalData.defectDate) |
|
|
|
if (this.roleList.length > 0) { |
|
|
|
@ -1859,12 +1884,14 @@ |
|
|
|
//先清空班次信息 |
|
|
|
this.$set(this.operatorData,'classesCode','') |
|
|
|
//根据bu查询班次信息 |
|
|
|
this.getClassesList() |
|
|
|
await this.getClassesList() |
|
|
|
// 查询人员 |
|
|
|
getOperatorListByOrder(this.operatorData).then(({data}) => { |
|
|
|
await getOperatorListByOrder(this.operatorData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.operatorList = data.rows |
|
|
|
this.operatorModelFlag = true |
|
|
|
if (type != 1){ |
|
|
|
this.operatorModelFlag = true |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.operatorList = [] |
|
|
|
} |
|
|
|
|