From 2540d86f0dbd77f654f558c3bf9d5ddbe7422f16 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 03 七月 2026 17:22:09 +0800
Subject: [PATCH] fix: 完成设计项目和归档台账接口对接,功能联调

---
 src/views/mes/pd/archive/data.ts |   84 +++++++++++++++++++++++-------------------
 1 files changed, 46 insertions(+), 38 deletions(-)

diff --git a/src/views/mes/pd/archive/data.ts b/src/views/mes/pd/archive/data.ts
index 7146fcf..c8e697e 100644
--- a/src/views/mes/pd/archive/data.ts
+++ b/src/views/mes/pd/archive/data.ts
@@ -1,71 +1,79 @@
-import type { VbenFormSchema } from "#/adapter/form";
-import type { VxeTableGridOptions } from "#/adapter/vxe-table";
+import type { VbenFormSchema } from '#/adapter/form';
+import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 
-import { DICT_TYPE } from "#/packages/constants/src";
-import { getDictOptions } from "#/packages/effects/hooks/src";
+import { DICT_TYPE } from '#/packages/constants/src';
+import { getDictOptions } from '#/packages/effects/hooks/src';
 
 export function useGridFormSchema(): VbenFormSchema[] {
   return [
     {
-      fieldName: "code",
-      label: "褰掓。缂栧彿",
-      component: "Input",
-      componentProps: { placeholder: "璇疯緭鍏ュ綊妗g紪鍙�" },
+      fieldName: 'archiveCode',
+      label: '褰掓。缂栧彿',
+      component: 'Input',
+      componentProps: { placeholder: '璇疯緭鍏ュ綊妗g紪鍙�' },
     },
     {
-      fieldName: "projectCode",
-      label: "浠诲姟缂栫爜",
-      component: "Input",
-      componentProps: { placeholder: "璇疯緭鍏ヤ换鍔$紪鐮�" },
+      fieldName: 'productCode',
+      label: '浜у搧缂栫爜',
+      component: 'Input',
+      componentProps: { placeholder: '璇疯緭鍏ヤ骇鍝佺紪鐮�' },
     },
     {
-      fieldName: "productCode",
-      label: "浜у搧缂栫爜",
-      component: "Input",
-      componentProps: { placeholder: "璇疯緭鍏ヤ骇鍝佺紪鐮�" },
+      fieldName: 'productName',
+      label: '浜у搧鍚嶇О',
+      component: 'Input',
+      componentProps: { placeholder: '璇疯緭鍏ヤ骇鍝佸悕绉�' },
     },
     {
-      fieldName: "archiveStatus",
-      label: "褰掓。鐘舵��",
-      component: "Select",
+      fieldName: 'archiveStatus',
+      label: '褰掓。鐘舵��',
+      component: 'Select',
       componentProps: {
         allowClear: true,
-        options: getDictOptions(DICT_TYPE.MES_PD_ARCHIVE_STATUS, "number"),
-        placeholder: "璇烽�夋嫨褰掓。鐘舵��",
+        options: getDictOptions(DICT_TYPE.MES_PD_ARCHIVE_STATUS, 'number'),
+        placeholder: '璇烽�夋嫨褰掓。鐘舵��',
       },
     },
   ];
 }
 
-export function useGridColumns(): VxeTableGridOptions["columns"] {
+export function useGridColumns(): VxeTableGridOptions['columns'] {
   return [
     {
-      field: "code",
-      title: "褰掓。缂栧彿",
+      field: 'archiveCode',
+      title: '褰掓。缂栧彿',
       minWidth: 130,
-      slots: { default: "code" },
+      slots: { default: 'archiveCode' },
     },
-    { field: "projectCode", title: "浠诲姟缂栫爜", minWidth: 120 },
-    { field: "projectName", title: "浠诲姟鍚嶇О", minWidth: 140 },
-    { field: "productCode", title: "浜у搧缂栫爜", minWidth: 120 },
-    { field: "productName", title: "浜у搧鍚嶇О", minWidth: 140 },
-    { field: "version", title: "鐗堟湰鍙�", minWidth: 90 },
+    { field: 'productCode', title: '浜у搧缂栫爜', minWidth: 120 },
+    { field: 'productName', title: '浜у搧鍚嶇О', minWidth: 140 },
+    { field: 'taskCode', title: '浠诲姟缂栫爜', minWidth: 130 },
+    { field: 'taskName', title: '浠诲姟鍚嶇О', minWidth: 160 },
+    { field: 'archiveCount', title: '褰掓。鏁伴噺', minWidth: 90 },
     {
-      field: "archiveStatus",
-      title: "褰掓。鐘舵��",
+      field: 'archiveStatus',
+      title: '褰掓。鐘舵��',
       minWidth: 100,
       cellRender: {
-        name: "CellDict",
+        name: 'CellDict',
         props: { type: DICT_TYPE.MES_PD_ARCHIVE_STATUS },
       },
     },
-    { field: "documentCount", title: "璧勬枡鏁�", minWidth: 80 },
-    { field: "archiverName", title: "褰掓。浜�", minWidth: 100 },
+    { field: 'archiverNickname', title: '褰掓。浜�', minWidth: 100 },
     {
-      field: "archiveTime",
-      title: "褰掓。鏃堕棿",
+      field: 'archiveTime',
+      title: '褰掓。鏃堕棿',
       minWidth: 160,
-      formatter: "formatDateTime",
+      formatter: 'formatDateTime',
     },
+    { field: 'updaterNickname', title: '鏇存柊浜�', minWidth: 100 },
+    {
+      field: 'updateTime',
+      title: '鏇存柊鏃堕棿',
+      minWidth: 160,
+      formatter: 'formatDateTime',
+    },
+
+
   ];
 }

--
Gitblit v1.9.3