From 3ea1ff641e1c680a5a1727fb4034797bfe65d93e Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 18 三月 2026 15:29:17 +0800
Subject: [PATCH] fix: 质量、耗材物流
---
src/pages/consumablesLogistics/stockManagement/add.vue | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/pages/consumablesLogistics/stockManagement/add.vue b/src/pages/consumablesLogistics/stockManagement/add.vue
index ed14b7d..38f9711 100644
--- a/src/pages/consumablesLogistics/stockManagement/add.vue
+++ b/src/pages/consumablesLogistics/stockManagement/add.vue
@@ -23,7 +23,7 @@
</view>
</view>
- <view v-if="isQualified" class="form-section">
+ <view class="form-section">
<view class="section-title">杩囩淇℃伅</view>
<view class="form-row">
<text class="form-label">杞︾墝鍙�</text>
@@ -114,7 +114,6 @@
import dayjs from "dayjs";
import PageHeader from "@/components/PageHeader.vue";
import { createConsumablesIn } from "@/api/consumablesLogistics/consumablesIn.js";
-import { createConsumablesUnInventory } from "@/api/consumablesLogistics/consumablesUninventory.js";
import { productModelList } from "@/api/basicData/productModel.js";
const form = reactive({
@@ -133,8 +132,8 @@
remark: "",
});
-const type = ref("0");
-const isQualified = computed(() => type.value === "0");
+const type = ref("0"); // 鍥哄畾鍚堟牸搴撳瓨
+const isQualified = computed(() => true);
const showProductPopup = ref(false);
const productQuery = reactive({
@@ -148,9 +147,7 @@
const weighingDateValue = ref(Date.now());
onLoad((options) => {
- if (options && options.type != null) {
- type.value = options.type;
- }
+ type.value = "0";
});
const openProductSelector = () => {
@@ -238,8 +235,7 @@
weighingOperator: form.weighingOperator,
remark: form.remark,
};
- const api = isQualified.value ? createConsumablesIn : createConsumablesUnInventory;
- api(payload)
+ createConsumablesIn(payload)
.then(() => {
uni.showToast({ title: "鏂板鎴愬姛", icon: "success" });
setTimeout(() => {
--
Gitblit v1.9.3