123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- import {BasicColumn} from '/@/components/Table';
- import {FormSchema} from '/@/components/Table';
- import { rules} from '/@/utils/helper/validator';
- import { render } from '/@/utils/common/renderUtils';
- import { getWeekMonthQuarterYear } from '/@/utils';
- //列表数据
- export const columns: BasicColumn[] = [
-
- {
- title: '开始日期(start date)',
- align:"center",
- dataIndex: 'startDate',
- key: 'startDate'
- },
- {
- title: '客户(customer)',
- align:"center",
- dataIndex: 'customerId',
- key: 'customerId'
- },
-
- {
- title: '船名(ship name)',
- align:"center",
- dataIndex: 'name',
- key: 'name'
- },
- ];
- //查询数据
- export const searchFormSchema: FormSchema[] = [
- ];
- //表单数据
- export const formSchema: FormSchema[] = [
-
- {
- label: '主表主键(船舶档案)',
- field: 'headId',
- component: 'Input',
- show: false
- },
- {
- label: 'IMO',
- field: 'imo',
- component: 'Input',
- dynamicDisabled:true,
- },
- {
- label: '名称(name)',
- field: 'name',
- component: 'Input',
- },
- {
- label: '客户(customer)',
- field: 'customerId',
- component: 'Input',
- show: ({ values }) => {
- return isShow;
- }
- },
- {
- label: '开始日期(start date)',
- field: 'startDate',
- component: 'DatePicker',
- componentProps: {
- showTime: false,
- valueFormat: 'YYYY-MM-DD'
- },
- show: ({ values }) => {
- return isShow;
- }
- },
- // TODO 主键隐藏字段,目前写死为ID
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false
- },
- ];
- // 高级查询数据
- export const superQuerySchema = {
- status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
- headId: {title: '主表主键(船舶档案)',order: 2,view: 'text', type: 'string',},
- imo: {title: '唯一编号',order: 3,view: 'text', type: 'string',},
- name: {title: '名称',order: 4,view: 'text', type: 'string',},
- customerId: {title: '客户',order: 5,view: 'text', type: 'string',},
- startDate: {title: '开始日期',order: 6,view: 'datetime', type: 'string',},
- };
- /**
- * 流程表单调用这个方法获取formSchema
- * @param param
- */
- export function getBpmFormSchema(_formData): FormSchema[]{
- // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
- return formSchema;
- }
- let isShow = true;
- export function getFIle(st){
- if(st == 1){
-
- isShow = false;
- }else{
- isShow = true;
- }
- }
|