修改出入库数量计算

This commit is contained in:
gong
2025-12-15 14:51:35 +08:00
parent dd2ca5062f
commit c756a86739
2 changed files with 2 additions and 11 deletions

View File

@@ -36,7 +36,6 @@ const Api = {
}); });
}, },
//耗材报损 //耗材报损
reportDamage(data: any) { reportDamage(data: any) {
return request<any>({ return request<any>({
url: `${baseURL}/reportDamage`, url: `${baseURL}/reportDamage`,
@@ -52,14 +51,6 @@ const Api = {
params, params,
}); });
}, },
//耗材库存变动记录
reportinglosses(data: any) {
return request<any>({
url: `${baseURL}/reportDamage`,
method: "POST",
data,
});
},
}; };
export default Api; export default Api;

View File

@@ -380,7 +380,7 @@ export default {
inOutNumber = v.stockNumber; inOutNumber = v.stockNumber;
} }
if (v.conUnitTwo && v.unit == v.conUnitTwo) { if (v.conUnitTwo && v.unit == v.conUnitTwo) {
inOutNumber = v.stockNumber / v.conUnitTwoConvert; inOutNumber = v.stockNumber * v.conUnitTwoConvert;
} }
return { return {
conId: v.id, conId: v.id,
@@ -398,7 +398,7 @@ export default {
} else if (this.type == "out") { } else if (this.type == "out") {
await stockApi.out({ ...this.queryForm, bodyList }); await stockApi.out({ ...this.queryForm, bodyList });
} else if (this.type == "reportinglosses") { } else if (this.type == "reportinglosses") {
await stockApi.reportinglosses(bodyList); await stockApi.reportDamage(bodyList);
} }
this.queryFormLoading = false; this.queryFormLoading = false;
// const title = this.type == "in" ? "入库" : "出库"; // const title = this.type == "in" ? "入库" : "出库";