parent
2746b283af
commit
4654caed27
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content" style="margin-left: 10px">
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<u-form labelPosition="left" :model="form" :rules="rules" ref="formRef" labelWidth="140px">
|
<u-form labelPosition="left" :model="form" :rules="rules" ref="formRef" labelWidth="140px">
|
||||||
<u-form-item label="申请单位" prop="APPLY_DEPARTMENT_NAME" borderBottom required>
|
<u-form-item label="申请单位" prop="APPLY_DEPARTMENT_NAME" borderBottom required>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
<u-form-item label="作业内容" prop="JOB_CONTENT" borderBottom required>
|
<u-form-item label="作业内容" prop="JOB_CONTENT" borderBottom required>
|
||||||
<u-input v-model="form.JOB_CONTENT" border="none" placeholder="请输入作业内容" />
|
<u-input v-model="form.JOB_CONTENT" border="none" placeholder="请输入作业内容" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="动火操作人" prop="USER_NAME" borderBottom required labelPosition="top" labelWidth="auto">
|
<u-form-item v-if="false" label="动火操作人" prop="USER_NAME" borderBottom required labelPosition="top" labelWidth="auto">
|
||||||
<u-button type="primary" size="mini" text="添加"
|
<u-button type="primary" size="mini" text="添加"
|
||||||
:customStyle="{ position: 'absolute', top: '-46upx', right: '20upx', width: '90upx' }"
|
:customStyle="{ position: 'absolute', top: '-46upx', right: '20upx', width: '90upx' }"
|
||||||
@click="otherUserNameSelectShow = true" />
|
@click="otherUserNameSelectShow = true" />
|
||||||
|
@ -258,9 +258,6 @@ export default {
|
||||||
* 下一步所触发的按钮事件
|
* 下一步所触发的按钮事件
|
||||||
*/
|
*/
|
||||||
async fnSubmit() {
|
async fnSubmit() {
|
||||||
console.log('===============================')
|
|
||||||
console.log(this.form.IS_GAS_TESTING)
|
|
||||||
console.log('===============================')
|
|
||||||
await this.$refs.formRef.validate()
|
await this.$refs.formRef.validate()
|
||||||
this.form.HOT_WORK_METHOD_NAME = this.form.HOT_WORK_METHOD_ID
|
this.form.HOT_WORK_METHOD_NAME = this.form.HOT_WORK_METHOD_ID
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -269,7 +266,7 @@ export default {
|
||||||
eventChannel.emit("data", {
|
eventChannel.emit("data", {
|
||||||
form: this.form,
|
form: this.form,
|
||||||
formItems: this.formItems,
|
formItems: this.formItems,
|
||||||
EW_RU_TASK_ID: this.taskId
|
taskId: this.taskId
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -67,12 +67,13 @@ export default {
|
||||||
this.form = data.form;
|
this.form = data.form;
|
||||||
this.formItems = data.formItems;
|
this.formItems = data.formItems;
|
||||||
this.taskId = data.taskId;
|
this.taskId = data.taskId;
|
||||||
this.hotWorkOperatorList = uni.$u.deepClone(data.form.hotWorkOperatorList);
|
this.hotWorkOperatorList = JSON.parse(JSON.stringify(data.form.hotWorkOperatorList));
|
||||||
if (this.hotWorkOperatorList.length === 0) this.fnAddHotWorkOperatorList();
|
if (this.hotWorkOperatorList.length === 0) {
|
||||||
else {
|
this.fnAddHotWorkOperatorList();
|
||||||
|
} else {
|
||||||
for (let i = 0; i < this.hotWorkOperatorList.length; i++) {
|
for (let i = 0; i < this.hotWorkOperatorList.length; i++) {
|
||||||
for (let i = 0; i < this.hotWorkOperatorList.length; i++) {
|
for (let i = 0; i < this.hotWorkOperatorList.length; i++) {
|
||||||
fnGetUserList(this.hotWorkOperatorList.value[i], i);
|
this.fnGetUserList(this.hotWorkOperatorList[i], i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -277,8 +277,9 @@ export const getData = async (taskId) => {
|
||||||
for (let i = 0; i < item.list.length; i++) {
|
for (let i = 0; i < item.list.length; i++) {
|
||||||
form[item.ITEM_NAME].push({});
|
form[item.ITEM_NAME].push({});
|
||||||
for (let j = 0; j < item.list[i].list.length; j++) {
|
for (let j = 0; j < item.list[i].list.length; j++) {
|
||||||
form[item.ITEM_NAME][i][item.list[i].list[j].ITEM_NAME] =
|
form[item.ITEM_NAME][i][item.list[i].list[j].ITEM_NAME] = item.list[i].list[j].ITEM_VALUE;
|
||||||
item.list[i].list[j].ITEM_VALUE;
|
form[item.ITEM_NAME][i][item.list[i].list[j].FK_NAME] = item.list[i].list[j].FK_VALUE;
|
||||||
|
form[item.ITEM_NAME][i]['TYPE'] = item.list[i].list[j].TYPE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue