From 8a9338f2f43bfe936124feaaa22420b4ca86eb84 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 19 十月 2026 11:31:24 +0800
Subject: [PATCH] feat(qc): 完善质检流程功能

---
 src/api/mes/qc/oqc/index.ts |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/api/mes/qc/oqc/index.ts b/src/api/mes/qc/oqc/index.ts
index 793f6db..c6ee5c0 100644
--- a/src/api/mes/qc/oqc/index.ts
+++ b/src/api/mes/qc/oqc/index.ts
@@ -39,6 +39,7 @@
     inspectorUserId?: number; // 妫�娴嬩汉鍛樼敤鎴� ID
     inspectorNickname?: string; // 妫�娴嬩汉鍛樻樀绉帮紙鍏宠仈鏌ヨ锛�
     status?: number; // 鐘舵��
+    workflowStatus?: number; // 閿�鍞川妫�澶嶆鍜屽鎵圭姸鎬�
     remark?: string; // 澶囨敞
   }
 }
@@ -69,6 +70,16 @@
 export function finishOqc(id: number) {
   return requestClient.put(`/mes/qc/oqc/finish?id=${id}`);
 }
+export function retestOqc(data: { id: number; checkQuantity: number; qualifiedQuantity: number; unqualifiedQuantity: number; checkResult: number; opinion?: string }) {
+  return requestClient.post('/mes/qc/oqc/retest', data);
+}
+export function approveOqc(stage: 'sales' | 'company', data: { id: number; approved: boolean; opinion: string }) {
+  return requestClient.post(`/mes/qc/oqc/${stage}-approve`, data);
+}
+export interface OqcAction { id: number; action: string; result?: number; opinion?: string; quantitiesJson?: string; operatorId?: number; createTime?: string }
+export function getOqcActions(id: number) {
+  return requestClient.get<OqcAction[]>('/mes/qc/oqc/actions', { params: { id } });
+}
 
 /** 鍒犻櫎鍑鸿揣妫�楠屽崟 */
 export function deleteOqc(id: number) {

--
Gitblit v1.9.3