{ "type" : "page", "title" : "总包合同登记(五建定制)", "body" : { "type" : "grid", "columns" : [ { "md" : 3, "body" : { "type" : "input-tree", "name" : "tree", "showOutline" : true, "initiallyOpen" : true, "virtualThreshold" : 100000, "className" : "eip4-treegrid-tree", "id" : "treegrid_tree", "source" : "/api/template/6fa33eab-c45e-4fcd-82fa-32c8e090475f/tree" } }, { "md" : 9, "body" : { "type" : "crud", "id" : "treegrid_crud", "syncLocation" : false, "api" : "/api/template/treegrid?treeRef=6fa33eab-c45e-4fcd-82fa-32c8e090475f&gridTable=PM_CONTRACTUALREVIEW&rcol=ENGINEERINGSCALE&node=${tree}&page=${page}&perPage=${perPage}", "selectable" : true, "checkOnItemClick" : true, "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/48d13c5e-23ef-4568-8ec9-40bec56a34a8?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_CONTRACTUALREVIEW/defaults?templateId=48d13c5e-23ef-4568-8ec9-40bec56a34a8" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONTRACTUALREGISTER_ADD?__egtpl=48d13c5e-23ef-4568-8ec9-40bec56a34a8", "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/48d13c5e-23ef-4568-8ec9-40bec56a34a8?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTER_LOAD?__egtpl=48d13c5e-23ef-4568-8ec9-40bec56a34a8", "data" : { "PM_CONTRACTUALREVIEW_ID" : "${PM_CONTRACTUALREVIEW_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONTRACTUALREGISTER_UPDATE?__egtpl=48d13c5e-23ef-4568-8ec9-40bec56a34a8", "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_CONTRACTUALREGISTER_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_CONTRACTUALREVIEW_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/39c44c9b-f8b3-4ecb-858c-a644ded24393?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTER_LOAD(DOCUMENTS)?__egtpl=39c44c9b-f8b3-4ecb-858c-a644ded24393", "data" : { "PM_CONTRACTUALREVIEW_ID" : "${PM_CONTRACTUALREVIEW_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "备案", "label" : "备案", "actionType" : "ajax", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTER_UPDATE_CONFIRM", "data" : { "PM_CONTRACTUALREVIEW_ID" : "${selectedItems[0].PM_CONTRACTUALREVIEW_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0}" }, { "type" : "button", "id" : "取消备案", "label" : "取消备案", "actionType" : "ajax", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTER_UPDATE_UNCONFIRM", "data" : { "PM_CONTRACTUALREVIEW_ID" : "${selectedItems[0].PM_CONTRACTUALREVIEW_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0}" }, "pagination" ], "primaryField" : "PM_CONTRACTUALREVIEW_ID", "filter" : { "title" : "查询", "body" : [ { "name" : "ORGID", "label" : "(分)公司", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "ORGIDLIST", "label" : "(分)公司", "type" : "picker", "clearable" : true, "multiple" : true, "overflowConfig" : { "displayPosition" : [ "select" ], "maxTagCount" : 1 }, "source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "PM_PROJECTID", "label" : "工程名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "CATEGORY", "label" : "工程类别", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_CATEGORY" }, { "name" : "BUILDCOMPANY", "label" : "建设单位", "type" : "picker", "clearable" : true, "source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CONTRACTNUMBER", "label" : "合同编号", "type" : "input-text" }, { "name" : "MANAGEMENTMODE", "label" : "经营模式", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_ManagementMode" }, { "name" : "SIGNUPTIME", "label" : "签约日期", "type" : "input-date-range" }, { "name" : "STARTTIME", "label" : "开工日期", "type" : "input-date-range" }, { "name" : "ENDTIME", "label" : "竣工日期", "type" : "input-date-range" }, { "name" : "CONTRACTSTATUS", "label" : "合同状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACTSTATUS" }, { "name" : "CREATEBY", "label" : "登记人", "type" : "picker", "clearable" : true, "source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CREATETIME", "label" : "登记日期", "type" : "input-date-range" }, { "name" : "STATUS", "label" : "交底状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "PUTONRECORD", "label" : "是否备案", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "START", "label" : "合同金额(>=元)", "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "END", "label" : "合同金额(<=元)", "type" : "input-number", "precision" : 2 } ] }, "columns" : [ { "name" : "PM_CONTRACTUALREGISTER_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PRJNUMBER", "label" : "合同备案编号", "width" : 180, "toggled" : false }, { "name" : "PM_PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 280 }, { "name" : "BUILDCOMPANY_DISPLAY__", "label" : "建设单位", "width" : 150 }, { "name" : "ENGINEERINGSCALE", "label" : "工程类型", "width" : 100, "toggled" : false }, { "name" : "CONTRACTNUMBER", "label" : "合同编号", "width" : 100 }, { "name" : "CONTRACTNAME", "label" : "合同名称", "width" : 200, "toggled" : false }, { "name" : "CONTRACTUALMONEY", "label" : "合同价款(元)", "width" : 120 }, { "name" : "UPDATEMONEY", "label" : "变更后金额(元)", "width" : 120 }, { "name" : "WORKINGDAYS", "label" : "工期(天)", "width" : 80 }, { "name" : "UPDATEDAYS", "label" : "变更后工期(天)", "width" : 100 }, { "name" : "ACREAGE", "label" : "建筑面积(m2)", "width" : 100 }, { "name" : "FIRSTSIDEMANAGER", "label" : "建设单位负责人", "width" : 80 }, { "name" : "SIGNUPTIME", "label" : "签约日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "STARTTIME", "label" : "开工日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ENDTIME", "label" : "竣工日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PREPAY", "label" : "预付款(元)", "width" : 200, "toggled" : false }, { "name" : "PROGRESSPAYRATE", "label" : "进度支付比例(%)", "width" : 200, "toggled" : false }, { "name" : "BALANCEPAYRATE", "label" : "竣工结算支付比例(%)", "width" : 200, "toggled" : false }, { "name" : "ORGID_DISPLAY__", "label" : "(分)公司", "width" : 100 }, { "name" : "CONTRACTSTATUS", "label" : "合同状态", "width" : 80 }, { "name" : "CREATEBY_DISPLAY__", "label" : "登记人", "width" : 100 }, { "name" : "CREATETIME", "label" : "登记日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "STATUS", "label" : "交底状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" }, "toggled" : false }, { "name" : "PUTONRECORD", "label" : "是否备案", "width" : 80 } ] } } ] } }