作者 shenhailong

代理人 添加危险品分类 用户添加功能 远程接口添加发送报文

@@ -158,7 +158,15 @@ public class SecurityDeclarationController { @@ -158,7 +158,15 @@ public class SecurityDeclarationController {
158 ResponseModel model = new ResponseModel(); 158 ResponseModel model = new ResponseModel();
159 159
160 //货物性质(类型) 160 //货物性质(类型)
161 - String type = request.getParameter("dept"); 161 + String one = request.getParameter("one");
  162 + String two = request.getParameter("two");
  163 + String three = request.getParameter("three");
  164 + String four = request.getParameter("four");
  165 +
  166 + String type = cargoType(one, two, three, four);
  167 + if ("C".equals(type)){
  168 + type = request.getParameter("dept");
  169 + }
162 170
163 //航空货物托运人名称 171 //航空货物托运人名称
164 String cargoShipperName = request.getParameter("sd_cargo_shipper_name"); 172 String cargoShipperName = request.getParameter("sd_cargo_shipper_name");
@@ -304,7 +312,17 @@ public class SecurityDeclarationController { @@ -304,7 +312,17 @@ public class SecurityDeclarationController {
304 */ 312 */
305 //货物性质(类型) 313 //货物性质(类型)
306 314
307 - String type = request.getParameter("dept"); 315 +
  316 + String one = request.getParameter("one");
  317 + String two = request.getParameter("two");
  318 + String three = request.getParameter("three");
  319 + String four = request.getParameter("four");
  320 +
  321 + String type = cargoType(one, two, three, four);
  322 + if ("C".equals(type)){
  323 + type = request.getParameter("dept");
  324 + }
  325 +
308 326
309 //航空货物托运人名称 327 //航空货物托运人名称
310 String cargoShipperName = request.getParameter("sd_cargo_shipper_name"); 328 String cargoShipperName = request.getParameter("sd_cargo_shipper_name");
@@ -578,7 +596,18 @@ public class SecurityDeclarationController { @@ -578,7 +596,18 @@ public class SecurityDeclarationController {
578 * 安检申报 596 * 安检申报
579 */ 597 */
580 //货物性质(类型) 598 //货物性质(类型)
581 - String type = request.getParameter("dept"); 599 + //货物性质(类型)
  600 +
  601 +
  602 + String one = request.getParameter("one");
  603 + String two = request.getParameter("two");
  604 + String three = request.getParameter("three");
  605 + String four = request.getParameter("four");
  606 +
  607 + String type = cargoType(one, two, three, four);
  608 + if ("C".equals(type)){
  609 + type = request.getParameter("dept");
  610 + }
582 611
583 //航空货物托运人名称 612 //航空货物托运人名称
584 String cargoShipperName = request.getParameter("sd_cargo_shipper_name"); 613 String cargoShipperName = request.getParameter("sd_cargo_shipper_name");
@@ -766,4 +795,25 @@ public class SecurityDeclarationController { @@ -766,4 +795,25 @@ public class SecurityDeclarationController {
766 return "declaration/print"; 795 return "declaration/print";
767 } 796 }
768 797
  798 +
  799 + public String cargoType(String one, String two, String three, String four){
  800 +
  801 + String type = "";
  802 + //货物性质
  803 + if (!StringUtils.isBlank(one)){
  804 + type = one;
  805 + }
  806 + if (!StringUtils.isBlank(two)){
  807 + type = two;
  808 + }
  809 + if (!StringUtils.isBlank(three)){
  810 + type = three;
  811 + }
  812 + if (!StringUtils.isBlank(four)){
  813 + type = four;
  814 + }
  815 +
  816 + return type;
  817 + }
  818 +
769 } 819 }
@@ -60,25 +60,59 @@ @@ -60,25 +60,59 @@
60 </td> 60 </td>
61 61
62 <td class="kv-content"> 62 <td class="kv-content">
63 - <select id="cc" class="easyui-combobox" name="dept" style="width:200px;">  
64 - <option value="A" <c:if test="${'A' eq type}">selected</c:if>>普通货物</option>  
65 - <option value="B" <c:if test="${'B' eq type}">selected</c:if>>特种货物</option>  
66 - <option value="C" <c:if test="${'C' eq type}">selected</c:if>>危险品</option>  
67 - <option value="D" <c:if test="${'D' eq type}">selected</c:if>>航空快件</option>  
68 - <option value="C1" <c:if test="${'C1' eq type}">selected</c:if>>爆炸物</option>  
69 - <option value="C2" <c:if test="${'C2' eq type}">selected</c:if>>压缩气体和液化气体</option>  
70 - <option value="C3" <c:if test="${'C3' eq type}">selected</c:if>>易燃液体</option>  
71 - <option value="C4" <c:if test="${'C4' eq type}">selected</c:if>>易燃固体、自燃物品、遇湿易燃物品</option>  
72 - <option value="C5" <c:if test="${'C5' eq type}">selected</c:if>>氧化物和有机过氧化物</option>  
73 - <option value="C6" <c:if test="${'C6' eq type}">selected</c:if>>毒性物质和感染性物质</option>  
74 - <option value="C7" <c:if test="${'C7' eq type}">selected</c:if>>放射性物质</option>  
75 - <option value="C8" <c:if test="${'C8' eq type}">selected</c:if>>腐蚀品</option>  
76 - <option value="C9" <c:if test="${'C9' eq type}">selected</c:if>>杂项危险品-ELI/RLI:锂离子电池(与设备放于同一包装/已安装于设备中)</option>  
77 - <option value="C10" <c:if test="${'C10' eq type}">selected</c:if>>杂项危险品-ELM/RLM:锂金属电池(与设备放于同一包装/已安装于设备中)</option>  
78 - <option value="C11" <c:if test="${'C11' eq type}">selected</c:if>>杂项危险品-RBI/EBI:锂离子电池</option>  
79 - <option value="C12" <c:if test="${'C12' eq type}">selected</c:if>>杂项危险品-RBM/EBM:锂金属电池</option>  
80 - <option value="C13" <c:if test="${'C13' eq type}">selected</c:if>>杂项危险品-其他杂项危险品</option> 63 + <label>
  64 + <input id="one" onchange="riskType(this.value)" <c:if test="${type.contains('A')}">checked="checked"</c:if> name="one" type="radio" value="A">普通货物
  65 + </label>
  66 + <label>
  67 + <input id="two" onchange="riskType(this.value)" <c:if test="${type.contains('B')}">checked="checked"</c:if> name="one" type="radio" value="B">特种货物
  68 + </label>
  69 + <label>
  70 + <input id="three" onchange="riskType(this.value)" <c:if test="${type.contains('C')}">checked="checked"</c:if> name="one" type="radio" value="C">危险品
  71 + </label>
  72 + <label>
  73 + <input id="four" onchange="riskType(this.value)" <c:if test="${type.contains('D')}">checked="checked"</c:if> name="one" type="radio" value="D">航空快件
  74 + </label>
  75 + <c:choose>
  76 + <c:when test="${type.contains('C')}">
  77 + <div id="cc3" style="display: block">
  78 + <select id="cc2" class="easyui-combobox" name="dept" style="width:200px">
  79 + <option <c:if test="${'C1' eq type}">selected</c:if> value="C1">爆炸物</option>
  80 + <option <c:if test="${'C2' eq type}">selected</c:if> value="C2">压缩气体和液化气体</option>
  81 + <option <c:if test="${'C3' eq type}">selected</c:if> value="C3">易燃液体</option>
  82 + <option <c:if test="${'C4' eq type}">selected</c:if> value="C4">易燃固体、自燃物品、遇湿易燃物品</option>
  83 + <option <c:if test="${'C5' eq type}">selected</c:if> value="C5">氧化物和有机过氧化物</option>
  84 + <option <c:if test="${'C6' eq type}">selected</c:if> value="C6">毒性物质和感染性物质</option>
  85 + <option <c:if test="${'C7' eq type}">selected</c:if> value="C7">放射性物质</option>
  86 + <option <c:if test="${'C8' eq type}">selected</c:if> value="C8">腐蚀品</option>
  87 + <option <c:if test="${'C9' eq type}">selected</c:if> value="C9">杂项危险品-ELI/RLI:锂离子电池(与设备放于同一包装/已安装于设备中)</option>
  88 + <option <c:if test="${'C10' eq type}">selected</c:if> value="C10">杂项危险品-ELM/RLM:锂金属电池(与设备放于同一包装/已安装于设备中)</option>
  89 + <option <c:if test="${'C11' eq type}">selected</c:if> value="C11">杂项危险品-RBI/EBI:锂离子电池</option>
  90 + <option <c:if test="${'C12' eq type}">selected</c:if> value="C12">杂项危险品-RBM/EBM:锂金属电池</option>
  91 + <option <c:if test="${'C13' eq type}">selected</c:if> value="C13">杂项危险品-其他杂项危险品</option>
81 </select> 92 </select>
  93 + </div>
  94 + </c:when>
  95 + <c:otherwise>
  96 + <div id="cc3" style="display: none">
  97 + <select id="cc2" class="easyui-combobox" name="dept" style="width:200px">
  98 + <option <c:if test="${'C1' eq type}">selected</c:if> value="C1">爆炸物</option>
  99 + <option <c:if test="${'C2' eq type}">selected</c:if> value="C2">压缩气体和液化气体</option>
  100 + <option <c:if test="${'C3' eq type}">selected</c:if> value="C3">易燃液体</option>
  101 + <option <c:if test="${'C4' eq type}">selected</c:if> value="C4">易燃固体、自燃物品、遇湿易燃物品</option>
  102 + <option <c:if test="${'C5' eq type}">selected</c:if> value="C5">氧化物和有机过氧化物</option>
  103 + <option <c:if test="${'C6' eq type}">selected</c:if> value="C6">毒性物质和感染性物质</option>
  104 + <option <c:if test="${'C7' eq type}">selected</c:if> value="C7">放射性物质</option>
  105 + <option <c:if test="${'C8' eq type}">selected</c:if> value="C8">腐蚀品</option>
  106 + <option <c:if test="${'C9' eq type}">selected</c:if> value="C9">杂项危险品-ELI/RLI:锂离子电池(与设备放于同一包装/已安装于设备中)</option>
  107 + <option <c:if test="${'C10' eq type}">selected</c:if> value="C10">杂项危险品-ELM/RLM:锂金属电池(与设备放于同一包装/已安装于设备中)</option>
  108 + <option <c:if test="${'C11' eq type}">selected</c:if> value="C11">杂项危险品-RBI/EBI:锂离子电池</option>
  109 + <option <c:if test="${'C12' eq type}">selected</c:if> value="C12">杂项危险品-RBM/EBM:锂金属电池</option>
  110 + <option <c:if test="${'C13' eq type}">selected</c:if> value="C13">杂项危险品-其他杂项危险品</option>
  111 + </select>
  112 + </div>
  113 + </c:otherwise>
  114 + </c:choose>
  115 +
82 </td> 116 </td>
83 </tr> 117 </tr>
84 <tr> 118 <tr>
@@ -216,7 +250,15 @@ @@ -216,7 +250,15 @@
216 layer = layui.layer; 250 layer = layui.layer;
217 }); 251 });
218 252
219 - var selectFals = true; 253 + function riskType(value) {
  254 + if (value == "C"){
  255 + document.getElementById("cc3").style.display='block'
  256 + }else {
  257 + document.getElementById("cc3").style.display='none'
  258 + }
  259 + }
  260 +
  261 + var selectFals = false;
