From 91c82965b2d987452ca276e3a03b48c8dcda2ae9 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 19 八月 2026 11:47:26 +0800
Subject: [PATCH] config(env): 更新生产环境配置和公司名称

---
 src/views/erp/purchase/invoice/index.vue |   42 ------------------------------------------
 1 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/src/views/erp/purchase/invoice/index.vue b/src/views/erp/purchase/invoice/index.vue
index c0cbd7b..38fc81b 100644
--- a/src/views/erp/purchase/invoice/index.vue
+++ b/src/views/erp/purchase/invoice/index.vue
@@ -12,7 +12,6 @@
   deletePurchaseInvoice,
   exportPurchaseInvoice,
   getPurchaseInvoicePage,
-  updatePurchaseInvoiceStatus,
 } from '#/api/erp/purchase/invoice';
 import { $t } from '#/locales';
 
@@ -62,24 +61,6 @@
   try {
     await deletePurchaseInvoice(row.id!);
     message.success($t('ui.actionMessage.deleteSuccess', [row.no]));
-    handleRefresh();
-  } finally {
-    hideLoading();
-  }
-}
-
-/** 鏇存柊鏉ョエ鐘舵�侊紙瀹℃牳/鍙嶅鏍革級 */
-async function handleUpdateStatus(
-  row: ErpPurchaseInvoiceApi.PurchaseInvoice,
-  status: number,
-) {
-  const hideLoading = message.loading({
-    content: '鏇存柊鐘舵�佷腑...',
-    duration: 0,
-  });
-  try {
-    await updatePurchaseInvoiceStatus(row.id!, status);
-    message.success('鏇存柊鐘舵�佹垚鍔�');
     handleRefresh();
   } finally {
     hideLoading();
@@ -153,11 +134,6 @@
         <Tag v-if="!row.hasAttachment" color="warning">鏈笂浼�</Tag>
         <Tag v-else color="success">宸蹭笂浼�</Tag>
       </template>
-      <template #auditStatus="{ row }">
-        <Tag v-if="row.auditStatus === 10" color="warning">鏈鏍�</Tag>
-        <Tag v-else-if="row.auditStatus === 20" color="success">宸插鏍�</Tag>
-        <Tag v-else color="default">--</Tag>
-      </template>
       <template #actions="{ row }">
         <TableAction
           :actions="[
@@ -173,24 +149,7 @@
               type: 'link',
               icon: ACTION_ICON.EDIT,
               auth: ['erp:purchase-invoice:update'],
-              ifShow: row.auditStatus === 10,
               onClick: handleEdit.bind(null, row),
-            },
-            {
-              label: '瀹℃牳',
-              type: 'link',
-              icon: ACTION_ICON.AUDIT,
-              auth: ['erp:purchase-invoice:update-status'],
-              ifShow: row.auditStatus === 10,
-              onClick: handleUpdateStatus.bind(null, row, 20),
-            },
-            {
-              label: '鍙嶅鏍�',
-              type: 'link',
-              icon: ACTION_ICON.VIEW,
-              auth: ['erp:purchase-invoice:update-status'],
-              ifShow: row.auditStatus === 20,
-              onClick: handleUpdateStatus.bind(null, row, 10),
             },
             {
               label: $t('common.delete'),
@@ -198,7 +157,6 @@
               danger: true,
               icon: ACTION_ICON.DELETE,
               auth: ['erp:purchase-invoice:delete'],
-              ifShow: row.auditStatus !== 20,
               popConfirm: {
                 title: $t('ui.actionMessage.deleteConfirm', [row.no]),
                 confirm: handleDelete.bind(null, row),

--
Gitblit v1.9.3