import { FieldDataType, FieldValueType } from './fields/field' import { ItemSelectValueType } from '@/types' export type { FormInstance } from 'antd-mobile/es/components/form' export type DisplayConfigType = { ruleName: string linkCondition: 'every' | 'some' rules: { leftValue: string compareSymbol: string rightValue: any }[] displayComponentList: string[] }[] export type FormatDisplayConfigType = { [key: string]: { linkCondition: DisplayConfigType[number]['linkCondition'] rules: DisplayConfigType[number]['rules'] }[] } export type FormDataType = { currentNodeDetail: { nodeInfo?: { id: string name: string relationEvent: { eventId: string eventType: string isAuto: boolean showPreNodeComponent: any[] webPreNodeComponent: any[] workOrderTemplateId: string } } workOrderTemplateInfo: { name: string // 表单名称 description: string // 表单自定义描述 componentDtoList: FieldDataType[] flowTemplateConfig?: { showHideRule?: { rules: DisplayConfigType } } deleted: boolean enabled: boolean groupId: number preNodeComponentDtoList: any[] topImgUrl: string uniqueKey: string userId: string userList: any[] workOrderComponentSort: string } } flowRecordList: any[] flowTemplateKey: string flowTemplateId: string flowVersion: number name: string } export type FormPropsType = { formData: FormDataType } export type FormValuesType = { [key: string]: FieldValueType } export type SubmitValueType = { uniqueKey: string workOrderComponentType: FieldDataType['workOrderComponentType'] contentList: ContentListType[] } export type SubmitCascaderValueType = { label: string; actived: string }[] export type ContentListType = { uniqueKey: string content: | number | string | string[] | SubmitCascaderValueType | ItemSelectValueType[] name: string } export type OrderDetailValueType = { expressLogisticsCode?: string expressLogisticsCompany?: string actualPayment: number actualReceiptPayment: number alipayTradeNo: string buyerNick: string buyerOpenUid: string city: string cityCode: number flag: string // itemList: 商品列表,数据用到了在重新定义 itemList: any[] orderClosingDateTime: number orderCreateDateTime: number orderNo: string platformConstant: number province: string provinceCode: number remark: string success: true town: string townCode: number }