| | |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | |
| | | import { getSupplierSimpleList } from '#/api/erp/purchase/supplier'; |
| | | import { getSupplierSimpleList } from '#/api/srm/supplier'; |
| | | import { getSimpleUserList } from '#/api/system/user'; |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | | |
| | |
| | | placeholder: '选择申请时间', |
| | | showTime: true, |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | disabled: formType === 'detail', |
| | | }, |
| | | rules: 'required', |
| | |
| | | formItemClass: 'col-span-2', |
| | | }, |
| | | { |
| | | fieldName: 'fileUrl', |
| | | fieldName: 'blobIds', |
| | | label: '附件', |
| | | component: 'FileUpload', |
| | | componentProps: { |
| | | placeholder: '请上传附件', |
| | | valueKey: 'id', |
| | | maxNumber: 10, |
| | | multiple: true, |
| | | disabled: formType === 'detail', |
| | | }, |
| | | formItemClass: 'col-span-2', |
| | |
| | | title: '入库数量', |
| | | minWidth: 100, |
| | | fixed: 'right', |
| | | formatter: 'formatAmount6', |
| | | formatter: 'formatAmount3', |
| | | }, |
| | | { |
| | | field: 'productPrice', |
| | |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'inStatus', |
| | | label: '入库状态', |
| | | component: 'Select', |
| | | componentProps: { |
| | | options: [ |
| | | { label: '未入库', value: 0 }, |
| | | { label: '部分入库', value: 1 }, |
| | | { label: '全部入库', value: 2 }, |
| | | ], |
| | | placeholder: '请选择入库状态', |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | | ]; |
| | | } |
| | | |
| | |
| | | field: 'status', |
| | | title: '状态', |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | slots: { default: 'status' }, |
| | | }, |
| | | { |
| | | field: 'inStatus', |
| | | title: '入库状态', |
| | | minWidth: 100, |
| | | fixed: 'right', |
| | | slots: { default: 'inStatus' }, |
| | | }, |
| | | { |