|
|
@@ -0,0 +1,84 @@
|
|
|
+/** 按 zkxw-sc 已发布模板实际出现的 type 构造;非设计器理论全集 */
|
|
|
+export const kitchenSinkRule = [
|
|
|
+ { type: 'input', field: 'title', title: '单行文本', value: '', $required: true },
|
|
|
+ { type: 'textarea', field: 'remark', title: '多行文本', value: '' },
|
|
|
+ {
|
|
|
+ type: 'select',
|
|
|
+ field: 'level',
|
|
|
+ title: '下拉',
|
|
|
+ value: '',
|
|
|
+ options: [
|
|
|
+ { label: '普通', value: 'normal' },
|
|
|
+ { label: '紧急', value: 'urgent' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ { type: 'inputNumber', field: 'qty', title: '数字', value: 1 },
|
|
|
+ {
|
|
|
+ type: 'datePicker',
|
|
|
+ field: 'bizDate',
|
|
|
+ title: '日期',
|
|
|
+ value: '',
|
|
|
+ props: { type: 'date' }
|
|
|
+ },
|
|
|
+ { type: 'upload', field: 'files', title: '附件 upload', value: [] },
|
|
|
+ { type: 'money', field: 'amount', title: '金额 money', value: '' },
|
|
|
+ {
|
|
|
+ type: 'relatedApproval',
|
|
|
+ field: 'related',
|
|
|
+ title: '关联审批 relatedApproval',
|
|
|
+ value: []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'receiveAccount',
|
|
|
+ field: 'payAccount',
|
|
|
+ title: '收款账户 receiveAccount',
|
|
|
+ value: []
|
|
|
+ },
|
|
|
+ { type: 'dept', field: 'deptId', title: '部门 dept', value: '' },
|
|
|
+ { type: 'person', field: 'personIds', title: '人员 person', value: [] },
|
|
|
+ {
|
|
|
+ type: 'ownerPerson',
|
|
|
+ field: 'ownerPerson',
|
|
|
+ title: '所属人 ownerPerson',
|
|
|
+ value: ''
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'ownerDept',
|
|
|
+ field: 'ownerDept',
|
|
|
+ title: '所属部门 ownerDept',
|
|
|
+ value: ''
|
|
|
+ },
|
|
|
+ { type: 'post', field: 'postId', title: '岗位 post', value: '' },
|
|
|
+ { type: 'leaveKit', field: 'leaveKit', title: '请假套件 leaveKit', value: {} },
|
|
|
+ {
|
|
|
+ type: 'overtimeKit',
|
|
|
+ field: 'overtimeKit',
|
|
|
+ title: '加班套件 overtimeKit',
|
|
|
+ value: {}
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'confirmationKit',
|
|
|
+ field: 'confirmationKit',
|
|
|
+ title: '转正套件 confirmationKit',
|
|
|
+ value: {}
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'resignationKit',
|
|
|
+ field: 'resignationKit',
|
|
|
+ title: '离职套件 resignationKit',
|
|
|
+ value: {}
|
|
|
+ },
|
|
|
+ { type: 'tripKit', field: 'tripKit', title: '差旅套件 tripKit', value: {} },
|
|
|
+ {
|
|
|
+ type: 'tripItinerary',
|
|
|
+ field: 'tripItinerary',
|
|
|
+ title: '行程 tripItinerary',
|
|
|
+ value: []
|
|
|
+ }
|
|
|
+]
|
|
|
+
|
|
|
+export const kitchenSinkOption = {
|
|
|
+ submitBtn: false,
|
|
|
+ resetBtn: false,
|
|
|
+ form: { labelPosition: 'top' }
|
|
|
+}
|