联调 技术监督 草稿功能

This commit is contained in:
GGJ
2024-06-20 16:54:19 +08:00
parent ac1335985f
commit 3a49fbf6a8
15 changed files with 256 additions and 98 deletions

View File

@@ -11,6 +11,15 @@
readonly
/>
</el-form-item>
<el-form-item label="整改意见:">
<el-input
v-model="form.reformAdvice"
autocomplete="off"
type="textarea"
:autosize="{ minRows: 2, maxRows: 6 }"
readonly
/>
</el-form-item>
<el-form-item label="问题附件:" v-if="showFile">
<el-icon class="elView" v-if="problemDetail?.problemName">
@@ -82,6 +91,7 @@ const form = ref({
id: '',
status: '',
issueDetail: '',
reformAdvice: '',
takeStep: '',
reportPath: []
})
@@ -113,6 +123,7 @@ const open = async (
status: any,
issueDetail: string,
problemPath?: string,
reformAdvice?: string,
takeStep?: string,
reportPath?: string
) => {
@@ -134,6 +145,7 @@ const open = async (
form.value.id = id
form.value.status = status
form.value.issueDetail = issueDetail
form.value.reformAdvice = reformAdvice
reportFilePath.value = reportPath
//判断附件是否存在,如果存在则回显出让用户可以点击下载
if (problemPath) {
@@ -159,6 +171,7 @@ const close = () => {
id: '',
status: '',
issueDetail: '',
reformAdvice: '',
takeStep: '',
reportPath: []
}
@@ -172,7 +185,7 @@ const submit = (flag: boolean) => {
let subForm = JSON.parse(JSON.stringify(form.value))
subForm = {
...subForm,
reportPath: reportFilePath.value
reportPath: form.value.reportPath.length > 0 ? reportFilePath.value : null
}
subForm.saveOrCheckflag = '1'
//此时该告警单处于待反馈状态
@@ -188,7 +201,7 @@ const submit = (flag: boolean) => {
let subForm = JSON.parse(JSON.stringify(form.value))
subForm = {
...subForm,
reportPath: reportFilePath.value
reportPath: form.value.reportPath.length > 0 ? reportFilePath.value : null
}
if (!reportFilePath.value) {
return ElMessage({