220 function submit(){ 262 function submit(){
221 layerIndex = parent.layer.load(1, { 263 layerIndex = parent.layer.load(1, {
222 shade: [0.6,'#000000'] //0.1透明度 264 shade: [0.6,'#000000'] //0.1透明度
@@ -61,17 +61,57 @@ @@ -61,17 +61,57 @@
61 61
62 <td class="kv-content"> 62 <td class="kv-content">
63 <label> 63 <label>
64 - <input id="one" name="one" type="radio" ${fn:contains(type, 1)?"checked":""} value="1" >普通货物 64 + <input id="one" onchange="riskType(this.value)" <c:if test="${type.contains('A')}">checked="checked"</c:if> name="one" type="radio" value="A">普通货物
65 </label> 65 </label>
66 <label> 66 <label>
67 - <input id="two" name="one" type="radio" ${fn:contains(type, 2)?"checked":""} value="2">特种货物 67 + <input id="two" onchange="riskType(this.value)" <c:if test="${type.contains('B')}">checked="checked"</c:if> name="one" type="radio" value="B">特种货物
68 </label> 68 </label>
69 <label> 69 <label>
70 - <input id="three" name="one" type="radio" ${fn:contains(type, 3)?"checked":""} value="3">危险品 70 + <input id="three" onchange="riskType(this.value)" <c:if test="${type.contains('C')}">checked="checked"</c:if> name="one" type="radio" value="C">危险品
71 </label> 71 </label>
72 <label> 72 <label>
73 - <input id="four" name="one" type="radio" ${fn:contains(type, 4)?"checked":""} value="4">航空快件 73 + <input id="four" onchange="riskType(this.value)" <c:if test="${type.contains('D')}">checked="checked"</c:if> name="one" type="radio" value="D">航空快件
74 </label> 74 </label>
  75 + <c:choose>
  76 + <c:when test="${type.contains('C')}">
  77 + <div id="cc3" style="display: block">
  78 + <select id="cc2" class="easyui-combobox" name="dept" style="width:200px">
  79 + <option <c:if test="${'C1' eq type}">selected</c:if> value="C1">爆炸物</option>
  80 + <option <c:if test="${'C2' eq type}">selected</c:if> value="C2">压缩气体和液化气体</option>
  81 + <option <c:if test="${'C3' eq type}">selected</c:if> value="C3">易燃液体</option>
  82 + <option <c:if test="${'C4' eq type}">selected</c:if> value="C4">易燃固体、自燃物品、遇湿易燃物品</option>
  83 + <option <c:if test="${'C5' eq type}">selected</c:if> value="C5">氧化物和有机过氧化物</option>
  84 + <option <c:if test="${'C6' eq type}">selected</c:if> value="C6">毒性物质和感染性物质</option>
  85 + <option <c:if test="${'C7' eq type}">selected</c:if> value="C7">放射性物质</option>
  86 + <option <c:if test="${'C8' eq type}">selected</c:if> value="C8">腐蚀品</option>
  87 + <option <c:if test="${'C9' eq type}">selected</c:if> value="C9">杂项危险品-ELI/RLI:锂离子电池(与设备放于同一包装/已安装于设备中)</option>
  88 + <option <c:if test="${'C10' eq type}">selected</c:if> value="C10">杂项危险品-ELM/RLM:锂金属电池(与设备放于同一包装/已安装于设备中)</option>
  89 + <option <c:if test="${'C11' eq type}">selected</c:if> value="C11">杂项危险品-RBI/EBI:锂离子电池</option>
  90 + <option <c:if test="${'C12' eq type}">selected</c:if> value="C12">杂项危险品-RBM/EBM:锂金属电池</option>
  91 + <option <c:if test="${'C13' eq type}">selected</c:if> value="C13">杂项危险品-其他杂项危险品</option>
  92 + </select>
  93 + </div>
  94 + </c:when>
  95 + <c:otherwise>
  96 + <div id="cc3" style="display: none">
  97 + <select id="cc2" class="easyui-combobox" name="dept" style="width:200px">
  98 + <option <c:if test="${'C1' eq type}">selected</c:if> value="C1">爆炸物</option>
  99 + <option <c:if test="${'C2' eq type}">selected</c:if> value="C2">压缩气体和液化气体</option>
  100 + <option <c:if test="${'C3' eq type}">selected</c:if> value="C3">易燃液体</option>
  101 + <option <c:if test="${'C4' eq type}">selected</c:if> value="C4">易燃固体、自燃物品、遇湿易燃物品</option>
  102 + <option <c:if test="${'C5' eq type}">selected</c:if> value="C5">氧化物和有机过氧化物</option>
  103 + <option <c:if test="${'C6' eq type}">selected</c:if> value="C6">毒性物质和感染性物质</option>
  104 + <option <c:if test="${'C7' eq type}">selected</c:if> value="C7">放射性物质</option>
  105 + <option <c:if test="${'C8' eq type}">selected</c:if> value="C8">腐蚀品</option>
  106 + <option <c:if test="${'C9' eq type}">selected</c:if> value="C9">杂项危险品-ELI/RLI:锂离子电池(与设备放于同一包装/已安装于设备中)</option>
  107 + <option <c:if test="${'C10' eq type}">selected</c:if> value="C10">杂项危险品-ELM/RLM:锂金属电池(与设备放于同一包装/已安装于设备中)</option>
  108 + <option <c:if test="${'C11' eq type}">selected</c:if> value="C11">杂项危险品-RBI/EBI:锂离子电池</option>
  109 + <option <c:if test="${'C12' eq type}">selected</c:if> value="C12">杂项危险品-RBM/EBM:锂金属电池</option>
  110 + <option <c:if test="${'C13' eq type}">selected</c:if> value="C13">杂项危险品-其他杂项危险品</option>
  111 + </select>
  112 + </div>
  113 + </c:otherwise>
  114 + </c:choose>
75 </td> 115 </td>
76 </tr> 116 </tr>
77 <tr> 117 <tr>
@@ -70,23 +70,20 @@ @@ -70,23 +70,20 @@
70 </td> 70 </td>
71 71
72 <td class="kv-content"> 72 <td class="kv-content">
73 -<%-- <label>--%>  
74 -<%-- <input id="one" name="one" type="radio" value="1" checked>普通货物--%>  
75 -<%-- </label>--%>  
76 -<%-- <label>--%>  
77 -<%-- <input id="two" name="one" type="radio" value="2">特种货物--%>  
78 -<%-- </label>--%>  
79 -<%-- <label>--%>  
80 -<%-- <input id="three" name="one" type="radio" value="3">危险品--%>  
81 -<%-- </label>--%>  
82 -<%-- <label>--%>  
83 -<%-- <input id="four" name="one" type="radio" value="4">航空快件--%>  
84 -<%-- </label>--%>  
85 - <select id="cc" class="easyui-combobox" name="dept" style="width:200px;">  
86 - <option value="A">普通货物</option>  
87 - <option value="B">特种货物</option>  
88 - <option value="C">危险品</option>  
89 - <option value="D">航空快件</option> 73 + <label>
  74 + <input id="one" onchange="riskType(this.value)" name="one" type="radio" value="A" checked>普通货物
  75 + </label>
  76 + <label>
  77 + <input id="two" onchange="riskType(this.value)" name="one" type="radio" value="B">特种货物
  78 + </label>
  79 + <label>
  80 + <input id="three" onchange="riskType(this.value)" name="one" type="radio" value="C">危险品
  81 + </label>
  82 + <label>
  83 + <input id="four" onchange="riskType(this.value)" name="one" type="radio" value="D">航空快件
  84 + </label>
  85 + <div id="cc3" style="display: none">
  86 + <select id="cc2" class="easyui-combobox" name="dept" style="width:200px">
90 <option value="C1">爆炸物</option> 87 <option value="C1">爆炸物</option>
91 <option value="C2">压缩气体和液化气体</option> 88 <option value="C2">压缩气体和液化气体</option>
92 <option value="C3">易燃液体</option> 89 <option value="C3">易燃液体</option>
@@ -101,6 +98,7 @@ @@ -101,6 +98,7 @@
101 <option value="C12">杂项危险品-RBM/EBM:锂金属电池</option> 98 <option value="C12">杂项危险品-RBM/EBM:锂金属电池</option>
102 <option value="C13">杂项危险品-其他杂项危险品</option> 99 <option value="C13">杂项危险品-其他杂项危险品</option>
103 </select> 100 </select>
  101 + </div>
104 </td> 102 </td>
105 </tr> 103 </tr>
106 <tr> 104 <tr>
@@ -231,13 +229,11 @@ @@ -231,13 +229,11 @@
231 <script src="<%=basePath%>/resource/js/tools.js?version=${version}"></script> 229 <script src="<%=basePath%>/resource/js/tools.js?version=${version}"></script>
232 <!--弹出层引入的JS--> 230 <!--弹出层引入的JS-->
233 <script type="text/javascript"> 231 <script type="text/javascript">
234 -  
235 var layerIndex; 232 var layerIndex;
236 var layer; 233 var layer;
237 layui.use('layer', function(){ 234 layui.use('layer', function(){
238 layer = layui.layer; 235 layer = layui.layer;
239 }); 236 });
240 -  
241 function viewXml(){ 237 function viewXml(){
242 if($("#ids").val()==''){ 238 if($("#ids").val()==''){
243 layer.open({content:"<spring:message code='manifest.send.message.failed'/>"}); 239 layer.open({content:"<spring:message code='manifest.send.message.failed'/>"});
@@ -252,7 +248,17 @@ @@ -252,7 +248,17 @@
252 }) 248 })
253 } 249 }
254 } 250 }
255 - var selectFals = true; 251 +
  252 + function riskType(value) {
  253 + if (value == "C"){
  254 + document.getElementById("cc3").style.display='block'
  255 + }else {
  256 + document.getElementById("cc3").style.display='none'
  257 + }
  258 + }
  259 +
  260 +
  261 + var selectFals = false;
256 //发送报文并且保存 262 //发送报文并且保存
257 function savesend(){ 263 function savesend(){
258 var isValid = $("#form").valid(); 264 var isValid = $("#form").valid();
@@ -251,7 +251,7 @@ @@ -251,7 +251,7 @@
251 function findOne(id) { 251 function findOne(id) {
252 layer.open({ 252 layer.open({
253 type : 2, 253 type : 2,
254 - title : '修改', 254 + title : '查看',
255 maxmin : true, 255 maxmin : true,
256 shadeClose : false, // 点击遮罩关闭层 256 shadeClose : false, // 点击遮罩关闭层
257 area : [ '80%', '65%' ], 257 area : [ '80%', '65%' ],
@@ -62,23 +62,20 @@ @@ -62,23 +62,20 @@
62 </td> 62 </td>
63 63
64 <td class="kv-content"> 64 <td class="kv-content">
65 -<%-- <label>--%>  
66 -<%-- <input id="one" name="one" type="radio" value="1" checked>普通货物--%>  
67 -<%-- </label>--%>  
68 -<%-- <label>--%>  
69 -<%-- <input id="two" name="one" type="radio" value="2">特种货物--%>  
70 -<%-- </label>--%>  
71 -<%-- <label>--%>  
72 -<%-- <input id="three" name="one" type="radio" value="3">危险品--%>  
73 -<%-- </label>--%>  
74 -<%-- <label>--%>  
75 -<%-- <input id="four" name="one" type="radio" value="4">航空快件--%>  
76 -<%-- </label>--%>  
77 - <select id="cc" class="easyui-combobox" name="dept" style="width:200px;">  
78 - <option value="A">普通货物</option>  
79 - <option value="B">特种货物</option>  
80 - <option value="C">危险品</option>  
81 - <option value="D">航空快件</option> 65 + <label>
  66 + <input id="one" onchange="riskType(this.value)" name="one" type="radio" value="A" checked>普通货物
  67 + </label>
  68 + <label>
  69 + <input id="two" onchange="riskType(this.value)" name="one" type="radio" value="B">特种货物
  70 + </label>
  71 + <label>
  72 + <input id="three" onchange="riskType(this.value)" name="one" type="radio" value="C">危险品
  73 + </label>
  74 + <label>
  75 + <input id="four" onchange="riskType(this.value)" name="one" type="radio" value="D">航空快件
  76 + </label>
  77 + <div id="cc3" style="display: none">
  78 + <select id="cc2" class="easyui-combobox" name="dept" style="width:200px">
82 <option value="C1">爆炸物</option> 79 <option value="C1">爆炸物</option>
83 <option value="C2">压缩气体和液化气体</option> 80 <option value="C2">压缩气体和液化气体</option>
84 <option value="C3">易燃液体</option> 81 <option value="C3">易燃液体</option>
@@ -93,6 +90,7 @@ @@ -93,6 +90,7 @@
93 <option value="C12">杂项危险品-RBM/EBM:锂金属电池</option> 90 <option value="C12">杂项危险品-RBM/EBM:锂金属电池</option>
94 <option value="C13">杂项危险品-其他杂项危险品</option> 91 <option value="C13">杂项危险品-其他杂项危险品</option>
95 </select> 92 </select>
  93 + </div>
96 </td> 94 </td>
97 </tr> 95 </tr>
98 96
@@ -199,7 +197,7 @@ @@ -199,7 +197,7 @@
199 layer = layui.layer; 197 layer = layui.layer;
200 }); 198 });
201 199
202 - var selectFals = true; 200 + var selectFals = false;
203 function submit(){ 201 function submit(){
204 layerIndex = parent.layer.load(1, { 202 layerIndex = parent.layer.load(1, {
205 shade: [0.6,'#000000'] //0.1透明度 203 shade: [0.6,'#000000'] //0.1透明度
@@ -248,6 +246,14 @@ @@ -248,6 +246,14 @@
248 } 246 }
249 } 247 }
250 248
  249 + function riskType(value) {
  250 + if (value == "C"){
  251 + document.getElementById("cc3").style.display='block'
  252 + }else {
  253 + document.getElementById("cc3").style.display='none'
  254 + }
  255 + }
  256 +
251 //发送报文并且保存 257 //发送报文并且保存
252 function savesend(){ 258 function savesend(){
253 var isValid = $("#form").valid(); 259 var isValid = $("#form").valid();