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 | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/src/pages/consumablesLogistics/stockManagement/add.vue b/src/pages/consumablesLogistics/stockManagement/add.vue
index fb36b60..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>
@@ -74,7 +74,7 @@
<text class="popup-title">閫夋嫨浜у搧</text>
</view>
<view class="popup-search">
- <up-input v-model="productQuery.productName" placeholder="浜у搧澶х被" clearable />
+ <up-input v-model="productQuery.productName" placeholder="浜у搧澶х被" disabled />
<up-input v-model="productQuery.model" placeholder="鍨嬪彿鍚嶇О" clearable />
<view class="popup-search-btn" @click="loadProductList">鎼滅储</view>
</view>
@@ -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,12 +132,12 @@
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({
- productName: "",
+ productName: "鑰楁潗",
model: "",
});
const productList = ref([]);
@@ -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