|
@@ -217,7 +217,15 @@
|
|
|
:fetch-suggestions="getchangeDescribe"></el-autocomplete>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="状态变更的原因" prop="changeReason">
|
|
|
- <el-input type="textarea" v-model="form.changeReason" placeholder="请输入状态变更的原因"/>
|
|
|
+<!-- <el-input type="textarea" v-model="form.changeReason" placeholder="请输入状态变更的原因"/>-->
|
|
|
+ <el-autocomplete
|
|
|
+ type="textarea"
|
|
|
+ class="inline-input"
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="form.changeReason"
|
|
|
+ placeholder="请输入状态变更的原因"
|
|
|
+ :trigger-on-focus="false"
|
|
|
+ :fetch-suggestions="getReason"></el-autocomplete>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="破锁编号" prop="lockNo">
|
|
|
<el-select v-model="form.lockNo" placeholder="请选择锁编号" multiple clearable size="small" filterable
|
|
@@ -421,7 +429,7 @@ import {
|
|
|
updateSafetychange,
|
|
|
exportSafetychange,
|
|
|
importTemplate,
|
|
|
- wordView, listChangeDescribe
|
|
|
+ wordView, listChangeDescribe, listSAFA, listChangeReason
|
|
|
} from "@/api/apply/safetychange";
|
|
|
import {treeselect} from "@/api/system/dept";
|
|
|
import {getToken} from "@/utils/auth";
|
|
@@ -446,6 +454,7 @@ export default {
|
|
|
executorList: [],
|
|
|
safaerList: [],
|
|
|
changeDescribeList: [],
|
|
|
+ reasonList: [],
|
|
|
statusFlag: '',
|
|
|
approveStatusFlag: '',
|
|
|
status: {0: "未完成", 1: "已完成"},
|
|
@@ -611,6 +620,14 @@ export default {
|
|
|
}
|
|
|
return cb(list);
|
|
|
},
|
|
|
+ getReason(val, cb) {
|
|
|
+ let list = [];
|
|
|
+ for (const item of this.reasonList) {
|
|
|
+ if (item.changeReason.indexOf(val) > -1)
|
|
|
+ list.push({"value": item.changeReason})
|
|
|
+ }
|
|
|
+ return cb(list);
|
|
|
+ },
|
|
|
openDetail(row) {
|
|
|
this.statusFlag = '';
|
|
|
this.approveStatusFlag = '';
|
|
@@ -682,9 +699,13 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
this.changeDescribeList = [];
|
|
|
+ this.reasonList = [];
|
|
|
listChangeDescribe({}).then(res => {
|
|
|
this.changeDescribeList = res.data
|
|
|
})
|
|
|
+ listChangeReason({}).then(res => {
|
|
|
+ this.reasonList = res.data
|
|
|
+ })
|
|
|
},
|
|
|
/** 查询部门下拉树结构 */
|
|
|
getTreeselect() {
|