| | |
| | | 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 { |
| | |
| | | case BarcodeBizTypeEnum.STOCK: { |
| | | bizCode = item.itemCode; |
| | | bizName = item.itemName; |
| | | break; |
| | | } |
| | | case BarcodeBizTypeEnum.CLIENT: { |
| | | bizCode = String(item.id); |
| | | bizName = item.name; |
| | | break; |
| | | } |
| | | default: { |
| | |
| | | { |
| | | fieldName: 'bizId', |
| | | label: '客户', |
| | | component: markRaw(MdClientSelect), |
| | | component: markRaw(CrmCustomerSelect), |
| | | componentProps: { |
| | | onChange: (item: any) => syncBizDetail(formApi, item), |
| | | }, |