Commit a5d3be0b authored by 刘凡's avatar 刘凡

*)新增基本信息

parent 0c35f317
package com.yeejoin.amos.boot.module.statistics.api.mapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
/**
* Mapper 接口
*
* @author system_generator
* @date 2023-12-13
*/
@Mapper
public interface DPSubBizMapper {
List<Map<String, String>> equOnJgServiceOperationRecords(String record);
List<Map<String, String>> queryForSafetyProblemTracingList(String sourceId);
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.statistics.api.mapper.DPSubBizMapper">
<select id="equOnJgServiceOperationRecords" resultType="java.util.Map">
select
sequence_nbr as sequenceNbr,
business_type as businessType,
apply_no as applyNo,
rec_User_Id as recUserId,
rec_user_name as recUserName,
DATE_FORMAT(rec_date,'%Y-%m-%d %H:%i:%s') as recDate,
approval_unit as approvalUnit,
status,
route_path as routePath
from tzs_jg_resume_info
where equ_id = #{record}
order by rec_date ASC
</select>
<select id="queryForSafetyProblemTracingList" resultType="java.util.Map">
select
spt.*,
(select extend::json->>'pic' from cb_data_dictionary where type = 'ISSUE_TYPE' and code = spt.problem_type_code) problemTypePic
from tzs_safety_problem_tracing spt
<where>
spt.is_delete = false
<if test="sourceId != null and sourceId != ''">
and spt.source_id = #{sourceId}
</if>
</where>
order by spt.create_date desc
</select>
</mapper>
package com.yeejoin.amos.boot.module.statistcs.biz.service.impl;
import com.yeejoin.amos.boot.module.statistics.api.mapper.DPSubBizMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* 大屏二级页面实现类
*
* @author Administrator
*/
@Slf4j
@Service
public class DPSubBizServiceImpl {
private DPSubBizMapper dpSubBizMapper;
public DPSubBizServiceImpl(DPSubBizMapper dpSubBizMapper) {
this.dpSubBizMapper = dpSubBizMapper;
}
/**
* 查询设备在jg业务中的记录
*
* @param record
* @return
*/
public List<Map<String, String>> equOnJgServiceOperationRecords(String record) {
return dpSubBizMapper.equOnJgServiceOperationRecords(record).stream()
.map(x -> {
Map<String, String> map = new HashMap<>();
map.put("operatingTime", x.get("recDate"));
String content = String.format("%s 创建人:%s 单号【%s】 审批单位:%s",
x.get("businessType"), x.get("recUserName"), x.get("applyNo"), x.get("approvalUnit"));
map.put("operater", content);
map.put("routePath", x.get("routePath"));
return map;
})
.collect(Collectors.toList());
}
/**
* 问题记录列表
* @param equipId
* @return
*/
public List<Map<String, String>> queryProblemListByEquipId(String equipId) {
return dpSubBizMapper.queryForSafetyProblemTracingList(equipId).stream()
.map(x -> {
Map<String, String> map = new HashMap<>();
map.put("key", x.get("sequence_nbr"));
map.put("type", x.get("problem_type"));
map.put("descr", x.get("problem_desc"));
map.put("createDate", x.get("problem_time"));
return map;
})
.collect(Collectors.toList());
}
}
......@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.biz.common.utils.JsonValueUtils;
import com.yeejoin.amos.boot.biz.common.utils.RestTemplateUtils;
import com.yeejoin.amos.boot.biz.common.utils.StringUtils;
import com.yeejoin.amos.boot.module.statistcs.biz.utils.DpSubUtils;
import com.yeejoin.amos.boot.module.statistics.api.mapper.*;
import com.yeejoin.amos.feign.morphic.Morphic;
import com.yeejoin.amos.feign.morphic.model.FormSceneModel;
import jdk.nashorn.api.scripting.ScriptObjectMirror;
......@@ -53,6 +54,9 @@ public class DPSubServiceImpl {
@Autowired
DataDictionaryServiceImpl iDataDictionaryService;
@Autowired
DPSubBizServiceImpl dpSubBizService;
public JSONObject commonQuery(String template, @RequestBody Map<String, Object> param) {
JSONObject result = new JSONObject();
String templateJson = DpSubUtils.getFileContent(template + ".json");
......@@ -70,6 +74,7 @@ public class DPSubServiceImpl {
tabs.stream().forEach(x -> {
JSONObject tab = (JSONObject) x;
long s = System.currentTimeMillis();
tab.put("template", template);
this.buildContent(content, tab, param);
long e = System.currentTimeMillis();
log.info("{}tab页处理结束,共耗时:{} 毫秒", tab.get("displayName"), (e - s));
......@@ -141,8 +146,11 @@ public class DPSubServiceImpl {
map.getJSONArray("subs").add(matinfo);
}
} else {
if ("timeline".equals(renderType)){
content.put(tab.getString("key"), apiResult);
if ("keyinfo".equals(renderType)) {
this.buildContentKeyinfoData(tab, content, apiResult);
} else if ("timeline".equals(renderType)){
// 监管履历基本信息已经获取过,此次直接用
content.put(tab.getString("key"), !ValidationUtil.isEmpty(param.get("reghistory")) ? param.get("reghistory") : apiResult);
} else if("table".equals(renderType)){
Object columns = JsonValueUtils.getValueByKey(tab, "visualParams", "visualParams.columns");
map.put("columns", columns);
......@@ -155,6 +163,56 @@ public class DPSubServiceImpl {
}
}
public JSONObject buildContentKeyinfoData(JSONObject tab, JSONObject content, Object apiResult){
JSONObject result = JSONObject.parseObject(apiResult.toString());
JSONObject param = tab.getJSONObject("param");
Object keyParams = JsonValueUtils.getValueByKey(content, "keyinfo", "keyinfo.keyParams");
if (ValidationUtil.isEmpty(keyParams)){
JSONObject keyinfo = content.getJSONObject("keyinfo");
// 气瓶区分车用和非车用
if ("2300".equals(param.getString("EQU_CATEGORY_CODE"))){
keyParams = JsonValueUtils.getValueByKey(content, "keyinfo", "keyinfo.keyParams_2300_" +
("1".equals(param.getString("WHETHER_VEHICLE_CYLINDER")) ? "true" : "false"));
keyinfo.remove("keyParams_2300_true");
keyinfo.remove("keyParams_2300_false");
} else {
Object selectKeyParams = JsonValueUtils.getValueByKey(content, "keyinfo", "keyinfo.keyParams_" + param.getString("EQU_CATEGORY_CODE"));
if (!ValidationUtil.isEmpty(selectKeyParams)){
keyParams = selectKeyParams;
keyinfo.remove("keyinfo.keyParams_" + param.getString("EQU_CATEGORY_CODE"));
} else {
keyParams = JsonValueUtils.getValueByKey(content, "keyinfo", "keyinfo.keyParams_default");
}
}
keyinfo.remove("keyParams_default");
keyinfo.put("keyParams", keyParams);
}
((JSONArray) keyParams).stream().forEach(x -> {
JSONObject xobj = (JSONObject) x;
xobj.put("type", "text");
xobj.put("value", result.get(xobj.getString("key")));
});
this.processQRCodeWidget(content.getJSONObject("keyinfo").getJSONObject("qrcode"), result);
if (tab.getString("template").contains("equip")){
// 处理问题列表
List<Map<String, String>> problem = dpSubBizService.queryProblemListByEquipId(param.getString("record"));
if (!ValidationUtil.isEmpty(problem)){
Object qrcode = JsonValueUtils.getValueByKey(content, "keyinfo", "keyinfo.qrcode");
((JSONObject)qrcode).put("problem", problem);
}
// 处理监管履历
List<Map<String, String>> datas = dpSubBizService.equOnJgServiceOperationRecords(param.getString("record"));
if (!ValidationUtil.isEmpty(datas)){
Object infoRecords = JsonValueUtils.getValueByKey(content, "keyinfo", "keyinfo.infoRecords");
((JSONObject)infoRecords).put("datas", datas);
param.put("reghistory", datas);
}
}
return content;
}
private JSONArray processShowHideRules(JSONArray children, Object showHideRules, Object apiResult) {
JSONObject result = JSONObject.parseObject(apiResult.toString());
if (!ValidationUtil.isEmpty(showHideRules)) {
......@@ -305,30 +363,10 @@ public class DPSubServiceImpl {
JSONArray datas = new JSONArray();
// 处理二维码
mergedArray.stream().filter(x -> "QRCode".equals(JsonValueUtils.getValueByKey(x, "componentKey", null))).findFirst().ifPresent(x -> {
JSONObject qrcode = map.getJSONObject("qrcode");
String problemTime = result.getString("problemTime");
String problemStatus = result.getString("problemStatus");
String color = null;
if (!ValidationUtil.isEmpty(problemTime)) {
try {
qrcode.put("text", DateUtil.formatDate(DateUtil.smartFormat(problemTime), "yyyy-MM-dd"));
qrcode.put("subtext", DateUtil.formatDate(DateUtil.smartFormat(problemTime), "HH:mm:ss"));
} catch (Exception e) {
e.printStackTrace();
}
}
if ("正常".equals(problemStatus)) {
color = "green";
} else if ("异常".equals(problemStatus)) {
color = "red";
}
qrcode.put("value", !ValidationUtil.isEmpty(result.get("useCode")) ? result.get("useCode") : result.get("USE_ORG_CODE"));
qrcode.put("status", problemStatus);
qrcode.put("color", color);
this.processQRCodeWidget(map.getJSONObject("qrcode"), result);
});
mergedArray = mergedArray.stream().filter(x -> !"QRCode".equals(JsonValueUtils.getValueByKey(x, "componentKey", null))).collect(Collectors.toList());
mergedArray.stream().forEach(x -> {
Object fieldKey = JsonValueUtils.getValueByKey(x, "visualParams", "visualParams.fieldKey");
if (!ValidationUtil.isEmpty(fieldKey)) {
......@@ -366,6 +404,29 @@ public class DPSubServiceImpl {
return map;
}
public JSONObject processQRCodeWidget(JSONObject qrcode, JSONObject result) {
String problemTime = result.getString("problemTime");
String problemStatus = result.getString("problemStatus");
String color = null;
if (!ValidationUtil.isEmpty(problemTime)) {
try {
qrcode.put("text", DateUtil.formatDate(DateUtil.smartFormat(problemTime), "yyyy-MM-dd"));
qrcode.put("subtext", DateUtil.formatDate(DateUtil.smartFormat(problemTime), "HH:mm:ss"));
} catch (Exception e) {
e.printStackTrace();
}
}
if ("正常".equals(problemStatus)) {
color = "green";
} else if ("异常".equals(problemStatus)) {
color = "red";
}
qrcode.put("value", !ValidationUtil.isEmpty(result.get("useCode")) ? result.get("useCode") : result.get("USE_ORG_CODE"));
qrcode.put("status", problemStatus);
qrcode.put("color", color);
return qrcode;
}
/**
* 处理不同组件的展示
*
......
......@@ -2,8 +2,19 @@
"name": "企业模板",
"tabs": [
{
"key": "basic",
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jczs/baseEnterprise/{sequenceNbr}"
}
}
},
{
"key": "basic",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793454184889085953",
"dataConfig": {
......@@ -59,6 +70,23 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams": [
{ "key": "unitType", "label": "单位类型" },
{ "key": "useUnit", "label": "单位名称" },
{ "key": "useUnitCode", "label": "证件号码" },
{ "key": "governingBody", "label": "管辖机构" },
{ "key": "address", "label": "地址" },
{ "key": "legalPerson", "label": "法人" },
{ "key": "useContact", "label": "单位联系人" },
{ "key": "contactPhone", "label": "联系电话" },
{ "key": "keyUnit", "label": "是否重点监控单位" }
]
},
"basic": {
"columns": 2,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-锅炉",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -69,21 +84,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -118,6 +119,32 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-压力容器",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -73,21 +88,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -122,6 +123,55 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams_default": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"keyParams_2300_true": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备类别" },
{ "key": "useUnitCode", "label": "下一次检验日期" }
],
"keyParams_2300_false": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "使用单位地址" },
{ "key": "useUnit", "label": "车牌号" },
{ "key": "useUnitCode", "label": "车辆VIN码" },
{ "key": "useUnitCode", "label": "气瓶品种" },
{ "key": "useUnitCode", "label": "产品名称" },
{ "key": "useUnitCode", "label": "气瓶数量" },
{ "key": "useUnitCode", "label": "充装介质" },
{ "key": "useUnitCode", "label": "下次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-电梯",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -69,21 +84,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -118,6 +119,34 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "维保单位名称" },
{ "key": "governingBody", "label": "维保备案有效期" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-起重机械",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -65,21 +80,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -114,6 +115,32 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-场(厂)内机动车",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -61,21 +76,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -110,6 +111,32 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-大型游乐设施",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -55,21 +70,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -104,6 +105,32 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-压力管道",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -61,21 +76,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -110,6 +111,41 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams_default": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"keyParams_8300": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备类别" },
{ "key": "useUnitCode", "label": "下一次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
......@@ -2,8 +2,23 @@
"name": "设备-客运索道",
"tabs": [
{
"key": "keyinfo",
"displayName": "基本信息",
"renderType": "keyinfo",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/ymt/equipment-category/getFormRecordById",
"params": {
"alias": "{EQU_LIST_CODE}",
"id": "{SEQUENCE_NBR}"
}
}
}
},
{
"key": "basic",
"displayName": "设备信息",
"displayName": "详细信息",
"renderType": "basic",
"formSeq": "1793458381554479105",
"dataConfig": {
......@@ -61,21 +76,7 @@
{
"key": "reghistory",
"displayName": "监管履历信息",
"renderType": "timeline",
"formSeq": "",
"dataConfig": {
"api": {
"httpMethod":"GET",
"apiPath":"/jg/common/equOnJgServiceOperationRecords",
"params": {
"record": "{record}"
},
"ruleData": {
"responseSuccess": "data.result",
"operater": "content"
}
}
}
"renderType": "timeline"
},
{
"key": "devtable",
......@@ -110,6 +111,32 @@
}
],
"content": {
"keyinfo": {
"status": [],
"qrcode": {
"title": "监管码"
},
"keyParams": [
{ "key": "unitType", "label": "使用登记证编号" },
{ "key": "useUnit", "label": "登记机关" },
{ "key": "useUnitCode", "label": "登记日期" },
{ "key": "governingBody", "label": "使用单位名称" },
{ "key": "unitType", "label": "设备使用地点" },
{ "key": "useUnit", "label": "设备种类" },
{ "key": "useUnitCode", "label": "设备类别" },
{ "key": "governingBody", "label": "设备品种" },
{ "key": "governingBody", "label": "单位内编号" },
{ "key": "governingBody", "label": "设备代码" },
{ "key": "governingBody", "label": "下一次检验日期" }
],
"infoRecords": {
"title": "监管记录",
"renderType": "timeline",
"showMore": true,
"moreKey": "reghistory",
"datas": []
}
},
"basic": {
"columns": 3,
"datas": [],
......
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