diff --git a/pages/eight_assignments/hot_work/gas/add.vue b/pages/eight_assignments/hot_work/gas/add.vue index 264dab6..50dc21d 100644 --- a/pages/eight_assignments/hot_work/gas/add.vue +++ b/pages/eight_assignments/hot_work/gas/add.vue @@ -2,19 +2,19 @@ - - + + - - + + - - + + (%LEL) - - + + @@ -36,19 +36,23 @@ export default { return { form: { /** 动火分析时间 */ - GAS_TIME: '', + ANALYZE_TIME: '', /** 分析点名称 */ - GAS_NAME: '', + ANALYZE_PLACE: '', /** 分析数据(%LEL) */ - GAS_NUMBER: '', + ANALYZE_RESULT: '', /** 分析人 */ - gasUserName: this.$store.getters.getUserInfo.NAME + ANALYZE_USER_NAME: this.$store.getters.getUserInfo.NAME, + ANALYZE_USER_ID: this.$store.getters.getUserInfo.USER_ID, + EW_RU_TASK_ID:'', + EW_RU_JOB_ID:'', + TYPE: '' }, rules: { - GAS_TIME: [{ type: 'string', required: true, message: '请选择动火分析时间', trigger: ['blur', 'change'] }], - GAS_NAME: [{ type: 'string', required: true, message: '请输入分析点名称', trigger: ['blur', 'change'] }], - GAS_NUMBER: [{ type: 'string', required: true, message: '请输入分析数据', trigger: ['blur', 'change'] }], - gasUserName: [{ type: 'string', required: true, message: '请输入分析人', trigger: ['blur', 'change'] }], + ANALYZE_TIME: [{ type: 'string', required: true, message: '请选择动火分析时间', trigger: ['blur', 'change'] }], + ANALYZE_PLACE: [{ type: 'string', required: true, message: '请输入分析点名称', trigger: ['blur', 'change'] }], + ANALYZE_RESULT: [{ type: 'string', required: true, message: '请输入分析数据', trigger: ['blur', 'change'] }], + ANALYZE_USER_NAME: [{ type: 'string', required: true, message: '请输入分析人', trigger: ['blur', 'change'] }], }, dateTimePicker: { show: false, @@ -59,6 +63,12 @@ export default { }, } }, + onLoad(query) { + this.form.EW_RU_TASK_ID = query.EW_RU_TASK_ID + this.TYPE = query.TYPE + this.form.EW_RU_JOB_ID = query.EW_RU_JOB_ID + this.getData() + }, methods: { fnDateTimePickerClick(event) { this.dateTimePicker.type = event @@ -76,14 +86,8 @@ export default { try { await this.$refs.formRef.validate() try { - // for (let i = 0; i < 4; i++) { - // if (this[`GAS_NAME${i + 1}`] && !this.form[`DATA${i + 1}`]) this.form[`DATA${i + 1}`] = 0 - // } await getHotWorkGasInfoSave({ - data: { ...this.form }, - // EW_RU_TASK_ID: this.EW_RU_TASK_ID, - // EW_RU_JOB_ID: this.EW_RU_JOB_ID, - postMethod: 'application/json', + ...this.form }) uni.$u.toast('保存成功') setTimeout(() => { @@ -101,4 +105,4 @@ export default { } - \ No newline at end of file + diff --git a/pages/eight_assignments/hot_work/gas/list.vue b/pages/eight_assignments/hot_work/gas/list.vue index 9d23ee6..423b85b 100644 --- a/pages/eight_assignments/hot_work/gas/list.vue +++ b/pages/eight_assignments/hot_work/gas/list.vue @@ -3,16 +3,16 @@ - 动火分析时间: {{ item.GAS_TIME }} + 动火分析时间: {{ item.ANALYZE_TIME }} - 分析点名称: {{ item.GAS_NAME }} + 分析点名称: {{ item.ANALYZE_PLACE }} - 分析数据(%LEL): {{ item.GAS_NUMBER }} + 分析数据(%LEL): {{ item.ANALYZE_PLACE }} - 分析人:{{ item.userName }} + 分析人:{{ item.ANALYZE_USER_NAME }} @@ -28,32 +28,30 @@ \ No newline at end of file + diff --git a/utils/submitHomeworkProcess.js b/utils/submitHomeworkProcess.js index 5773fb3..03c5e2a 100644 --- a/utils/submitHomeworkProcess.js +++ b/utils/submitHomeworkProcess.js @@ -210,7 +210,7 @@ export const resolveNextOperation = async ( }) return } - // 有限空间作业气体分析 + // 流程特殊权限校验 if (info.otherFlag !== null && info.otherFlag.redirectFlag === '1') { uni.$u.route({ url: info.otherFlag.url,