{ "type" : "page", "title" : "签证单管理", "body" : { "type" : "crud", "api" : "/api/flow/PM_PROJECTCHANGEVISALIST_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "VISATYPE", "label" : "签证类别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/VisaType" }, { "name" : "SENDDATE", "label" : "发送日期", "type" : "input-date-range" }, { "name" : "REMINDDATE", "label" : "提醒日期", "type" : "input-date-range" }, { "name" : "APPROVALDATE", "label" : "签字日期", "type" : "input-date-range" }, { "name" : "VISASTATE", "label" : "签证状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/VisaState" } ] }, "columns" : [ { "name" : "PM_PROJECTCHANGEVISALIST_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200, "toggled" : false }, { "name" : "VISATYPE", "label" : "签证类别", "width" : 90, "type" : "mapping", "map" : { "1" : "工程量签证", "2" : "工程联系单", "4" : "图纸会审记录", "5" : "变更设计通知单", "6" : "工程确认单" } }, { "name" : "VISANO", "label" : "签证单号", "width" : 140 }, { "name" : "VISANAME", "label" : "签证单名称", "width" : 200 }, { "name" : "CHANGECONTENT", "label" : "变更内容", "toggled" : false }, { "name" : "CREATEBY_DISPLAY__", "label" : "经办人", "width" : 70 }, { "name" : "SENDDATE", "label" : "送签日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REMINDDATE", "label" : "提醒日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "APPROVALDATE", "label" : "签字日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "VISASTATE", "label" : "签证状态", "width" : 70, "type" : "mapping", "map" : { "1" : "已签", "2" : "未签" } }, { "name" : "签证显示名称", "label" : "签证显示名称", "width" : 200, "toggled" : false } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/120c2e29-287e-4b3a-ad36-c698a1d82ba4?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PROJECTCHANGEVISALIST/defaults?templateId=120c2e29-287e-4b3a-ad36-c698a1d82ba4" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTCHANGEVISALIST_ADD?__egtpl=120c2e29-287e-4b3a-ad36-c698a1d82ba4", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "修改", "label" : "修改", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "修改", "size" : "lg", "data" : { "&" : "${selectedItems[0]}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/120c2e29-287e-4b3a-ad36-c698a1d82ba4?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTCHANGEVISALIST_LOAD?__egtpl=120c2e29-287e-4b3a-ad36-c698a1d82ba4", "data" : { "PM_PROJECTCHANGEVISALIST_ID" : "${PM_PROJECTCHANGEVISALIST_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTCHANGEVISALIST_UPDATE?__egtpl=120c2e29-287e-4b3a-ad36-c698a1d82ba4", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "删除", "label" : "删除", "level" : "danger", "actionType" : "ajax", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTCHANGEVISALIST_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PROJECTCHANGEVISALIST_ID|join:','}" } } }, { "type" : "button", "id" : "查看", "label" : "查看", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "查看", "size" : "lg", "data" : { "&" : "${selectedItems[0]}", "__readonly" : true }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/120c2e29-287e-4b3a-ad36-c698a1d82ba4?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTCHANGEVISALIST_LOAD?__egtpl=120c2e29-287e-4b3a-ad36-c698a1d82ba4", "data" : { "PM_PROJECTCHANGEVISALIST_ID" : "${PM_PROJECTCHANGEVISALIST_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_PROJECTCHANGEVISALIST_ID" } }