From 557c2b3c50027c2eb6fb9f7e562fc2c7b2b38203 Mon Sep 17 00:00:00 2001
From: quxin <592870522@qq.com>
Date: 星期五, 04 九月 2026 11:37:17 +0800
Subject: [PATCH] 修复: 生产领料后的退料应该是选择领料的记录,不是选择库存的记录(同时库存数据需要根据领料退料变动,比如库存100,领用80,然后领用80中退料30,库存应由原来的20变成50)

---
 src/api/mes/pd/bom/index.ts |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/src/api/mes/pd/bom/index.ts b/src/api/mes/pd/bom/index.ts
index 9e4ad3f..f3de70d 100644
--- a/src/api/mes/pd/bom/index.ts
+++ b/src/api/mes/pd/bom/index.ts
@@ -2,9 +2,6 @@
 
 import { requestClient } from '#/api/request';
 
-import { isPdMockEnabled } from '../mock/enabled';
-import { pdMockStore } from '../mock/store';
-
 export namespace MesPdBomApi {
   /** 璁捐 BOM 琛� */
   export interface BomLine {
@@ -28,9 +25,6 @@
 }
 
 export function getPdBomPage(params: MesPdBomApi.PageParams) {
-  if (isPdMockEnabled()) {
-    return pdMockStore.getBomPage(params);
-  }
   return requestClient.get<PageResult<MesPdBomApi.BomLine>>(
     '/mes/pd/bom/page',
     { params },
@@ -38,22 +32,13 @@
 }
 
 export function createPdBomLine(data: MesPdBomApi.BomLine) {
-  if (isPdMockEnabled()) {
-    return pdMockStore.createBomLine(data);
-  }
   return requestClient.post<number>('/mes/pd/bom/create', data);
 }
 
 export function updatePdBomLine(data: MesPdBomApi.BomLine) {
-  if (isPdMockEnabled()) {
-    return pdMockStore.updateBomLine(data);
-  }
   return requestClient.put('/mes/pd/bom/update', data);
 }
 
 export function deletePdBomLine(id: number) {
-  if (isPdMockEnabled()) {
-    return pdMockStore.deleteBomLine(id);
-  }
   return requestClient.delete(`/mes/pd/bom/delete?id=${id}`);
 }

--
Gitblit v1.9.3