Commit efac719e authored by 田翔's avatar 田翔

fix: 表格初始化

parent 248b636c
......@@ -6,64 +6,224 @@ export const schemaValues = {
},
"values": [
{
"fieldName": "违规户类型",
"fieldValue": "排水户违法",
"showValue": "排水户违法"
"fieldName": "是否为工作日",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "服务人员",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "派单提交时间",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "派单状态数字",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "是否接单",
"fieldValue": "是",
"showValue": "是"
},
{
"fieldName": "接单提交时间",
"fieldValue": "2023-04-11 10:06:59",
"showValue": "2023-04-11 10:06:59"
},
{
"fieldName": "现场是否需要恢复",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "是否收费",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "管道资产",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "现场情况",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "无需维修原因",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "处理前图片",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "确认当前位置",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "经度",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "纬度",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "是否关阀",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "处理站点",
"fieldValue": "站点_熊猫智慧水务",
"showValue": "站点_熊猫智慧水务"
"fieldName": "关闭阀门位置及大小",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "维修管径_DN",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "处理后照片",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "打开阀门位置及大小",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "实收费用",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "维修材料清单",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "缴费照片留存",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "备注",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "现场图片",
"fieldValue": "9045b644-cd50-4a6f-8843-1f8db9765006\\586.jpg,8b1d03ee-6ef3-434f-bb52-b0e82ee14d34\\bf158a2b32014602915d9824c6eccd16.jpeg,669a4209-4c40-4d95-ba53-a6edb5c8f82b\\44efa1d0888d40e5a1f61cb7e581f884.jpeg",
"showValue": "9045b644-cd50-4a6f-8843-1f8db9765006\\586.jpg,8b1d03ee-6ef3-434f-bb52-b0e82ee14d34\\bf158a2b32014602915d9824c6eccd16.jpeg,669a4209-4c40-4d95-ba53-a6edb5c8f82b\\44efa1d0888d40e5a1f61cb7e581f884.jpeg"
"fieldName": "维修提交时间",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "问题类别",
"fieldValue": "河道有人倒入垃圾,影响居民的生活环境;非常严重,请办理",
"showValue": "河道有人倒入垃圾,影响居民的生活环境;非常严重,请办理"
"fieldName": "维修状态数字",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "坐标位置",
"fieldValue": "13410548.51307143,3833844.215168169",
"showValue": "13410548.51307143,3833844.215168169"
"fieldName": "恢复前照片",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "违规事件地址",
"fieldValue": "三十里墩社区二单元楼下的路灯旁边",
"showValue": "三十里墩社区二单元楼下的路灯旁边"
"fieldName": "恢复提交时间",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "处置图片",
"fieldValue": "aab86a93-c865-4f6f-96c1-1e188f39255d\\d1141d139c2244ec95f5bb6107a541f3.png",
"showValue": "aab86a93-c865-4f6f-96c1-1e188f39255d\\d1141d139c2244ec95f5bb6107a541f3.png"
"fieldName": "是否已恢复",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "处理说明",
"fieldValue": "已派遣稽查小组在现场与违规人员进行口头教育,并处理500元的罚款。",
"showValue": "已派遣稽查小组在现场与违规人员进行口头教育,并处理500元的罚款。"
"fieldName": "恢复后照片",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "现场审核",
"fieldName": "恢复费用要素",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "上报人名称",
"fieldValue": "尹雨薇",
"showValue": "尹雨薇"
"fieldName": "恢复使用材料拍照",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "上报人部门",
"fieldValue": "系统管理员",
"showValue": "系统管理员"
"fieldName": "恢复费用",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "恢复状态数字",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "维修费用要素",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "计算费用",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "上报时间",
"fieldValue": "2023-04-05 11:47:49",
"showValue": "2023-04-05 11:47:49"
"fieldName": "派单耗时",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "接单耗时",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "维修耗时",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "恢复耗时",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "派单耗时_分",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "接单耗时_分",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "维修耗时_分",
"fieldValue": "",
"showValue": ""
},
{
"fieldName": "恢复耗时_分",
"fieldValue": "",
"showValue": ""
}
],
"modules": [],
......@@ -73,61 +233,300 @@ export const schemaValues = {
},
"groups": [
{
"groupName": "基本信息",
"groupName": "维修派单",
"schema": [
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "违规户类型",
"alias": "违规户类型",
"uiGroup": "基本信息",
"tableName": "工单_维修填报",
"fieldName": "是否为工作日",
"alias": "是否为工作日",
"uiGroup": "维修派单",
"tableGroup": null,
"type": "文本",
"shape": "值选择器",
"shape": "平铺值选择器",
"unit": "",
"configInfo": "排水户违法,工地违法,施工违法,其他违法",
"configInfo": "是,否",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 200,
"visible": 1,
"isSync": 1,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "服务人员",
"alias": "服务人员",
"uiGroup": "维修派单",
"tableGroup": null,
"type": "文本",
"shape": "人员选择器",
"unit": "",
"configInfo": "工程科.n+ID存储",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 201,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "派单提交时间",
"alias": "派单提交时间",
"uiGroup": "维修派单",
"tableGroup": null,
"type": "文本",
"shape": "人员选择器",
"unit": "",
"configInfo": "tree.多选|站点+ID存储",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 202,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "派单状态数字",
"alias": "派单状态数字",
"uiGroup": "维修派单",
"tableGroup": null,
"type": "文本",
"shape": "文本",
"unit": "",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxLength:200,maxlength:50",
"allowCorrect": 0,
"order": 203,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
}
],
"visible": 1
},
{
"groupName": "维修接单",
"schema": [
{
"tableName": "工单_维修填报",
"fieldName": "是否接单",
"alias": "是否接单",
"uiGroup": "维修接单",
"tableGroup": null,
"type": "文本",
"shape": "平铺值选择器",
"unit": "",
"configInfo": "是,否",
"presetValue": "是",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "required,maxlength:50",
"allowCorrect": 0,
"order": 100,
"order": 300,
"visible": 1,
"isSync": 1,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "接单提交时间",
"alias": "接单提交时间",
"uiGroup": "维修接单",
"tableGroup": null,
"type": "文本",
"shape": "日期时间",
"unit": "",
"configInfo": "默认为当前时间",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 301,
"visible": 1,
"isSync": 1,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
}
],
"visible": 1
},
{
"groupName": "维修处理",
"schema": [
{
"tableName": "工单_维修填报",
"fieldName": "现场是否需要恢复",
"alias": "现场是否需要恢复",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "开关按钮",
"unit": "",
"configInfo": "是/否",
"presetValue": "False",
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 400,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "是否收费",
"alias": "是否收费",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "开关按钮",
"unit": "",
"configInfo": "是/否",
"presetValue": "False",
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 401,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "处理站点",
"alias": "处理站点",
"uiGroup": "基本信息",
"tableName": "工单_维修填报",
"fieldName": "管道资产",
"alias": "维修清单",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "站点选择器",
"shape": "关联表单",
"unit": "",
"configInfo": "本人",
"configInfo": "{\"台账名称\":\"维修清单\",\"默认显示\":true,\"控制规则\":\"{工单_维修填报.是否收费}= '否'\",\"映射字段\":[{\"fromField\":\"工单编号\",\"toField\":\"工单编号\"}]}",
"presetValue": "",
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "maxlength:255",
"allowCorrect": 0,
"order": 402,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "现场情况",
"alias": "现场情况",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "值选择器",
"unit": "",
"configInfo": "表后维修,表前维系,无需维修",
"presetValue": "表后维修",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "required,maxlength:500",
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 101,
"order": 403,
"visible": 1,
"isSync": 1,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "无需维修原因",
"alias": "无需维修原因",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "值选择器",
"unit": "",
"configInfo": "已现场处理,现场情况正常,不需要维修",
"presetValue": "已现场处理",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 404,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "现场图片",
"alias": "现场图片",
"uiGroup": "基本信息",
"tableName": "工单_维修填报",
"fieldName": "处理前图片",
"alias": "处理前图片",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "可预览图片",
......@@ -139,19 +538,120 @@ export const schemaValues = {
"readOnly": 0,
"validateRule": "maxlength:1000",
"allowCorrect": 0,
"order": 102,
"order": 405,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "确认当前位置",
"alias": "确认当前位置",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "坐标控件",
"unit": "",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 406,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "经度",
"alias": "人工总费用",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "数值",
"unit": "%",
"configInfo": "{\"calculateRule\":\"$sql.sum({演示功能台账表.是否删除})\",\"rules\":[{\"tableName\":\"演示功能台账表\",\"fields\":[\"是否删除\"]}]}",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 407,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "纬度",
"alias": "维修总费用",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "数值",
"unit": "",
"configInfo": "{\"calculateRule\":\"$sql.sum({维修清单.物料金额})+10\",\"rules\":[{\"tableName\":\"维修清单\",\"fields\":[\"物料金额\"]}]}",
"presetValue": "100",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 1,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 408,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "是否关阀",
"alias": "是否关阀",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "平铺值选择器",
"unit": "",
"configInfo": "是,否",
"presetValue": "是",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 409,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "问题类别",
"alias": "问题类别",
"uiGroup": "基本信息",
"tableName": "工单_维修填报",
"fieldName": "关闭阀门位置及大小",
"alias": "关闭阀门位置及大小",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "地址",
......@@ -161,75 +661,122 @@ export const schemaValues = {
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "required,maxLength:500,maxlength:255",
"validateRule": "maxLength:500,maxlength:50",
"allowCorrect": 0,
"order": 103,
"order": 410,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{\"hiddenCondition\":\"{工单_维修填报.是否关阀}='否'\",\"hiddenRules\":[{\"tableName\":\"工单_维修填报\",\"fields\":[\"是否关阀\"]}]}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "坐标位置",
"alias": "坐标位置",
"uiGroup": "基本信息",
"tableName": "工单_维修填报",
"fieldName": "维修管径_DN",
"alias": "设备选择",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "坐标控件",
"shape": "设备选择",
"unit": "",
"configInfo": "违规事件地址",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 411,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "处理后照片",
"alias": "处理后照片",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "可预览图片",
"unit": "",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "maxlength:1000",
"allowCorrect": 0,
"order": 104,
"order": 412,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "违规事件地址",
"alias": "违规事件地址",
"uiGroup": "基本信息",
"tableName": "工单_维修填报",
"fieldName": "打开阀门位置及大小",
"alias": "打开阀门位置及大小",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "位置坐标",
"shape": "地址",
"unit": "",
"configInfo": "请输入内容",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 413,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "工单_维修填报",
"fieldName": "实收费用",
"alias": "实收费用",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "数值",
"unit": "",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "required,maxlength:500",
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 105,
"order": 414,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
}
],
"visible": 1
},
{
"groupName": "处理情况",
"schema": [
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "处置图片",
"alias": "处置图片",
"uiGroup": "处理情况",
"tableName": "工单_维修填报",
"fieldName": "维修材料清单",
"alias": "维修材料清单",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "可预览图片",
......@@ -239,145 +786,182 @@ export const schemaValues = {
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "maxlength:1000",
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 200,
"order": 415,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "处理说明",
"alias": "处理说明",
"uiGroup": "处理情况",
"tableName": "工单_维修填报",
"fieldName": "缴费照片留存",
"alias": "缴费照片留存",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "多行文本",
"shape": "可预览图片",
"unit": "",
"configInfo": "请输入内容",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "required,maxLength:500,maxlength:255",
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 201,
"order": 416,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "现场审核",
"alias": "现场审核",
"uiGroup": "处理情况",
"tableName": "工单_维修填报",
"fieldName": "备注",
"alias": "备注",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "多行文本",
"shape": "地址",
"unit": "",
"configInfo": "请输入内容",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 3,
"readOnly": 0,
"validateRule": "required,maxLength:500,maxlength:255",
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 202,
"order": 417,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
}
],
"visible": 1
},
{
"groupName": "",
"schema": [
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "上报人名称",
"alias": "",
"uiGroup": "",
"tableName": "工单_维修填报",
"fieldName": "维修提交时间",
"alias": "维修提交时间",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "",
"shape": "日期时间",
"unit": "",
"configInfo": "",
"configInfo": "默认为当前时间",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 1000002,
"order": 418,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
},
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "上报人部门",
"alias": "",
"uiGroup": "",
"tableName": "工单_维修填报",
"fieldName": "维修状态数字",
"alias": "维修状态数字",
"uiGroup": "维修处理",
"tableGroup": null,
"type": "文本",
"shape": "",
"shape": "数值",
"unit": "",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 1000003,
"order": 419,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
},
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
}
],
"visible": 1
},
{
"groupName": "维修现场恢复",
"schema": [
{
"tableName": "工单_维修填报",
"fieldName": "恢复费用",
"alias": "恢复费用",
"uiGroup": "维修现场恢复",
"tableGroup": null,
"type": "文本",
"shape": "数值",
"unit": "",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 0,
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 506,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
}
],
"visible": 1
},
{
"groupName": "维修费用上交",
"schema": [
{
"tableName": "监控_排水户_违规违法事件表",
"fieldName": "上报时间",
"alias": "",
"uiGroup": "",
"tableName": "工单_维修填报",
"fieldName": "计算费用",
"alias": "计算费用",
"uiGroup": "维修费用上交",
"tableGroup": null,
"type": "日期",
"shape": "",
"type": "文本",
"shape": "数值",
"unit": "",
"configInfo": "",
"presetValue": "",
"rowSpan": 1,
"colSpan": 1,
"readOnly": 1,
"validateRule": "",
"validateRule": "maxlength:50",
"allowCorrect": 0,
"order": 1000004,
"order": 601,
"visible": 1,
"isSync": 0,
"triggerProblemValue": "",
"triggerEvent": "",
"triggerEventFields": "",
"showCss": "大"
"showCss": "大",
"fieldConfig": "{\"fieldHidden\":{}}"
}
],
"visible": 1
}
],
"formJson": "{\"id\":156,\"tableName\":\"监控_排水户_违规违法事件表\",\"alias\":\"违规违法事件信息\",\"interfaceName\":\"\",\"type\":\"object\",\"displayType\":\"左右\",\"column\":3,\"labelWidth\":120,\"properties\":{\"(未分组)\":{\"title\":\"基本信息\",\"type\":\"object\",\"collapsed\":false,\"groupBase\":{},\"properties\":{\"违规户类型\":{\"title\":\"违规户类型\",\"type\":\"string\",\"widget\":\"ComboBox\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"placeholder\":\"点击下拉选择内容\",\"sourceType\":\"手动输入\",\"options\":[{\"value\":\"排水户违法\"},{\"value\":\"工地违法\"},{\"value\":\"施工违法\"},{\"value\":\"其他违法\"}],\"isMySite\":false,\"required\":true,\"disabled\":false,\"isMultiple\":false,\"isSearch\":true,\"isStoreID\":false,\"groupStyle\":{},\"labelWidth\":112,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":false},\"处理站点\":{\"title\":\"处理站点\",\"type\":\"string\",\"widget\":\"ComboBox\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"placeholder\":\"点击下拉选择内容\",\"sourceType\":\"站点\",\"options\":[{\"value\":\"选项一\"}],\"isMySite\":true,\"required\":true,\"disabled\":false,\"isMultiple\":false,\"isSearch\":true,\"isStoreID\":false,\"isEdit\":false,\"groupStyle\":{},\"labelWidth\":110,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":true},\"现场图片\":{\"title\":\"现场图片\",\"type\":\"string\",\"widget\":\"FileUpload\",\"width\":\"100%\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"fileType\":\"图片\",\"disabled\":false,\"required\":false,\"preview\":true,\"download\":true,\"photo\":false,\"groupStyle\":{},\"labelWidth\":110,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":false},\"问题类别\":{\"title\":\"问题类别\",\"type\":\"string\",\"widget\":\"TextArea\",\"placeholder\":\"请输入内容\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"maxLength\":500,\"required\":true,\"disabled\":false,\"currentAddress\":true,\"groupStyle\":{},\"rows\":5,\"width\":\"100%\",\"labelWidth\":110,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":false},\"坐标位置\":{\"title\":\"坐标位置\",\"type\":\"string\",\"widget\":\"Coordinate\",\"placeholder\":\"请选择坐标位置\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"required\":false,\"disabled\":false,\"groupStyle\":{},\"labelWidth\":110,\"width\":\"50%\",\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":true,\"addressSync\":\"违规事件地址\"},\"违规事件地址\":{\"title\":\"违规事件地址\",\"type\":\"string\",\"widget\":\"SearchLocation\",\"placeholder\":\"请输入位置\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"required\":true,\"disabled\":false,\"groupStyle\":{},\"width\":\"50%\",\"labelWidth\":110,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":false}}},\"分组名称_zZE1Sj\":{\"title\":\"处理情况\",\"type\":\"object\",\"width\":\"100%\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"properties\":{\"处置图片\":{\"title\":\"处置图片\",\"type\":\"string\",\"widget\":\"FileUpload\",\"width\":\"100%\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"fileType\":\"图片\",\"disabled\":false,\"required\":false,\"preview\":true,\"download\":true,\"photo\":false,\"groupStyle\":{},\"labelWidth\":110,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":false},\"处理说明\":{\"title\":\"处理说明\",\"type\":\"string\",\"widget\":\"TextArea\",\"placeholder\":\"请输入内容\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"maxLength\":500,\"required\":true,\"disabled\":false,\"groupStyle\":{},\"rows\":5,\"width\":\"100%\",\"labelWidth\":110,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":false},\"现场审核\":{\"title\":\"现场审核\",\"type\":\"string\",\"widget\":\"TextArea\",\"placeholder\":\"请输入内容\",\"tableNameParent\":\"监控_排水户_违规违法事件表\",\"maxLength\":500,\"required\":true,\"disabled\":false,\"groupStyle\":{},\"rows\":5,\"width\":\"100%\",\"labelWidth\":110,\"tableTypeParent\":\"事件工单表\",\"IsSystemField\":false}}}},\"groupBase\":{},\"groupStyle\":{},\"paths\":[\"分组名称_zZE1Sj\"]}"
"formJson": "{\"id\":61,\"tableName\":\"工单_维修填报\",\"alias\":\"瑞云维修处理过程\",\"interfaceName\":\"\",\"type\":\"object\",\"displayType\":\"row\",\"column\":3,\"labelWidth\":120,\"properties\":{\"维修派单\":{\"title\":\"维修派单\",\"type\":\"object\",\"collapsed\":false,\"groupBase\":{},\"properties\":{\"是否为工作日\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"是否为工作日\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"RadioButton\",\"sourceType\":\"手动输入\",\"isMultiple\":false,\"options\":[{\"value\":\"\"},{\"value\":\"\"}],\"groupSource\":{},\"labelWidth\":110,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"服务人员\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"服务人员\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"PersonSelector\",\"interactiveType\":\"下拉框\",\"isStoreID\":true,\"isMultiple\":true,\"role\":\"工程科\",\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"派单提交时间\":{\"type\":\"string\",\"hidden\":true,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"派单提交时间\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"PersonSelector\",\"interactiveType\":\"树形模态\",\"isStoreID\":true,\"isMultiple\":true,\"role\":\"\",\"isMySite\":true,\"placeholder\":\"点击选择人员\",\"groupSource\":{},\"labelWidth\":110,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"派单状态数字\":{\"type\":\"string\",\"hidden\":true,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"派单状态数字\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"TextInput\",\"addonAfter\":\"\",\"isStoreID\":false,\"placeholder\":\"\",\"maxLength\":200,\"uniqueVerify\":null,\"isQRCode\":false,\"labelWidth\":110,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false}}},\"维修接单\":{\"title\":\"维修接单\",\"type\":\"object\",\"collapsed\":false,\"groupBase\":{},\"properties\":{\"是否接单\":{\"type\":\"string\",\"hidden\":false,\"required\":true,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"是否接单\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"RadioButton\",\"sourceType\":\"手动输入\",\"isMultiple\":false,\"options\":[{\"value\":\"\"},{\"value\":\"\"}],\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"接单提交时间\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"接单提交时间\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"DateTime\",\"options\":\"默认为当前时间\",\"format\":\"dateTime\",\"labelWidth\":110,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false}}},\"维修处理\":{\"title\":\"维修处理\",\"type\":\"object\",\"collapsed\":false,\"groupBase\":{},\"properties\":{\"现场是否需要恢复\":{\"title\":\"现场是否需要恢复\",\"name\":\"开关按钮\",\"type\":\"string\",\"widget\":\"SwitchSelector\",\"tableNameParent\":\"工单_维修填报\",\"disabled\":false,\"hidden\":false,\"showText\":\"是/否\",\"groupStyle\":{},\"width\":\"100%\",\"labelWidth\":110,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false,\"presetValue\":false},\"是否收费\":{\"title\":\"是否收费\",\"name\":\"开关按钮\",\"type\":\"string\",\"widget\":\"SwitchSelector\",\"tableNameParent\":\"工单_维修填报\",\"disabled\":false,\"showText\":\"是/否\",\"groupStyle\":{},\"labelWidth\":145,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false,\"presetValue\":false},\"管道资产\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"RelationForm\",\"台账名称\":\"维修清单\",\"控制规则\":\"{工单_维修填报.是否收费}= '否'\",\"默认显示\":true,\"映射字段\":[{\"fromField\":\"工单编号\",\"toField\":\"工单编号\"}],\"titleShow\":\"维修清单\",\"groupSource\":{},\"labelWidth\":10,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"现场情况\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"现场情况\",\"presetValue\":\"表后维修\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"ComboBox\",\"sourceType\":\"手动输入\",\"isMultiple\":false,\"options\":[{\"value\":\"表后维修\"},{\"value\":\"表前维系\"},{\"value\":\"无需维修\"}],\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"无需维修原因\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"无需维修原因\",\"presetValue\":\"已现场处理\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"ComboBox\",\"sourceType\":\"手动输入\",\"isMultiple\":false,\"options\":[{\"value\":\"已现场处理\"},{\"value\":\"现场情况正常,不需要维修\"}],\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"处理前图片\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"处理前图片\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"preview\":true,\"photo\":false,\"fileType\":\"图片\",\"widget\":\"FileUpload\",\"download\":true,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"确认当前位置\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"确认当前位置\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"Coordinate\",\"placeholder\":\"请选择坐标位置\",\"currentAddress\":false,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"经度\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"人工总费用\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[{\"tableName\":\"演示功能台账表\",\"fields\":[\"是否删除\"]}],\"widget\":\"NumberInput\",\"placeholder\":\"\",\"formatter\":\"\",\"labelWidth\":110,\"calculateRule\":\"$sql.sum({演示功能台账表.是否删除})\",\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"纬度\":{\"title\":\"维修总费用\",\"type\":\"string\",\"widget\":\"NumberInput\",\"presetValue\":\"100\",\"placeholder\":\"请输入内容\",\"tableNameParent\":\"工单_维修填报\",\"required\":false,\"disabled\":true,\"groupStyle\":{},\"formatter\":\"\",\"labelWidth\":110,\"calculateRule\":\"$sql.sum({维修清单.物料金额})+10\",\"rules\":[{\"tableName\":\"维修清单\",\"fields\":[\"物料金额\"]}],\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"是否关阀\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"是否关阀\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"RadioButton\",\"sourceType\":\"手动输入\",\"isMultiple\":false,\"options\":[{\"value\":\"\"},{\"value\":\"\"}],\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"关闭阀门位置及大小\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"关闭阀门位置及大小\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"TextArea\",\"placeholder\":\"\",\"currentAddress\":true,\"maxLength\":500,\"rows\":5,\"labelWidth\":110,\"hiddenCondition\":\"{工单_维修填报.是否关阀}='否'\",\"hiddenRules\":[{\"tableName\":\"工单_维修填报\",\"fields\":[\"是否关阀\"]}],\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"维修管径_DN\":{\"title\":\"设备选择\",\"type\":\"string\",\"widget\":\"Device\",\"placeholder\":\"请选择设备\",\"tableNameParent\":\"工单_维修填报\",\"required\":false,\"disabled\":false,\"groupStyle\":{},\"labelWidth\":110,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"处理后照片\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"处理后照片\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"preview\":true,\"photo\":false,\"fileType\":\"图片\",\"widget\":\"FileUpload\",\"download\":true,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"打开阀门位置及大小\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"打开阀门位置及大小\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"TextArea\",\"placeholder\":\"\",\"currentAddress\":true,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"实收费用\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"实收费用\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"NumberInput\",\"placeholder\":\"({工单_维修填报.恢复费用}+$math.avg({维修清单.物料金额})+$math.avg({维修清单.物料金额}))+1\",\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"维修材料清单\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"维修材料清单\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"preview\":true,\"photo\":false,\"fileType\":\"图片\",\"widget\":\"FileUpload\",\"download\":true,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"缴费照片留存\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"缴费照片留存\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"preview\":true,\"photo\":false,\"fileType\":\"图片\",\"widget\":\"FileUpload\",\"download\":true,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"备注\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"100%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"备注\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"TextArea\",\"placeholder\":\"\",\"currentAddress\":true,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"维修提交时间\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"维修提交时间\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"DateTime\",\"options\":\"默认为当前时间\",\"format\":\"dateTime\",\"tableTypeParent\":\"工单表\",\"IsSystemField\":false},\"维修状态数字\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"维修状态数字\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"NumberInput\",\"placeholder\":\"\",\"tableTypeParent\":\"工单表\",\"IsSystemField\":false}}},\"维修现场恢复\":{\"title\":\"维修现场恢复\",\"type\":\"object\",\"collapsed\":false,\"groupBase\":{},\"properties\":{\"恢复费用\":{\"type\":\"string\",\"hidden\":false,\"required\":false,\"width\":\"33.33%\",\"groupBase\":{},\"groupStyle\":{},\"groupSetting\":{},\"groupVerify\":{},\"tableNameParent\":\"工单_维修填报\",\"title\":\"恢复费用\",\"presetValue\":\"\",\"disabled\":false,\"emphasis\":false,\"rules\":[],\"widget\":\"NumberInput\",\"placeholder\":\"\",\"tableTypeParent\":\"工单表\",\"IsSystemField\":false}}},\"维修费用上交\":{\"title\":\"维修费用上交\",\"type\":\"object\",\"collapsed\":false,\"groupBase\":{},\"properties\":{\"计算费用\":{\"title\":\"计算费用\",\"type\":\"string\",\"widget\":\"NumberInput\",\"tableNameParent\":\"工单_维修填报\",\"groupBase\":{},\"groupSetting\":{},\"required\":false,\"disabled\":true,\"hidden\":false,\"groupSource\":{},\"groupStyle\":{},\"labelWidth\":110,\"tableTypeParent\":\"工单表\",\"IsSystemField\":false}}}},\"groupBase\":{},\"groupStyle\":{},\"paths\":[\"分组名称_-0yRzo\",\"维修派单\",\"维修接单\",\"维修处理\",\"维修现场恢复\",\"维修费用上交\",\"时间记录\"]}"
}
\ No newline at end of file
import React, { useState, useEffect, useRef } from 'react';
import { FormRender, FormDesigner } from '../../src/index';
import { FormRender, FormDesigner, TableRender } from '../../src/index';
import { schemaValues } from './data';
import { Button, Tabs } from 'antd';
......@@ -3468,9 +3468,10 @@ const Test = (props) => {
return (
<div style={{ width: '100%', height: '100%' }}>
<FormDesigner ref={formDesignerRef} extra={true} tableName='事件工单_测试一键布局' />
{/* <FormDesigner ref={formDesignerRef} extra={true} tableName='事件工单_测试一键布局' /> */}
{/* <FormRender ref={formRenderRef} schemaValues={schemaValues} /> */}
{/* <div onClick={submit}>提交</div> */}
<TableRender accountName={'形态测试台账WY'} />
</div>
)
......
import React from 'react'
const Search = () => {
return (
<div></div>
)
}
export default Search
\ No newline at end of file
import React, { useMemo } from 'react'
import { Table, Tooltip } from 'antd'
const TablePack = (props) => {
const { loading, showField, formJson, dataSource } = props
const columns = useMemo(() => {
let array = []
showField.forEach(v => {
array.push({
key: new Date().getTime(),
title: v,
dataIndex: v,
width: 120,
ellipsis: true,
render: (value, r) => {
return (
<Tooltip placement="top" title={value}>{value}</Tooltip>
)
}
})
})
return array
}, [showField])
return (
<Table
size='small'
bordered
loading={loading}
columns={columns}
dataSource={dataSource}
pagination={false}
scroll={{ y: 'calc(100% - 50px)' }}
/>
)
}
export default TablePack
\ No newline at end of file
import React, { useEffect, useMemo, useState } from 'react'
import styles from './index.less'
import Search from './components/Search'
import TablePack from './components/TablePack'
import { GetAccountConfigInfo, GetAccountPageList, getStationListByUserID, GetTableJson } from '../../apis/process'
const TableRender = (props) => {
const userID = window?.globalConfig?.userInfo?.OID || 1
const { accountName } = props
const [loading, setLoading] = useState(false)
const [config, setConfig] = useState({ webShowFieldGroup: '', formJson: '' })
const [dataSource, setDataSource] = useState([])
const showField = useMemo(() => {
const { webShowFieldGroup } = config
return webShowFieldGroup.split(',').filter(v => v)
}, [config])
const getConfig = async () => {
const { code, data } = await GetAccountConfigInfo(accountName)
// if (code === 0) {
// setConfig(data)
// }
const res = await GetTableJson(accountName)
if (code === 0 && res.code === 0) {
setConfig({ ...data, formJson: res.data })
}
}
const getDataSource = async (param) => {
setLoading(true)
let params = {
userID: userID,
accountName: '',
direction: 'desc',
timeField: '录入时间',
pageIndex: 1,
pageSize: 100,
...param,
}
const { code, data } = await GetAccountPageList(params)
if (code === 0) {
setDataSource(JSON.parse(data.jsonData))
}
setLoading(false)
}
const getData = () => {
getConfig()
getDataSource({ accountName })
}
useEffect(() => {
getData()
}, [])
return (
<div className={styles.tableRender}>
<div className={styles.top}>
<Search />
</div>
<div className={styles.bottom}>
<TablePack
loading={loading}
showField={showField}
formJson={config.formJson}
dataSource={dataSource}
/>
</div>
</div>
)
}
export default TableRender
\ No newline at end of file
@import '~antd/es/style/themes/default.less';
.tableRender {
width: 100%;
height: 100%;
.top {
width: 100%;
height: 50px;
}
.bottom {
width: 100%;
height: calc(100% - 100px);
.@{ant-prefix}-table-wrapper {
height: 100%;
.@{ant-prefix}-spin-nested-loading {
height: 100%;
}
.@{ant-prefix}-spin-container {
height: 100%;
}
.@{ant-prefix}-table {
height: 100%;
.@{ant-prefix}-table-container {
height: 100%;
}
}
}
}
}
\ No newline at end of file
import FormRender from './core/FormRender'
import FormDesigner from './core/FormDesigner'
import TableRender from './core/TableRender'
import './main.less'
export {
FormRender,
FormDesigner,
TableRender,
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment