From b331d170327dde6cbcd23ccc5066531d57c91177 Mon Sep 17 00:00:00 2001 From: taoge1020 Date: Thu, 10 Jul 2025 15:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cory/template/components/contactform.vue | 3 +- .../engineeringChangeApplicationForm.vue | 122 ++--- src/views/cory/template/index.vue | 249 +++------- src/views/cory/template/indexEdit.vue | 442 ++++++++++++++++++ src/views/design/designChange/index.vue | 213 ++------- src/views/design/designChange/indexEdit.vue | 442 ++++++++++++++++++ src/views/design/drawing/index.vue | 64 +-- src/views/design/drawing/indexEdit.vue | 2 +- src/views/design/specialScheme/index.vue | 61 +-- src/views/design/technicalStandard/index.vue | 307 ++++++------ .../design/technicalStandard/indexEdit.vue | 356 ++++++++++++++ 11 files changed, 1577 insertions(+), 684 deletions(-) create mode 100644 src/views/cory/template/indexEdit.vue create mode 100644 src/views/design/designChange/indexEdit.vue create mode 100644 src/views/design/technicalStandard/indexEdit.vue 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 @@