From e0fc86fda41a8777a0cec5a9de7aa9f1474f5dc8 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 08 十月 2026 17:09:52 +0800
Subject: [PATCH] fix: 库存操作原型绘制。单丝领用,添加字段

---
 src/pages/production/twist/receive/plate/form.vue |   47 ++++-------------------------------------------
 1 files changed, 4 insertions(+), 43 deletions(-)

diff --git a/src/pages/production/twist/receive/plate/form.vue b/src/pages/production/twist/receive/plate/form.vue
index ed1b5e1..78bf4b5 100644
--- a/src/pages/production/twist/receive/plate/form.vue
+++ b/src/pages/production/twist/receive/plate/form.vue
@@ -13,11 +13,11 @@
       />
       <wd-input
         v-model="model.model"
-        label="灏哄"
+        label="瑙勬牸鍨嬪彿"
         label-width="100px"
         prop="model"
         clearable
-        placeholder="璇疯緭鍏ュ昂瀵�"
+        placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�"
       />
       <wd-input
         v-model="model.amount"
@@ -36,16 +36,6 @@
         placeholder="璇烽�夋嫨鍗曚綅"
         clearable
         @confirm="handleUnitChange"
-      />
-      <wd-picker
-        v-model="model.supplier"
-        :columns="supplierOptions"
-        label="鍘傚"
-        label-width="100px"
-        prop="supplier"
-        placeholder="璇烽�夋嫨鍘傚"
-        clearable
-        @confirm="handleSupplierChange"
       />
     </wd-cell-group>
     <wd-toast />
@@ -78,7 +68,6 @@
   model: undefined, // 灏哄
   amount: undefined, // 鏁伴噺
   unit: "鍙�", // 鍗曚綅锛岄粯璁ゅ�间负"鍙�"
-  supplier: undefined,
   type: "鐩樺叿",
 });
 
@@ -92,9 +81,6 @@
 
 // 鍗曚綅瀛楀吀鏁版嵁
 const unitOptions = ref<Array<{ label: string; value: string }>>([]);
-
-// 鍘傚瀛楀吀鏁版嵁
-const supplierOptions = ref<Array<{ label: string; value: string }>>([]);
 
 // 鍔犺浇鐩樺叿绫诲瀷瀛楀吀鏁版嵁
 const loadDiskMaterialDict = async () => {
@@ -133,21 +119,6 @@
   }
 };
 
-// 鍔犺浇鍘傚瀛楀吀鏁版嵁
-const loadSupplierDict = async () => {
-  try {
-    const res = await ManageApi.dictAPI("reel_factory");
-    if (res.data && Array.isArray(res.data)) {
-      supplierOptions.value = res.data.map((item: any) => ({
-        label: item.dictLabel || "",
-        value: item.dictValue || "",
-      }));
-    }
-  } catch (error) {
-    // 鍔犺浇瀛楀吀澶辫触锛岄潤榛樺鐞�
-  }
-};
-
 // 澶勭悊鐩樺叿绫诲瀷閫夋嫨
 const handleDiskMaterialChange = (val: any) => {
   model.diskMaterial = val.value;
@@ -156,11 +127,6 @@
 // 澶勭悊鍗曚綅閫夋嫨
 const handleUnitChange = (val: any) => {
   model.unit = val.value;
-};
-
-// 澶勭悊鍘傚閫夋嫨
-const handleSupplierChange = (val: any) => {
-  model.supplier = val.value;
 };
 
 // 鐩戝惉 model.diskMaterial 鍙樺寲锛屽悓姝ラ�夋嫨鍣ㄦ樉绀�
@@ -200,14 +166,13 @@
   // 鏇存柊鍒楄〃涓搴旂殑鏁版嵁椤�
   const updatedList = currentList.map((item) => {
     if (item.id === currentId) {
-      // 淇濈暀鍘熸湁鏁版嵁锛岀劧鍚庢洿鏂颁慨鏀圭殑瀛楁
+      // 淇濈暀鍘熸湁鏁版嵁锛堝惈鍘傚绛夊巻鍙插瓧娈碉級锛屽彧鏇存柊鍙紪杈戝瓧娈�
       const updatedItem = {
-        ...item, // 鍏堜繚鐣欏師鏈夌殑鎵�鏈夋暟鎹�
+        ...item,
         diskMaterial: model.diskMaterial,
         model: model.model,
         amount: model.amount,
         unit: model.unit,
-        supplier: model.supplier,
         type: model.type,
       };
       return updatedItem;
@@ -244,7 +209,6 @@
     model.model = currentItem.model;
     model.amount = currentItem.amount;
     model.unit = currentItem.unit || "鍙�";
-    model.supplier = currentItem.supplier;
     model.type = currentItem.type || "鐩樺叿";
     // 璁剧疆鐩樺叿绫诲瀷鐨勫洖鏄惧��
     diskMaterialValue.value = currentItem.diskMaterial || "";
@@ -258,7 +222,6 @@
 onMounted(async () => {
   await loadDiskMaterialDict();
   await loadUnitDict();
-  await loadSupplierDict();
 });
 
 // 鐩戝惉缂栬緫鏁版嵁鍙樺寲锛岃嚜鍔ㄥ洖鏄�
@@ -270,7 +233,6 @@
       model.model = newData.model || "";
       model.amount = newData.amount || "";
       model.unit = newData.unit || "鍙�";
-      model.supplier = newData.supplier || "";
       model.type = newData.type || "鐩樺叿";
       diskMaterialValue.value = newData.diskMaterial || "";
     }
@@ -284,7 +246,6 @@
   model.model = undefined;
   model.amount = undefined;
   model.unit = "鍙�";
-  model.supplier = undefined;
   model.type = "鐩樺叿";
   diskMaterialValue.value = "";
 };

--
Gitblit v1.9.3