From c756a867391c5630a7455b8ca8f37e24f29bdb0b Mon Sep 17 00:00:00 2001 From: gong <1157756119@qq.com> Date: Mon, 15 Dec 2025 14:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/stock.ts | 9 --------- src/views/inventory/operation_in/index.vue | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/api/product/stock.ts b/src/api/product/stock.ts index a0cf26f..6e2d477 100644 --- a/src/api/product/stock.ts +++ b/src/api/product/stock.ts @@ -36,7 +36,6 @@ const Api = { }); }, //耗材报损 - reportDamage(data: any) { return request({ url: `${baseURL}/reportDamage`, @@ -52,14 +51,6 @@ const Api = { params, }); }, - //耗材库存变动记录 - reportinglosses(data: any) { - return request({ - url: `${baseURL}/reportDamage`, - method: "POST", - data, - }); - }, }; export default Api; diff --git a/src/views/inventory/operation_in/index.vue b/src/views/inventory/operation_in/index.vue index e2f2e83..a39f2cd 100644 --- a/src/views/inventory/operation_in/index.vue +++ b/src/views/inventory/operation_in/index.vue @@ -380,7 +380,7 @@ export default { inOutNumber = v.stockNumber; } if (v.conUnitTwo && v.unit == v.conUnitTwo) { - inOutNumber = v.stockNumber / v.conUnitTwoConvert; + inOutNumber = v.stockNumber * v.conUnitTwoConvert; } return { conId: v.id, @@ -398,7 +398,7 @@ export default { } else if (this.type == "out") { await stockApi.out({ ...this.queryForm, bodyList }); } else if (this.type == "reportinglosses") { - await stockApi.reportinglosses(bodyList); + await stockApi.reportDamage(bodyList); } this.queryFormLoading = false; // const title = this.type == "in" ? "入库" : "出库";