{ "type" : "page", "title" : "周转(自购)材料进场(移库)", "body" : { "type" : "crud", "api" : "/api/flow/PM_TURNOVERMATERIALBUYIMPORTBATCH_SEARCHTWO", "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" : "ISACCOUNTS", "label" : "是否记账", "hidden" : true, "type" : "checkbox" }, { "name" : "ACCOUNTSDATE", "label" : "记账日期", "hidden" : true, "type" : "input-date-range" }, { "name" : "COMEFROM", "label" : "材料来源", "type" : "input-text" }, { "name" : "ISCONFIRM", "label" : "是否确认", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "CONFIRMDATE", "label" : "确认日期", "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_TURNOVERMATERIALBUYIMPORTBATCH_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "STOREHOUSE", "label" : "仓库", "width" : 120, "toggled" : false }, { "name" : "IMPORTDATE", "label" : "进场日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 180 }, { "name" : "SUPPLIERNAME_DISPLAY__", "label" : "物资供应商", "width" : 165, "toggled" : false }, { "name" : "BATCHNO", "label" : "批次号", "width" : 135 }, { "name" : "INVOICECODE", "label" : "送货单号", "width" : 90 }, { "name" : "TRUCKCODE", "label" : "车牌号", "width" : 120 }, { "name" : "TRANSPORTFEE", "label" : "运输费(元)", "width" : 80 }, { "name" : "ATTNNAME_DISPLAY__", "label" : "经办人", "width" : 100 }, { "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 }, { "name" : "CONTRACTID_DISPLAY__", "label" : "物资供应合同", "width" : 200, "toggled" : false }, { "name" : "PLACE", "label" : "收料地点", "width" : 200, "toggled" : false }, { "name" : "MATERIALSOURCE", "label" : "材料来源", "width" : 200, "type" : "mapping", "map" : { "1" : "公司仓库", "2" : "物资供应商", "3" : "其它项目" }, "toggled" : false }, { "name" : "COMEFROM", "label" : "材料来源", "width" : 200 }, { "name" : "ISCONFIRM", "label" : "是否确认", "width" : 100, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } }, { "name" : "CONFIRMER_DISPLAY__", "label" : "确认人", "width" : 100, "toggled" : false }, { "name" : "CONFIRMDATE", "label" : "确认日期", "width" : 150, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" } ], "headerToolbar" : [ { "type" : "button", "id" : "确认", "label" : "确认", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_TURNOVERMATERIALBUYIMPORTBATCH_CONFIRM", "data" : { "PM_TURNOVERMATERIALBUYIMPORTBATCH_ID" : "${selectedItems[0].PM_TURNOVERMATERIALBUYIMPORTBATCH_ID}" } } }, { "type" : "button", "id" : "取消确认", "label" : "取消确认", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_TURNOVERMATERIALBUYIMPORTBATCH_CANCELCONFIRM", "data" : { "PM_TURNOVERMATERIALBUYIMPORTBATCH_ID" : "${selectedItems[0].PM_TURNOVERMATERIALBUYIMPORTBATCH_ID}" } } }, { "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/53e9a74b-d4fe-4384-9ee7-39e7550b3fc0?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_TURNOVERMATERIALBUYIMPORTBATCH_LOAD?__egtpl=53e9a74b-d4fe-4384-9ee7-39e7550b3fc0", "data" : { "PM_TURNOVERMATERIALBUYIMPORTBATCH_ID" : "${PM_TURNOVERMATERIALBUYIMPORTBATCH_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_TURNOVERMATERIALBUYIMPORTBATCH_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "确认" }, { "actionType" : "disabled", "componentId" : "取消确认" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "1dcd2b8f-82f2-4a3a-8776-4ca55d5912ec" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }