| | |
| | | type FormProps, |
| | | type FormSchemaInner as FormSchema, |
| | | } from '../types/form'; |
| | | |
| | | |
| | | import type { Rule as ValidationRule } from 'ant-design-vue/lib/form/interface'; |
| | | import type { TableActionType } from '@/components/Table'; |
| | | import { Col, Divider, Form } from 'ant-design-vue'; |
| | |
| | | const on = { |
| | | [eventKey]: (...args: Nullable<Recordable<any>>[]) => { |
| | | const [e] = args; |
| | | |
| | | |
| | | const target = e ? e.target : null; |
| | | let value = target ? (isCheck ? target.checked : target.value) : e; |
| | | if(isFunction(valueFormat)){ |
| | | value = valueFormat({...unref(getValues),value}); |
| | | if (isFunction(valueFormat)) { |
| | | value = valueFormat({ ...unref(getValues), value }); |
| | | } |
| | | props.setFormModel(field, value, props.schema); |
| | | |
| | |
| | | '物料代码': element.ITEM_CODE, |
| | | '物料名称': element.ITEM_NAME, |
| | | '数量': element.ZK_QTY, |
| | | '单位': element.UNIT |
| | | '单位': element.UNIT, |
| | | '入库时间': element.FIRST_IN_DATE, |
| | | }); |
| | | }); |
| | | const arrHeader = columns.map((column) => column.title); |
| | |
| | | width:100, |
| | | resizable:true |
| | | }, |
| | | { |
| | | title: '入库时间', |
| | | dataIndex: 'FIRST_IN_DATE', |
| | | width:100, |
| | | resizable:true |
| | | }, |
| | | ]; |
| | | |
| | | export const searchFormSchema: FormSchema[] = [ |