From 3f3817a39238b262155cd5ec76fa351bb344602d Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 01 一月 2025 21:33:57 +0800
Subject: [PATCH] 打印工单流程卡

---
 src/api/tigerapi/mes/oper.ts |   43 ++++++++++++++++++++++---------------------
 1 files changed, 22 insertions(+), 21 deletions(-)

diff --git a/src/api/tigerapi/mes/oper.ts b/src/api/tigerapi/mes/oper.ts
index 6171675..fbd585c 100644
--- a/src/api/tigerapi/mes/oper.ts
+++ b/src/api/tigerapi/mes/oper.ts
@@ -5,6 +5,7 @@
 import { defHttp } from '/@/utils/http/axios';
 import { useUserStore } from '../../../store/modules/user';
 
+const userId = useUserStore().getUserInfo.userId.toString();
 /*
  * 鑾峰彇宸ュ簭鍒嗛〉鍒楄〃
  */
@@ -35,8 +36,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'N',
       IS_REFLOW: 'N',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '1',
@@ -50,8 +51,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'Y',
       IS_REFLOW: 'Y',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '2',
@@ -65,8 +66,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'Y',
       IS_REFLOW: 'Y',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '4',
@@ -80,8 +81,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'Y',
       IS_REFLOW: 'Y',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '4',
@@ -95,8 +96,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'N',
       IS_REFLOW: 'N',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '4',
@@ -142,8 +143,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'N',
       IS_REFLOW: 'N',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '1',
@@ -157,8 +158,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'Y',
       IS_REFLOW: 'Y',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '2',
@@ -172,8 +173,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'Y',
       IS_REFLOW: 'Y',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '4',
@@ -187,8 +188,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'Y',
       IS_REFLOW: 'Y',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '4',
@@ -202,8 +203,8 @@
       FACTORY: '楦块箘WMS',
       IS_FPY: 'N',
       IS_REFLOW: 'N',
-      CREATE_USER: useUserStore().getUserInfo.userId,
-      UPDATE_USER: useUserStore().getUserInfo.userId,
+      CREATE_USER: userId,
+      UPDATE_USER: userId,
       UPDATE_TIME: '2023-02-06',
       CREATE_TIME: '2023-02-06',
       OPER_ACTION: '4',
@@ -230,7 +231,7 @@
     );
   } else {
     params.ID = buildUUID(); //鐢熸垚GUID
-    params.CREATE_USER = useUserStore().getUserInfo.userId;
+    params.CREATE_USER = userId;
     data = await defHttp.post(
       { url: Api.AddEntity, params: genAction('MES_OPERATION', params) },
       {

--
Gitblit v1.9.3