|
@@ -110,7 +110,15 @@
|
|
|
</div>
|
|
|
<div v-if="taskName=='安全评估人1'">
|
|
|
<el-form-item label="安全评估及临时的安全措施" prop="safa" label-width="190px">
|
|
|
- <el-input type="textarea" v-model="form.safa" placeholder="请输入安全评估及临时的安全措施"/>
|
|
|
+<!-- <el-input type="textarea" v-model="form.safa" placeholder="请输入安全评估及临时的安全措施"/>-->
|
|
|
+ <el-autocomplete
|
|
|
+ type="textarea"
|
|
|
+ class="inline-input"
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="form.safa"
|
|
|
+ placeholder="请输入安全评估及临时的安全措施"
|
|
|
+ :trigger-on-focus="false"
|
|
|
+ :fetch-suggestions="getSAFA"></el-autocomplete>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div v-if="taskName=='变更执行人'">
|
|
@@ -132,17 +140,17 @@
|
|
|
<el-radio label="NA">NA</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
-<!-- <el-form-item label="确认人" prop="resetConfirmer1">
|
|
|
- <el-select v-model="form.resetConfirmer1" placeholder="请选择确认人" clearable size="small" filterable
|
|
|
- style="width: 100%">
|
|
|
- <el-option
|
|
|
- v-for="item in resetConfirmerList"
|
|
|
- :key="item.userId"
|
|
|
- :label="item.nickName"
|
|
|
- :value="item.userId"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>-->
|
|
|
+ <!-- <el-form-item label="确认人" prop="resetConfirmer1">
|
|
|
+ <el-select v-model="form.resetConfirmer1" placeholder="请选择确认人" clearable size="small" filterable
|
|
|
+ style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in resetConfirmerList"
|
|
|
+ :key="item.userId"
|
|
|
+ :label="item.nickName"
|
|
|
+ :value="item.userId"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>-->
|
|
|
</div>
|
|
|
<el-form-item label="备注" prop="remarks" v-if="taskName!='申请人提交申请'">
|
|
|
<el-input type="textarea" v-model="form.remarks" placeholder="选填"/>
|
|
@@ -181,7 +189,7 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import {getSafetychange, handle} from "@/api/apply/safetychange";
|
|
|
+import {getSafetychange, handle, listChangeReason, listSAFA} from "@/api/apply/safetychange";
|
|
|
import {getHistorylist} from "@/api/ehs/approvedanger";
|
|
|
import {listUserPost} from "@/api/system/user";
|
|
|
|
|
@@ -199,6 +207,7 @@ export default {
|
|
|
resetConfirmerList: [],
|
|
|
statusList: [],
|
|
|
approveStatusList: [],
|
|
|
+ safaList: [],
|
|
|
//流转列表
|
|
|
historyList: [],
|
|
|
historyLoading: true,
|
|
@@ -271,15 +280,15 @@ export default {
|
|
|
businessKey: '',
|
|
|
offlinevalve: {}
|
|
|
},
|
|
|
- desFlag:false,
|
|
|
+ desFlag: false,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- init(id, taskId, processId, taskName, flag,desFlag) {
|
|
|
+ init(id, taskId, processId, taskName, flag, desFlag) {
|
|
|
this.reset();
|
|
|
this.devList = [];
|
|
|
- this.desFlag=desFlag;
|
|
|
- this.dataForm={} ;
|
|
|
+ this.desFlag = desFlag;
|
|
|
+ this.dataForm = {};
|
|
|
this.historyList = [];
|
|
|
this.dataForm.id = id || 0;
|
|
|
this.form.id = id || 0;
|
|
@@ -290,15 +299,15 @@ export default {
|
|
|
this.taskForm.taskId = taskId;
|
|
|
this.taskForm.businessKey = id;
|
|
|
this.dataForm.processId = processId;
|
|
|
- this.statusFlag='';
|
|
|
- this.approveStatusFlag='';
|
|
|
+ this.statusFlag = '';
|
|
|
+ this.approveStatusFlag = '';
|
|
|
getSafetychange(id).then(res => {
|
|
|
this.dataForm = res.data;
|
|
|
this.devList.push(this.dataForm);
|
|
|
- if (taskName == '申请人提交申请') {
|
|
|
- this.form.changeReason=this.dataForm.changeReason;
|
|
|
- this.form.changeDescribe=this.dataForm.changeDescribe;
|
|
|
- }
|
|
|
+ if (taskName == '申请人提交申请') {
|
|
|
+ this.form.changeReason = this.dataForm.changeReason;
|
|
|
+ this.form.changeDescribe = this.dataForm.changeDescribe;
|
|
|
+ }
|
|
|
|
|
|
if (this.dataForm.status === 1) {
|
|
|
this.statusFlag = 'success';
|
|
@@ -326,6 +335,17 @@ export default {
|
|
|
}).then(response => {
|
|
|
this.resetConfirmerList = response;
|
|
|
});
|
|
|
+ listSAFA({}).then(res => {
|
|
|
+ this.safaList = res.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getSAFA(val, cb) {
|
|
|
+ let list = [];
|
|
|
+ for (const item of this.safaList) {
|
|
|
+ if (item.safa.indexOf(val) > -1)
|
|
|
+ list.push({"value": item.safa})
|
|
|
+ }
|
|
|
+ return cb(list);
|
|
|
},
|
|
|
statusFormat(row, column) {
|
|
|
let s = this.selectDictLabel(this.statusList, row.status);
|
|
@@ -378,8 +398,8 @@ export default {
|
|
|
updatedate: null,
|
|
|
deptId: null,
|
|
|
approveStatus: null,
|
|
|
- apNo:null,
|
|
|
- processId:null,
|
|
|
+ apNo: null,
|
|
|
+ processId: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -402,7 +422,7 @@ export default {
|
|
|
this.submitDisabled = true;
|
|
|
this.taskForm.condition = val;
|
|
|
this.taskForm.safetychange = this.form;
|
|
|
- handle(this.taskForm).then(res=>{
|
|
|
+ handle(this.taskForm).then(res => {
|
|
|
this.msgSuccess("审核成功");
|
|
|
this.visible = false;
|
|
|
this.$emit('refreshDataList')
|