From 70b7935fc261cd5e8eaaf1cfbc8078b04db576d2 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期六, 07 十一月 2026 14:51:06 +0800
Subject: [PATCH] fix(mes): 自动回填销售订单生产信息

---
 src/views/wls/barcode/data.ts |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/wls/barcode/data.ts b/src/views/wls/barcode/data.ts
index fb7ac7f..7b0008f 100644
--- a/src/views/wls/barcode/data.ts
+++ b/src/views/wls/barcode/data.ts
@@ -18,8 +18,8 @@
 import { z } from '#/adapter/form';
 import { generateBarcodeContent } from '#/api/mes/wm/barcode';
 import { DictTag } from '#/components/dict-tag';
+import CrmCustomerSelect from '#/components/crm-customer-select.vue';
 import { DvMachinerySelect } from '#/views/mes/dv/machinery/components';
-import { MdClientSelect } from '#/views/mes/md/client/components';
 import { MdItemSelect } from '#/views/mes/md/item/components';
 import { SrmSupplierSelect } from '#/views/srm/supplier/components';
 import {
@@ -76,6 +76,11 @@
     case BarcodeBizTypeEnum.STOCK: {
       bizCode = item.itemCode;
       bizName = item.itemName;
+      break;
+    }
+    case BarcodeBizTypeEnum.CLIENT: {
+      bizCode = String(item.id);
+      bizName = item.name;
       break;
     }
     default: {
@@ -301,7 +306,7 @@
     {
       fieldName: 'bizId',
       label: '瀹㈡埛',
-      component: markRaw(MdClientSelect),
+      component: markRaw(CrmCustomerSelect),
       componentProps: {
         onChange: (item: any) => syncBizDetail(formApi, item),
       },
@@ -609,6 +614,7 @@
 /** 閰嶇疆鍒楄〃鐨勫瓧娈� */
 export function useConfigGridColumns(
   onAutoGenerateChange: (
+    newValue: boolean,
     row: MesWmBarcodeConfigApi.BarcodeConfig,
   ) => Promise<boolean>,
 ): VxeTableGridOptions<MesWmBarcodeConfigApi.BarcodeConfig>['columns'] {

--
Gitblit v1.9.3