From cb9e409180fca1d773334d78e1cfae06e443fad6 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 05 十一月 2026 17:40:24 +0800
Subject: [PATCH] feat: 同步售后、HR、采购与 MES 前端改动
---
src/views/hrm/resignation/index.vue | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/views/hrm/resignation/index.vue b/src/views/hrm/resignation/index.vue
index 0166dd8..ac8dd4c 100644
--- a/src/views/hrm/resignation/index.vue
+++ b/src/views/hrm/resignation/index.vue
@@ -73,13 +73,10 @@
handleRefresh();
}
-/** 鏇存柊浜ゆ帴鐘舵�� */
+/** 瀹屾垚宸ヤ綔浜ゆ帴锛氬鎵归�氳繃鍚庝竴娆$偣鍑荤洿鎺ュ畬鎴愶紝浜ゆ帴浜洪殢鍗宠幏寰楃鑱屼汉鐨勪笟鍔℃暟鎹� */
async function handleUpdateHandover(row: HrmResignationApi.Resignation) {
- // 浜ゆ帴鐘舵�侊細0-鏈紑濮嬶紝10-杩涜涓紝20-宸插畬鎴�
- const nextStatus = row.handoverStatus === 0 ? 10 : row.handoverStatus === 10 ? 20 : 0;
- const statusText = nextStatus === 10 ? '杩涜涓�' : nextStatus === 20 ? '宸插畬鎴�' : '鏈紑濮�';
- await updateHandoverStatus(row.id!, nextStatus);
- message.success(`浜ゆ帴鐘舵�佸凡鏇存柊涓猴細${statusText}`);
+ await updateHandoverStatus(row.id!, 20);
+ message.success('浜ゆ帴宸插畬鎴愶紝绂昏亴浜虹殑涓氬姟鏁版嵁宸茶浆缁欎氦鎺ヤ汉');
handleRefresh();
}
@@ -161,12 +158,13 @@
onClick: handleCancel.bind(null, row),
},
{
- label: '浜ゆ帴',
+ label: '瀹屾垚浜ゆ帴',
type: 'link',
auth: ['hrm:resignation:update'],
ifShow: row.status === 20 && row.handoverStatus !== 20,
popConfirm: {
- title: row.handoverStatus === 0 ? '纭寮�濮嬩氦鎺ュ悧锛�' : '纭瀹屾垚浜ゆ帴鍚楋紵',
+ title:
+ '纭瀹屾垚浜ゆ帴鍚楋紵纭鍚庣鑱屼汉鐨勪笟鍔℃暟鎹皢杞粰浜ゆ帴浜猴紝涓斾笉鍙洖閫�',
confirm: handleUpdateHandover.bind(null, row),
},
},
--
Gitblit v1.9.3