流程详情历史记录
This commit is contained in:
@@ -362,7 +362,7 @@ 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 } 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,11 +557,13 @@ watch(
|
||||
immediate: true
|
||||
}
|
||||
)
|
||||
const resendId=ref('')
|
||||
const open = (row: any) => {
|
||||
title.value = row.title
|
||||
dialogFormVisible.value = true
|
||||
title.value = row.title;
|
||||
dialogFormVisible.value = true;
|
||||
resendId.value=row.row.planId;
|
||||
if (row.row) {
|
||||
getPlanDetailsById({ id: '861efbc90d1fae8e276f477081dd85fe' }).then(res => {
|
||||
getPlanDetailsById({ id: row.row.planId}).then(res => {
|
||||
form.value = res.data
|
||||
})
|
||||
}
|
||||
@@ -641,43 +643,6 @@ const confirmForm = () => {
|
||||
if (valid) {
|
||||
form.value.planUserId = adminInfo.$state.id
|
||||
let confirmFormData = JSON.parse(JSON.stringify(form.value))
|
||||
//1.判断是否上传
|
||||
// if (!sealReport.value) {
|
||||
// return ElMessage({
|
||||
// message: '请上传盖章报告',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// }
|
||||
// if (!evidenceMaterials.value) {
|
||||
// return ElMessage({
|
||||
// message: '请上传佐证材料',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// }
|
||||
// if (!planChangeMaterials.value) {
|
||||
// return ElMessage({
|
||||
// message: '请上传计划变更材料',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// }
|
||||
// if (!alarmMaterials.value) {
|
||||
// return ElMessage({
|
||||
// message: '请上传告预警单材料',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// }
|
||||
// if (!alarmFeedbackMaterials.value) {
|
||||
// return ElMessage({
|
||||
// message: '请上传告预警单反馈材料',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// }
|
||||
// if (!assessReport.value) {
|
||||
// return ElMessage({
|
||||
// message: '请上传评估报告',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// }
|
||||
//提交终端信息
|
||||
// confirmFormData = {
|
||||
// ...confirmFormData,
|
||||
@@ -702,6 +667,18 @@ const confirmForm = () => {
|
||||
})
|
||||
} else {
|
||||
console.log(confirmFormData)
|
||||
confirmFormData.id=resendId.value;
|
||||
updatePlanFormData(confirmFormData).then(res => {
|
||||
if (res.code == 'A0000') {
|
||||
ElMessage({
|
||||
message: '新建技术监督计划成功',
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
console.log('表单验证失败')
|
||||
|
||||
@@ -160,6 +160,7 @@ const { query } = useRoute() // 查询参数
|
||||
const props = defineProps({
|
||||
id: propTypes.string.def(undefined)
|
||||
})
|
||||
console.log(propTypes.string.def(undefined),"999999999999传参");
|
||||
const detailLoading = ref(false) // 表单的加载中
|
||||
const detailData = ref<any>({}) // 详情数据
|
||||
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
||||
@@ -198,6 +199,7 @@ getEffectUserList()
|
||||
/** 获得数据 */
|
||||
const getInfo = async () => {
|
||||
detailLoading.value = true
|
||||
console.log(props.id , queryId ,"流程详情内部的id");
|
||||
try {
|
||||
await getPlanDetailsById({ id: props.id || queryId }).then(res => {
|
||||
detailData.value = res.data
|
||||
|
||||
Reference in New Issue
Block a user