{ "type" : "page", "title" : "周转(租赁)材料调整单", "body" : { "type" : "crud", "api" : "/api/flow/PM_TURNOVERMATERIALADJUSTLIST_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" : "ADJUSTTYPE", "label" : "调整方式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/adjustType" }, { "name" : "ADJUSTDATE", "label" : "调整日期", "type" : "input-date-range" }, { "name" : "MATERIALCODE", "label" : "材料编码", "hidden" : true, "type" : "input-text" }, { "name" : "MATERIALID", "label" : "材料名称", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "CONTRACTID", "label" : "物资供应合同", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "SUPPLIERNAME", "label" : "物资供应商", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "ISACCOUNTS", "label" : "是否记账", "hidden" : true, "type" : "checkbox" }, { "name" : "ACCOUNTSDATE", "label" : "记账日期", "hidden" : true, "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_TURNOVERMATERIALADJUSTLIST_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "ADJUSTDATE", "label" : "调整日期", "width" : 90, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 150 }, { "name" : "ADJUSTTYPE", "label" : "调整方式", "width" : 90, "type" : "mapping", "map" : { "1" : "进场数量调整", "2" : "进场金额调整", "3" : "出场数量调整", "4" : "出场金额调整", "5" : "报废数量调整", "6" : "报废金额调整" } }, { "name" : "MATERIALCODE", "label" : "材料编码", "width" : 110 }, { "name" : "MATERIALID_DISPLAY__", "label" : "材料名称", "width" : 150 }, { "name" : "MATERIALALIASID_DISPLAY__", "label" : "材料别名", "width" : 120, "toggled" : false }, { "name" : "SPECIFICATIONS", "label" : "规格", "width" : 80 }, { "name" : "UNIT_DISPLAY__", "label" : "单位", "width" : 45 }, { "name" : "ADJUSTNUMBER", "label" : "调整数量", "width" : 65 }, { "name" : "UNITPRICE", "label" : "租赁单价(元/日)", "width" : 100 }, { "name" : "ADJUSTTOTALPRICE", "label" : "调整金额(元)", "width" : 80 }, { "name" : "CONTRACTID_DISPLAY__", "label" : "物资供应合同", "width" : 200, "toggled" : false }, { "name" : "SUPPLIERNAME_DISPLAY__", "label" : "物资供应商", "width" : 150 }, { "name" : "INVOICECODE", "label" : "送货单号", "width" : 200, "toggled" : false }, { "name" : "PLACE", "label" : "收料地点", "width" : 200, "toggled" : false }, { "name" : "TRUCKCODE", "label" : "车牌号", "width" : 200, "toggled" : false }, { "name" : "ATTNNAME_DISPLAY__", "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" : "STOCKNUMBER", "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/a78eec7d-049e-4f09-ab87-66df399b0182?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_TURNOVERMATERIALADJUSTLIST/defaults?templateId=a78eec7d-049e-4f09-ab87-66df399b0182" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_TURNOVERMATERIALADJUSTLIST_ADD?__egtpl=a78eec7d-049e-4f09-ab87-66df399b0182", "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/a78eec7d-049e-4f09-ab87-66df399b0182?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_TURNOVERMATERIALADJUSTLIST_LOAD?__egtpl=a78eec7d-049e-4f09-ab87-66df399b0182", "data" : { "PM_TURNOVERMATERIALADJUSTLIST_ID" : "${PM_TURNOVERMATERIALADJUSTLIST_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "959a1427-308d-4522-8e72-fd1998effea4" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_TURNOVERMATERIALADJUSTLIST_UPDATE?__egtpl=a78eec7d-049e-4f09-ab87-66df399b0182", "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_TURNOVERMATERIALADJUSTLIST_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_TURNOVERMATERIALADJUSTLIST_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/a78eec7d-049e-4f09-ab87-66df399b0182?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_TURNOVERMATERIALADJUSTLIST_LOAD?__egtpl=a78eec7d-049e-4f09-ab87-66df399b0182", "data" : { "PM_TURNOVERMATERIALADJUSTLIST_ID" : "${PM_TURNOVERMATERIALADJUSTLIST_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_TURNOVERMATERIALADJUSTLIST_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "959a1427-308d-4522-8e72-fd1998effea4" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }