| | |
| | | } from '#/views/wls/warehouse/components'; |
| | | |
| | | /** 表单类型 */ |
| | | export type FormType = 'create' | 'detail' | 'execute' | 'submit' | 'update'; |
| | | export type FormType = 'create' | 'detail' | 'submit' | 'update'; |
| | | |
| | | /** 表单头部是否只读(提交、执行盘点、详情态) */ |
| | | /** 表单头部是否只读(提交、详情态) */ |
| | | function isHeaderReadonly(formType: FormType): boolean { |
| | | return ( |
| | | formType === 'detail' || formType === 'execute' || formType === 'submit' |
| | | ); |
| | | return formType === 'detail' || formType === 'submit'; |
| | | } |
| | | |
| | | /** 新增/修改的表单 */ |
| | |
| | | componentProps: { |
| | | placeholder: '请选择开始时间', |
| | | showTime: true, |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | dependencies: { |
| | | triggerFields: ['type'], |
| | |
| | | componentProps: { |
| | | placeholder: '请选择结束时间', |
| | | showTime: true, |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | dependencies: { |
| | | triggerFields: ['type'], |