From 679c5b64e0dcbee2ea29c38c9c55c3ff1d4b6258 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 02 十一月 2026 10:51:36 +0800
Subject: [PATCH] 诚发五金:入库/调整/移库/调拨/盘点表单去掉库区库位选择,改由后端默认库区库位兜底

---
 src/views/wls/stocktaking/task/data.ts |   71 +----------------------------------
 1 files changed, 2 insertions(+), 69 deletions(-)

diff --git a/src/views/wls/stocktaking/task/data.ts b/src/views/wls/stocktaking/task/data.ts
index ed62e0c..5253313 100644
--- a/src/views/wls/stocktaking/task/data.ts
+++ b/src/views/wls/stocktaking/task/data.ts
@@ -22,11 +22,7 @@
 import { getRangePickerDefaultProps } from '#/utils';
 import { MdItemSelect } from '#/views/mes/md/item/components';
 import { StockTakingPlanSelect } from '#/views/wls/stocktaking/plan/components';
-import {
-  WmWarehouseAreaSelect,
-  WmWarehouseLocationSelect,
-  WmWarehouseSelect,
-} from '#/views/wls/warehouse/components';
+import { WmWarehouseSelect } from '#/views/wls/warehouse/components';
 
 /** 琛ㄥ崟绫诲瀷 */
 export type FormType = 'create' | 'detail' | 'execute' | 'submit' | 'update';
@@ -366,16 +362,6 @@
       minWidth: 120,
     },
     {
-      field: 'locationName',
-      title: '搴撳尯',
-      minWidth: 120,
-    },
-    {
-      field: 'areaName',
-      title: '搴撲綅',
-      minWidth: 120,
-    },
-    {
       field: 'status',
       title: '鐘舵��',
       minWidth: 100,
@@ -428,16 +414,6 @@
       minWidth: 120,
     },
     {
-      field: 'locationName',
-      title: '搴撳尯',
-      minWidth: 120,
-    },
-    {
-      field: 'areaName',
-      title: '搴撲綅',
-      minWidth: 120,
-    },
-    {
       field: 'quantity',
       title: '鏁伴噺',
       minWidth: 120,
@@ -476,19 +452,15 @@
         onChange: async (lineId?: number) => {
           const line = taskLines.find((item) => item.id === lineId);
           await formApi?.setValues({
-            areaId: line?.areaId,
             batchCode: line?.batchCode,
             batchId: line?.batchId,
             itemId: line?.itemId,
-            locationId: line?.locationId,
             materialStockId: line?.materialStockId,
             warehouseId: line?.warehouseId,
           });
         },
         options: taskLines.map((line) => ({
-          label: `${line.itemCode} - ${line.itemName} (${line.warehouseName}${
-            line.locationName ? ` / ${line.locationName}` : ''
-          }${line.areaName ? ` / ${line.areaName}` : ''})`,
+          label: `${line.itemCode} - ${line.itemName} (${line.warehouseName})`,
           value: line.id,
         })),
         placeholder: '璇烽�夋嫨鐩樼偣娓呭崟锛堝彲閫夛級',
@@ -538,12 +510,6 @@
       label: '浠撳簱',
       component: markRaw(WmWarehouseSelect),
       componentProps: {
-        // 浠撳簱鍙樺寲鏃舵竻绌哄簱鍖哄拰搴撲綅
-        onChange: () =>
-          formApi?.setValues({
-            areaId: undefined,
-            locationId: undefined,
-          }),
         placeholder: '璇烽�夋嫨浠撳簱',
       },
       rules: 'selectRequired',
@@ -551,39 +517,6 @@
       dependencies: {
         triggerFields: ['lineId'],
         disabled: (values) => values.lineId !== null,
-      },
-    },
-    {
-      fieldName: 'locationId',
-      label: '搴撳尯',
-      component: markRaw(WmWarehouseLocationSelect),
-      rules: 'selectRequired',
-      dependencies: {
-        triggerFields: ['warehouseId', 'lineId'],
-        show: (values) => !!values.warehouseId,
-        // 閫変腑鐩樼偣娓呭崟鍚庯紝搴撳尯鐢辨竻鍗曞甫鍑轰笖绂佹鏀瑰姩
-        disabled: (values) => values.lineId !== null,
-        componentProps: (values) => ({
-          onChange: () => formApi?.setFieldValue('areaId', undefined),
-          placeholder: '璇烽�夋嫨搴撳尯',
-          warehouseId: values.warehouseId,
-        }),
-      },
-    },
-    {
-      fieldName: 'areaId',
-      label: '搴撲綅',
-      component: markRaw(WmWarehouseAreaSelect),
-      rules: 'selectRequired',
-      dependencies: {
-        triggerFields: ['locationId', 'lineId'],
-        show: (values) => !!values.locationId,
-        // 閫変腑鐩樼偣娓呭崟鍚庯紝搴撲綅鐢辨竻鍗曞甫鍑轰笖绂佹鏀瑰姩
-        disabled: (values) => values.lineId !== null,
-        componentProps: (values) => ({
-          locationId: values.locationId,
-          placeholder: '璇烽�夋嫨搴撲綅',
-        }),
       },
     },
     {

--
Gitblit v1.9.3