repeatdata.html 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/default.css">
  11. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/fileinput.css">
  12. <link rel="stylesheet" href="${ctx}/assets/lib/ystep/css/ystep.css">
  13. <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
  14. <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
  15. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  16. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  17. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
  18. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
  19. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  20. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  21. <script src="${ctx}/assets/js/validate.js" ></script>
  22. <script type="text/javascript">
  23. function submitRepeat(){
  24. if($('#TransactIdea').val()!='')
  25. {
  26. //$('#form1').attr('action','${ctx}/myconsole/complaint/register/saveRepeat');
  27. //$('#form1').ajaxSubmit(resultHandle);
  28. var params_= $("#form1" ).serialize();
  29. $.post('${ctx}/myconsole/complaint/register/saveRepeat',params_,function(data){
  30. resultHandle(data);
  31. })
  32. $("#SubmitRepeatButton").attr("disabled",'disabled');
  33. }
  34. else
  35. {
  36. layer.alert("重复件办理意见不能为空!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  37. $('#TransactIdea').focus();
  38. }
  39. }
  40. function resultHandle(data){
  41. var res=eval('(' + data + ')');
  42. if(res.flag){
  43. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
  44. function(){
  45. layer.closeAll('dialog');
  46. window.parent.close();
  47. });
  48. }else{
  49. if(res.flag == false)
  50. {
  51. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  52. }
  53. }
  54. }
  55. function submitUrge()
  56. {
  57. if($('#UrgeTransactIdea').val()!='')
  58. {
  59. //$('#form1').attr('action','${ctx}/myconsole/complaint/register/saveRepeat');
  60. //$('#form1').ajaxSubmit(resultHandle);
  61. var params_= $("#form1" ).serialize();
  62. $.post('${ctx}/myconsole/complaint/register/saveUrge',params_,function(data){
  63. resultHandle(data);
  64. })
  65. $("#SubmitRepeatButton").attr("disabled",'disabled');
  66. }
  67. else
  68. {
  69. layer.alert("业务催办办理意见不能为空!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  70. $('#TransactIdea').focus();
  71. }
  72. }
  73. function submitNolle(){
  74. if($('#NolleTransactIdea').val()!=''&&$('#NolleType').val()!=''&&$('#NolleDate').val()!='')
  75. {
  76. //$('#form1').attr('action','${ctx}/myconsole/complaint/register/saveNolle');
  77. //$('#form1').ajaxSubmit(resultHandle);
  78. var params_= $("#form1" ).serialize();
  79. $.post('${ctx}/myconsole/complaint/register/saveNolle',params_,function(data){
  80. resultHandle(data);
  81. })
  82. $("#SubmitNolleButton").attr("disabled",'disabled');
  83. }
  84. else
  85. {
  86. layer.alert("撤诉办理意见、撤诉方式、撤诉时间都不能为空!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  87. $('#NolleTransactIdea').focus();
  88. }
  89. }
  90. //
  91. function setLinkPerson()
  92. {
  93. var personType=$("#PersonType").val();
  94. if(personType=='自然人')
  95. {
  96. var linkPerson=$("#TName").val();
  97. $("#LinkPerson").val(linkPerson);
  98. }
  99. else
  100. {
  101. $("#LinkPerson").val("");
  102. }
  103. }
  104. //根据人员类别选择证件信息2017-08-19
  105. function setLabelTName()
  106. {
  107. var personType=$("#PersonType").val();
  108. if(personType=='自然人'||personType=='')
  109. {
  110. $("#Label_TName").text("姓名");
  111. $("#CardType").empty();  
  112. $("#CardType").append("<option value=''>请选择</option>");
  113. $("#CardType").append("<option value='居民身份证'>居民身份证</option>");
  114. $("#CardType").append("<option value='护照'>护照</option>");
  115. $("#CardType").append("<option value='军人证'>军人证</option>");
  116. $("#CardType").append("<option value='其他'>其他</option>");
  117. }
  118. if(personType=='非自然人')
  119. {
  120. $("#Label_TName").text("单位名称");
  121. $("#CardType").empty();  
  122. $("#CardType").append("<option value=''>请选择</option>");
  123. $("#CardType").append("<option value='统一社会信用代码'>统一社会信用代码</option>");
  124. }
  125. }
  126. //验证身份证信息
  127. function setIDCard()
  128. {
  129. var cardType=$("#CardType").val();
  130. if(cardType=='居民身份证')
  131. {
  132. $("#IDCard").attr("vtype","idcard");
  133. }
  134. else
  135. {
  136. $("#IDCard").attr("vtype","string");
  137. }
  138. }
  139. //根据投诉人姓名,证件类型,证件号码判重
  140. function repeatIDCard()
  141. {
  142. var tName=$("#TName").val();
  143. var cardType=$("#CardType").val();
  144. var idCard=$("#IDCard").val();
  145. var personType=$("#PersonType").val();
  146. if(tName!=""&&cardType!=""&&cardType!="")
  147. {
  148. $('#form1').attr('action','${ctx}/myconsole/complaint/register/repeatIDCard');
  149. $('#form1').ajaxSubmit(setPersonData);
  150. }
  151. else
  152. {
  153. var alertInfo="";
  154. if(personType=="自然人"||personType=="")
  155. {
  156. alertInfo="投诉人姓名,证件类型,证件号码都必须填写!";
  157. }
  158. else
  159. {
  160. alertInfo="单位名称,证件类型,证件号码都必须填写!";
  161. }
  162. layer.alert(alertInfo, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  163. }
  164. }
  165. //回写投诉人判重数据
  166. function setPersonData(data){
  167. var personJson = JSON.parse(data);
  168. var flag=personJson.flag;
  169. if(flag)
  170. {
  171. var person=personJson.person;
  172. $("#Modal_TName").val(person.tname);
  173. $("#Modal_Status").val(person.status);
  174. $("#Modal_CardType").val(person.cardtype);
  175. $("#Modal_IDCard").val(person.idcard);
  176. $("#Modal_LinkTel1").val(person.linktel1);
  177. $("#Modal_TownAddress").val(person.townaddress);
  178. $("#Modal_PersonID").val(person.personid);
  179. $("#Modal_Appeal").find("tr:not(:first)").remove();
  180. var listAppeal=eval(personJson.listAppeal);
  181. listAppeal.forEach(function(item,index)
  182. {
  183. if(item.serialnumber==null){
  184. $("#Modal_Appeal").append("<tr><td></td><td>"+item.appealdate+"</td><td>"+item.appealsource+"</td><td>"+item.appealtype+"</td><td></td></tr>");
  185. }else{
  186. $("#Modal_Appeal").append("<tr><td class='text-center' ><input type='radio' name='Radio_AppealID' id='Radio_AppealID' value='"+item.appealid+"' ></td><td>"+item.appealdate+"</td><td>"+item.appealsource+"</td><td>"+item.appealtype+"</td><td><button class='btn btn-primary radius size-S' onclick=seeData('"+item.appealid+"')>查看详细</button></td></tr>");
  187. }
  188. })
  189. $('#repeatModal').modal({
  190.  backdrop: 'static',
  191.  keyboard: false
  192. })
  193. }
  194. else
  195. {
  196. layer.alert("该投诉人为首次投诉!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  197. }
  198. }
  199. //根据省取地市数据
  200. function setAreaID()
  201. {
  202. var provinceID=$("#ProvinceID").val();
  203. $("#CountyID").empty();  
  204. if(provinceID!='')
  205. {
  206. $("#form1").attr("action","${ctx}/myconsole/complaint/register/getAreaIDData");
  207. $("#form1").ajaxSubmit(setAreaIDData);
  208. }
  209. else
  210. {
  211. $("#AreaID").empty();
  212. }
  213. if($("#ProvinceID").val()!="")
  214. {
  215. var provinceName=$("#ProvinceID").find("option:selected").text();
  216. $("#ProvinceName").val(provinceName);
  217. }
  218. else
  219. {
  220. $("#ProvinceName").val("");
  221. }
  222. }
  223. //回写json地市数据
  224. function setAreaIDData(data){
  225. $("#AreaID").empty();  
  226. $("#AreaID").append("<option value=''>请选择</option>");
  227. var listRegionJson = JSON.parse(data);
  228. var postalCode=listRegionJson.PostalCode;
  229. var listregion=eval(listRegionJson.ListRegion);
  230. listregion.forEach(function(item,index)
  231. {
  232. $("#AreaID").append("<option value='"+item.tid+"'>"+item.tname+"</option>");
  233. })
  234. $("#Postalcode").val(postalCode);
  235. }
  236. //根据地市数据选择县区数据
  237. function setCountyID()
  238. {
  239. var areaID=$('#AreaID').val();
  240. if(areaID!='')
  241. {
  242. $("#form1").attr("action","${ctx}/myconsole/complaint/register/getCountyIDData");
  243. $("#form1").ajaxSubmit(setCountyIDData);
  244. }
  245. else
  246. {
  247. $("#CountyID").empty();  
  248. }
  249. if($("#AreaID").val()!="")
  250. {
  251. var provinceName=$("#ProvinceID").find("option:selected").text();
  252. var areaName=$("#AreaID").find("option:selected").text();
  253. $("#ProvinceName").val(provinceName);
  254. $("#AreaName").val(areaName);
  255. }
  256. else
  257. {
  258. $("#AreaName").val("");
  259. }
  260. }
  261. //回写json区县数据
  262. function setCountyIDData(data){
  263. $("#CountyID").empty();  
  264. $("#CountyID").append("<option value=''>请选择</option>");
  265. var listRegionJson = JSON.parse(data);
  266. var postalCode=listRegionJson.PostalCode;
  267. var listregion=eval(listRegionJson.ListRegion);
  268. listregion.forEach(function(item,index)
  269. {
  270. $("#CountyID").append("<option value='"+item.tid+"'>"+item.tname+"</option>");
  271. })
  272. $("#Postalcode").val(postalCode);
  273. }
  274. //设置详细地址
  275. function setTownAddress()
  276. {
  277. if($("#CountyID").val()!="")
  278. {
  279. var countyName=$("#CountyID").find("option:selected").text();
  280. $("#CountyName").val(countyName);
  281. $("#form1").attr("action","${ctx}/myconsole/complaint/register/getPostalCode");
  282. $("#form1").ajaxSubmit(setPostalCodeData);
  283. }
  284. else
  285. {
  286. $("#CountyName").val("");
  287. }
  288. }
  289. //回写邮编数据
  290. function setPostalCodeData(data){
  291. $("#Postalcode").val(data);
  292. }
  293. //
  294. function setContractExist()
  295. {
  296. if($("#ContractExistFlag").is(":checked"))
  297. {
  298. $("#ContractExistFlag1").show();
  299. $("#ContractExistFlag2").show();
  300. $("#ContractExistFlag3").show();
  301. $("#ContractExistFlag4").show();
  302. $("#ContractExist").val("有保单");
  303. }
  304. else
  305. {
  306. $("#ContractExistFlag1").hide();
  307. $("#ContractExistFlag2").hide();
  308. $("#ContractExistFlag3").hide();
  309. $("#ContractExistFlag4").hide();
  310. $("#ContractExist").val("无保单");
  311. }
  312. }
  313. //根据一级投诉原因设置二级投诉原因
  314. function setReasonID2()
  315. {
  316. $("#ReasonID3").empty(); 
  317. var reasonID1=$('#ReasonID1').val();
  318. if(reasonID1!='')
  319. {
  320. var reasonName1=$("#ReasonID1").find("option:selected").text();
  321. $("#ReasonName1").val(reasonName1);
  322. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getReasonID2Data');
  323. $('#form1').ajaxSubmit(setReasonID2Data);
  324. }
  325. else
  326. {
  327. $("#ReasonID2").empty(); 
  328. $("#ReasonName1").val("");
  329. }
  330. }
  331. //回写原因二类字典数据
  332. function setReasonID2Data(data){
  333. $("#ReasonID2").empty();  
  334. $("#ReasonID2").append("<option value=''>请选择</option>");
  335. $("#ReasonID2").append(data);
  336. }
  337. //根据二级投诉原因设置三级投诉原因
  338. function setReasonID3()
  339. {
  340. var reasonID2=$('#ReasonID2').val();
  341. if(reasonID2!='')
  342. {
  343. var reasonName2=$("#ReasonID2").find("option:selected").text();
  344. $("#ReasonName2").val(reasonName2);
  345. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getReasonID3Data');
  346. $('#form1').ajaxSubmit(setReasonID3Data);
  347. }
  348. else
  349. {
  350. $("#ReasonID3").empty(); 
  351. $("#ReasonName2").val(""); 
  352. }
  353. }
  354. //回写原因二类字典数据
  355. function setReasonID3Data(data){
  356. $("#ReasonID3").empty();  
  357. $("#ReasonID3").append("<option value=''>请选择</option>");
  358. $("#ReasonID3").append(data);
  359. }
  360. //设置三级投诉原因名称
  361. function setReasonName3()
  362. {
  363. var reasonID3=$('#ReasonID3').val();
  364. if(reasonID3!='')
  365. {
  366. var reasonName3=$("#ReasonID3").find("option:selected").text();
  367. $("#ReasonName3").val(reasonName3);
  368. }
  369. else
  370. {
  371. $("#ReasonName3").val(""); 
  372. }
  373. }
  374. //根据被诉分公司选择中支公司信息
  375. function setCentreCompanyID(respondentModel)
  376. {
  377. var filialeID=$('#'+respondentModel+"FilialeID").val();
  378. if(filialeID!='')
  379. {
  380. var filialeName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
  381. $('#'+respondentModel+"FilialeName").val(filialeName);
  382. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getCentreCompanyIDData?RespondentModel='+respondentModel);
  383. $('#form1').ajaxSubmit(setCentreCompanyIDData);
  384. $('#RespondentModel').val(respondentModel); 
  385. }
  386. else
  387. {
  388. $("#"+respondentModel+"CentreCompanyID").empty(); 
  389. $('#'+respondentModel+"FilialeName").val(""); 
  390. }
  391. }
  392. //回写原因二类字典数据
  393. function setCentreCompanyIDData(data){
  394. var respondentModel=$('#RespondentModel').val(); 
  395. $("#"+respondentModel+"CentreCompanyID").empty();  
  396. $("#"+respondentModel+"CentreCompanyID").append("<option value=''>请选择</option>");
  397. $("#"+respondentModel+"CentreCompanyID").append(data);
  398. }
  399. //
  400. function setBusinessHallID(respondentModel)
  401. {
  402. var centreCompanyID=$('#'+respondentModel+"CentreCompanyID").val();
  403. if(centreCompanyID!='')
  404. {
  405. var centreCompanyName=$('#'+respondentModel+"CentreCompanyID").find("option:selected").text();
  406. $('#'+respondentModel+"CentreCompanyName").val(centreCompanyName);
  407. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getBusinessHallIDData?RespondentModel='+respondentModel);
  408. $('#form1').ajaxSubmit(setBusinessHallIDData);
  409. $('#RespondentModel').val(respondentModel); 
  410. }
  411. else
  412. {
  413. $("#"+respondentModel+"BusinessHallID").empty(); 
  414. $('#'+respondentModel+"CentreCompanyName").val(""); 
  415. }
  416. }
  417. //回写被诉网点数据
  418. function setBusinessHallIDData(data){
  419. var respondentModel=$('#RespondentModel').val(); 
  420. $("#"+respondentModel+"BusinessHallID").empty();  
  421. $("#"+respondentModel+"BusinessHallID").append("<option value=''>请选择</option>");
  422. $("#"+respondentModel+"BusinessHallID").append(data);
  423. }
  424. function setBusinessHallName(respondentModel)
  425. {
  426. var idData=$("#"+respondentModel+"BusinessHallID").val();
  427. if(idData!='')
  428. {
  429. var nameData=$("#"+respondentModel+"BusinessHallID").find("option:selected").text();
  430. $("#"+respondentModel+"BusinessHallName").val(nameData);
  431. $("#"+respondentModel+"_2").show();
  432. }
  433. else
  434. {
  435. $("#"+respondentModel+"BusinessHallName").val(""); 
  436. $("#"+respondentModel+"_2").hide();
  437. }
  438. }
  439. //setInsceTypeID2()选择二级险种类别
  440. function setInsceTypeID2()
  441. {
  442. var insceTypeID1=$('#InsceTypeID1').val();
  443. if(insceTypeID1!='')
  444. {
  445. var insceTypeName1=$("#InsceTypeID1").find("option:selected").text();
  446. $("#InsceTypeName1").val(insceTypeName1);
  447. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getInsceTypeID2Data');
  448. $('#form1').ajaxSubmit(setInsceTypeID2Data);
  449. }
  450. else
  451. {
  452. $("#InsceTypeID2").empty(); 
  453. $("#InsceTypeName1").val(""); 
  454. }
  455. }
  456. //回写原因二类字典数据
  457. function setInsceTypeID2Data(data){
  458. $("#InsceTypeID2").empty();  
  459. $("#InsceTypeID2").append("<option value=''>请选择</option>");
  460. $("#InsceTypeID2").append(data);
  461. }
  462. //setInsceTypeID3()选择三级险种类别
  463. function setInsceTypeID3()
  464. {
  465. var insceTypeID2=$('#InsceTypeID2').val();
  466. if(insceTypeID2!='')
  467. {
  468. var insceTypeName2=$("#InsceTypeID2").find("option:selected").text();
  469. $("#InsceTypeName2").val(insceTypeName2);
  470. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getInsceTypeID3Data');
  471. $('#form1').ajaxSubmit(setInsceTypeID3Data);
  472. }
  473. else
  474. {
  475. $("#InsceTypeID3").empty(); 
  476. $("#InsceTypeName2").val(""); 
  477. }
  478. }
  479. //回写原因二类字典数据
  480. function setInsceTypeID3Data(data){
  481. $("#InsceTypeID3").empty();  
  482. $("#InsceTypeID3").append("<option value=''>请选择</option>");
  483. $("#InsceTypeID3").append(data);
  484. }
  485. function setInsceTypeName3()
  486. {
  487. var insceTypeID3=$('#InsceTypeID3').val();
  488. if(insceTypeID3!='')
  489. {
  490. var insceTypeName3=$("#InsceTypeID3").find("option:selected").text();
  491. $("#InsceTypeName3").val(insceTypeName3);
  492. }
  493. else
  494. {
  495. $("#InsceTypeName3").val(""); 
  496. }
  497. }
  498. //setAskTypeID2()选择二级诉求类别
  499. function setAskTypeID2()
  500. {
  501. var askTypeID1=$('#AskTypeID1').val();
  502. if(askTypeID1!='')
  503. {
  504. var askTypeName1=$("#AskTypeID1").find("option:selected").text();
  505. $("#AskTypeName1").val(askTypeName1);
  506. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getAskTypeID2Data');
  507. $('#form1').ajaxSubmit(setAskTypeID2Data);
  508. }
  509. else
  510. {
  511. $("#AskTypeID2").empty(); 
  512. $("#FilialeName").val(""); 
  513. }
  514. }
  515. //回写原因二类字典数据
  516. function setAskTypeID2Data(data){
  517. $("#AskTypeID2").empty();  
  518. $("#AskTypeID2").append("<option value=''>请选择</option>");
  519. $("#AskTypeID2").append(data);
  520. }
  521. //setAskTypeID3()选择三级诉求类别
  522. function setAskTypeID3()
  523. {
  524. var askTypeID2=$('#AskTypeID2').val();
  525. if(askTypeID2!='')
  526. {
  527. var askTypeName2=$("#AskTypeID2").find("option:selected").text();
  528. $("#AskTypeName2").val(askTypeName2);
  529. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getAskTypeID3Data');
  530. $('#form1').ajaxSubmit(setAskTypeID3Data);
  531. }
  532. else
  533. {
  534. $("#AskTypeID3").empty(); 
  535. $("#AskTypeName2").val(""); 
  536. }
  537. }
  538. //回写原因二类字典数据
  539. function setAskTypeID3Data(data){
  540. $("#AskTypeID3").empty();  
  541. $("#AskTypeID3").append("<option value=''>请选择</option>");
  542. $("#AskTypeID3").append(data);
  543. }
  544. function setAskTypeName3()
  545. {
  546. var askTypeID3=$('#AskTypeID3').val();
  547. if(askTypeID3!='')
  548. {
  549. var askTypeName3=$("#AskTypeID3").find("option:selected").text();
  550. $("#AskTypeName3").val(askTypeName3);
  551. }
  552. else
  553. {
  554. $("#AskTypeName3").val(""); 
  555. }
  556. }
  557. //setComplaintTypeID2()根据投诉类别一级分类取二级分类
  558. function setComplaintTypeID2()
  559. {
  560. var complaintTypeID1=$('#ComplaintTypeID1').val();
  561. if(complaintTypeID1!='')
  562. {
  563. var complaintTypeName1=$("#ComplaintTypeID1").find("option:selected").text();
  564. $("#ComplaintTypeName1").val(complaintTypeName1);
  565. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getComplaintTypeID2Data');
  566. $('#form1').ajaxSubmit(setComplaintTypeID2Data);
  567. }
  568. else
  569. {
  570. $("#ComplaintTypeID2").empty(); 
  571. $("#ComplaintTypeName1").val(""); 
  572. }
  573. }
  574. //回写投诉二级分类字典数据
  575. function setComplaintTypeID2Data(data){
  576. $("#ComplaintTypeID2").empty();  
  577. $("#ComplaintTypeID2").append("<option value=''>请选择</option>");
  578. $("#ComplaintTypeID2").append(data);
  579. }
  580. function setComplaintTypeName2()
  581. {
  582. var complaintTypeID2=$('#ComplaintTypeID2').val();
  583. if(complaintTypeID2!='')
  584. {
  585. var complaintTypeName2=$("#ComplaintTypeID2").find("option:selected").text();
  586. $("#ComplaintTypeName2").val(complaintTypeName2);
  587. }
  588. else
  589. {
  590. $("#ComplaintTypeName2").val(""); 
  591. }
  592. }
  593. function setSectionName()
  594. {
  595. var sectionID=$('#SectionID').val();
  596. if(sectionID!='')
  597. {
  598. var sectionName=$("#SectionID").find("option:selected").text();
  599. $("#SectionName").val(sectionName);
  600. }
  601. else
  602. {
  603. $("#SectionName").val(""); 
  604. }
  605. }
  606. function setToAllOrgName()
  607. {
  608. var toAllOrgID=$('#ToAllOrgID').val();
  609. if(toAllOrgID!='')
  610. {
  611. var toAllOrgName=$("#ToAllOrgID").find("option:selected").text();
  612. $("#ToAllOrgName").val(toAllOrgName);
  613. }
  614. else
  615. {
  616. $("#ToAllOrgName").val("");  
  617. }
  618. }
  619. //根据险种类型选择查询条件
  620. function setPolicyType()
  621. {
  622. var policyType=$("#PolicyType").val();
  623. if(policyType=="车险")
  624. {
  625. $("#PolicyTypeCar1").show();
  626. $("#PolicyTypeCar2").show();
  627. $("#QueryType").empty();  
  628. $("#QueryType").append("<option value=''>请选择</option>");
  629. $("#QueryType").append("<option value='保单编号'>保单编号</option>");
  630. $("#QueryType").append("<option value='车牌号码'>车牌号码</option>");
  631. $("#QueryType").append("<option value='发动机号'>发动机号</option>");
  632. }
  633. else
  634. {
  635. $("#PolicyTypeCar1").hide();
  636. $("#PolicyTypeCar2").hide();
  637. $("#QueryType").empty();  
  638. $("#QueryType").append("<option value=''>请选择</option>");
  639. $("#QueryType").append("<option value='保单编号'>保单编号</option>");
  640. }
  641. }
  642. function repeatPolicyNumber()
  643. {
  644. var policyNumber=$("#PolicyNumber").val();
  645. if(policyNumber!="")
  646. {
  647. $('#form1').attr('action','${ctx}/myconsole/complaint/register/repeatPolicyNumber');
  648. $('#form1').ajaxSubmit(setPolicyData);
  649. }
  650. else
  651. {
  652.   layer.alert("保单号必须填写!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  653. }
  654. }
  655. //回写保单判重数据
  656. function setPolicyData(data){
  657. var personJson = JSON.parse(data);
  658. var flag=personJson.flag;
  659. if(flag)
  660. {
  661. var person=personJson.person;
  662. $("#Modal_TName").val(person.tname);
  663. $("#Modal_TSex").val(person.tsex);
  664. $("#Modal_CardType").val(person.cardtype);
  665. $("#Modal_IDCard").val(person.idcard);
  666. $("#Modal_LinkTel1").val(person.linktel1);
  667. $("#Modal_TownAddress").val(person.townaddress);
  668. $("#Modal_PersonID").val(person.personid);
  669. $("#Modal_Appeal").find("tr:not(:first)").remove();
  670. var listAppeal=eval(personJson.listAppeal);
  671. listAppeal.forEach(function(item,index)
  672. {
  673. $("#Modal_Appeal").append("<tr><td class='text-center' ><input type='radio' name='Radio_AppealID' id='Radio_AppealID' value='"+item.appealid+"' ></td><td>"+item.appealdate+"</td><td>"+item.appealsourcename1+"-"+item.appealsourcename2+"</td><td>"+item.reasonname1+"-"+item.reasonname2+"-"+item.reasonname3+"</td><td><button class='btn btn-primary radius size-S' onclick=seeData('"+item.appealid+"')>查看详细</button></td></tr>");
  674. })
  675. $('#repeatModal').modal({
  676.  backdrop: 'static',
  677.  keyboard: false
  678. })
  679. }
  680. else
  681. {
  682. layer.alert("该保单为首次投诉!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  683. }
  684. }
  685. function doRepeatNumber()
  686. {
  687. var modal_AppealID=$("input:radio[name='Radio_AppealID']:checked").val();
  688. $("#Modal_AppealID").val(modal_AppealID);
  689. $('#form1').attr('action','${ctx}/myconsole/complaint/register/doRepeatNumber');
  690. $('#form1').ajaxSubmit(setRepeatNumber);
  691. }
  692. //回写设置重复投诉数
  693. function setRepeatNumber(data){
  694. var res=eval('(' + data + ')');
  695. if(res.flag)
  696. {
  697. layer.alert("设置重复投诉次数成功!现在的重复投诉次数为:"+res.RepcomplaintsNum+"次!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  698. }
  699. else
  700. {
  701. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  702. }
  703. $('#repeatModal').modal('hide');
  704. }
  705. function newAppeal()
  706. {
  707. window.close();
  708. }
  709. function queryRiskName()
  710. {
  711. var policyNumber=$("#PolicyNumber").val();
  712. if(policyNumber!="")
  713. {
  714. $('#form1').attr('action','${ctx}/myconsole/complaint/register/queryRiskName');
  715. $('#form1').ajaxSubmit(setRiskName);
  716. }
  717. else
  718. {
  719.   layer.alert("保单号必须填写!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  720. }
  721. }
  722. //回写险种名称数据列表
  723. function setRiskName(data){
  724. var riskJson = JSON.parse(data);
  725. var flag=riskJson.flag;
  726. if(flag)
  727. {
  728. $("#Modal_Appeal").find("tr:not(:first)").remove();
  729. var listRisk=eval(riskJson.listRisk);
  730. listRisk.forEach(function(item,index)
  731. {
  732. $("#Modal_Risk").append("<tr><td>"+item.riskname+"</td><td>"+item.payyear+"</td><td>"+item.subflag+"</td><td>"+item.insuenddate+"</td></tr>");
  733. })
  734. $('#riskModal').modal({
  735.  backdrop: 'static',
  736.  keyboard: false
  737. })
  738. }
  739. else
  740. {
  741. layer.alert("该保单险种名称查询失败!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  742. }
  743. }
  744. //查询合同信息
  745. function queryCompact()
  746. {
  747. var queryNo=$("#QueryNo").val();
  748. if(queryNo!="")
  749. {
  750. //$('#form1').attr('action','${ctx}/myconsole/complaint/register/queryCompact');
  751. //$('#form1').ajaxSubmit(setCompact);
  752. $("#CompactPanelFlag").show();
  753. }
  754. else
  755. {
  756.   layer.alert("查询号必须填写!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  757. }
  758. }
  759. //回写合同数据
  760. function setCompact(data){
  761. var compactJson = JSON.parse(data);
  762. var flag=compactJson.flag;
  763. if(flag)
  764. {
  765. var compact=compactJson.compact;
  766. $("#RealSign").val(compact.realsign);
  767. $("#AppntName").val(compact.appntname);
  768. $("#AppntMobile").val(compact.appntmobile);
  769. $("#AppntCustomerId").val(compact.appntcustomerid);
  770. $("#InsuredName").val(compact.insuredname);
  771. $("#InsuredMobile").val(compact.insuredmobile);
  772. $("#InsuredCustomerId").val(compact.insuredcustomerid);
  773. $("#RiskName").val(compact.riskname);
  774. $("#PolicyLocation").val(compact.policylocation);
  775. $("#Contractor").val(compact.contractor);
  776. $("#CustomerRisk").val(compact.customerrisk);
  777. $("#CValiDate").val(compact.cvalidate);
  778. $("#InsuEndDate").val(compact.insuenddate);
  779. $("#CBrkrCde").val(compact.cbrkrcde);
  780. $("#PolicyDate").val(compact.policydate);
  781. $("#BusinessSources").val(compact.businesssources);
  782. $("#PayYear").val(compact.payyear);
  783. $("#CarTypeName").val(compact.cartypename);
  784. $("#CarOwnerName").val(compact.carownername);
  785. $("#CarNumber").val(compact.carnumber);
  786. $("#FrameNo").val(compact.frameno);
  787. $("#EngineNo").val(compact.engineno);
  788. $("#CarRegisterDate").val(compact.carregisterdate);
  789. }
  790. else
  791. {
  792. layer.alert("该保单编号没有查询到合同信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  793. }
  794. }
  795. //查询合同信息
  796. function queryPayment()
  797. {
  798. var queryNo=$("#QueryNo").val();
  799. if(queryNo!="")
  800. {
  801. //$('#form1').attr('action','${ctx}/myconsole/complaint/register/queryCompact');
  802. //$('#form1').ajaxSubmit(setCompact);
  803. $("#PaymentPanelFlag").show();
  804. }
  805. else
  806. {
  807.   layer.alert("查询号必须填写!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  808. }
  809. }
  810. function setCollapseIcon(collapseIcon)
  811. {
  812. var curCollapseIconClass=$("#"+collapseIcon).attr("class");
  813. if(curCollapseIconClass=="glyphicon glyphicon-menu-up")
  814. {
  815. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-down");
  816. }
  817. else
  818. {
  819. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-up");
  820. }
  821. }
  822. //查看 2017-07-19
  823. function seeData(appealid){
  824. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  825. }
  826. //设置客户最后要求时间
  827. function setAskEndTime()
  828. {
  829. var appealDate=$("#AppealDate").val();
  830. var askTimeBlockID=$('#AskTimeBlockID').val();
  831. var limitHours=parseInt(askTimeBlockID);
  832. if(askTimeBlockID!='')
  833. {
  834. var nameValue=$("#AskTimeBlockID").find("option:selected").text();
  835. $("#AskTimeBlockName").val(nameValue);
  836. }
  837. else
  838. {
  839. $("#AskTimeBlockName").val("");  
  840. }
  841. var limitDays=parseInt(limitHours/24);
  842. var initLimitDays=limitDays;
  843. var limitDaysType=$("#LimitDaysType").val();
  844. if(limitDaysType=="工作日")
  845. {
  846. var mydate = new Date(appealDate+":01:01");
  847. var week=parseInt(mydate.getDay());
  848. var iSat=0;
  849. if(week==6)
  850. {
  851. week=0;
  852. iSat=1;
  853. }
  854. var iCountDate=parseInt(limitDays+week);
  855. if(iCountDate>5&&iCountDate<=10)
  856. {
  857. limitDays=limitDays+2;
  858. }
  859. if(iCountDate>10&&iCountDate<=15)
  860. {
  861. limitDays=limitDays+4;
  862. }
  863. if(iCountDate>15&&iCountDate<=20)
  864. {
  865. limitDays=limitDays+6;
  866. }
  867. if(iCountDate>20&&iCountDate<=25)
  868. {
  869. limitDays=limitDays+8;
  870. }
  871. if(iCountDate>25&&iCountDate<=30)
  872. {
  873. limitDays=limitDays+10;
  874. }
  875. limitDays=limitDays+iSat;
  876. }
  877. var newLimitDays=limitDays-initLimitDays;
  878. limitHours=parseInt(limitHours+newLimitDays*24);
  879. var nd = addNHours(appealDate+":01:01",limitHours);
  880. var askEndTime = nd.format('yyyy-MM-dd hh');
  881. if(askTimeBlockID!=''&&askTimeBlockID!='0')
  882. {
  883. $("#AskEndTime").val(askEndTime);
  884. }
  885. }
  886. //点击查看保单信息
  887. function showCompactDetail(strPolicyNumber)
  888. {
  889. $('#form1').attr('action','${ctx}/myconsole/complaint/interface/queryCompactAllInfo?QueryPolicyNumber='+strPolicyNumber);
  890. $('#form1').ajaxSubmit(setCompactAllInfoNew);
  891. }
  892. function setCompactAllInfoNew(data){
  893. var compactJson = JSON.parse(data);
  894. //console.log(compactJson);
  895. var flag=compactJson.flag;
  896. if(flag)
  897. {
  898. var compact=compactJson.compact;
  899. //$("#CompactDetailModal").show();
  900. $("#ListCompact1Public1").show();
  901. $("#ListCompact1Public2").show();
  902. $("#ListCompact1Public3").show();
  903. $("#ListCompact1Public4").show();
  904. $("#ListCompact1Personal1").show();
  905. $("#ListCompact1Personal2").show();
  906. $("#ListCompact1Personal3").show();
  907. $("#ListCompact1Personal4").show();
  908. $("#ListCompact1Personal5").show();
  909. $("#ListCompact1Personal6").show();
  910. $("#ListCompact1Group1").hide();
  911. $("#ListCompact1Group2").hide();
  912. $("#ListCompact1Group3").hide();
  913. $("#ListCompact1Group4").hide();
  914. $("#ListPolicyNumber1").val(compact.policynumber);
  915. $("#ListRiskName1").val(compact.riskname);
  916. $("#ListRealSign1").val(compact.realsign);
  917. $("#ListEffectiveDate1").val(compact.effectivedate);
  918. $("#ListPolicyAmount1").val(compact.policyamount);
  919. $("#ListPolicyPremium1").val(compact.policypremium);
  920. $("#ListPolicyDuration1").val(compact.policyduration);
  921. $("#ListPayYearNumber1").val(compact.payyearnumber);
  922. $("#ListSumPremium1").val(compact.sumpremium);
  923. $("#ListAppntName1").val(compact.appntname);
  924. $("#ListAppntSex1").val(compact.appntsex);
  925. $("#ListAppntCustomerId1").val(compact.appntcustomerid);
  926. $("#ListAppntMobile1").val(compact.appntmobile);
  927. $("#ListInsuredName1").val(compact.insuredname);
  928. $("#ListInsuredCustomerId1").val(compact.insuredcustomerid);
  929. $("#ListInsuredMobile1").val(compact.insuredmobile);
  930. $("#ListContractor1").val(compact.contractor);
  931. $("#ListSaleChnlName1").val(compact.salechnlname);
  932. $("#ListSalesTypeName1").val(compact.salestypename);
  933. $("#ListProxyOrgName1").val(compact.proxyorgname);
  934. $("#ListProxyName1").val(compact.proxyname);
  935. $("#ListSaleOrgName1").val(compact.saleorgname);
  936. $("#ListProtocolLock1").val(compact.protocollock1);
  937. $("#ListOrderType1").val(compact.ordertype);
  938. $("#ListIsFree1").val(compact.isfree);
  939. $("#ListCashValue1").val(compact.cashvalue);
  940. $("#ListTerminationType1").val(compact.terminationtype);
  941. $("#ListSurrenderMoney1").val(compact.surrendermoney);
  942. $("#ListBankName1").val(compact.bankname);
  943. $("#ListCustomerAccount1").val(compact.customeraccount);
  944. $("#ListPayDate1").val(compact.paydate);
  945. riskList=compactJson.riskList;
  946. //$('#CompactModal').modal('hide');
  947. /**
  948. * 同步保单信息
  949. */
  950. //销售渠道
  951. /* var strSaleChnlName1=$("#ListSaleChnlName1").val();
  952. $ ("#ListSalesChannelID option" ). each( function () {
  953. if($(this).text()==strSaleChnlName1){
  954. $(this).attr("selected","selected");
  955. return false;
  956. }
  957. })
  958. //销售方式
  959. var strSalesTypeName1=$("#ListSalesTypeName1").val();
  960. $ ("#ListSalesTypeID option" ). each( function () {
  961. if($(this).text()==strSalesTypeName1){
  962. $(this).attr("selected","selected");
  963. return false;
  964. }
  965. })
  966. //产品名称--对应核心的险种名称
  967. var strRiskName1=$("#ListRiskName1").val();
  968. $ ("#ListProductID option" ). each( function () {
  969. if($(this).text()==strRiskName1){
  970. $(this).attr("selected","selected");
  971. return false;
  972. }
  973. })
  974. //主附险别
  975. $("#ListInsceMainbe").val("主险");
  976. //承保方式
  977. $("#ListUnderWriteType").val("个人"); */
  978. $('#CompactDetailModal ').modal({
  979.  backdrop: 'static',
  980.  keyboard: false
  981. })
  982. }
  983. else
  984. {
  985. layer.alert("没有查询到保单信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  986. }
  987. }
  988. //设置最后办理时限
  989. function setLimitEndDate()
  990. {
  991. var appealDate=$("#CurDate").val();
  992. var limitDays=parseInt($("#LimitDays").val());
  993. var limitDaysType=$("#LimitDaysType").val();
  994. if(limitDaysType=="工作日")
  995. {
  996. var mydate = new Date(appealDate);
  997. var week=parseInt(mydate.getDay());
  998. var iSat=0;
  999. if(week==6)
  1000. {
  1001. week=0;
  1002. iSat=1;
  1003. }
  1004. var iCountDate=parseInt(limitDays+week);
  1005. if(iCountDate>5&&iCountDate<=10)
  1006. {
  1007. limitDays=limitDays+2;
  1008. }
  1009. if(iCountDate>10&&iCountDate<=15)
  1010. {
  1011. limitDays=limitDays+4;
  1012. }
  1013. if(iCountDate>15&&iCountDate<=20)
  1014. {
  1015. limitDays=limitDays+6;
  1016. }
  1017. if(iCountDate>20&&iCountDate<=25)
  1018. {
  1019. limitDays=limitDays+8;
  1020. }
  1021. if(iCountDate>25&&iCountDate<=30)
  1022. {
  1023. limitDays=limitDays+10;
  1024. }
  1025. limitDays=limitDays+iSat;
  1026. }
  1027. var nd = addNDays(appealDate,limitDays);
  1028. var limitEndDate = nd.format('yyyy-MM-dd');
  1029. if($("#LimitDays").val()!='')
  1030. {
  1031. $("#LimitEndDate").val(limitEndDate);
  1032. }
  1033. }
  1034. Date.prototype.format =function(format)
  1035. {
  1036.     var o = {
  1037.         "M+" : this.getMonth()+1, //month
  1038.         "d+" : this.getDate(), //day
  1039.         "h+" : this.getHours(), //hour
  1040.         "m+" : this.getMinutes(), //minute
  1041.         "s+" : this.getSeconds(), //second
  1042.         "q+" : Math.floor((this.getMonth()+3)/3), //quarter
  1043.         "S" : this.getMilliseconds() //millisecond
  1044.     }
  1045.     if(/(y+)/.test(format)){ 
  1046.         format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4- RegExp.$1.length));
  1047.     }
  1048.     for(var k in o){
  1049.         if(new RegExp("("+ k +")").test(format)){
  1050.             format = format.replace(RegExp.$1,RegExp.$1.length==1? o[k] :("00"+ o[k]).substr((""+o[k]).length));
  1051.         }
  1052.     }
  1053.     return format;
  1054. }
  1055.  
  1056. var addNDays=function(date,n){
  1057.     var d = new Date(Date.parse(date.replace(/-/g,"/")));  
  1058.     var time=d.getTime();
  1059.     var newTime=time+n*24*60*60*1000;
  1060.     return new Date(newTime);
  1061. };
  1062. var addNHours=function(date,n){
  1063.     var d = new Date(Date.parse(date.replace(/-/g,"/")));  
  1064.     var time=d.getTime();
  1065.     var newTime=time+n*60*60*1000;
  1066.     return new Date(newTime);
  1067. };
  1068. function addRespondent()
  1069. {
  1070. var respondentNumber=parseInt($("#RespondentNumber").val());
  1071. if(respondentNumber>=5)
  1072. {
  1073. layer.alert("最多只能设置5个被诉人信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1074. }
  1075. else
  1076. {
  1077. var content="<div class='row' style='padding:5px' id=respondent"+respondentNumber+"_1>"+
  1078. "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
  1079. " <label class='control-label' for='FilialeID'>次被诉公司</label>"+
  1080. "</div>"+
  1081. "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
  1082. " <select id='respondent"+respondentNumber+"FilialeID' name='respondent"+respondentNumber+".FilialeID' onChange=setCentreCompanyID('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='被诉分公司' vtype='string'>"+
  1083. " <option value=''>请选择</option>"+
  1084. " ${filialeID!''} "+
  1085. " </select> "+
  1086. "</div> "+
  1087. "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1088. "<label class='control-label' for='CentreCompanyID'>被诉中支</label>"+
  1089. "</div>"+
  1090. "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1091. "<select id='respondent"+respondentNumber+"CentreCompanyID' name='respondent"+respondentNumber+".CentreCompanyID' onChange=setBusinessHallID('respondent"+respondentNumber+"') class='form-control' vmode='' vdisp='被诉中支/部门' vtype='string'>"+
  1092. " <option value='''>请选择</option> "+
  1093. " </select> "+
  1094. "</div>"+
  1095. "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1096. " <label class='control-label' for='SectionID'>被诉网点</label>"+
  1097. "</div>"+
  1098. "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1099. "<div class='input-group'>"+
  1100. " <select id='respondent"+respondentNumber+"BusinessHallID' name='respondent"+respondentNumber+".BusinessHallID' onChange=setBusinessHallName('respondent"+respondentNumber+"') class='form-control' vmode='' vdisp='被诉网点' vtype='string'>"+
  1101. " <option value='''>请选择</option>"+
  1102. " </select> "+
  1103. " <div class='input-group-btn'>"+
  1104. " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteRespondent()>"+
  1105. " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
  1106. " </button> "+
  1107. " </div>"+
  1108. "</div>"+
  1109. "</div> "+
  1110. "</div>"+
  1111. "<div class='row' style='padding:5px' id=respondent"+respondentNumber+"_2 hidden>"+
  1112. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1113. " <label class='control-label' for='respondent"+respondentNumber+"RespondentName'>被诉人姓名</label>"+
  1114. " </div>"+
  1115. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1116. " <input type='text' class='form-control' value='' placeholder='' id='respondent"+respondentNumber+"RespondentName' name='respondent"+respondentNumber+".RespondentName' vmode='' vdisp='被诉人姓名' vtype='string'>"+
  1117. " </div>"+
  1118. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1119. " <label class='control-label' for='respondent"+respondentNumber+"RespondentJobNo'>被诉人工号</label>"+
  1120. " </div>"+
  1121. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1122. " <input type='text' class='form-control' value='' placeholder='' id='respondent"+respondentNumber+"RespondentJobNo' name='respondent"+respondentNumber+".RespondentJobNo' vmode='' vdisp='被诉人工号' vtype='string'>"+
  1123. " </div>"+
  1124. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1125. " <label class='control-label' for='respondent"+respondentNumber+"RespondentType'>被诉人类型</label>"+
  1126. " </div>"+
  1127. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1128. " <select id='respondent"+respondentNumber+"RespondentType' name='respondent"+respondentNumber+".RespondentType' class='form-control'>"+
  1129. " <option value=''>请选择</option>"+
  1130. " <option value='内勤'>内勤</option>"+
  1131. " <option value='外勤'>外勤</option>"+
  1132. " </select> "+
  1133. " </div> "+
  1134. " </div>";
  1135. respondentNumber=respondentNumber+1;
  1136. $("#RespondentNumber").val(respondentNumber);
  1137. $("#ComplainPersonObj").append(content);
  1138. }
  1139. }
  1140. function deleteRespondent()
  1141. {
  1142. var respondentNumber=parseInt($("#RespondentNumber").val());
  1143. if(respondentNumber>=6)
  1144. {
  1145. respondentNumber=5;
  1146. }
  1147. var resObj='respondent'+respondentNumber
  1148. $("div").remove("#"+resObj+"_1");
  1149. $("div").remove("#"+resObj+"_2");
  1150. respondentNumber=respondentNumber-1;
  1151. $("#RespondentNumber").val(respondentNumber);
  1152. }
  1153. function setAppealType()
  1154. {
  1155. var appealType=$("#AppealType").val();
  1156. if(appealType=='消费投诉')
  1157. {
  1158. $("#Complain1").show();
  1159. $("#Complain2").show();
  1160. $("#Complain3").show();
  1161. }
  1162. else
  1163. {
  1164. $("#Complain1").hide();
  1165. $("#Complain2").hide();
  1166. $("#Complain3").hide();
  1167. }
  1168. if(appealType=='异议信息')
  1169. {
  1170. $("#Dissent1").show();
  1171. }
  1172. else
  1173. {
  1174. $("#Dissent1").hide();
  1175. }
  1176. }
  1177. function setTransactType()
  1178. {
  1179. var transactType=$("#TransactType").val();
  1180. if(transactType=='')
  1181. {
  1182. $("#TempSaveButton").attr("disabled",'disabled');
  1183. $("#EndButton").attr("disabled",'disabled');
  1184. $("#SubmitButton").attr("disabled",'disabled');
  1185. $("#ToOrgInfo").hide();
  1186. }
  1187. if(transactType=='坐席办结')
  1188. {
  1189. $("#TempSaveButton").removeAttr('disabled');
  1190. $("#EndButton").removeAttr('disabled');
  1191. $("#SubmitButton").attr("disabled",'disabled');
  1192. $("#ToOrgInfo").hide();
  1193. }
  1194. if(transactType=='转办')
  1195. {
  1196. $("#TempSaveButton").attr("disabled",'disabled');
  1197. $("#EndButton").attr("disabled",'disabled');
  1198. $("#SubmitButton").removeAttr('disabled');
  1199. $("#ToOrgInfo").show();
  1200. }
  1201. if(transactType=='重复件')
  1202. {
  1203. $("#TempSaveButton").attr("disabled",'disabled');
  1204. $("#EndButton").removeAttr('disabled');
  1205. $("#SubmitButton").attr("disabled",'disabled');
  1206. $("#ToOrgInfo").hide();
  1207. }
  1208. }
  1209. //选择承办中支公司
  1210. function setToAllCentreOrgID()
  1211. {
  1212. var idData=$('#ToAllFilialeOrgID').val();
  1213. if(idData!='')
  1214. {
  1215. var nameData=$("#ToAllFilialeOrgID").find("option:selected").text();
  1216. $("#ToAllFilialeOrgName").val(nameData);
  1217. $("#ToAllOrgID").val(idData);
  1218. $("#ToAllOrgName").val(nameData);
  1219. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getCentreOrgIDData');
  1220. $('#form1').ajaxSubmit(setToAllCentreOrgIDData);
  1221. }
  1222. else
  1223. {
  1224. $("#ToAllCentreOrgID").empty(); 
  1225. $("#ToAllFilialeOrgName").val(""); 
  1226. $("#ToAllOrgID").val('');
  1227. $("#ToAllOrgName").val('');
  1228. }
  1229. }
  1230. //回写中支公司数据
  1231. function setToAllCentreOrgIDData(data){
  1232. $("#ToAllCentreOrgID").empty();  
  1233. $("#ToAllCentreOrgID").append("<option value=''>请选择</option>");
  1234. $("#ToAllCentreOrgID").append(data);
  1235. }
  1236. function setToAllWorkDutiesID()
  1237. {
  1238. var idData=$('#ToAllCentreOrgID').val();
  1239. if(idData!='')
  1240. {
  1241. var nameData=$("#ToAllCentreOrgID").find("option:selected").text();
  1242. $("#ToAllCentreOrgName").val(nameData);
  1243. $("#ToAllOrgID").val(idData);
  1244. $("#ToAllOrgName").val(nameData);
  1245. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getToAllWorkDutiesID');
  1246. $('#form1').ajaxSubmit(setToAllWorkDutiesIDData);
  1247. }
  1248. else
  1249. {
  1250. $("#ToAllWorkDutiesID").empty(); 
  1251. $("#ToAllCentreOrgName").val(""); 
  1252. }
  1253. }
  1254. //回写岗位数据
  1255. function setToAllWorkDutiesIDData(data){
  1256. $("#ToAllWorkDutiesID").empty();  
  1257. $("#ToAllWorkDutiesID").append("<option value=''>请选择</option>");
  1258. $("#ToAllWorkDutiesID").append(data);
  1259. }
  1260. function setToAllWorkDutiesName()
  1261. {
  1262. var idData=$('#ToAllWorkDutiesID').val();
  1263. if(idData!='')
  1264. {
  1265. var nameData=$("#ToAllWorkDutiesID").find("option:selected").text();
  1266. $("#ToAllWorkDutiesName").val(nameData);
  1267. var toAllOrgWorkDuties=$('#ToAllFilialeOrgName').val();
  1268. var toAllCentreOrgName=$('#ToAllCentreOrgName').val();
  1269. if(toAllCentreOrgName!='')
  1270. {
  1271. toAllOrgWorkDuties=toAllOrgWorkDuties+"-"+toAllCentreOrgName;
  1272. }
  1273. toAllOrgWorkDuties=toAllOrgWorkDuties+"-"+nameData;
  1274. $("#ToAllOrgWorkDuties").val(toAllOrgWorkDuties);
  1275. }
  1276. else
  1277. {
  1278. $("#ToAllWorkDutiesName").val(""); 
  1279. }
  1280. }
  1281. //选择异议信息不符原因
  1282. function setNotTally(NotTallyObj)
  1283. {
  1284. if($("#"+NotTallyObj+"Flag").is(":checked"))
  1285. {
  1286. $("#"+NotTallyObj).val("true");
  1287. }
  1288. else
  1289. {
  1290. $("#"+NotTallyObj).val("flase");
  1291. }
  1292. }
  1293. function downFile(filePath,fileName)
  1294. {
  1295. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  1296. }
  1297. function doRepeat()
  1298. {
  1299. $("#ButtonInfo").hide();
  1300. $("#RepeatInfo").show();
  1301. }
  1302. function doNolle()
  1303. {
  1304. $("#ButtonInfo").hide();
  1305. $("#NolleInfo").show();
  1306. }
  1307. function doUrge()
  1308. {
  1309. $("#ButtonInfo").hide();
  1310. $("#UrgeInfo").show();
  1311. }
  1312. function doReturn()
  1313. {
  1314. $("#ButtonInfo").show();
  1315. $("#NolleInfo").hide();
  1316. $("#RepeatInfo").hide();
  1317. $("#UrgeInfo").hide();
  1318. }
  1319. </script>
  1320. <title>投诉信息登记</title>
  1321. <meta name="keywords" content="">
  1322. <meta name="description" content="">
  1323. </head>
  1324. <body >
  1325. <form id="form1" method="post" class="form-horizontal" role="form">
  1326. <div style="display: none">
  1327. <input type="hidden" id="CurDate" name="CurDate" value="${curDate}"/>
  1328. <input type="hidden" id="AppealID" name="appeal.AppealID" value="${appealID}"/>
  1329. <input type="hidden" id="repeatAppealID" name="repeat.AppealID" value="${appealID}"/>
  1330. <input type="hidden" id="transactAppealID" name="transact.AppealID" value="${appealID}"/>
  1331. <input type="hidden" id="repeatTName" name="repeat.TName" value="${person.TName}"/>
  1332. <input type="hidden" id="transacTtName" name="transact.TName" value="${person.TName}"/>
  1333. <input type="hidden" id="Modal_PersonID" name="Modal_PersonID" value=""/>
  1334. <input type="hidden" id="Modal_AppealID" name="Modal_AppealID" value=""/>
  1335. <input type="hidden" id="Modal_PersonRepeatFlag" name="Modal_PersonRepeatFlag" value=""/>
  1336. <input type="hidden" id="PersonID" name="person.PersonID" value="${person.PersonID!''}"/>
  1337. <input type="hidden" id="transact.KeyID" name="transact.KeyID" value="${transact.KeyID!''}"/>
  1338. <input type="hidden" id="ProvinceName" name="person.ProvinceName" value="${person.ProvinceName!''}"/>
  1339. <input type="hidden" id="AreaName" name="person.AreaName" value="${person.AreaName!''}"/>
  1340. <input type="hidden" id="CountyName" name="person.CountyName" value="${person.CountyName!''}"/>
  1341. <input type="hidden" id="appealDoState" name="appeal.DoState" value="${appeal.DoState!''}"/>
  1342. <input type="hidden" id="InsceTypeName1" name="appeal.InsceTypeName1" value="${appeal.InsceTypeName1!''}"/>
  1343. <input type="hidden" id="InsceTypeName2" name="appeal.InsceTypeName2" value="${appeal.InsceTypeName2!''}"/>
  1344. <input type="hidden" id="InsceTypeName3" name="appeal.InsceTypeName3" value="${appeal.InsceTypeName3!''}"/>
  1345. <input type="hidden" id=Repcomplaints name="appeal.Repcomplaints" value="${appeal.Repcomplaints!''}"/>
  1346. <input type="hidden" id="RepcomplaintsNum" name="appeal.RepcomplaintsNum" value="${appeal.RepcomplaintsNum!''}"/>
  1347. <input type="hidden" id="EndAppealDate" name="appeal.EndAppealDate" value="${appeal.EndAppealDate!''}"/>
  1348. <input type="hidden" id="ComplaintTypeName1" name="appeal.ComplaintTypeName1" value="${appeal.ComplaintTypeName1!''}"/>
  1349. <input type="hidden" id="ComplaintTypeName2" name="appeal.ComplaintTypeName2" value="${appeal.ComplaintTypeName2!''}"/>
  1350. <input type="hidden" id="ReasonName1" name="appeal.ReasonName1" value="${appeal.ReasonName1!''}"/>
  1351. <input type="hidden" id="ReasonName2" name="appeal.ReasonName2" value="${appeal.ReasonName2!''}"/>
  1352. <input type="hidden" id="ReasonName3" name="appeal.ReasonName3" value="${appeal.ReasonName3!''}"/>
  1353. <input type="hidden" id="AskTypeName1" name="appeal.AskTypeName1" value="${appeal.AskTypeName1!''}"/>
  1354. <input type="hidden" id="AskTypeName2" name="appeal.AskTypeName2" value="${appeal.AskTypeName2!''}"/>
  1355. <input type="hidden" id="AskTypeName3" name="appeal.AskTypeName3" value="${appeal.AskTypeName3!''}"/>
  1356. <input type="hidden" id="RespondentNumber" name="appeal.RespondentNumber" value="${appeal.RespondentNumber!''}"/>
  1357. <input type="hidden" id="AskTimeBlockName" name="appeal.AskTimeBlockName" value="${appeal.AskTimeBlockName!''}"/>
  1358. <input type="hidden" id="NotTallyInfo" name="appeal.NotTallyInfo" value="${appeal.NotTallyInfo!''}"/>
  1359. <input type="hidden" id="NotTallyState" name="appeal.NotTallyState" value="${appeal.NotTallyState!''}"/>
  1360. <input type="hidden" id="NotTallyPay" name="appeal.NotTallyPay" value="${appeal.NotTallyPay!''}"/>
  1361. <input type="hidden" id="NotTallyCorrect" name="appeal.NotTallyCorrect" value="${appeal.NotTallyCorrect!''}"/>
  1362. <input type="hidden" id="NotTallyClaims" name="appeal.NotTallyClaims" value="${appeal.NotTallyClaims!''}"/>
  1363. <input type="hidden" id="NotTallyOther" name="appeal.NotTallyOther" value="${appeal.NotTallyOther!''}"/>
  1364. <input type="hidden" id="RespondentModel" name="RespondentModel" value=""/>
  1365. <input type="hidden" id="FilialeName" name="respondent.FilialeName" value="${respondent.FilialeName!''}"/>
  1366. <input type="hidden" id="CentreCompanyName" name="respondent.CentreCompanyName" value="${respondent.CentreCompanyName!''}"/>
  1367. <input type="hidden" id="BusinessHallName" name="respondent.BusinessHallName" value="${respondent.BusinessHallName!''}"/>
  1368. </div>
  1369. <div class="container-fluid" style="margin-top:15px;">
  1370. <div class="panel panel-primary">
  1371. <div class="panel-heading">
  1372. <div style="display:inline;" >客户信息 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  1373. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapsePerson"><span id="PersonCollapseIcon" onClick="setCollapseIcon('PersonCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
  1374. </div>
  1375. <div id="collapsePerson" class="panel-collapse collapse in">
  1376. <div class="panel-body" style="font-size:14px">
  1377. <div class="row" style="padding:5px" >
  1378. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1379. <label class="control-label" for="PersonType">姓名</label></div>
  1380. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback" >
  1381. <input type="text" class="form-control" value="${person.TName!''}" id="TName" name="person.TName" readonly>
  1382. </div>
  1383. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1384. <label class="control-label" for="TName" id="Label_TName">性别</label></div>
  1385. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback" >
  1386. <input type="text" class="form-control" value="${person.TSex!''}" readonly>
  1387. </div>
  1388. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1389. <label class="control-label" for="CardType">证件类型</label></div>
  1390. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
  1391. <input type="text" class="form-control" value="${person.CardType!''}" readonly>
  1392. </div>
  1393. </div>
  1394. <div class="row" style="padding:5px">
  1395. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1396. <label class="control-label" for="IDCard">证件号码</label></div>
  1397. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
  1398. <input type="text" class="form-control" value="${person.IDCard!''}" placeholder="" id="IDCard" name="person.IDCard" readonly>
  1399. </div>
  1400. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1401. <label class="control-label" for="Status">生日</label>
  1402. </div>
  1403. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
  1404. <input type="text" class="form-control" value="${person.Birthday!''}" readonly>
  1405. </div>
  1406. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1407. <label class="control-label" >电子邮箱</label>
  1408. </div>
  1409. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
  1410. <input type="text" class="form-control" value="${person.EMail!''}" readonly>
  1411. </div>
  1412. </div>
  1413. <div class="row" style="padding:5px">
  1414. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1415. <label class="control-label" for="LinkPerson">联系方式</label></div>
  1416. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  1417. <input type="text" class="form-control" value="${person.LinkTel1!''}" id="LinkTel1" name="person.LinkTel1" maxlength="20" readonly>
  1418. </div>
  1419. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1420. <label class="control-label" for="ProvinceID">归属地省</label></div>
  1421. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1422. <input type="text" class="form-control" value="${person.ProvinceName!''}" readonly>
  1423. </div>
  1424. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1425. <label class="control-label" for="AreaID">地市</label></div>
  1426. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1427. <input type="text" class="form-control" value="${person.AreaName!''}" readonly>
  1428. </div>
  1429. </div>
  1430. </div>
  1431. </div>
  1432. </div>
  1433. ${productList!''}
  1434. ${respondentList!''}
  1435. <div class="panel panel-warning">
  1436. <div class="panel-heading">
  1437. <div style="display:inline;" >客诉事项信息 &nbsp;&nbsp;</div>
  1438. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseAppeal"><span id="AppealCollapseIcon" onClick="setCollapseIcon('AppealCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
  1439. </div>
  1440. <div id="collapseAppeal" class="panel-collapse collapse in">
  1441. <div class="panel-body" style="font-size:14px">
  1442. <div class="row" style="padding:5px">
  1443. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1444. <label class="control-label" for="Question" style="line-height:100px;">客户问题描述</label>
  1445. </div>
  1446. <div class="col-xs-11 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  1447. <textarea class="form-control" rows="5" id="Question" name="appeal.Question" maxlength="2000" readonly>${appeal.Question!''}</textarea>
  1448. </div>
  1449. </div>
  1450. <div class="row" style="padding:5px">
  1451. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1452. <label class="control-label" for="Question" style="line-height:100px;">坐席建议描述</label>
  1453. </div>
  1454. <div class="col-xs-11 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  1455. <textarea class="form-control" rows="5" id="ReceptionSuggest" name="appeal.ReceptionSuggest" maxlength="2000" readonly>${appeal.ReceptionSuggest!''}</textarea>
  1456. </div>
  1457. </div>
  1458. <div class="row" style="padding:5px">
  1459. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1460. <label class="control-label" for="AppealType">客诉类别</label>
  1461. </div>
  1462. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  1463. <input type="text" class="form-control" value="${appeal.AppealType!''}" readonly>
  1464. </div>
  1465. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1466. <label class="control-label" for="ReasonID1">事由类别 </label>
  1467. </div>
  1468. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1469. <input type="text" class="form-control" value="${appeal.QuestionTypeName1!''}" readonly>
  1470. </div>
  1471. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1472. <label class="control-label" for="ReasonID2">二级类别</label>
  1473. </div>
  1474. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1475. <input type="text" class="form-control" value="${appeal.QuestionTypeName2!''}" readonly>
  1476. </div>
  1477. </div>
  1478. <div class="row" style="padding:5px">
  1479. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1480. <label class="control-label" for="AppealSource">客诉来源</label>
  1481. </div>
  1482. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  1483. <input type="text" class="form-control" value="${appeal.AppealSource!''}" readonly>
  1484. </div>
  1485. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1486. <label class="control-label" for="ComplaintTypeID1">投诉级别</label>
  1487. </div>
  1488. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1489. <input type="text" class="form-control" value="${appeal.ComplaintTypeName1!''}" readonly>
  1490. </div>
  1491. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1492. <label class="control-label" for="AppealDate">投诉时间</label>
  1493. </div>
  1494. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  1495. <input type="text" class="form-control" value="${appeal.AppealDate!''}" id="AppealDate" name="appeal.AppealDate" onChange="setAskEndTime()" vmode="not null" vdisp="客诉时间" vtype="string" readonly>
  1496. </div>
  1497. </div>
  1498. <div class="row" style="padding:5px" >
  1499. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  1500. <label class="control-label" for="IsSubmitEvidence">份额合计</label>
  1501. </div>
  1502. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  1503. <div class="input-group">
  1504. <input type="text" class="form-control" id="InvolvedCopies" name="appeal.InvolvedCopies" value="${appeal.InvolvedCopies!''}" readonly>
  1505. <span class="input-group-addon">份</span>
  1506. </div>
  1507. </div>
  1508. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  1509. <label class="control-label" for="IsSubmitEvidence">金额合计</label>
  1510. </div>
  1511. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  1512. <div class="input-group">
  1513. <span class="input-group-addon">¥</span>
  1514. <input type="text" class="form-control" id="InvolvedMoney" name="appeal.InvolvedMoney" value="${appeal.InvolvedMoney!''}" readonly>
  1515. <span class="input-group-addon">元</span>
  1516. </div>
  1517. </div>
  1518. </div>
  1519. <div class="row" style="padding:5px" >
  1520. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1521. <label class="control-label" for="LimitDays">办理时限</label>
  1522. </div>
  1523. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1524. <div class="input-group">
  1525. <input type="text" class="form-control" value="${appeal.LimitDays!''}" placeholder="" id="LimitDays" name="appeal.LimitDays" readonly>
  1526. <span class="input-group-addon" id="basic-addon2">${appeal.LimitDaysType!''}</span>
  1527. </div>
  1528. </div>
  1529. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1530. <label class="control-label" for="LimitEndDate">截止日期</label>
  1531. </div>
  1532. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1533. <input type="text" class="form-control" value="${appeal.LimitEndDate!''}" id="LimitEndDate" name="appeal.LimitEndDate" readonly>
  1534. </div>
  1535. </div>
  1536. <div class="row" style="padding:5px" >
  1537. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1538. <label class="control-label" for="AskTypeID1">结案时间</label>
  1539. </div>
  1540. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1541. <input type="text" class="form-control" value="${appeal.EndDate!''}" readonly>
  1542. </div>
  1543. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1544. <label class="control-label" for="LimitDays">结案用时</label>
  1545. </div>
  1546. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1547. <div class="input-group">
  1548. <input type="text" class="form-control" value="${appeal.EndUseDate!''}" readonly>
  1549. <span class="input-group-addon" id="basic-addon2">${appeal.LimitDaysType!''}</span>
  1550. </div>
  1551. </div>
  1552. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  1553. <label class="control-label" for="LimitEndDate">办理效率</label>
  1554. </div>
  1555. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  1556. <input type="text" class="form-control" value="${appeal.DoTimeRatio!''}" readonly>
  1557. </div>
  1558. </div>
  1559. </div>
  1560. </div>
  1561. </div>
  1562. ${redemptionList!''}
  1563. ${soundPanel!''}
  1564. ${subjoinPanel!''}
  1565. ${transactList!''}
  1566. ${endInfo!''}
  1567. ${followInfoList!''}
  1568. ${visitInfoList!''}
  1569. <div class="panel panel-warning">
  1570. <div class="panel-heading">
  1571. <div style="display:inline;" >客诉办理状态图 &nbsp;&nbsp;</div>
  1572. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseFlowPic"><span id="FlowPicCollapseIcon" onClick="setCollapseIcon('FlowPicCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
  1573. </div>
  1574. <div id="collapseFlowPic" class="panel-collapse collapse in">
  1575. <div class="panel-body" style="font-size:14px">
  1576. <div class="ystep4" ></div>
  1577. </div>
  1578. </div>
  1579. </div>
  1580. <div class="row" style="padding:5px" id="ButtonInfo">
  1581. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
  1582. <button type="button" class="btn btn-warning" onClick="doRepeat()"><span class="glyphicon glyphicon-plus"> 重复件
  1583. </button>
  1584. <button type="button" class="btn btn-primary" onclick="doNolle()" }><span class="glyphicon glyphicon-log-out"></span> 撤诉
  1585. </button>
  1586. <button type="button" class="btn btn-success" onclick="doUrge()" }><span class="glyphicon glyphicon-log-out"></span> 业务催办
  1587. </button>
  1588. <button type="button" class="btn btn-info" onClick="window.close()"><span class="glyphicon glyphicon-remove"> 关闭
  1589. </button>
  1590. </div>
  1591. </div>
  1592. <div class="panel panel-primary" id="RepeatInfo" hidden>
  1593. <div class="panel-heading">
  1594. <div style="display:inline;" >重复件办理&nbsp;&nbsp;</div>
  1595. </div>
  1596. <div id="collapseDoFlow" class="panel-collapse collapse in">
  1597. <div class="panel-body" style="font-size:14px">
  1598. <div class="row" style="padding:5px;">
  1599. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1600. <label class="control-label" for="TransactIdea" style="line-height:100px;">办理意见</label>
  1601. </div>
  1602. <div class="col-xs-11 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  1603. <textarea class="form-control" rows="5" value="" placeholder="" id="TransactIdea" name="transact.TransactIdea" vmode="" vdisp="办理意见" vtype="string"></textarea>
  1604. </div>
  1605. </div>
  1606. <div class="row" style="padding:5px">
  1607. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
  1608. <button type="button" class="btn btn-primary" id="SubmitRepeatButton" onClick="submitRepeat()"><span class="glyphicon glyphicon-plus"> 并 案
  1609. </button>
  1610. <button type="button" class="btn btn-warning" onClick="doReturn()"><span class="glyphicon glyphicon-repeat"> 返回
  1611. </button>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. </div>
  1616. </div>
  1617. <div class="panel panel-primary" id="NolleInfo" hidden>
  1618. <div class="panel-heading">
  1619. <div style="display:inline;" >撤诉件办理&nbsp;&nbsp;</div>
  1620. </div>
  1621. <div id="collapseDoFlow" class="panel-collapse collapse in">
  1622. <div class="panel-body" style="font-size:14px">
  1623. <div class="row" style="padding:5px;">
  1624. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1625. <label class="control-label" for="TransactIdea" style="line-height:100px;">撤诉意见</label>
  1626. </div>
  1627. <div class="col-xs-11 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  1628. <textarea class="form-control" rows="5" value="" placeholder="" id="NolleTransactIdea" name="nolle.TransactIdea" vmode="" vdisp="办理意见" vtype="string"></textarea>
  1629. </div>
  1630. </div>
  1631. <div class="row" style="padding:5px">
  1632. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1633. <label class="control-label" for="NolleType" >撤诉方式</label>
  1634. </div>
  1635. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
  1636. <select id="NolleType" name="nolle.NolleType has-error has-feedback" class="form-control" vmode='' vdisp='撤诉方式' vtype='chinese'>
  1637. <option value="" >请选择</option>
  1638. <option value="电话撤诉">电话撤诉</option>
  1639. <option value="书面撤诉">书面撤诉</option>
  1640. <option value="其他撤诉">其他撤诉</option>
  1641. </select>
  1642. </div>
  1643. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1644. <label class="control-label" for="NolleDate">撤诉时间</label>
  1645. </div>
  1646. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  1647. <div class="input-group">
  1648. <input type="text" class="form-control" value="" placeholder="" id="NolleDate" name="nolle.NolleDate" vmode="" vdisp="撤诉时间" vtype="string" readonly>
  1649. <div class="input-group-btn">
  1650. <button type="button" class="btn btn-default" aria-label="Left Align" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'NolleDate',maxDate:new Date()})" title="选择撤诉时间">
  1651. <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
  1652. </button>
  1653. </div>
  1654. </div>
  1655. </div>
  1656. </div>
  1657. <div class="row" style="padding:5px">
  1658. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
  1659. <button type="button" class="btn btn-primary" id="SubmitNolleButton" onClick="submitNolle()"><span class="glyphicon glyphicon-save"> 提交
  1660. </button>
  1661. <button type="button" class="btn btn-warning" onClick="doReturn()"><span class="glyphicon glyphicon-repeat"> 返回
  1662. </button>
  1663. </div>
  1664. </div>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <div class="panel panel-primary" id="UrgeInfo" hidden>
  1669. <div class="panel-heading">
  1670. <div style="display:inline;" >业务催办办理&nbsp;&nbsp;</div>
  1671. </div>
  1672. <div id="collapseDoFlow" class="panel-collapse collapse in">
  1673. <div class="panel-body" style="font-size:14px">
  1674. <div class="row" style="padding:5px;">
  1675. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  1676. <label class="control-label" for="UrgeTransactIdea" style="line-height:100px;">办理意见</label>
  1677. </div>
  1678. <div class="col-xs-11 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  1679. <textarea class="form-control" rows="5" value="" placeholder="" id="UrgeTransactIdea" name="Urge.TransactIdea" vmode="" vdisp="办理意见" vtype="string"></textarea>
  1680. </div>
  1681. </div>
  1682. <div class="row" style="padding:5px">
  1683. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
  1684. <button type="button" class="btn btn-primary" id="SubmitRepeatButton" onClick="submitUrge()"><span class="glyphicon glyphicon-plus"> 并 案
  1685. </button>
  1686. <button type="button" class="btn btn-warning" onClick="doReturn()"><span class="glyphicon glyphicon-repeat"> 返回
  1687. </button>
  1688. </div>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. </form>
  1695.  
  1696. <script type="text/javascript" src="${ctx}/assets/lib/ystep/js/ystep.js"></script>
  1697. <script>
  1698. //根据jQuery选择器找到需要加载ystep的容器
  1699. //loadStep 方法可以初始化ystep
  1700. $(".ystep4").loadStep({
  1701. size: "large",
  1702. color: "blue",
  1703. steps: [{
  1704. title: "受理",
  1705. content: "客诉件通过各种客诉渠道在受理环节进入客诉系统"
  1706. },{
  1707. title: "办理",
  1708. content: "各机构办理人员在该环节处理客诉件"
  1709. },{
  1710. title: "结案",
  1711. content: "客诉件办理完成提交审核"
  1712. },{
  1713. title: "归档",
  1714. content: "机构客诉管理岗审核通过,客诉件归档"
  1715. }]
  1716. });
  1717. $(".ystep4").setStep(${iStep!''});
  1718. $(function () { $("[data-toggle='tooltip']").tooltip(); });
  1719. </script>
  1720. </body>
  1721. </html>