新八项作业bug修复

八项作业
liujun 2024-09-11 13:44:06 +08:00
parent 559239d959
commit 3afca1fdf1
5 changed files with 17 additions and 38 deletions

View File

@ -184,7 +184,8 @@ export default {
/** 存储作业类型选中态 */ /** 存储作业类型选中态 */
jobTypeNameArr: [], jobTypeNameArr: [],
/** 存储动火等级选中态 */ /** 存储动火等级选中态 */
hotWorkLevelNameArr: [] hotWorkLevelNameArr: [],
taskId: null
} }
}, },
onLoad(options) { onLoad(options) {
@ -192,6 +193,7 @@ export default {
this.form.CORP_NAME = options.CORP_NAME this.form.CORP_NAME = options.CORP_NAME
this.type = options.type this.type = options.type
if (options.taskId) { if (options.taskId) {
this.taskId = options.taskId
this.fnGetData(options.taskId) this.fnGetData(options.taskId)
} }
}, },
@ -264,7 +266,8 @@ export default {
form: this.form, form: this.form,
formItems: this.formItems, formItems: this.formItems,
TYPE: this.type, TYPE: this.type,
CORP_ID: this.form.CORP_ID CORP_ID: this.form.CORP_ID,
EW_RU_TASK_ID: this.taskId
}) })
} catch { } } catch { }
} catch (err) { } catch (err) {

View File

@ -31,35 +31,12 @@
</template> </template>
<script> <script>
import {getHotWorkGasAll, getHotWorkRecord, setTaskSign} from "../../../../api"; import { getHotWorkRecord, setTaskSign} from "../../../../api";
export default { export default {
data() { data() {
return { return {
list: [ list: [],
{
ISDELETE: 0,
HOTWORKAPPLICATION_ID: "f71420d5f2d74b60aabebe8429d5bf34",
HOTWORKAPPLICATIONDELAYED_ID: "50d8f530ee544aaa833b48471702ed0e",
CREATOR: "2c797704caaf48efa62ea1c6d2c967e1",
USER_ID: "2c797704caaf48efa62ea1c6d2c967e1",
FILEPATH: "/uploadFiles/yhtp/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20240830/bb9685a4099c46c99c795ea7417f8f71.png",
TIME: "2024-08-30 18:14",
userName: "孙海官",
CREATTIME: "2024-08-30 18:14:13"
},
{
ISDELETE: 0,
HOTWORKAPPLICATION_ID: "f71420d512d74b60aabebe8429d5bf34",
HOTWORKAPPLICATIONDELAYED_ID: "50d8f530ee544aaa233b48471702ed0e",
CREATOR: "2c797704caaf48efa62ea1c6d2c96751",
USER_ID: "2c797704caaf48efa62ea1c6d2c967e1",
FILEPATH: "/uploadFiles/yhtp/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20240830/bb9685a4099c46c99c795ea7417f8f71.png",
TIME: "2024-09-03 18:11",
userName: "孙去来",
CREATTIME: "2024-08-30 18:14:13"
}
],
STATE: '', STATE: '',
EW_RU_TASK_ID: '', EW_RU_TASK_ID: '',
EW_RU_JOB_ID: '', EW_RU_JOB_ID: '',

View File

@ -170,15 +170,14 @@ export default {
} }
}, },
fnSelectDepartment(key_name, key_id, value) { fnSelectDepartment(key_name, key_id, value) {
const guid = key_name.substring(key_name.indexOf('&&'))
uni.navigateTo({ uni.navigateTo({
url: `/pages/eight_assignments/select_department?CORP_ID=${this.CORP_ID}`, url: `/pages/eight_assignments/select_department?CORP_ID=${this.CORP_ID}`,
events: { events: {
confirm: (event) => { confirm: (event) => {
this.form[key_name] = event.DEPARTMENT_NAME this.form[key_name] = event.DEPARTMENT_NAME
this.form[key_id] = event.DEPARTMENT_ID this.form[key_id] = event.DEPARTMENT_ID
this.form[value + '_USER_ID' + guid] = '' this.form[value + '_USER_ID'] = ''
this.form[value + '_USER_NAME' + guid] = '' this.form[value + '_USER_NAME'] = ''
this.picker.columnsAll[value] = [] this.picker.columnsAll[value] = []
this.fnGetUserList(event, value) this.fnGetUserList(event, value)
} }
@ -216,27 +215,27 @@ export default {
try { try {
await this.$refs.formRef.validate() await this.$refs.formRef.validate()
try { try {
if (!this.initFlag || this.initFlag === '1'){ if (!this.initFlag || this.initFlag === '1') {
await setPersonnelForm({ await setPersonnelForm({
form: this.form, form: this.form,
list: this.list, list: this.list,
taskId: this.taskId, taskId: this.taskId,
CORP_ID: this.CORP_ID, CORP_ID: this.CORP_ID,
TYPE: this.TYPE, TYPE: this.TYPE,
vernier:this.vernier vernier: this.vernier
}) })
} else { } else {
await addFlowInfo({ await addFlowInfo({
form:this.form, form: this.form,
list: this.list, list: this.list,
taskId: this.taskId, taskId: this.taskId,
EW_RU_JOB_ID: this.EW_RU_JOB_ID, EW_RU_JOB_ID: this.EW_RU_JOB_ID,
TYPE: this.TYPE, TYPE: this.TYPE,
CORP_ID: this.CORP_ID, CORP_ID: this.CORP_ID,
vernier:this.vernier vernier: this.vernier
}) })
} }
} catch(e) { } catch (e) {
console.log(e) console.log(e)
} }
} catch { } catch {

View File

@ -89,7 +89,7 @@ export default {
TYPE: this.TYPE, TYPE: this.TYPE,
EW_RU_JOB_ID:this.EW_RU_JOB_ID, EW_RU_JOB_ID:this.EW_RU_JOB_ID,
vernier: this.vernier vernier: this.vernier
}, false) })
} catch(e) { } catch(e) {
console.log(e) console.log(e)
} }

View File

@ -62,9 +62,9 @@ const processFormData = async (formData, formItems) => {
return form return form
} }
// 提交表单基础信息 // 提交表单基础信息
export const setSubmitForm = async ({form, formItems, TYPE, CORP_ID}) => { export const setSubmitForm = async ({form, formItems, TYPE, CORP_ID, EW_RU_TASK_ID}) => {
const {taskIds} = await setTaskSave({ const {taskIds} = await setTaskSave({
data: [{form: await processFormData(form, formItems)}], data: [{form: await processFormData(form, formItems),task:{EW_RU_TASK_ID:EW_RU_TASK_ID}}],
TYPE, TYPE,
postMethod: 'application/json', postMethod: 'application/json',
}) })