diff --git a/src/views/cory/template/components/contactform.vue b/src/views/cory/template/components/contactform.vue index 42781ce..d280eb9 100644 --- a/src/views/cory/template/components/contactform.vue +++ b/src/views/cory/template/components/contactform.vue @@ -163,12 +163,11 @@ const handleSelectionChange = (selection: any) => { }; const handleDetail = async (row) => { - const res = await listByIds(row.attachments); + const res = await listByIds(row.id); tableDetail.value = { ...row, ...res.data[0] }; - console.log('🚀 ~ handleDetail ~ tableDetail.value:', tableDetail.value); detailVisible.value = true; }; diff --git a/src/views/cory/template/components/engineeringChangeApplicationForm.vue b/src/views/cory/template/components/engineeringChangeApplicationForm.vue index d10ae8f..fc24a51 100644 --- a/src/views/cory/template/components/engineeringChangeApplicationForm.vue +++ b/src/views/cory/template/components/engineeringChangeApplicationForm.vue @@ -12,65 +12,22 @@ - - - - - - - + -
@@ -189,36 +146,16 @@ import { listByIds } from '@/api/system/oss'; import { dayjs } from 'element-plus'; import { saveAs } from 'file-saver'; -const form = reactive({ - projectName: '', - unitName: '', - profession: '', - applyDate: '2025-6-23 13:03:56', - bookName: '', - bookNo: '', - hasAttachment: - 'http://58.17.134.85:9000/xinnengyuan-dev/doc/safety/knowledge/1897160897167638529/知识库/指导手册/2025-06-27_2f56bca1c4bc46c6b226858a18713c48.jpg', // 附图链接或图片地址 - changeReasons: [0, 3, 5], - changeContent: '', - costEstimate: '', - - contractorManager: '', - contractorDate: '', - generalTechLeader: '', - generalDate: '', - designer: '', - designerDate: '', - supervisorEngineer: '', - chiefSupervisor: '', - supervisorDate: '', - ownerLeader: '', - ownerDate: '' -}); - +const { proxy } = getCurrentInstance() as ComponentInternalInstance; +const { wf_business_status } = toRefs(proxy?.useDict('wf_business_status')); const props = defineProps({ data: { type: Array, default: () => [] + }, + thumbnail:{ + type: String, + default:'' } }); const tableDetail = ref({}); @@ -237,13 +174,11 @@ const detailVisible = ref(false); const formatDate = (val: string | Date) => (val ? dayjs(val).format('YYYY-MM-DD') : ''); const handleDetail = async (row) => { - const res = await listByIds(row.hasAttachment); + const res = await listByIds(row.id); tableDetail.value = { ...row, hasAttachmentList: res.data }; - console.log(tableDetail.value); - detailVisible.value = true; }; /** 多选框选中数据 */ @@ -254,7 +189,32 @@ const handleSelectionChange = (selection: any) => { const handleDelete = (row) => { emit('delete', row.id); }; - +const handleUpdate = (row) => { + // 添加审批 + proxy.$tab.closePage(proxy.$route); + proxy.$router.push({ + path: `/cory/template/indexEdit`, + query: { + thumbnailUrl:props.thumbnail, + row:JSON.stringify(row), + id: row.id, + type: 'update' + } + }); +}; +const handleViewInfo = (row) => { + // 添加审批 + proxy.$tab.closePage(proxy.$route); + proxy.$router.push({ + path: `/cory/template/indexEdit`, + query: { + thumbnailUrl:props.thumbnail, + row:JSON.stringify(row), + id: row.id, + type: 'view' + } + }); +}; const handleDownload = () => { const style = ` diff --git a/src/views/design/designChange/index.vue b/src/views/design/designChange/index.vue index 2a8bcd0..765de8d 100644 --- a/src/views/design/designChange/index.vue +++ b/src/views/design/designChange/index.vue @@ -38,12 +38,7 @@