| | |
| | | import CrmCustomerSelect from '#/components/crm-customer-select.vue'; |
| | | import { generateAutoCode } from '#/api/mes/md/autocode/record'; |
| | | import { ErpSaleOrderSelect } from '#/views/erp/sale/order/components'; |
| | | import { MdItemSelect } from '#/views/mes/md/item/components'; |
| | | import { MdmItemSelect } from '#/views/basicData/mdm/components'; |
| | | import { WmBatchSelect } from '#/views/wls/batch/components'; |
| | | import { |
| | | WmWarehouseAreaSelect, |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '物料', |
| | | component: hasItems ? 'Select' : markRaw(MdItemSelect), |
| | | component: hasItems ? 'Select' : markRaw(MdmItemSelect), |
| | | componentProps: hasItems |
| | | ? { |
| | | placeholder: '请选择物料', |
| | |
| | | label: `${item.productName || ''}(${item.productBarCode || ''})`, |
| | | value: item.productId, |
| | | })), |
| | | showSearch: true, |
| | | onChange: (value: number | undefined) => { |
| | | const selected = items.find((i) => i.productId === value); |
| | | onItemChange?.(selected); |
| | |
| | | } |
| | | : { |
| | | placeholder: '请选择物料', |
| | | productIds: [], |
| | | }, |
| | | rules: 'selectRequired', |
| | | }, |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '物料', |
| | | component: markRaw(MdItemSelect), |
| | | component: markRaw(MdmItemSelect), |
| | | componentProps: { |
| | | disabled: true, |
| | | }, |