流程详情历史记录
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
|
||||
|
||||
@@ -169,28 +169,29 @@ const tableStore = new TableStore({
|
||||
icon: 'el-icon-EditPen',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
console.log(row.processInstanceId,"000000000");
|
||||
handleDetails(row.processInstanceId)
|
||||
},
|
||||
disabled: row => {
|
||||
return !row.processInstanceId
|
||||
}
|
||||
},
|
||||
// {
|
||||
// name: 'edit',
|
||||
// title: '重新发起',
|
||||
// type: 'warning',
|
||||
// icon: 'el-icon-Open',
|
||||
// render: 'basicButton',
|
||||
// disabled: row => {
|
||||
// return row.status == 1 || row.status == 2
|
||||
// },
|
||||
// click: row => {
|
||||
// addForms.value.open({
|
||||
// title: '重新发起',
|
||||
// row: row
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
{
|
||||
name: 'edit',
|
||||
title: '重新发起',
|
||||
type: 'warning',
|
||||
icon: 'el-icon-Open',
|
||||
render: 'basicButton',
|
||||
disabled: row => {
|
||||
return row.status == 1 || row.status == 2
|
||||
},
|
||||
click: row => {
|
||||
addForms.value.open({
|
||||
title: '重新发起',
|
||||
row: row
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name: 'productSetting',
|
||||
@@ -216,19 +217,19 @@ const tableStore = new TableStore({
|
||||
}
|
||||
},
|
||||
|
||||
// {
|
||||
// name: 'cancel',
|
||||
// title: '取消',
|
||||
// type: 'danger',
|
||||
// icon: 'el-icon-Open',
|
||||
// render: 'basicButton',
|
||||
// disabled: row => {
|
||||
// return row.status == 3 || row.status == 2 || row.status == 4
|
||||
// },
|
||||
// click: row => {
|
||||
// // cancelLeave(row)
|
||||
// }
|
||||
// },
|
||||
{
|
||||
name: 'cancel',
|
||||
title: '取消',
|
||||
type: 'danger',
|
||||
icon: 'el-icon-Open',
|
||||
render: 'basicButton',
|
||||
disabled: row => {
|
||||
return row.status == 3 || row.status == 2 || row.status == 4
|
||||
},
|
||||
click: row => {
|
||||
// cancelLeave(row)
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'productSetting',
|
||||
title: '发起告警单',
|
||||
@@ -332,45 +333,5 @@ const handleEffectProblem = (row: any) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
/**获取用户性质*/
|
||||
const getUserTypeName = (userType: any) => {
|
||||
if (userType === 0) {
|
||||
return '新建电网工程'
|
||||
}
|
||||
if (userType === 1) {
|
||||
return '扩建电网工程'
|
||||
}
|
||||
if (userType === 2) {
|
||||
return '新建非线性负荷用户'
|
||||
}
|
||||
if (userType === 3) {
|
||||
return '扩建非线性负荷用户'
|
||||
}
|
||||
if (userType === 4) {
|
||||
return '新建新能源发电站'
|
||||
}
|
||||
if (userType === 5) {
|
||||
return '扩建新能源发电站'
|
||||
}
|
||||
if (userType === 6) {
|
||||
return '敏感及重要用户'
|
||||
}
|
||||
return '新建电网工程'
|
||||
}
|
||||
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
// :deep(.el-upload-list__item) {
|
||||
// width: 400px;
|
||||
// }
|
||||
// ::v-deep .el-input__wrapper {
|
||||
// // width: 200px !important;
|
||||
// }
|
||||
// .bars_w {
|
||||
// width: 100%;
|
||||
// height: 500px;
|
||||
// }
|
||||
// :deep(.el-tabs__content) {
|
||||
// height: v-bind('layout.height');
|
||||
// overflow-y: auto;
|
||||
// }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user