|
@@ -1,12 +1,18 @@
|
|
|
<template>
|
|
|
<hc-new-dialog widths="600px" bg-color="#fff" :show="isShow" title="流程上报" :loading="formReportLoading" is-row-footer @save="modalSave" @close="modalClose">
|
|
|
- <el-form ref="formRef" class="p-4" :model="formModel" :rules="formRules" label-width="auto" size="large">
|
|
|
+ <el-form ref="formRef" class="p-4" :model="formModel" :rules="formRules" label-position="left" label-width="auto" size="large">
|
|
|
<el-form-item label="任务名称" prop="taskName">
|
|
|
<el-input v-model="formModel.taskName" disabled />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="任务描述">
|
|
|
<el-input v-model="formModel.taskDesc" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入任务描述" type="textarea" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="是否需要审计意见" prop="isBuildAudit">
|
|
|
+ <el-radio-group v-model="formModel.isBuildAudit">
|
|
|
+ <el-radio :value="1">是</el-radio>
|
|
|
+ <el-radio :value="0">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="任务流程" prop="fixedFlowId">
|
|
|
<el-select v-model="formModel.fixedFlowId" block @change="handleProcessValue">
|
|
|
<el-option v-for="item in processData" :key="item.id" :disabled="item.disabled" :value="item.id" :label="item.fixedFlowName">
|
|
@@ -133,21 +139,26 @@ const getFixedFlowDetail = async (id)=>{
|
|
|
} else {
|
|
|
users = `${element1['userName']}`
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
linkUserJoinString.value = users
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//基础变量
|
|
|
const formRef = ref(null)
|
|
|
const formModel = ref({ batch: 1, restrictDay: 1 })
|
|
|
const formRules = ref({
|
|
|
+ isBuildAudit: {
|
|
|
+ required: true,
|
|
|
+ trigger: 'blur',
|
|
|
+ message: '请选择是否需要审计意见',
|
|
|
+ },
|
|
|
fixedFlowId: {
|
|
|
required: true,
|
|
|
trigger: 'blur',
|
|
@@ -168,7 +179,7 @@ const handleProcessValue = (val) => {
|
|
|
const list = processData.value
|
|
|
const index = arrIndex(list, 'id', val)
|
|
|
linkUserJoinString.value = list[index]?.linkUserJoinString
|
|
|
-
|
|
|
+
|
|
|
getFixedFlowDetail(val)
|
|
|
} else {
|
|
|
linkUserJoinString.value = ''
|