@@ -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 @@
- 新增
-
-
- 删除
+ 上传设计变更
@@ -68,16 +63,24 @@
-
+
- {{ scope.row.file.originalName }}
+ {{ scope.row.file.originalName }}
+
+
+
+
+
-
-
+
+
+
+
+
@@ -90,91 +93,13 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/src/views/design/drawing/index.vue b/src/views/design/drawing/index.vue
index abe2210..8d5cd53 100644
--- a/src/views/design/drawing/index.vue
+++ b/src/views/design/drawing/index.vue
@@ -88,8 +88,8 @@