业务流程添加重新发起&取消

This commit is contained in:
zhujiyan
2024-06-04 16:54:33 +08:00
parent ed9bce09b3
commit a0c64a4232
19 changed files with 532 additions and 226 deletions

View File

@@ -362,7 +362,12 @@ import { genFileId, ElMessage } from 'element-plus'
import { useDictData } from '@/stores/dictData'
import { useAdminInfo } from '@/stores/adminInfo'
import { uploadFile } from '@/api/system-boot/file'
import { addPlanFormData, getUserByDeptId, getPlanDetailsById,updatePlanFormData } from '@/api/supervision-boot/plan/index'
import {
addPlanFormData,
getUserByDeptId,
getPlanDetailsById,
updatePlanFormData
} from '@/api/supervision-boot/plan/index'
import Area from '@/components/form/area/index.vue'
const emits = defineEmits(['onSubmit'])
const dictData = useDictData()
@@ -557,15 +562,17 @@ watch(
immediate: true
}
)
const resendId=ref('')
const resendId = ref('')
const open = (row: any) => {
title.value = row.title;
dialogFormVisible.value = true;
resendId.value=row.row.planId;
title.value = row.title
dialogFormVisible.value = true
if (row.row) {
getPlanDetailsById({ id: row.row.planId}).then(res => {
resendId.value = row.row.planId
getPlanDetailsById({ id: row.row.planId }).then(res => {
form.value = res.data
})
} else {
resendId.value = ''
}
}
const close = () => {
@@ -667,11 +674,12 @@ const confirmForm = () => {
})
} else {
console.log(confirmFormData)
confirmFormData.id=resendId.value;
confirmFormData.id = resendId.value
confirmFormData.planSupvDate = confirmFormData.planSupvDate.replace('T', ' ')
updatePlanFormData(confirmFormData).then(res => {
if (res.code == 'A0000') {
ElMessage({
message: '新建技术监督计划成功',
message: '重新发起成功',
type: 'success'
})
ruleFormRef.value.resetFields()