From 72fada619e4fbbb4c2678dce73ec8ef6f6145dd5 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期六, 24 十月 2026 23:25:41 +0800
Subject: [PATCH] fix(mes): 修正条码客户选择接口
---
src/views/wls/barcode/data.ts | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/wls/barcode/data.ts b/src/views/wls/barcode/data.ts
index fb7ac7f..ecc0c80 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),
},
--
Gitblit v1.9.3