liu
2026-10-24 72fada619e4fbbb4c2678dce73ec8ef6f6145dd5
fix(mes): 修正条码客户选择接口
已修改1个文件
9 ■■■■■ 文件已修改
src/views/wls/barcode/data.ts 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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),
      },