{ "type" : "page", "title" : "项目资金往来设置", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTNAME", "label" : "工程名称", "type" : "input-text" }, { "name" : "BUILDCOMPANY", "label" : "建设单位", "type" : "picker", "clearable" : true, "source" : "/api/picker/93a5fb27-fdf1-41fb-9ce5-cec44826a6fa/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CATEGORY", "label" : "项目类别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_CATEGORY" }, { "name" : "FILIALE", "label" : "(分)公司", "type" : "picker", "clearable" : true, "source" : "/api/picker/35e321b3-a511-4cfb-ba29-ce8541cef747/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "AREA", "label" : "地区分布", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_AREA" }, { "name" : "PROJECTSTAGE", "label" : "工程阶段", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_PROJECTSTAGE" }, { "name" : "MANAGEMENTMODE", "label" : "经营模式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_ManagementMode" }, { "name" : "ISCAPITALCONTACTS", "label" : "是否有资金往来", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "1" } ] }, "columns" : [ { "name" : "VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "BUILDCOMPANY_DISPLAY__", "label" : "建设单位", "width" : 200 }, { "name" : "CATEGORY", "label" : "项目类别", "width" : 80, "type" : "mapping", "map" : { "1" : "Ⅰ类工程", "2" : "Ⅱ类工程", "3" : "Ⅲ类工程" } }, { "name" : "ACREAGE", "label" : "建筑面积(m2)", "width" : 100 }, { "name" : "TOTALPRICE", "label" : "工程造价(元)", "width" : 110 }, { "name" : "FILIALE_DISPLAY__", "label" : "(分)公司", "width" : 150 }, { "name" : "AREA", "label" : "地区分布", "width" : 80, "type" : "mapping", "map" : { "1" : "苏州市", "2" : "省内", "3" : "省外" } }, { "name" : "PROJECTSTAGE", "label" : "工程阶段", "width" : 80, "type" : "mapping", "map" : { "3" : "报名已申请", "-15" : "未入围", "-100" : "投标终止", "-10" : "入围", "-1" : "未中标", "5" : "招标文件已评审", "6" : "投标文件已评审", "7" : "投标登记", "8" : "中标", "9" : "合同洽谈", "10" : "合同实施", "15" : "工程终止", "20" : "主体完工", "50" : "工程完成", "70" : "项目已送审", "80" : "项目退场", "100" : "工程竣工", "120" : "保修到期" } }, { "name" : "MANAGEMENTMODE", "label" : "经营模式", "width" : 80, "type" : "mapping", "map" : { "1" : "直营", "2" : "全费用承包", "3" : "直营过渡项目", "4" : "直营部分分包" } }, { "name" : "ISCAPITALCONTACTS", "label" : "是否有资金往来", "width" : 100, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } } ], "headerToolbar" : [ { "type" : "button", "id" : "资金有往来", "label" : "资金有往来", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_YES", "data" : { "VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID" : "${selectedItems[0].VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID}" } } }, { "type" : "button", "id" : "资金无往来", "label" : "资金无往来", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_NO", "data" : { "VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID" : "${selectedItems[0].VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID}" } } }, "pagination" ], "primaryField" : "VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_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" : "9d8359da-c860-48b1-bf38-841c80cf15f5" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }