新八项作业bug修复
parent
559239d959
commit
3afca1fdf1
|
@ -184,7 +184,8 @@ export default {
|
|||
/** 存储作业类型选中态 */
|
||||
jobTypeNameArr: [],
|
||||
/** 存储动火等级选中态 */
|
||||
hotWorkLevelNameArr: []
|
||||
hotWorkLevelNameArr: [],
|
||||
taskId: null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
@ -192,6 +193,7 @@ export default {
|
|||
this.form.CORP_NAME = options.CORP_NAME
|
||||
this.type = options.type
|
||||
if (options.taskId) {
|
||||
this.taskId = options.taskId
|
||||
this.fnGetData(options.taskId)
|
||||
}
|
||||
},
|
||||
|
@ -264,7 +266,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch { }
|
||||
} catch (err) {
|
||||
|
|
|
@ -31,35 +31,12 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {getHotWorkGasAll, getHotWorkRecord, setTaskSign} from "../../../../api";
|
||||
import { getHotWorkRecord, setTaskSign} from "../../../../api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
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"
|
||||
}
|
||||
],
|
||||
list: [],
|
||||
STATE: '',
|
||||
EW_RU_TASK_ID: '',
|
||||
EW_RU_JOB_ID: '',
|
||||
|
|
|
@ -170,15 +170,14 @@ export default {
|
|||
}
|
||||
},
|
||||
fnSelectDepartment(key_name, key_id, value) {
|
||||
const guid = key_name.substring(key_name.indexOf('&&'))
|
||||
uni.navigateTo({
|
||||
url: `/pages/eight_assignments/select_department?CORP_ID=${this.CORP_ID}`,
|
||||
events: {
|
||||
confirm: (event) => {
|
||||
this.form[key_name] = event.DEPARTMENT_NAME
|
||||
this.form[key_id] = event.DEPARTMENT_ID
|
||||
this.form[value + '_USER_ID' + guid] = ''
|
||||
this.form[value + '_USER_NAME' + guid] = ''
|
||||
this.form[value + '_USER_ID'] = ''
|
||||
this.form[value + '_USER_NAME'] = ''
|
||||
this.picker.columnsAll[value] = []
|
||||
this.fnGetUserList(event, value)
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ export default {
|
|||
TYPE: this.TYPE,
|
||||
EW_RU_JOB_ID:this.EW_RU_JOB_ID,
|
||||
vernier: this.vernier
|
||||
}, false)
|
||||
})
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
|
|
@ -62,9 +62,9 @@ const processFormData = async (formData, formItems) => {
|
|||
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({
|
||||
data: [{form: await processFormData(form, formItems)}],
|
||||
data: [{form: await processFormData(form, formItems),task:{EW_RU_TASK_ID:EW_RU_TASK_ID}}],
|
||||
TYPE,
|
||||
postMethod: 'application/json',
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue