From 236566b02c46f11f684e942b38ec43c310421fa3 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 17 三月 2026 13:06:27 +0800
Subject: [PATCH] 军泰伟业 1.仓储物流需要加上库位,库位暂时分为外购、自制、委外三种类型 2.生产订单加上库存数量,方便实时查看 3.产品发货后,若部分产品退回,可修改订单发货数量(减去退回的产品数量),若订单产品全部退回,可对发货的订单进行取消撤回操作

---
 src/views/inventoryManagement/dispatchLog/index.vue |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/src/views/inventoryManagement/dispatchLog/index.vue b/src/views/inventoryManagement/dispatchLog/index.vue
index 88d9984..2f70131 100644
--- a/src/views/inventoryManagement/dispatchLog/index.vue
+++ b/src/views/inventoryManagement/dispatchLog/index.vue
@@ -14,25 +14,33 @@
 
 <script setup>
 import Record from "@/views/inventoryManagement/dispatchLog/Record.vue";
-const activeTab = ref('qualified')
-const type = ref(0)
+import { computed, ref } from "vue";
+
+const activeTab = ref('selfMade')
+const type = ref(1)
 const tabs = computed(() => {
   return [
     {
-      label: '鍚堟牸鍑哄簱',
-      name: 'qualified',
-      type: '0'
+      label: '鑷埗',
+      name: 'selfMade',
+      type: 1
     },
     {
-      label: '涓嶅悎鏍煎嚭搴�',
-      name: 'unqualified',
-      type: '1'
+      label: '澶栬喘',
+      name: 'purchase',
+      type: 2
+    },
+    {
+      label: '濮斿',
+      name: 'outsourcing',
+      type: 3
     }
   ]
 })
 
 const handleTabChange = (tabName) => {
   activeTab.value = tabName;
-  type.value = tabName === 'qualified' ? 0 : 1
+  const tab = tabs.value.find(t => t.name === tabName);
+  type.value = tab ? tab.type : 1;
 }
 </script>

--
Gitblit v1.9.3