相关方应急管理模块app端优化

八项作业
liujun 2024-09-05 18:07:01 +08:00
parent 5de6658478
commit 6825ca94ff
3 changed files with 25 additions and 16 deletions

View File

@ -29,6 +29,7 @@ export default {
taskId: '', taskId: '',
TYPE: '', TYPE: '',
CORP_ID: '', CORP_ID: '',
vernier: '',
form: { form: {
value: [] value: []
}, },
@ -40,6 +41,7 @@ export default {
this.taskId = query.taskId this.taskId = query.taskId
this.TYPE = query.TYPE this.TYPE = query.TYPE
this.CORP_ID = query.CORP_ID this.CORP_ID = query.CORP_ID
this.vernier = query.vernier
this.fnAddValue() this.fnAddValue()
}, },
methods: { methods: {
@ -61,7 +63,8 @@ export default {
taskId: this.taskId, taskId: this.taskId,
EW_RU_JOB_ID: this.EW_RU_JOB_ID, EW_RU_JOB_ID: this.EW_RU_JOB_ID,
CORP_ID: this.CORP_ID, CORP_ID: this.CORP_ID,
TYPE: this.TYPE TYPE: this.TYPE,
vernier: this.vernier
}) })
} }
}, },

View File

@ -83,7 +83,6 @@ export default {
this.CORP_ID = data.CORP_ID this.CORP_ID = data.CORP_ID
this.TYPE = data.TYPE this.TYPE = data.TYPE
this.initFlag = data.initFlag this.initFlag = data.initFlag
console.log(data.initFlag)
this.fnInitFormAndRules() this.fnInitFormAndRules()
}) })
}, },
@ -223,7 +222,8 @@ export default {
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
}) })
} else { } else {
await addFlowInfo({ await addFlowInfo({

View File

@ -97,15 +97,19 @@ const processSelectedPersonnelData = (formData, list) => {
return form return form
} }
// 提交人员信息 // 提交人员信息
export const setPersonnelForm = async ({form, list, taskId, CORP_ID, TYPE}) => { export const setPersonnelForm = async ({form, list, taskId, CORP_ID, TYPE,vernier}) => {
await setTaskSave({ await addFormInfo({
data: [{jobs: processSelectedPersonnelData(form, list), task: {EW_RU_TASK_ID: taskId}}], job: processSelectedPersonnelData(form,list),
postMethod: 'application/json', EW_RU_TASK_ID: taskId,
}) TYPE,
postMethod: 'application/json'
}
)
await resolveNextOperation({ await resolveNextOperation({
EW_RU_TASK_ID: taskId, EW_RU_TASK_ID: taskId,
CORP_ID, CORP_ID,
TYPE TYPE,
vernier
}) })
} }
// 提交安全措施 // 提交安全措施
@ -124,7 +128,7 @@ export const setSecurityMeasures = async ({questionnaires, questionnaireInfo, ta
}) })
} }
// 提交其它安全措施 // 提交其它安全措施
export const setOtherSecurityMeasures = async ({value, taskId, EW_RU_JOB_ID, CORP_ID, TYPE}) => { export const setOtherSecurityMeasures = async ({value, taskId, EW_RU_JOB_ID, CORP_ID, TYPE, vernier}) => {
const ADDITIONAL_COMMENT = value.map(item => item.value) const ADDITIONAL_COMMENT = value.map(item => item.value)
await setOtherSecurityMeasuresSave({ await setOtherSecurityMeasuresSave({
ADDITIONAL_COMMENT, ADDITIONAL_COMMENT,
@ -136,7 +140,8 @@ export const setOtherSecurityMeasures = async ({value, taskId, EW_RU_JOB_ID, COR
EW_RU_TASK_ID: taskId, EW_RU_TASK_ID: taskId,
CORP_ID, CORP_ID,
TYPE, TYPE,
EW_RU_JOB_ID EW_RU_JOB_ID,
vernier
}) })
} }
// 结束当前操作人流程提交 // 结束当前操作人流程提交
@ -202,7 +207,8 @@ export const resolveNextOperation = async ({EW_RU_TASK_ID = '', CORP_ID = '', TY
taskId: EW_RU_TASK_ID, taskId: EW_RU_TASK_ID,
EW_RU_JOB_ID, EW_RU_JOB_ID,
TYPE, TYPE,
CORP_ID CORP_ID,
vernier: info.vernier
}) })
} }
}) })
@ -212,7 +218,7 @@ export const resolveNextOperation = async ({EW_RU_TASK_ID = '', CORP_ID = '', TY
if (info.canAddFlag === '1') { if (info.canAddFlag === '1') {
uni.$u.route({ uni.$u.route({
url: '/pages/eight_assignments/other_security_measures', url: '/pages/eight_assignments/other_security_measures',
params: {taskId: EW_RU_TASK_ID, EW_RU_JOB_ID, TYPE, CORP_ID} params: {taskId: EW_RU_TASK_ID, EW_RU_JOB_ID, TYPE, CORP_ID,vernier: info.vernier}
}) })
return return
} }
@ -220,7 +226,7 @@ export const resolveNextOperation = async ({EW_RU_TASK_ID = '', CORP_ID = '', TY
if (info.submitFlag === '1') { if (info.submitFlag === '1') {
uni.$u.route({ uni.$u.route({
url: '/pages/eight_assignments/sign', url: '/pages/eight_assignments/sign',
params: {taskId: EW_RU_TASK_ID, EW_RU_JOB_ID, TYPE} params: {taskId: EW_RU_TASK_ID, EW_RU_JOB_ID, TYPE,vernier: info.vernier}
}) })
return return
} }
@ -228,12 +234,12 @@ export const resolveNextOperation = async ({EW_RU_TASK_ID = '', CORP_ID = '', TY
if (info.otherFlag !== null && info.otherFlag.redirectFlag === '1') { if (info.otherFlag !== null && info.otherFlag.redirectFlag === '1') {
uni.$u.route({ uni.$u.route({
url: info.otherFlag.url, url: info.otherFlag.url,
params: {taskId: EW_RU_TASK_ID, EW_RU_JOB_ID, TYPE} params: {taskId: EW_RU_TASK_ID, EW_RU_JOB_ID, TYPE,vernier: info.vernier}
}) })
return return
} }
// 没有下一步,结束流程,因为无法确定之前有多少步骤,跳转了多少页面,所以直接跳转到首页 // 没有下一步,结束流程,因为无法确定之前有多少步骤,跳转了多少页面,所以直接跳转到首页
await endCurrentPersonnelTechnologicalProcess({EW_RU_TASK_ID}) // await endCurrentPersonnelTechnologicalProcess({EW_RU_TASK_ID})
} }
uni.$u.toast('提交成功') uni.$u.toast('提交成功')
setTimeout(() => { setTimeout(() => {