流程详情历史记录
This commit is contained in:
@@ -507,7 +507,7 @@ import type { ComponentSize, FormInstance, FormRules } from 'element-plus'
|
||||
import { useAdminInfo } from '@/stores/adminInfo'
|
||||
import { queryByAllCode } from '@/api/system-boot/dictTree'
|
||||
import { uploadFile } from '@/api/system-boot/file'
|
||||
import { submitFormData, getById } from '@/api/supervision-boot/interfere/index'
|
||||
import { submitFormData, getById ,updateFormData} from '@/api/supervision-boot/interfere/index'
|
||||
defineProps({
|
||||
openType: {
|
||||
type: String,
|
||||
@@ -904,14 +904,14 @@ watch(
|
||||
deep: true
|
||||
}
|
||||
)
|
||||
const resendId=ref('')
|
||||
const open = async (row: any) => {
|
||||
title.value = row.title
|
||||
dialogFormVisible.value = true
|
||||
|
||||
if (row.row) {
|
||||
resendId.value=row.row.id
|
||||
await getById({ id: row.row.id }).then(res => {
|
||||
// form.value.userType = res.data.userType
|
||||
|
||||
if (res.data.userReportProjectPO != null) {
|
||||
// userType 0 1
|
||||
form.value = { ...res.data, ...res.data.userReportProjectPO }
|
||||
@@ -1232,6 +1232,18 @@ const confirmForm = () => {
|
||||
})
|
||||
} else {
|
||||
console.log(confirmFormData)
|
||||
confirmFormData.id=resendId.value
|
||||
updateFormData(confirmFormData).then(res => {
|
||||
if (res.code == 'A0000') {
|
||||
ElMessage({
|
||||
message: '重新发起成功',
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
console.log('表单验证失败')
|
||||
|
||||
Reference in New Issue
Block a user