| | |
| | | import { generateAutoCode } from '#/api/mes/md/autocode/record'; |
| | | import { getTemplateItemOptionList } from '#/api/mes/qc/template/item'; |
| | | import { getSimpleUserList } from '#/api/system/user'; |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | | import { getDateRangePickerDefaultProps } from '#/utils'; |
| | | import { MdmItemSelect } from '#/views/basicData/mdm/components'; |
| | | |
| | | |
| | |
| | | componentProps: { |
| | | placeholder: '请输入供应商批次号', |
| | | }, |
| | | suffix: () => |
| | | h( |
| | | Button, |
| | | { |
| | | disabled: formType === 'detail', |
| | | type: 'default', |
| | | onClick: async () => { |
| | | const code = await generateAutoCode( |
| | | MesAutoCodeRuleCode.QC_IQC_VENDOR_BATCH_CODE, |
| | | ); |
| | | await formApi?.setFieldValue('vendorBatch', code); |
| | | }, |
| | | }, |
| | | { default: () => '生成' }, |
| | | ), |
| | | }, |
| | | { |
| | | fieldName: 'receivedQuantity', |
| | |
| | | label: '来料日期', |
| | | component: 'RangePicker', |
| | | componentProps: { |
| | | ...getRangePickerDefaultProps(), |
| | | ...getDateRangePickerDefaultProps(), |
| | | }, |
| | | }, |
| | | { |
| | |
| | | label: '检测日期', |
| | | component: 'RangePicker', |
| | | componentProps: { |
| | | ...getRangePickerDefaultProps(), |
| | | ...getDateRangePickerDefaultProps(), |
| | | }, |
| | | }, |
| | | { |