From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列

---
 src/views/mes/pd/project/modules/document-audit-form.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/views/mes/pd/project/modules/document-audit-form.vue b/src/views/mes/pd/project/modules/document-audit-form.vue
index 9fa4944..75c42f0 100644
--- a/src/views/mes/pd/project/modules/document-audit-form.vue
+++ b/src/views/mes/pd/project/modules/document-audit-form.vue
@@ -23,10 +23,17 @@
     { fieldName: 'documentVersion', label: '璧勬枡鐗堟湰', component: 'Input', componentProps: { disabled: true } },
     { fieldName: 'reviewerNickname', label: '瀹℃牳浜�', component: 'Input', componentProps: { disabled: true } },
     {
-      fieldName: 'auditStatus',
+      // 瀛楁鍚嶄笉鑳界敤 auditStatus锛氳嚜鍔ㄥ鎵规ā寮忎笅浼氳 adapter/form 鐨� isAuditField 鏁存潯杩囨护鎺夛紝瀵艰嚧瀹℃牳浜烘棤娉曢�夋嫨
+      fieldName: 'auditResult',
       label: '瀹℃牳缁撴灉',
       component: 'Select',
-      componentProps: { options: getDictOptions(DICT_TYPE.MES_PD_DOCUMENT_AUDIT_STATUS, 'number'), placeholder: '璇烽�夋嫨瀹℃牳缁撴灉' },
+      componentProps: {
+        options: getDictOptions(
+          DICT_TYPE.MES_PD_DOCUMENT_AUDIT_STATUS,
+          'number',
+        ).filter((item) => item.value !== 0), // 0 涓哄緟瀹℃牳锛屽鏍告椂鍙厑璁搁�氳繃/涓嶉�氳繃
+        placeholder: '璇烽�夋嫨瀹℃牳缁撴灉',
+      },
       rules: 'selectRequired',
     },
     { fieldName: 'remark', label: '瀹℃牳鎰忚', component: 'Textarea', componentProps: { placeholder: '璇疯緭鍏ュ鏍告剰瑙�', rows: 3 } },
@@ -41,7 +48,7 @@
     modalApi.lock();
     try {
       const raw = await formApi.getValues();
-      await updatePdDocumentAudit({ id: raw.id, auditStatus: raw.auditStatus, remark: raw.remark, auditTime: Date.now() });
+      await updatePdDocumentAudit({ id: raw.id, auditStatus: raw.auditResult, remark: raw.remark, auditTime: Date.now() });
       emit('success');
       message.success($t('ui.actionMessage.operationSuccess'));
       await modalApi.close();
@@ -53,7 +60,8 @@
     if (!isOpen) return;
     const data = modalApi.getData<MesPdDocumentAuditApi.DocumentAudit>();
     modalApi.setState({ title: '璧勬枡瀹℃牳' });
-    await formApi.setValues(data);
+    // 姣忔鎵撳紑閮芥竻绌哄鏍哥粨鏋滐紝閬垮厤澶嶇敤涓婁竴琛屽凡閫夌殑鍊�
+    await formApi.setValues({ ...data, auditResult: undefined });
   },
 });
 </script>

--
Gitblit v1.9.3