{ "type" : "page", "title" : "薪资项目", "body" : { "type" : "crud", "api" : "/api/flow/HR_PAYITEM_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NAME", "label" : "名称", "type" : "input-text" }, { "name" : "ISDEFAULT", "label" : "系统默认", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "ISARCHIVES", "label" : "档案项目", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "ISYEARSHARETAX", "label" : "分摊计税", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "HR_PAYITEM_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "NAME", "label" : "名称", "width" : 200 }, { "name" : "ISDEFAULT", "label" : "系统默认", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "ISARCHIVES", "label" : "档案项目", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "ISRESERVE", "label" : "社会保险公积金", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "ISYEARSHARETAX", "label" : "分摊计税", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "SHAREMONTH", "label" : "分摊月数", "width" : 50 }, { "name" : "ADDREDUCE", "label" : "增减属性", "width" : 50, "type" : "mapping", "map" : { "1" : "增项", "2" : "减项", "3" : "其它项" }, "toggled" : false }, { "name" : "ISPRETAX", "label" : "税前项目", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "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/7fd31e46-c61d-4e6d-9293-074352547e12?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_PAYITEM/defaults?templateId=7fd31e46-c61d-4e6d-9293-074352547e12" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_PAYITEM_ADD?__egtpl=7fd31e46-c61d-4e6d-9293-074352547e12", "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/7fd31e46-c61d-4e6d-9293-074352547e12?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_PAYITEM_LOAD?__egtpl=7fd31e46-c61d-4e6d-9293-074352547e12", "data" : { "HR_PAYITEM_ID" : "${HR_PAYITEM_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_PAYITEM_UPDATE?__egtpl=7fd31e46-c61d-4e6d-9293-074352547e12", "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/HR_PAYITEM_DELETE", "data" : { "ids" : "${selectedItems|pick:HR_PAYITEM_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/7fd31e46-c61d-4e6d-9293-074352547e12?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_PAYITEM_LOAD?__egtpl=7fd31e46-c61d-4e6d-9293-074352547e12", "data" : { "HR_PAYITEM_ID" : "${HR_PAYITEM_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "HR_PAYITEM_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "00f6638e-72c7-4834-96ff-904935375951" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }