Commit a8d9a5f3 authored by 刘凡's avatar 刘凡

*)修改模板

parent 197716b4
......@@ -197,9 +197,13 @@ public class DPSubServiceImpl {
xobj.put("value", "param".equals(xobj.getString("source")) ? param.get(xobj.getString("key")) : result.get(xobj.getString("key")));
});
this.processQRCodeWidget(content.getJSONObject("keyinfo").getJSONObject("qrcode"), result);
this.processQRCodeWidget(content.getJSONObject("keyinfo").getJSONObject("qrcode"), result);
if (tab.getString("template").contains("equip")){
// 处理图片
JSONArray jsonArray = result.getJSONArray("PRODUCT_PHOTO");
if (!ValidationUtil.isEmpty(jsonArray)){
content.getJSONObject("keyinfo").put("photo", jsonArray.getJSONObject(0).getString("url"));
}
// 处理问题列表
List<Map<String, String>> problem = dpSubBizService.queryProblemListByEquipId(param.getString("record"));
if (!ValidationUtil.isEmpty(problem)){
......@@ -214,6 +218,12 @@ public class DPSubServiceImpl {
((JSONObject)infoRecords).put("datas", datas);
param.put("reghistory", datas);
}
} else if(tab.getString("template").contains("company")){
// 处理图片
JSONArray jsonArray = result.getJSONArray("unitBusinessLicense");
if (!ValidationUtil.isEmpty(jsonArray)){
content.getJSONObject("keyinfo").put("photo", jsonArray.getJSONObject(0).getString("url"));
}
}
return content;
}
......
......@@ -75,8 +75,7 @@
"content": {
"keyinfo": {
"status": [
{ "key": "unitType", "label": "", "icon": "", "value": "success" },
{ "key": "2", "label": "", "icon": "", "value": "success" },
{ "key": "2", "label": "在业", "icon": "", "value": "success" },
{ "key": "3", "label": "否", "icon": "", "value": "error" },
{ "key": "4", "label": "否", "icon": "", "value": "stop" }
],
......
......@@ -120,7 +120,10 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
......@@ -124,7 +124,10 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
......@@ -120,7 +120,11 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" },
{ "key": "3", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
......@@ -116,7 +116,10 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
......@@ -112,7 +112,10 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
......@@ -106,7 +106,10 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
......@@ -112,7 +112,10 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
......@@ -112,7 +112,10 @@
],
"content": {
"keyinfo": {
"status": [],
"status": [
{ "key": "1", "label": "在用", "icon": "", "value": "success" },
{ "key": "2", "label": "否", "icon": "", "value": "stop" }
],
"qrcode": {
"title": "监管码",
"problem": []
......
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