{ "type" : "page", "title" : "周转(租赁)材料进场", "body" : { "type" : "crud", "api" : "/api/flow/PM_TURNOVERMATERIALIMPORTBATCH_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "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" : "IMPORTDATE", "label" : "进场日期", "type" : "input-date-range" }, { "name" : "BATCHNO", "label" : "批次号", "type" : "input-text" }, { "name" : "INVOICECODE", "label" : "送货单号", "type" : "input-text" }, { "name" : "SUPPLIERNAME", "label" : "物资供应商", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/8fb3587d-fbdd-4f24-8976-bb85c10c89c3/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, "columns" : [ { "name" : "PM_TURNOVERMATERIALIMPORTBATCH_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "IMPORTDATE", "label" : "进场日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 180 }, { "name" : "SUPPLIERNAME_DISPLAY__", "label" : "物资供应商", "width" : 180 }, { "name" : "BATCHNO", "label" : "批次号", "width" : 120 }, { "name" : "CONTRACTID_DISPLAY__", "label" : "物资供应合同", "width" : 150, "toggled" : false }, { "name" : "INVOICECODE", "label" : "送货单号", "width" : 90 }, { "name" : "PLACE", "label" : "收料地点", "width" : 200, "toggled" : false }, { "name" : "TRUCKCODE", "label" : "车牌号", "width" : 120 }, { "name" : "TRANSPORTFEE", "label" : "运输费(元)", "width" : 80 }, { "name" : "ATTNNAME_DISPLAY__", "label" : "经办人", "width" : 70 }, { "name" : "REMARK", "label" : "备注", "width" : 200, "toggled" : false }, { "name" : "ISACCOUNTS", "label" : "是否记账", "width" : 200, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "ACCOUNTSDATE", "label" : "记账日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "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/742e39c8-67e8-46d5-bb4c-4d04e9e27172?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_TURNOVERMATERIALIMPORTBATCH/defaults?templateId=742e39c8-67e8-46d5-bb4c-4d04e9e27172" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_TURNOVERMATERIALIMPORTBATCH_ADD?__egtpl=742e39c8-67e8-46d5-bb4c-4d04e9e27172", "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/742e39c8-67e8-46d5-bb4c-4d04e9e27172?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_TURNOVERMATERIALIMPORTBATCH_LOAD?__egtpl=742e39c8-67e8-46d5-bb4c-4d04e9e27172", "data" : { "PM_TURNOVERMATERIALIMPORTBATCH_ID" : "${PM_TURNOVERMATERIALIMPORTBATCH_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "2aacda91-4c0a-42bf-9e38-d64a6d00d0a2" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_TURNOVERMATERIALIMPORTBATCH_UPDATE?__egtpl=742e39c8-67e8-46d5-bb4c-4d04e9e27172", "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_TURNOVERMATERIALIMPORTBATCH_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_TURNOVERMATERIALIMPORTBATCH_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/742e39c8-67e8-46d5-bb4c-4d04e9e27172?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_TURNOVERMATERIALIMPORTBATCH_LOAD?__egtpl=742e39c8-67e8-46d5-bb4c-4d04e9e27172", "data" : { "PM_TURNOVERMATERIALIMPORTBATCH_ID" : "${PM_TURNOVERMATERIALIMPORTBATCH_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_TURNOVERMATERIALIMPORTBATCH_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "2aacda91-4c0a-42bf-9e38-d64a6d00d0a2" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }