dosupervise.html 131 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364
  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/bootstrap-spinner/bootstrap-spinner.css">
  13. <link rel="stylesheet" href="${ctx}/assets/lib/font-awesome-4.7.0/css/font-awesome.css">
  14. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  15. <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
  16. <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
  17. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  18. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  19. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
  20. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
  21. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  22. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-spinner/jquery.spinner.js"></script>
  24. <script type="text/javascript" src="${ctx}/assets/lib/crypto-js-4.1.1/crypto-js.js"></script>
  25. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  26. <script src="${ctx}/assets/js/validate.js" ></script>
  27. <script type="text/javascript">
  28. function doSubmit(){
  29. doTrim(form1);
  30. if(doValidate(form1))
  31. {
  32. var limitEndDate=$("#LimitEndDate").val();
  33. if(limitEndDate!="")
  34. {
  35. $("#transactLimitEndDate").val(limitEndDate);
  36. }
  37. var linkTel1=$("#LinkTel1").val();
  38. if(linkTel1.substring(0,1)=="1"&&linkTel1.length!=11)
  39. {
  40. layer.msg("手机号码必须为11位!");
  41. $("#LinkTel1").focus();
  42. return false;
  43. }
  44. $("#EndButton").attr("disabled",'disabled');
  45. $("#SubmitButton").attr("disabled",'disabled');
  46. $('#form1').attr('action','${ctx}/myconsole/complaint/register/savePutFlowData');
  47. $('#form1').ajaxSubmit(resultHandle);
  48. }
  49. }
  50. function resultHandle(data){
  51. var res=eval('(' + data + ')');
  52. if(res.flag){
  53. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
  54. function(){
  55. layer.closeAll('dialog');
  56. window.parent.opener.location.reload();
  57. window.parent.close();
  58. });
  59. }else{
  60. if(res.flag == false)
  61. {
  62. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  63. }
  64. }
  65. }
  66. //非财险客诉件返回数据调用
  67. function doNotData(){
  68. $('#form1').attr('action','${ctx}/myconsole/complaint/interface/judgeWebBSData');
  69. $('#form1').ajaxSubmit(resultWebSiteHandle);
  70. }
  71. function resultWebSiteHandle(data){
  72. var res=eval('(' + data + ')');
  73. if(res.flag){
  74. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
  75. function(){
  76. layer.closeAll('dialog');
  77. window.parent.opener.location.reload();
  78. window.parent.close();
  79. });
  80. }else{
  81. if(res.flag == false)
  82. {
  83. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  84. }
  85. }
  86. }
  87. //悬浮姓名失去焦点处理
  88. function blurTNme()
  89. {
  90. var navTName=$("#navTName").val();
  91. $("#TName").val(navTName);
  92. }
  93. //
  94. function blurIDCard()
  95. {
  96. var navIDCard=$("#navIDCard").val();
  97. $("#IDCard").val(navIDCard);
  98. }
  99. //
  100. function blurLinkTel1()
  101. {
  102. var navLinkTel1=$("#navLinkTel1").val();
  103. $("#LinkTel1").val(navLinkTel1);
  104. if(navLinkTel1.substring(0,1)=="1"&&navLinkTel1.length!=11)
  105. {
  106. layer.msg("手机号码必须为11位!");
  107. $("#navLinkTel1").focus();
  108. return false;
  109. }
  110. }
  111. //判断电话是否为手机
  112. function telIsMobile()
  113. {
  114. var linkTel1=$("#LinkTel1").val();
  115. if(linkTel1.substring(0,1)=="1"&&linkTel1.length!=11)
  116. {
  117. layer.msg("手机号码必须为11位!");
  118. return false;
  119. }
  120. else
  121. {
  122. return true;
  123. }
  124. }
  125. //
  126. function setLinkPerson()
  127. {
  128. var personType=$("#PersonType").val();
  129. var tName=$("#TName").val();
  130. $("#navTName").val(tName);
  131. if(personType=='自然人')
  132. {
  133. var linkPerson=$("#TName").val();
  134. $("#LinkPerson").val(linkPerson);
  135. }
  136. else
  137. {
  138. $("#LinkPerson").val("");
  139. }
  140. }
  141. //根据人员类别选择证件信息2017-08-19
  142. function setLabelTName()
  143. {
  144. var personType=$("#PersonType").val();
  145. if(personType=='')
  146. {
  147. $("#Label_TName").text("姓名");
  148. $("#Label_navTName").text("姓名");
  149. $("#CardType").empty();  
  150. $("#CardType").append("<option value=''>请选择</option>");
  151. $("#LinkPerson").attr("vmode","");
  152. $("#LinkPersonDiv1").removeClass("has-error has-feedback");
  153. $("#LinkPersonDiv2").removeClass("has-error has-feedback");
  154. }
  155. if(personType=='自然人')
  156. {
  157. $("#Label_TName").text("姓名");
  158. $("#Label_navTName").text("姓名");
  159. $("#CardType").empty();  
  160. $("#CardType").append("<option value='居民身份证'>居民身份证</option>");
  161. $("#CardType").append("<option value='护照'>护照</option>");
  162. $("#CardType").append("<option value='军人证'>军人证</option>");
  163. $("#CardType").append("<option value='其他'>其他</option>");
  164. $("#LinkPerson").attr("vmode","");
  165. $("#LinkPersonDiv1").removeClass("has-error has-feedback");
  166. $("#LinkPersonDiv2").removeClass("has-error has-feedback");
  167. }
  168. if(personType=='非自然人')
  169. {
  170. $("#Label_TName").text("单位名称");
  171. $("#Label_navTName").text("单位名称");
  172. $("#CardType").empty();  
  173. $("#CardType").append("<option value='统一社会信用代码'>统一社会信用代码</option>");
  174. $("#CardType").append("<option value='组织机构代码'>组织机构代码</option>");
  175. $("#LinkPerson").attr("vmode","not null");
  176. $("#LinkPersonDiv1").addClass("has-error has-feedback");
  177. $("#LinkPersonDiv2").addClass("has-error has-feedback");
  178. }
  179. }
  180. //设置导航条身份证号码
  181. function setNavIDCard()
  182. {
  183. var idCard=$("#IDCard").val();
  184. $("#navIDCard").val(idCard);
  185. }
  186. //设置导航条联系电话
  187. function setNavLinkTel1()
  188. {
  189. var linkTel1=$("#LinkTel1").val();
  190. $("#navLinkTel1").val(linkTel1);
  191. }
  192. //验证身份证信息
  193. function setIDCard()
  194. {
  195. var cardType=$("#CardType").val();
  196. if(cardType=='居民身份证')
  197. {
  198. $("#IDCard").attr("vtype","idcard");
  199. }
  200. else
  201. {
  202. $("#IDCard").attr("vtype","string");
  203. }
  204. }
  205. //根据投诉人姓名,证件类型,证件号码判重
  206. function repeatIDCard()
  207. {
  208. var tName=$("#TName").val();
  209. var cardType=$("#CardType").val();
  210. var idCard=$("#IDCard").val();
  211. var personType=$("#PersonType").val();
  212. if(tName!=""&&cardType!=""&&cardType!="")
  213. {
  214. $('#form1').attr('action','${ctx}/myconsole/complaint/register/repeatIDCard');
  215. $('#form1').ajaxSubmit(setPersonData);
  216. }
  217. else
  218. {
  219. var alertInfo="";
  220. if(personType=="自然人"||personType=="")
  221. {
  222. alertInfo="投诉人姓名,证件类型,证件号码都必须填写!";
  223. }
  224. else
  225. {
  226. alertInfo="单位名称,证件类型,证件号码都必须填写!";
  227. }
  228. layer.alert(alertInfo, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  229. }
  230. }
  231. function repeatLinkTel(doType)
  232. {
  233. var linkTel1=$("#LinkTel1").val();
  234. if(linkTel1!="")
  235. {
  236. if(telIsMobile())
  237. {
  238. $('#form1').attr('action','${ctx}/myconsole/complaint/register/repeatLinkTel');
  239. $('#form1').ajaxSubmit(setPersonData);
  240. }
  241. }
  242. else
  243. {
  244. if(doType=="assign")
  245. {
  246. var alertInfo="联系电话必须填写!";
  247. layer.alert(alertInfo, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  248. }
  249. }
  250. }
  251. //回写投诉人判重数据
  252. function setPersonData(data){
  253. var personJson = JSON.parse(data);
  254. var flag=personJson.flag;
  255. if(flag)
  256. {
  257. var person=personJson.person;
  258. $("#Modal_PersonType").val(person.persontype);
  259. $("#Modal_TName").val(person.tname);
  260. $("#Modal_Status").val(person.status);
  261. $("#Modal_CardType").val(person.cardtype);
  262. $("#Modal_IDCard").val(person.idcard);
  263. $("#Modal_LinkTel1").val(person.linktel1);
  264. $("#Modal_TownAddress").val(person.townaddress);
  265. $("#Modal_PersonID").val(person.personid);
  266. $("#Modal_LinkTel2").val(person.linktel2);
  267. $("#Modal_WechatNo").val(person.wechatno);
  268. $("#Modal_LinkPerson").val(person.linkperson);
  269. $("#Modal_ProvinceID").val(person.provinceid);
  270. $("#Modal_ProvinceName").val(person.provincename);
  271. $("#Modal_AreaID").val(person.areaid);
  272. $("#Modal_AreaName").val(person.areaname);
  273. $("#Modal_CountyID").val(person.countyid);
  274. $("#Modal_CountyName").val(person.countyname);
  275. $("#Modal_Postalcode").val(person.postalcode);
  276. $("#Modal_EMail").val(person.email);
  277. $("#Modal_Appeal").find("tr:not(:first)").remove();
  278. var listAppeal=eval(personJson.listAppeal);
  279. listAppeal.forEach(function(item,index)
  280. {
  281. if(item.serialnumber==null){
  282. $("#Modal_Appeal").append("<tr><td></td><td>"+item.appealdate+"</td><td>"+item.appealsource+"</td><td>"+item.appealtype+"</td><td></td></tr>");
  283. }else{
  284. $("#Modal_Appeal").append("<tr><td>"+item.appealdate+"</td><td>"+item.appealsource+"</td><td>"+item.appealtype+"</td><td><button class='btn btn-primary radius size-S' onclick=seeRepeatData('"+item.appealid+"')>查看详细</button></td></tr>");
  285. }
  286. })
  287. $('#repeatModal').modal({
  288.  backdrop: 'static',
  289.  keyboard: false
  290. })
  291. }
  292. else
  293. {
  294. layer.alert("该投诉人为首次投诉!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  295. }
  296. }
  297. function repeatPerson()
  298. {
  299. var modal_PersonID=$("#Modal_PersonID").val();
  300. $("#Modal_PersonRepeatFlag").val("true");
  301. $("#PersonType").val($("#Modal_PersonType").val());
  302. $("#PersonType").attr("readOnly","true");
  303. setLabelTName();
  304. $("#TName").val($("#Modal_TName").val());
  305. $("#TName").attr("readOnly","true");
  306. $("#Status").val($("#Modal_Status").val());
  307. $("#Status").attr("readOnly","true");
  308. $("#CardType").val($("#Modal_CardType").val());
  309. $("#CardType").attr("readOnly","true");
  310. $("#IDCard").val($("#Modal_IDCard").val());
  311. $("#IDCard").attr("readOnly","true");
  312. $("#PersonID").val($("#Modal_PersonID").val());
  313. $("#LinkTel1").val($("#Modal_LinkTel1").val());
  314. $("#LinkTel1").attr("readOnly","true");
  315. $("#LinkTel2").val($("#Modal_LinkTel2").val());
  316. $("#LinkTel2").attr("readOnly","true");
  317. $("#TownAddress").val($("#Modal_TownAddress").val());
  318. $("#TownAddress").attr("readOnly","true");
  319. $("#Postalcode").val($("#Modal_Postalcode").val());
  320. $("#Postalcode").attr("readOnly","true");
  321. $("#WechatNo").val($("#Modal_WechatNo").val());
  322. $("#WechatNo").attr("readOnly","true");
  323. $("#EMail").val($("#Modal_EMail").val());
  324. $("#EMail").attr("readOnly","true");
  325. $("#LinkPerson").val($("#Modal_LinkPerson").val());
  326. $("#LinkPerson").attr("readOnly","true");
  327. $("#ProvinceID").val($("#Modal_ProvinceID").val());
  328. $("#ProvinceID").attr("readOnly","true");
  329. $("#ProvinceName").val($("#Modal_ProvinceName").val());
  330. $("#AreaID").empty();  
  331. $("#AreaID").append("<option value='"+$("#Modal_AreaID").val()+"'>"+$("#Modal_AreaName").val()+"</option>");
  332. $("#AreaID").attr("readOnly","true");
  333. $("#CountyID").empty();  
  334. $("#CountyID").append("<option value='"+$("#Modal_CountyID").val()+"'>"+$("#Modal_CountyName").val()+"</option>");
  335. $("#CountyID").attr("readOnly","true");
  336. $('#repeatModal').modal('hide');
  337. }
  338. //根据省取地市数据
  339. function setAreaID(strModel)
  340. {
  341. var provinceID=$('#'+strModel+"ProvinceID").val();
  342. if(provinceID!='')
  343. {
  344. var provinceName=$('#'+strModel+"ProvinceID").find("option:selected").text();
  345. $('#'+strModel+"ProvinceName").val(provinceName);
  346. $("#form1").attr("action","${ctx}/myconsole/complaint/register/getAreaIDData?ParentID="+provinceID);
  347. $("#form1").ajaxSubmit(setAreaIDData);
  348. $('#ProvinceModel').val(strModel);
  349. }
  350. else
  351. {
  352. $('#'+strModel+"ProvinceName").val("");
  353. $('#'+strModel+"AreaID").empty();
  354. $('#ProvinceModel').val(strModel);
  355. }
  356. }
  357. //回写json地市数据
  358. function setAreaIDData(data){
  359. var strModel=$('#ProvinceModel').val();
  360. $('#'+strModel+"AreaID").empty();  
  361. $('#'+strModel+"AreaID").append("<option value=''>请选择</option>");
  362. var listRegionJson = JSON.parse(data);
  363. var postalCode=listRegionJson.PostalCode;
  364. var listregion=eval(listRegionJson.ListRegion);
  365. $.each(listregion,function(index,item)
  366. {
  367. $('#'+strModel+"AreaID").append("<option value='"+item.tid+"'>"+item.tname+"</option>");
  368. })
  369. }
  370. function setAreaName(strModel)
  371. {
  372. var areaID=$('#'+strModel+"AreaID").val();
  373. if(areaID!='')
  374. {
  375. var areaName=$('#'+strModel+"AreaID").find("option:selected").text();
  376. $('#'+strModel+"AreaName").val(areaName);
  377. }
  378. else
  379. {
  380. $('#'+strModel+"AreaName").val("");
  381. }
  382. }
  383. //回写json区县数据
  384. function setCountyID(strModel)
  385. {
  386. var strAreaID=$('#'+strModel+"AreaID").val();
  387. if(strAreaID!='')
  388. {
  389. var strAreaName=$('#'+strModel+"AreaID").find("option:selected").text();
  390. $('#'+strModel+"AreaName").val(strAreaName);
  391. $("#form1").attr("action","${ctx}/myconsole/complaint/register/getAreaIDData?ParentID="+strAreaID);
  392. $("#form1").ajaxSubmit(setCountyIDData);
  393. $('#ProvinceModel').val(strModel);
  394. }
  395. else
  396. {
  397. $('#'+strModel+"AreaName").val("");
  398. $('#'+strModel+"CountyID").empty();
  399. $('#ProvinceModel').val(strModel);
  400. }
  401. }
  402. function setCountyIDData(data){
  403. var strModel=$('#ProvinceModel').val();
  404. $('#'+strModel+"CountyID").empty();  
  405. $('#'+strModel+"CountyID").append("<option value=''>请选择</option>");
  406. var listRegionJson = JSON.parse(data);
  407. var postalCode=listRegionJson.PostalCode;
  408. var listregion=eval(listRegionJson.ListRegion);
  409. listregion.forEach(function(item,index)
  410. {
  411. $('#'+strModel+"CountyID").append("<option value='"+item.tid+"'>"+item.tname+"</option>");
  412. })
  413. $("#Postalcode").val(postalCode);
  414. }
  415. //设置详细地址
  416. function setTownAddress(strModel)
  417. {
  418. if($('#'+strModel+"CountyID").val()!="")
  419. {
  420. var countyName=$('#'+strModel+"CountyID").find("option:selected").text();
  421. $('#'+strModel+"CountyName").val(countyName);
  422. $("#form1").attr("action","${ctx}/myconsole/complaint/register/getPostalCode");
  423. $("#form1").ajaxSubmit(setPostalCodeData);
  424. }
  425. else
  426. {
  427. $('#'+strModel+"CountyName").val("");
  428. }
  429. }
  430. //回写邮编数据
  431. function setPostalCodeData(data){
  432. $("#Postalcode").val(data);
  433. }
  434. //
  435. function setContractExist()
  436. {
  437. if($("#ContractExistFlag").is(":checked"))
  438. {
  439. $("#ContractExistFlag1").show();
  440. $("#ContractExistFlag2").show();
  441. $("#ContractExistFlag3").show();
  442. $("#ContractExistFlag4").show();
  443. $("#ContractExist").val("有保单");
  444. }
  445. else
  446. {
  447. $("#ContractExistFlag1").hide();
  448. $("#ContractExistFlag2").hide();
  449. $("#ContractExistFlag3").hide();
  450. $("#ContractExistFlag4").hide();
  451. $("#ContractExist").val("无保单");
  452. }
  453. }
  454. //根据一级投诉原因设置二级投诉原因
  455. function setReasonID2()
  456. {
  457. $("#ReasonID3").empty(); 
  458. var reasonID1=$('#ReasonID1').val();
  459. if(reasonID1!='')
  460. {
  461. var reasonName1=$("#ReasonID1").find("option:selected").text();
  462. $("#ReasonName1").val(reasonName1);
  463. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getReasonID2Data');
  464. $('#form1').ajaxSubmit(setReasonID2Data);
  465. }
  466. else
  467. {
  468. $("#ReasonID2").empty(); 
  469. $("#ReasonName1").val("");
  470. }
  471. }
  472. //回写原因二类字典数据
  473. function setReasonID2Data(data){
  474. $("#ReasonID2").empty();  
  475. $("#ReasonID2").append("<option value=''>请选择</option>");
  476. $("#ReasonID2").append(data);
  477. }
  478. //根据二级投诉原因设置三级投诉原因
  479. function setReasonID3()
  480. {
  481. var reasonID2=$('#ReasonID2').val();
  482. if(reasonID2!='')
  483. {
  484. var reasonName2=$("#ReasonID2").find("option:selected").text();
  485. $("#ReasonName2").val(reasonName2);
  486. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getReasonID3Data');
  487. $('#form1').ajaxSubmit(setReasonID3Data);
  488. }
  489. else
  490. {
  491. $("#ReasonID3").empty(); 
  492. $("#ReasonName2").val(""); 
  493. }
  494. }
  495. //回写原因二类字典数据
  496. function setReasonID3Data(data){
  497. $("#ReasonID3").empty();  
  498. $("#ReasonID3").append("<option value=''>请选择</option>");
  499. $("#ReasonID3").append(data);
  500. }
  501. //设置三级投诉原因名称
  502. function setReasonName3()
  503. {
  504. var reasonID3=$('#ReasonID3').val();
  505. if(reasonID3!='')
  506. {
  507. var reasonName3=$("#ReasonID3").find("option:selected").text();
  508. $("#ReasonName3").val(reasonName3);
  509. }
  510. else
  511. {
  512. $("#ReasonName3").val(""); 
  513. }
  514. }
  515. //根据被诉分公司选择中支公司信息
  516. function setCentreCompanyID(respondentModel)
  517. {
  518. if(respondentModel=="respondent")
  519. {
  520. var transactType=$("#TransactType").val();
  521. if(transactType=="转办")
  522. {
  523. $('#transactAppealState').val("办理");
  524. $("#appealDoState").val("办理");
  525. $("#transactDoState").val("已办理");
  526. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/getAutoRule');
  527. $('#form1').ajaxSubmit(setAutoRule);
  528. }
  529. }
  530. var filialeID=$('#'+respondentModel+"FilialeID").val();
  531. if(filialeID!='')
  532. {
  533. var filialeName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
  534. $('#'+respondentModel+"FilialeName").val(filialeName);
  535. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getCentreCompanyIDData?RespondentModel='+respondentModel);
  536. $('#form1').ajaxSubmit(setCentreCompanyIDData);
  537. $('#RespondentModel').val(respondentModel); 
  538. }
  539. else
  540. {
  541. $("#"+respondentModel+"CentreCompanyID").empty(); 
  542. $('#'+respondentModel+"FilialeName").val(""); 
  543. }
  544. }
  545. //回写原因二类字典数据
  546. function setCentreCompanyIDData(data){
  547. var respondentModel=$('#RespondentModel').val(); 
  548. $("#"+respondentModel+"CentreCompanyID").empty();  
  549. $("#"+respondentModel+"CentreCompanyID").append("<option value=''>请选择</option>");
  550. $("#"+respondentModel+"CentreCompanyID").append(data);
  551. }
  552. //
  553. function setBusinessHallID(respondentModel)
  554. {
  555. var centreCompanyID=$('#'+respondentModel+"FilialeID").val();
  556. if(centreCompanyID!='')
  557. {
  558. var centreCompanyName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
  559. $('#'+respondentModel+"FilialeName").val(centreCompanyName);
  560. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getBusinessHallIDData?ParentID='+centreCompanyID);
  561. $('#form1').ajaxSubmit(setBusinessHallIDData);
  562. $('#RespondentModel').val(respondentModel); 
  563. if(centreCompanyName=='总公司'||centreCompanyName=='中国人寿养老保险公司')
  564. {
  565. $('#'+respondentModel+"ProvinceID").val('110000');
  566. $('#'+respondentModel+"ProvinceName").val('北京市');
  567. $('#'+respondentModel+"AreaID").empty();  
  568. $('#'+respondentModel+"AreaID").append("<option value='110102'>西城区</option>");
  569. $('#'+respondentModel+"AreaName").val('西城区');
  570. }
  571. else
  572. {
  573. var strProvinceID=$('#personProvinceID').val();
  574. var strProvinceName=$('#personProvinceName').val();
  575. var strAreaID=$('#personAreaID').val();
  576. var strAreaName=$('#personAreaName').val();
  577. $('#'+respondentModel+"ProvinceID").val(strProvinceID);
  578. $('#'+respondentModel+"ProvinceName").val(strProvinceName);
  579. $('#'+respondentModel+"AreaID").empty();  
  580. $('#'+respondentModel+"AreaID").append("<option value='"+strAreaID+"'>"+strAreaName+"</option>");
  581. $('#'+respondentModel+"AreaName").val(strAreaName);
  582. }
  583. }
  584. else
  585. {
  586. $("#"+respondentModel+"BusinessHallID").empty(); 
  587. $('#'+respondentModel+"FilialeName").val(""); 
  588. }
  589. }
  590. //回写被诉网点数据
  591. function setBusinessHallIDData(data){
  592. var respondentModel=$('#RespondentModel').val(); 
  593. $("#"+respondentModel+"BusinessHallID").empty();  
  594. $("#"+respondentModel+"BusinessHallID").append("<option value=''>请选择</option>");
  595. $("#"+respondentModel+"BusinessHallID").append(data);
  596. if(respondentModel=="respondent")
  597. {
  598. var transactType=$("#TransactType").val();
  599. if(transactType=="转办")
  600. {
  601. $('#transactAppealState').val("办理");
  602. $("#appealDoState").val("办理");
  603. $("#transactDoState").val("已办理");
  604. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/getAutoRule');
  605. $('#form1').ajaxSubmit(setAutoRule);
  606. }
  607. }
  608. }
  609. function setBusinessHallName(respondentModel)
  610. {
  611. var idData=$("#"+respondentModel+"BusinessHallID").val();
  612. if(idData!='')
  613. {
  614. var nameData=$("#"+respondentModel+"BusinessHallID").find("option:selected").text();
  615. $("#"+respondentModel+"BusinessHallName").val(nameData);
  616. }
  617. else
  618. {
  619. $("#"+respondentModel+"BusinessHallName").val(""); 
  620. }
  621. }
  622. //setInsceTypeID2()选择二级险种类别
  623. function setInsceTypeID2()
  624. {
  625. var insceTypeID1=$('#InsceTypeID1').val();
  626. if(insceTypeID1!='')
  627. {
  628. var insceTypeName1=$("#InsceTypeID1").find("option:selected").text();
  629. $("#InsceTypeName1").val(insceTypeName1);
  630. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getInsceTypeID2Data');
  631. $('#form1').ajaxSubmit(setInsceTypeID2Data);
  632. }
  633. else
  634. {
  635. $("#InsceTypeID2").empty(); 
  636. $("#InsceTypeName1").val(""); 
  637. }
  638. }
  639. //回写原因二类字典数据
  640. function setInsceTypeID2Data(data){
  641. $("#InsceTypeID2").empty();  
  642. $("#InsceTypeID2").append("<option value=''>请选择</option>");
  643. $("#InsceTypeID2").append(data);
  644. }
  645. //setInsceTypeID3()选择三级险种类别
  646. function setInsceTypeID3()
  647. {
  648. var insceTypeID2=$('#InsceTypeID2').val();
  649. if(insceTypeID2!='')
  650. {
  651. var insceTypeName2=$("#InsceTypeID2").find("option:selected").text();
  652. $("#InsceTypeName2").val(insceTypeName2);
  653. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getInsceTypeID3Data');
  654. $('#form1').ajaxSubmit(setInsceTypeID3Data);
  655. }
  656. else
  657. {
  658. $("#InsceTypeID3").empty(); 
  659. $("#InsceTypeName2").val(""); 
  660. }
  661. }
  662. //回写原因二类字典数据
  663. function setInsceTypeID3Data(data){
  664. $("#InsceTypeID3").empty();  
  665. $("#InsceTypeID3").append("<option value=''>请选择</option>");
  666. $("#InsceTypeID3").append(data);
  667. }
  668. function setInsceTypeName3()
  669. {
  670. var insceTypeID3=$('#InsceTypeID3').val();
  671. if(insceTypeID3!='')
  672. {
  673. var insceTypeName3=$("#InsceTypeID3").find("option:selected").text();
  674. $("#InsceTypeName3").val(insceTypeName3);
  675. }
  676. else
  677. {
  678. $("#InsceTypeName3").val(""); 
  679. }
  680. }
  681. //setAskTypeID2()选择二级诉求类别
  682. function setAskTypeID2()
  683. {
  684. var askTypeID1=$('#AskTypeID1').val();
  685. if(askTypeID1!='')
  686. {
  687. var askTypeName1=$("#AskTypeID1").find("option:selected").text();
  688. $("#AskTypeName1").val(askTypeName1);
  689. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getAskTypeID2Data');
  690. $('#form1').ajaxSubmit(setAskTypeID2Data);
  691. }
  692. else
  693. {
  694. $("#AskTypeID2").empty(); 
  695. $("#FilialeName").val(""); 
  696. }
  697. }
  698. //回写原因二类字典数据
  699. function setAskTypeID2Data(data){
  700. $("#AskTypeID2").empty();  
  701. $("#AskTypeID2").append("<option value=''>请选择</option>");
  702. $("#AskTypeID2").append(data);
  703. }
  704. //setAskTypeID3()选择三级诉求类别
  705. function setAskTypeID3()
  706. {
  707. var askTypeID2=$('#AskTypeID2').val();
  708. if(askTypeID2!='')
  709. {
  710. var askTypeName2=$("#AskTypeID2").find("option:selected").text();
  711. $("#AskTypeName2").val(askTypeName2);
  712. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getAskTypeID3Data');
  713. $('#form1').ajaxSubmit(setAskTypeID3Data);
  714. }
  715. else
  716. {
  717. $("#AskTypeID3").empty(); 
  718. $("#AskTypeName2").val(""); 
  719. }
  720. }
  721. //回写原因二类字典数据
  722. function setAskTypeID3Data(data){
  723. $("#AskTypeID3").empty();  
  724. $("#AskTypeID3").append("<option value=''>请选择</option>");
  725. $("#AskTypeID3").append(data);
  726. }
  727. function setAskTypeName3()
  728. {
  729. var askTypeID3=$('#AskTypeID3').val();
  730. if(askTypeID3!='')
  731. {
  732. var askTypeName3=$("#AskTypeID3").find("option:selected").text();
  733. $("#AskTypeName3").val(askTypeName3);
  734. }
  735. else
  736. {
  737. $("#AskTypeName3").val(""); 
  738. }
  739. }
  740. //setComplaintTypeID2()根据投诉类别一级分类取二级分类
  741. function setComplaintTypeID2()
  742. {
  743. var complaintTypeID1=$('#ComplaintTypeID1').val();
  744. if(complaintTypeID1!='')
  745. {
  746. var complaintTypeName1=$("#ComplaintTypeID1").find("option:selected").text();
  747. $("#ComplaintTypeName1").val(complaintTypeName1);
  748. if(complaintTypeName1=='疑难投诉')
  749. {
  750. $("#LimitDays").val("15");
  751. }
  752. if(complaintTypeName1=='重大投诉')
  753. {
  754. $("#LimitDays").val("15");
  755. }
  756. if(complaintTypeName1=='常规投诉')
  757. {
  758. $("#LimitDays").val("5");
  759. }
  760. }
  761. else
  762. {
  763. $("#ComplaintTypeName1").val(""); 
  764. }
  765. setLimitEndDate();
  766. }
  767. //回写投诉二级分类字典数据
  768. function setComplaintTypeID2Data(data){
  769. $("#ComplaintTypeID2").empty();  
  770. $("#ComplaintTypeID2").append("<option value=''>请选择</option>");
  771. $("#ComplaintTypeID2").append(data);
  772. }
  773. function setComplaintTypeName2()
  774. {
  775. var complaintTypeID2=$('#ComplaintTypeID2').val();
  776. if(complaintTypeID2!='')
  777. {
  778. var complaintTypeName2=$("#ComplaintTypeID2").find("option:selected").text();
  779. $("#ComplaintTypeName2").val(complaintTypeName2);
  780. if(complaintTypeName2=="群访事件")
  781. {
  782. $("#ComplaintPersonNum").attr("vmode","not null");
  783. }
  784. }
  785. else
  786. {
  787. $("#ComplaintTypeName2").val(""); 
  788. }
  789. }
  790. //群访事件客诉人数量判断
  791. function setComplaintPersonNum()
  792. {
  793. var complaintTypeName2=$("#ComplaintTypeID1").find("option:selected").text();
  794. var iComplaintPersonNum=parseInt($("#ComplaintPersonNum").val());
  795. if(complaintTypeName2=="重大投诉")
  796. {
  797. if(iComplaintPersonNum<5)
  798. {
  799. layer.alert("重大投诉投诉人数量不能少于10人!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  800. }
  801. }
  802. if(iComplaintPersonNum>=5)
  803. {
  804. if(complaintTypeName2!="重大投诉")
  805. {
  806. layer.alert("投诉人数量大于等于10人以上的必须选择重大投诉!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  807. }
  808. }
  809. }
  810. //业务催办二级分类
  811. function setUrgeDoTypeID2()
  812. {
  813. var idData=$('#UrgeDoTypeID1').val();
  814. if(idData!='')
  815. {
  816. var nameData=$("#UrgeDoTypeID1").find("option:selected").text();
  817. $("#UrgeDoTypeName1").val(nameData);
  818. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getUrgeDoTypeID2Data');
  819. $('#form1').ajaxSubmit(setUrgeDoTypeID2Data);
  820. }
  821. else
  822. {
  823. $("#UrgeDoTypeID2").empty(); 
  824. $("#UrgeDoTypeName1").val(""); 
  825. }
  826. }
  827. //回写投诉二级分类字典数据
  828. function setUrgeDoTypeID2Data(data){
  829. $("#UrgeDoTypeID2").empty();  
  830. $("#UrgeDoTypeID2").append("<option value=''>请选择</option>");
  831. $("#UrgeDoTypeID2").append(data);
  832. }
  833. function setUrgeDoTypeName2()
  834. {
  835. var idData=$('#UrgeDoTypeID2').val();
  836. if(idData!='')
  837. {
  838. var nameData=$("#UrgeDoTypeID2").find("option:selected").text();
  839. $("#UrgeDoTypeName2").val(nameData);
  840. }
  841. else
  842. {
  843. $("#UrgeDoTypeName2").val(""); 
  844. }
  845. }
  846. function setSectionName()
  847. {
  848. var sectionID=$('#SectionID').val();
  849. if(sectionID!='')
  850. {
  851. var sectionName=$("#SectionID").find("option:selected").text();
  852. $("#SectionName").val(sectionName);
  853. }
  854. else
  855. {
  856. $("#SectionName").val(""); 
  857. }
  858. }
  859. function setToAllOrgName()
  860. {
  861. var toAllOrgID=$('#ToAllOrgID').val();
  862. if(toAllOrgID!='')
  863. {
  864. var toAllOrgName=$("#ToAllOrgID").find("option:selected").text();
  865. $("#ToAllOrgName").val(toAllOrgName);
  866. }
  867. else
  868. {
  869. $("#ToAllOrgName").val("");  
  870. }
  871. }
  872. function repeatClose()
  873. {
  874. $('#repeatModal').modal('hide');
  875. }
  876. //设置查询条件
  877. function setQueryType()
  878. {
  879. var policyType=$("input[name='PolicyType']:checked").val();
  880. if(policyType=="车险")
  881. {
  882. $("#QueryType").empty();  
  883. $("#QueryType").append("<option value=''>请选择</option>");
  884. $("#QueryType").append("<option value='车牌号码'>车牌号码</option>");
  885. $("#QueryType").append("<option value='保单号'>保单号</option>");
  886. $("#QueryType").append("<option value='车架号码'>车架号码</option>");
  887. $("#QueryType").append("<option value='发动机号'>发动机号</option>");
  888. $("#QueryType").append("<option value='报案号'>报案号</option>");
  889. $("#QueryType").append("<option value='事故号'>事故号</option>");
  890. }
  891. else
  892. {
  893. $("#QueryType").empty();  
  894. $("#QueryType").append("<option value=''>请选择</option>");
  895. }
  896. }
  897. //设置查询按钮
  898. function setQueryButton()
  899. {
  900. var queryType=$("#QueryType").val();
  901. if(queryType=="")
  902. {
  903. $("#QueryCompactButton").attr("disabled",'disabled');
  904. $("#QueryPaymentButton").attr("disabled",'disabled');
  905. }
  906. if(queryType=="保单号")
  907. {
  908. $("#QueryCompactButton").removeAttr('disabled');
  909. $("#QueryPaymentButton").removeAttr('disabled');
  910. }
  911. if(queryType=="车牌号码")
  912. {
  913. $("#QueryCompactButton").removeAttr('disabled');
  914. $("#QueryPaymentButton").removeAttr('disabled');
  915. }
  916. if(queryType=="车架号码")
  917. {
  918. $("#QueryCompactButton").removeAttr('disabled');
  919. $("#QueryPaymentButton").attr("disabled",'disabled');
  920. }
  921. if(queryType=="发动机号")
  922. {
  923. $("#QueryCompactButton").removeAttr('disabled');
  924. $("#QueryPaymentButton").removeAttr('disabled');
  925. }
  926. if(queryType=="报案号")
  927. {
  928. $("#QueryCompactButton").attr("disabled",'disabled');
  929. $("#QueryPaymentButton").removeAttr('disabled');
  930. }
  931. if(queryType=="事故号")
  932. {
  933. $("#QueryCompactButton").attr("disabled",'disabled');
  934. $("#QueryPaymentButton").removeAttr('disabled');
  935. }
  936. }
  937. //查询产品列表
  938. function queryUnit()
  939. {
  940. var strQueryCardType="0";
  941. var strQueryIDCard=$("#QueryIDCard").val();
  942. if(strQueryIDCard!=""&&strQueryCardType!="")
  943. {
  944. var strCryptoKey="ZGIyMTM5NTYxYzlmZTA2OA==";
  945. var key = CryptoJS.enc.Utf8.parse(strCryptoKey);
  946. var strUTF8QueryIDCard = CryptoJS.enc.Utf8.parse(strQueryIDCard);
  947. var encQueryIDCard = CryptoJS.AES.encrypt(strUTF8QueryIDCard, key, {mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7});
  948. var strEncQueryIDCard1 = encQueryIDCard.toString();
  949. var strEncQueryIDCard=encodeURIComponent(strEncQueryIDCard1);
  950. //测试地址
  951. //fullOpen("http://10.19.16.180:80/equerying/manager.do?method=adminIndex&identitytype=100&fundacco="+strEncQueryIDCard+"&certificatetype="+strQueryCardType);
  952. //生产地址
  953. fullOpen("http://10.20.122.71:80/equerying/manager.do?method=adminIndex&identitytype=100&fundacco="+strEncQueryIDCard+"&certificatetype="+strQueryCardType);
  954. }
  955. else
  956. {
  957.   layer.alert("证件号码不能为空!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  958. }
  959. }
  960. function queryCompactBasic()
  961. {
  962. var strQueryCardType="0";
  963. var strQueryIDCard=$("#QueryIDCard").val();
  964. if(strQueryIDCard!=""&&strQueryCardType!="")
  965. {
  966. $('#form1').attr('action','${ctx}/myconsole/complaint/interface/queryProductBasic');
  967. $('#form1').ajaxSubmit(setCompactList);
  968. }
  969. else
  970. {
  971.   layer.alert("证件号码不能为空!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  972. }
  973. }
  974. //回写产品列表数据
  975. var productList=null;
  976. function setCompactList(data)
  977. {
  978. var compactJson = JSON.parse(data);
  979. console.log(compactJson);
  980. var flag=compactJson.flag;
  981. productList=null;
  982. productList=compactJson.productList;
  983. if(flag)
  984. {
  985. $("#CompactModal_Table").find("tr:not(:first)").remove();
  986. for(var i=0;i<compactJson.productList.length;i++)
  987. {
  988. var compact=compactJson.productList[i];
  989. var strKeyID=compact.keyid;
  990. var strChannelName=compact.channelname;
  991. var strProductName=compact.productname;
  992. var strProductShare=compact.productshare;
  993. $("#CompactModal_Table").append("<tr><td class='text-center'><input type='checkbox' name='PolicySelectFlag' value='"+strKeyID+"' ></td><td class='text-center'>"+strChannelName+"</td><td class='text-center'>"+strProductName+"</td><td>"+strProductShare+"</td></tr>");
  994. }
  995. $('#CompactModal').modal({
  996.  backdrop: 'static',
  997.  keyboard: false
  998. })
  999. }
  1000. else
  1001. {
  1002. layer.alert("没有查询到产品信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1003. }
  1004. }
  1005. function okCompact()
  1006. {
  1007. var obj=$("input[name='PolicySelectFlag']");
  1008. var strSelectedKeyID="";
  1009. for(k in obj)
  1010. {
  1011. if(obj[k].checked)
  1012. {
  1013. strSelectedKeyID=strSelectedKeyID+obj[k].value+",";
  1014. }
  1015. }
  1016. if(strSelectedKeyID=='')
  1017. {
  1018. layer.alert("请选择至少一个产品!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1019. }
  1020. else
  1021. {
  1022. $('#CompactModal').modal('hide');
  1023. for(var i=0;i<productList.length;i++)
  1024. {
  1025. var compact=productList[i];
  1026. var strKeyID=compact.keyid;
  1027. if(strSelectedKeyID.indexOf(strKeyID)!=-1)
  1028. {
  1029. var strChannelID=compact.channelid;
  1030. var strChannelName=compact.channelname;
  1031. var strProductID=compact.productid;
  1032. var strProductName=compact.productname;
  1033. var strProductShare=compact.productshare;
  1034. var strCompanyName=compact.companyname;
  1035. var strAccountBalance=compact.accountbalance;
  1036. var strAccountState=compact.accountstate;
  1037. var strBuyList=compact.buylist;
  1038. var iProductNumber=parseInt($("#ProductNumber").val());
  1039. var iProductFlagNumber=parseInt($("#ProductFlagNumber").val());
  1040. iProductNumber=iProductNumber+1;
  1041. iProductFlagNumber=iProductFlagNumber+1
  1042. var content="<div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_0>"+
  1043. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1044. " <label class='control-label' for='product"+iProductFlagNumber+"Channel'>渠道</label>"+
  1045. " </div>"+
  1046. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1047. " <input type='text' class='form-control' value='"+strChannelName+"' id='product"+iProductFlagNumber+"ChannelName' name='product.ChannelName' maxlength='40' vmode='' vdisp='渠道' vtype='string' readonly > "+
  1048. " <input type='hidden' value='"+strChannelID+"' id='product"+iProductFlagNumber+"ChannelID' name='product.ChannelID' >"+
  1049. " </div> "+
  1050. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1051. " <label class='control-label' for='product"+iProductFlagNumber+"ProductName'>名称</label>"+
  1052. " </div>"+
  1053. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1054. " <input type='text' class='form-control' value='"+strProductName+"' id='product"+iProductFlagNumber+"ProductName' name='product.ProductName' maxlength='40' vmode='' vdisp='名称' vtype='string' readonly >"+
  1055. " <input type='hidden' value='"+strProductID+"' id='product"+iProductFlagNumber+"ProductID' name='product.ProductID' >"+
  1056. " </div> "+
  1057. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1058. " <label class='control-label' for='product"+iProductFlagNumber+"ProductShare'>产品持有份额/金额</label>"+
  1059. " </div>"+
  1060. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1061. " <div class='input-group'>"+
  1062. " <input type='text' class='form-control' onBlur=countShare() value='"+strProductShare+"' id='product"+iProductFlagNumber+"ProductShare' name='product.ProductShare' vmode='' vdisp='产品份额' vtype='string' readonly >"+
  1063. " <div class='input-group-btn'>"+
  1064. " <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false' id=product"+iProductFlagNumber+"ShareUnitShow>份 <span class='caret'></span></button>"+
  1065. " <ul class='dropdown-menu dropdown-menu-right'>"+
  1066. " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','份')>份</a></li>"+
  1067. " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','元')>元</a></li>"+
  1068. " </ul>"+
  1069. " <input type='hidden' id='product"+iProductFlagNumber+"ShareUnit' name='product.ShareUnit' value='份'>"+
  1070. " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteProduct('product"+iProductFlagNumber+"')>"+
  1071. " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
  1072. " </button> "+
  1073. " </div>"+
  1074. " </div>"+
  1075. " </div> "+
  1076. " </div> "+
  1077. " <div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_1>"+
  1078. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1079. " <label class='control-label' for='product"+iProductFlagNumber+"CompanyName'>企业名称</label>"+
  1080. " </div>"+
  1081. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1082. " <input type='text' class='form-control' value='"+strCompanyName+"' id='product"+iProductFlagNumber+"CompanyName' name='product.CompanyName' maxlength='80' vmode='' vdisp='企业名称' vtype='string' readonly >"+
  1083. " </div> "+
  1084. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1085. " <label class='control-label' for='product"+iProductFlagNumber+"AccountBalance'>个人账户余额</label>"+
  1086. " </div>"+
  1087. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1088. " <input type='text' class='form-control' value='"+strAccountBalance+"' id='product"+iProductFlagNumber+"AccountBalance' name='product.AccountBalance' maxlength='18' vmode='' vdisp='个人账户余额' vtype='float' readonly >"+
  1089. " </div> "+
  1090. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1091. " <label class='control-label' for='product"+iProductFlagNumber+"AccountState'>个人账户状态</label>"+
  1092. " </div>"+
  1093. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1094. " <input type='text' class='form-control' value='"+strAccountState+"' id='product"+iProductFlagNumber+"AccountState' name='product.AccountState' maxlength='20' vmode='' vdisp='个人账户状态' vtype='string' readonly >"+
  1095. " </div> "+
  1096. " </div> ";
  1097. $("#ProductNumber").val(iProductNumber);
  1098. $("#ProductFlagNumber").val(iProductFlagNumber);
  1099. $("#ProductObj").append(content);
  1100. }
  1101. }
  1102. countShare();
  1103. }
  1104. }
  1105. function setCollapseIcon(collapseIcon)
  1106. {
  1107. var curCollapseIconClass=$("#"+collapseIcon).attr("class");
  1108. if(curCollapseIconClass=="glyphicon glyphicon-menu-up")
  1109. {
  1110. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-down");
  1111. }
  1112. else
  1113. {
  1114. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-up");
  1115. }
  1116. }
  1117. //查看 2017-07-19
  1118. function seeRepeatData(appealid){
  1119. fullOpen("${ctx}/myconsole/complaint/register/seeRepeatData?appealid="+appealid);
  1120. }
  1121. //设置客户最后要求时间
  1122. function setAskEndTime()
  1123. {
  1124. var appealDate=$("#AppealDate").val();
  1125. var askTimeBlockID=$('#AskTimeBlockID').val();
  1126. var limitHours=parseInt(askTimeBlockID);
  1127. if(askTimeBlockID!='')
  1128. {
  1129. var nameValue=$("#AskTimeBlockID").find("option:selected").text();
  1130. $("#AskTimeBlockName").val(nameValue);
  1131. }
  1132. else
  1133. {
  1134. $("#AskTimeBlockName").val("");  
  1135. }
  1136. var limitDays=parseInt(limitHours/24);
  1137. var initLimitDays=limitDays;
  1138. var limitDaysType=$("#LimitDaysType").val();
  1139. if(limitDaysType=="工作日")
  1140. {
  1141. var mydate = new Date(appealDate+":01");
  1142. var week=parseInt(mydate.getDay());
  1143. var iSat=0;
  1144. if(week==6)
  1145. {
  1146. week=0;
  1147. iSat=1;
  1148. }
  1149. var iCountDate=parseInt(limitDays+week);
  1150. if(iCountDate>5&&iCountDate<=10)
  1151. {
  1152. limitDays=limitDays+2;
  1153. }
  1154. if(iCountDate>10&&iCountDate<=15)
  1155. {
  1156. limitDays=limitDays+4;
  1157. }
  1158. if(iCountDate>15&&iCountDate<=20)
  1159. {
  1160. limitDays=limitDays+6;
  1161. }
  1162. if(iCountDate>20&&iCountDate<=25)
  1163. {
  1164. limitDays=limitDays+8;
  1165. }
  1166. if(iCountDate>25&&iCountDate<=30)
  1167. {
  1168. limitDays=limitDays+10;
  1169. }
  1170. limitDays=limitDays+iSat;
  1171. }
  1172. var newLimitDays=limitDays-initLimitDays;
  1173. limitHours=parseInt(limitHours+newLimitDays*24);
  1174. var nd = addNHours(appealDate+":01",limitHours);
  1175. var askEndTime = nd.format('yyyy-MM-dd hh:mm');
  1176. if(askTimeBlockID=="0.5")
  1177. {
  1178. var nd1 = addNMinute(askEndTime+":01",30);
  1179. askEndTime = nd1.format('yyyy-MM-dd hh:mm');
  1180. }
  1181. if(askTimeBlockID!=''&&askTimeBlockID!='0')
  1182. {
  1183. $("#AskEndTime").val(askEndTime);
  1184. }
  1185. }
  1186. //设置最后办理时限
  1187. function setLimitEndDate()
  1188. {
  1189. var curDate=$("#AppealDate").val();
  1190. var limitDays=parseInt($("#LimitDays").val())-1;
  1191. var limitDaysType=$("#LimitDaysType").val();
  1192. if(limitDaysType=="工作日")
  1193. {
  1194. var mydate = new Date(curDate);
  1195. var week=parseInt(mydate.getDay());
  1196. var iSat=0;
  1197. if(week==6)
  1198. {
  1199. week=0;
  1200. iSat=1;
  1201. }
  1202. var iCountDate=parseInt(limitDays+week);
  1203. if(iCountDate>5&&iCountDate<=10)
  1204. {
  1205. limitDays=limitDays+2;
  1206. }
  1207. if(iCountDate>10&&iCountDate<=15)
  1208. {
  1209. limitDays=limitDays+4;
  1210. }
  1211. if(iCountDate>15&&iCountDate<=20)
  1212. {
  1213. limitDays=limitDays+6;
  1214. }
  1215. if(iCountDate>20&&iCountDate<=25)
  1216. {
  1217. limitDays=limitDays+8;
  1218. }
  1219. if(iCountDate>25&&iCountDate<=30)
  1220. {
  1221. limitDays=limitDays+10;
  1222. }
  1223. limitDays=limitDays+iSat;
  1224. }
  1225. var nd = addNDays(curDate,limitDays);
  1226. var limitEndDate = nd.format('yyyy-MM-dd');
  1227. if($("#LimitDays").val()!='')
  1228. {
  1229. $("#LimitEndDate").val(limitEndDate);
  1230. }
  1231. }
  1232. function setEndDate15()
  1233. {
  1234. var curDate=$("#AppealDate").val();
  1235. var limitDays=14;
  1236. var nd = addNDays(curDate,limitDays);
  1237. var limitEndDate = nd.format('yyyy-MM-dd');
  1238. $("#SupEndDate15").val(limitEndDate);
  1239. }
  1240. Date.prototype.format =function(format)
  1241. {
  1242.     var o = {
  1243.         "M+" : this.getMonth()+1, //month
  1244.         "d+" : this.getDate(), //day
  1245.         "h+" : this.getHours(), //hour
  1246.         "m+" : this.getMinutes(), //minute
  1247.         "s+" : this.getSeconds(), //second
  1248.         "q+" : Math.floor((this.getMonth()+3)/3), //quarter
  1249.         "S" : this.getMilliseconds() //millisecond
  1250.     }
  1251.     if(/(y+)/.test(format)){ 
  1252.         format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4- RegExp.$1.length));
  1253.     }
  1254.     for(var k in o){
  1255.         if(new RegExp("("+ k +")").test(format)){
  1256.             format = format.replace(RegExp.$1,RegExp.$1.length==1? o[k] :("00"+ o[k]).substr((""+o[k]).length));
  1257.         }
  1258.     }
  1259.     return format;
  1260. }
  1261.  
  1262. var addNDays=function(date,n){
  1263.     var d = new Date(Date.parse(date.replace(/-/g,"/")));  
  1264.     var time=d.getTime();
  1265.     var newTime=time+n*24*60*60*1000;
  1266.     return new Date(newTime);
  1267. };
  1268. var addNHours=function(date,n){
  1269.     var d = new Date(Date.parse(date.replace(/-/g,"/")));  
  1270.     var time=d.getTime();
  1271.     var newTime=time+n*60*60*1000;
  1272.     return new Date(newTime);
  1273. };
  1274. var addNMinute=function(date,n){
  1275.     var d = new Date(Date.parse(date.replace(/-/g,"/")));  
  1276.     var time=d.getTime();
  1277.     var newTime=time+n*60*1000;
  1278.     return new Date(newTime);
  1279. };
  1280. function countShare()
  1281. {
  1282. var iProductNumber=parseInt($("#ProductNumber").val());
  1283. if(iProductNumber>1)
  1284. {
  1285. var objShareUnit=$("input[name='product.ShareUnit']");
  1286. var objProductShare=$("input[name='product.ProductShare']");
  1287. var fInvolvedCopies=0.0;
  1288. var fInvolvedMoney=0.0;
  1289. for(var k=0;k<iProductNumber;k++)
  1290. {
  1291. var strProductShare = objProductShare[k].value;
  1292. if(strProductShare=="")
  1293. {
  1294. strProductShare="0";
  1295. }
  1296. if(objShareUnit[k].value=='份')
  1297. {
  1298. fInvolvedCopies=fInvolvedCopies+parseFloat(strProductShare);
  1299. }
  1300. else
  1301. {
  1302. fInvolvedMoney=fInvolvedMoney+parseFloat(strProductShare);
  1303. }
  1304. }
  1305. fInvolvedCopies=fInvolvedCopies.toFixed(4);
  1306. fInvolvedMoney=fInvolvedMoney.toFixed(2);
  1307. $("#InvolvedCopies").val(fInvolvedCopies);
  1308. $("#InvolvedMoney").val(fInvolvedMoney);
  1309. }
  1310. else
  1311. {
  1312. var strProductShare=$("#product1ProductShare").val();
  1313. var strShareUnit=$("#product1ShareUnit").val();
  1314. if(strShareUnit=='份')
  1315. {
  1316. $("#InvolvedCopies").val(strProductShare);
  1317. $("#InvolvedMoney").val("");
  1318. }
  1319. else
  1320. {
  1321. $("#InvolvedMoney").val(strProductShare);
  1322. $("#InvolvedCopies").val("");
  1323. }
  1324. }
  1325. }
  1326. function addProduct()
  1327. {
  1328. var iProductNumber=parseInt($("#ProductNumber").val());
  1329. var iProductFlagNumber=parseInt($("#ProductFlagNumber").val());
  1330. if(iProductNumber>=100)
  1331. {
  1332. layer.alert("最多只能设置100个产品信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1333. }
  1334. else
  1335. {
  1336. iProductNumber=iProductNumber+1;
  1337. iProductFlagNumber=iProductFlagNumber+1
  1338. var content="<div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_0>"+
  1339. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1340. " <label class='control-label' for='product"+iProductFlagNumber+"Channel'>渠道</label>"+
  1341. " </div>"+
  1342. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1343. " <select id='product"+iProductFlagNumber+"ChannelID' name='product.ChannelID' onChange=setProductID('product"+iProductFlagNumber+"') class='form-control' vmode='' vdisp='渠道' vtype='string'>"+
  1344. " <option value=''>请选择</option>"+
  1345. " ${dic_productnameForID!''}"+
  1346. " </select> "+
  1347. " <input type='hidden' id='product"+iProductFlagNumber+"ChannelName' name='product.ChannelName' >"+
  1348. " </div> "+
  1349. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1350. " <label class='control-label' for='product"+iProductFlagNumber+"ProductName'>名称</label>"+
  1351. " </div>"+
  1352. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1353. " <select id='product"+iProductFlagNumber+"ProductID' name='product.ProductID' onChange=setProductName('product"+iProductFlagNumber+"') class='form-control' vmode='' vdisp='产品名称' vtype='string'>"+
  1354. " <option value=''>请选择</option>"+
  1355. " </select>"+
  1356. " <input type='hidden' id='product"+iProductFlagNumber+"ProductName' name='product.ProductName' >"+
  1357. " </div> "+
  1358. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1359. " <label class='control-label' for='product"+iProductFlagNumber+"ProductShare'>份额/金额</label>"+
  1360. " </div>"+
  1361. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1362. " <div class='input-group'>"+
  1363. " <input type='text' class='form-control' onBlur=countShare() id='product"+iProductFlagNumber+"ProductShare' name='product.ProductShare' vmode='' vdisp='产品份额' vtype='string' >"+
  1364. " <div class='input-group-btn'>"+
  1365. " <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false' id=product"+iProductFlagNumber+"ShareUnitShow>份 <span class='caret'></span></button>"+
  1366. " <ul class='dropdown-menu dropdown-menu-right'>"+
  1367. " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','份')>份</a></li>"+
  1368. " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','元')>元</a></li>"+
  1369. " </ul>"+
  1370. " <input type='hidden' id='product"+iProductFlagNumber+"ShareUnit' name='product.ShareUnit' value='份'>"+
  1371. " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteProduct('product"+iProductFlagNumber+"')>"+
  1372. " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
  1373. " </button> "+
  1374. " </div>"+
  1375. " </div>"+
  1376. " </div> "+
  1377. " </div> "+
  1378. " <div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_1>"+
  1379. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1380. " <label class='control-label' for='product"+iProductFlagNumber+"CompanyName'>企业名称</label>"+
  1381. " </div>"+
  1382. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1383. " <input type='text' class='form-control' id='product"+iProductFlagNumber+"CompanyName' name='product.CompanyName' maxlength='80' vmode='' vdisp='企业名称' vtype='string' >"+
  1384. " </div> "+
  1385. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1386. " <label class='control-label' for='product"+iProductFlagNumber+"AccountBalance'>个人账户余额</label>"+
  1387. " </div>"+
  1388. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1389. " <input type='text' class='form-control' id='product"+iProductFlagNumber+"AccountBalance' name='product.AccountBalance' maxlength='18' vmode='' vdisp='个人账户余额' vtype='float' >"+
  1390. " </div> "+
  1391. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1392. " <label class='control-label' for='product"+iProductFlagNumber+"AccountState'>个人账户状态</label>"+
  1393. " </div>"+
  1394. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1395. " <input type='text' class='form-control' id='product"+iProductFlagNumber+"AccountState' name='product.AccountState' maxlength='20' vmode='' vdisp='个人账户状态' vtype='string' >"+
  1396. " </div> "+
  1397. " </div> ";
  1398. $("#ProductNumber").val(iProductNumber);
  1399. $("#ProductFlagNumber").val(iProductFlagNumber);
  1400. $("#ProductObj").append(content);
  1401. }
  1402. }
  1403. function setProductShare(productModel,strType)
  1404. {
  1405. $("#"+productModel+'ShareUnitShow').text(strType);
  1406. $("#"+productModel+'ShareUnit').val(strType);
  1407. if(strType=="元")
  1408. {
  1409. var strProductShare=$("#"+productModel+"ProductShare").val();
  1410. if(strProductShare.indexOf(".")!=-1)
  1411. {
  1412. var iLong=strProductShare.split(".")[1].length;
  1413. if(iLong>2)
  1414. {
  1415. layer.alert("金额最多只能保留两位小数!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1416. }
  1417. }
  1418. }
  1419. if(strType=="份")
  1420. {
  1421. var strProductShare=$("#"+productModel+"ProductShare").val();
  1422. if(strProductShare.indexOf(".")!=-1)
  1423. {
  1424. var iLong=strProductShare.split(".")[1].length;
  1425. if(iLong>4)
  1426. {
  1427. layer.alert("金额最多只能保留四位小数!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1428. }
  1429. }
  1430. }
  1431. countShare();
  1432. }
  1433. function deleteProduct(productFlagNumber)
  1434. {
  1435. var iProductNumber=parseInt($("#ProductNumber").val());
  1436. if(iProductNumber>=100)
  1437. {
  1438. iProductNumber=100;
  1439. }
  1440. iProductNumber=iProductNumber-1;
  1441. $("#ProductNumber").val(iProductNumber);
  1442. $("div").remove("#"+productFlagNumber+"_0");
  1443. $("div").remove("#"+productFlagNumber+"_1");
  1444. }
  1445. function addRedemption()
  1446. {
  1447. var iProductNumber=parseInt($("#RedemptionNumber").val());
  1448. if(iProductNumber>=10)
  1449. {
  1450. layer.alert("最多只能设置10个产品赎回信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1451. }
  1452. else
  1453. {
  1454. var content="<div class='row' style='padding:5px' id=redemption"+iProductNumber+">"+
  1455. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1456. " <label class='control-label' for='redemption"+iProductNumber+"Channel'>渠道</label>"+
  1457. " </div>"+
  1458. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1459. " <select id='redemption"+iProductNumber+"ChannelID' name='redemption.ChannelID' onChange=setProductID('redemption"+iProductNumber+"') class='form-control' vmode='' vdisp='渠道' vtype='string'>"+
  1460. " <option value=''>请选择</option>"+
  1461. " ${dic_productnameForID!''}"+
  1462. " </select> "+
  1463. " <input type='hidden' id='redemption"+iProductNumber+"ChannelName' name='redemption.ChannelName' >"+
  1464. " </div> "+
  1465. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1466. " <label class='control-label' for='redemption"+iProductNumber+"ProductName'>产品名称</label>"+
  1467. " </div>"+
  1468. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1469. " <select id='redemption"+iProductNumber+"ProductID' name='redemption.ProductID' onChange=setProductName('redemption"+iProductNumber+"') class='form-control' vmode='' vdisp='产品名称' vtype='string'>"+
  1470. " <option value=''>请选择</option>"+
  1471. " </select>"+
  1472. " <input type='hidden' id='redemption"+iProductNumber+"ProductName' name='redemption.ProductName' >"+
  1473. " </div> "+
  1474. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1475. " <label class='control-label' for='redemption"+iProductNumber+"ArrivalAmount'>到账金额</label>"+
  1476. " </div>"+
  1477. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1478. " <div class='input-group'>"+
  1479. " <input type='text' class='form-control' id='redemption"+iProductNumber+"ArrivalAmount' name='redemption.ArrivalAmount' vmode='' vdisp='产品份额' vtype='string' >"+
  1480. " <div class='input-group-btn'>"+
  1481. " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteRedemption()>"+
  1482. " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
  1483. " </button> "+
  1484. " </div>"+
  1485. " </div>"+
  1486. " </div> "+
  1487. " </div>";
  1488. iProductNumber=iProductNumber+1;
  1489. $("#RedemptionNumber").val(iProductNumber);
  1490. $("#RedemptionObj").append(content);
  1491. }
  1492. }
  1493. function deleteRedemption()
  1494. {
  1495. var iProductNumber=parseInt($("#RedemptionNumber").val());
  1496. if(iProductNumber>=10)
  1497. {
  1498. iProductNumber=10;
  1499. }
  1500. iProductNumber=iProductNumber-1;
  1501. $("div").remove("#redemption"+iProductNumber);
  1502. $("#RedemptionNumber").val(iProductNumber);
  1503. }
  1504. function addRespondent()
  1505. {
  1506. var respondentNumber=parseInt($("#RespondentNumber").val());
  1507. if(respondentNumber>=5)
  1508. {
  1509. layer.alert("最多只能设置5个被诉人信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  1510. }
  1511. else
  1512. {
  1513. var content="<div class='row' style='padding:5px' id=respondent"+respondentNumber+"_1>"+
  1514. "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
  1515. " <label class='control-label' for='FilialeID'>次被诉公司</label>"+
  1516. "</div>"+
  1517. "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
  1518. " <select id='respondent"+respondentNumber+"FilialeID' name='respondent"+respondentNumber+".FilialeID' onChange=setBusinessHallID('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='次被诉公司' vtype='string'>"+
  1519. " <option value=''>请选择</option>"+
  1520. " ${filialeID!''} "+
  1521. " </select> "+
  1522. "</div> "+
  1523. "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
  1524. "<label class='control-label' for='BusinessHallID'>被诉部门</label>"+
  1525. "</div>"+
  1526. "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
  1527. "<select id='respondent"+respondentNumber+"BusinessHallID' name='respondent"+respondentNumber+".BusinessHallID' onChange=setBusinessHallName('respondent"+respondentNumber+"') class='form-control' vmode='' vdisp='被诉部门' vtype='string'>"+
  1528. " <option value='''>请选择</option> "+
  1529. " </select> "+
  1530. "</div>"+
  1531. "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
  1532. " <label class='control-label' for='RespondentType'>被投诉类型</label>"+
  1533. "</div>"+
  1534. "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
  1535. " <select id='respondent"+respondentNumber+"RespondentType' name='respondent"+respondentNumber+".RespondentType' onChange=setBusinessHallName('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='被投诉类型' vtype='string'>"+
  1536. " <option value='''>请选择</option> ${dic_respondenttype!''}"+
  1537. " </select> "+
  1538. "</div> "+
  1539. " </div>"+
  1540. "<div class='row' style='padding:5px' id=respondent"+respondentNumber+"_2 >"+
  1541. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
  1542. " <label class='control-label' for='respondent"+respondentNumber+"ProvinceID'>归属地省</label>"+
  1543. " </div>"+
  1544. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
  1545. " <select id='respondent"+respondentNumber+"ProvinceID' name='respondent"+respondentNumber+".ProvinceID' onChange=setAreaID('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='归属地省' vtype='number'>"+
  1546. " <option value=''>请选择</option>"+
  1547. " ${provinceID!''} "+
  1548. " </select> "+
  1549. " </div> "+
  1550. " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
  1551. " <label class='control-label' for='respondent"+respondentNumber+"AreaID'>地市</label>"+
  1552. " </div>"+
  1553. " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
  1554. " <div class='input-group'>"+
  1555. " <select id='respondent"+respondentNumber+"AreaID' name='respondent"+respondentNumber+".AreaID' onChange=setAreaName('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='地市' vtype='number' >"+
  1556. " <option value=''>请选择</option>"+
  1557. " </select> "+
  1558. " <div class='input-group-btn'>"+
  1559. " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteRespondent()>"+
  1560. " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
  1561. " </button> "+
  1562. " </div>"+
  1563. " </div>"+
  1564. " </div> "+
  1565. " </div>";
  1566. respondentNumber=respondentNumber+1;
  1567. $("#RespondentNumber").val(respondentNumber);
  1568. $("#ComplainPersonObj").append(content);
  1569. }
  1570. }
  1571. function deleteRespondent()
  1572. {
  1573. var respondentNumber=parseInt($("#RespondentNumber").val());
  1574. if(respondentNumber>=6)
  1575. {
  1576. respondentNumber=5;
  1577. }
  1578. respondentNumber=respondentNumber-1;
  1579. var resObj='respondent'+respondentNumber
  1580. $("div").remove("#"+resObj+"_1");
  1581. $("div").remove("#"+resObj+"_2");
  1582. $("#RespondentNumber").val(respondentNumber);
  1583. }
  1584. function setAppealType()
  1585. {
  1586. var appealType=$("#AppealType").val();
  1587. if(appealType=='消费投诉')
  1588. {
  1589. $("#Complain1").show();
  1590. $("#Complain2").show();
  1591. $("#Complain3").show();
  1592. $("#ReasonID1").attr("vmode","not null");
  1593. if($("#ComplaintTypeID1").val()=="001")
  1594. {
  1595. $("#LimitDays").val("5");
  1596. }
  1597. else
  1598. {
  1599. $("#LimitDays").val("3");
  1600. }
  1601. $("#LimitDays").attr("readOnly","true");
  1602. $("#LimitEndDate").attr("readOnly","true");
  1603. setLimitEndDate();
  1604. $("#ComplaintTypeID1").val("002");
  1605. }
  1606. else
  1607. {
  1608. $("#Complain1").hide();
  1609. $("#Complain2").hide();
  1610. $("#Complain3").hide();
  1611. $("#ReasonID1").attr("vmode","");
  1612. $("#LimitDays").val("0");
  1613. $("#LimitEndDate").val("");
  1614. $("#LimitDays").removeAttr("readOnly");
  1615. $("#LimitEndDate").removeAttr("readOnly");
  1616. $("#ComplaintTypeID1").val("");
  1617. }
  1618. if(appealType=='异议信息')
  1619. {
  1620. $("#LimitDays").val("5");
  1621. $("#LimitDays").attr("readOnly","true");
  1622. $("#LimitEndDate").attr("readOnly","true");
  1623. setLimitEndDate();
  1624. }
  1625. if(appealType=='不满抱怨')
  1626. {
  1627. $("#LimitDays").val("5");
  1628. $("#LimitDays").attr("readOnly","true");
  1629. $("#LimitEndDate").attr("readOnly","true");
  1630. setLimitEndDate();
  1631. }
  1632. }
  1633. function setTransactType()
  1634. {
  1635. var transactType=$("#TransactType").val();
  1636. if(transactType=='')
  1637. {
  1638. $("#SubmitButton").attr("disabled",'disabled');
  1639. $("#ToOrgInfo").hide();
  1640. $("#CopyToOrgInfo").hide();
  1641. $("#ToOrgAndJob").attr("vmode","");
  1642. }
  1643. if(transactType=='转办处理')
  1644. {
  1645. $('#transactAppealState').val("办理");
  1646. $("#appealDoState").val("办理");
  1647. $("#transactDoState").val("已办理");
  1648. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/getAutoRule');
  1649. $('#form1').ajaxSubmit(setAutoRule);
  1650. }
  1651. }
  1652. function setAutoRule(data)
  1653. {
  1654. var ruleJson = JSON.parse(data);
  1655. var flag=ruleJson.flag;
  1656. if(flag)
  1657. {
  1658. var jobName=$('#ToJobName').val();
  1659. $('#ToOrgAndJob').val(ruleJson.Job_OrgParentName+"-"+ruleJson.Job_OrgName+"-"+ruleJson.Job_Name);
  1660. $('#ToOrgID').val(ruleJson.Job_OrgID);
  1661. $('#ToOrgName').val(ruleJson.Job_OrgName);
  1662. $('#ToJobID').val(ruleJson.Job_ID);
  1663. $('#ToJobName').val(ruleJson.Job_Name);
  1664. if(ruleJson.Job_OrgParentOrgType=="中支公司")
  1665. {
  1666. $('#ToCentreOrgID').val(ruleJson.Job_OrgParentID);
  1667. $('#ToCentreOrgName').val(ruleJson.Job_OrgParentName);
  1668. }
  1669. if(ruleJson.Job_OrgParentOrgType=="分公司")
  1670. {
  1671. $('#ToFilialeOrgID').val(ruleJson.Job_OrgParentID);
  1672. $('#ToFilialeOrgName').val(ruleJson.Job_OrgParentName);
  1673. }
  1674. }
  1675. $("#SubmitButton").removeAttr('disabled');
  1676. $("#ToOrgInfo").show();
  1677. $("#CopyToOrgInfo").show();
  1678. $("#ToOrgAndJob").attr("vmode","not null");
  1679. }
  1680. //选择异议信息不符原因
  1681. function setNotTally(NotTallyObj)
  1682. {
  1683. if($("#"+NotTallyObj+"Flag").is(":checked"))
  1684. {
  1685. $("#"+NotTallyObj).val("checked");
  1686. }
  1687. else
  1688. {
  1689. $("#"+NotTallyObj).val("flase");
  1690. }
  1691. }
  1692. //设置热词
  1693. function setHotWord(HotWordFlag)
  1694. {
  1695. var hotWord=$("#HotWord").val();
  1696. if($("#"+HotWordFlag).is(":checked"))
  1697. {
  1698. hotWord=hotWord+HotWordFlag+","
  1699. $("#HotWord").val(hotWord);
  1700. }
  1701. else
  1702. {
  1703. var re = new RegExp(HotWordFlag+",","g"); //定义正则表达式
  1704. hotWord=hotWord.replace(re, "");
  1705. $("#HotWord").val(hotWord);
  1706. }
  1707. }
  1708. function setOrgAndJob(jobid,jobname,orgid)
  1709. {
  1710. $('#ToJobID').val(jobid);
  1711. $('#ToJobName').val(jobname);
  1712. $('#orgModal').modal('hide');
  1713. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getOrgAndJob?Job_OrgID='+orgid+'&Job_ID='+jobid+'&Job_Name='+jobname);
  1714. $('#form1').ajaxSubmit(setOrgAndJobData);
  1715. }
  1716. function setOrgAndJobData(data)
  1717. {
  1718. var orgAndJobJson = JSON.parse(data);
  1719. var flag=orgAndJobJson.flag;
  1720. if(flag)
  1721. {
  1722. var jobName=$('#ToJobName').val();
  1723. $('#ToOrgAndJob').val(orgAndJobJson.Job_OrgParentName+"-"+orgAndJobJson.Job_OrgName+"-"+jobName);
  1724. $('#ToOrgID').val(orgAndJobJson.Job_OrgID);
  1725. $('#ToOrgName').val(orgAndJobJson.Job_OrgName);
  1726. }
  1727. }
  1728. function setOrg()
  1729. {
  1730. var zTreeObj;
  1731. var zNodes;
  1732. function zTreeChecked(event, treeId, treeNode) {
  1733. setOrgAndJob(treeNode.id,treeNode.name,treeNode.pId);
  1734. };
  1735. //异步获取数据
  1736. function ajaxDataFilter(treeId, parentNode, data) {
  1737. if(data == "") return;
  1738. var zNodes = [];
  1739. var orgN = data.Org;
  1740. orgN.forEach(function(item,index){
  1741. zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
  1742. })
  1743. var jobN = data.Job;
  1744. jobN.forEach(function(item,index){
  1745. zNodes.push({id:item.keyid,pId:item.orgid,name:item.jobname,istype:true,checked:false});
  1746. })
  1747. return zNodes;
  1748. }
  1749. var setting = { //初始化树
  1750. check: {
  1751. enable: true,
  1752. chkboxType: { "Y" : "", "N" : "" },
  1753. autoCheckTrigger: true
  1754. },
  1755. data: {
  1756. simpleData: {
  1757. idKey:"id",
  1758. pIdKey:"pId",
  1759. enable:true,
  1760. rootPId:"0"
  1761. }
  1762. },
  1763. callback: {
  1764. onCheck: zTreeChecked
  1765. },
  1766. async:{
  1767. enable:true,
  1768. url:"${ctx}/myconsole/complaint/register/getOrgAndJobTree",
  1769. autoParam:["id", "name"] ,
  1770. dataFilter: ajaxDataFilter
  1771. }
  1772. };
  1773. //初始化获取数据
  1774. $.ajax({
  1775. url : "${ctx}/myconsole/complaint/register/getOrgAndJobTree?name=init",
  1776. type : "post",
  1777. dataType : "json",
  1778. success : function(data) {
  1779. if(data == "") return;
  1780. var zNodes = [];
  1781. var orgN = data.Org;
  1782. if(orgN!=null)
  1783. {
  1784. orgN.forEach(function(item,index){
  1785. zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
  1786. })
  1787. }
  1788. var jobN = data.Job;
  1789. if(jobN!=null)
  1790. {
  1791. jobN.forEach(function(item,index){
  1792. zNodes.push({id:item.keyid,pId:item.orgid,name:item.jobname,istype:true,checked:false});
  1793. })
  1794. }
  1795. zTreeObj = $.fn.zTree.init($("#UserTree"), setting, zNodes);//初始化树节点时,添加同步获取的数据
  1796. }
  1797. });
  1798. $('#orgModal').modal({
  1799.  backdrop: 'static',
  1800.  keyboard: false
  1801. })
  1802. }
  1803. function setSpecialRedemption()
  1804. {
  1805. if($("#SpecialRedemptionFlag").is(":checked"))
  1806. {
  1807. $("#SpecialRedemptionFlag1").show();
  1808. $("#SpecialRedemptionFlag2").show();
  1809. $("#SpecialRedemptionFlag3").show();
  1810. $("#SpecialRedemption").val("是");
  1811. }
  1812. else
  1813. {
  1814. $("#SpecialRedemptionFlag1").hide();
  1815. $("#SpecialRedemptionFlag2").hide();
  1816. $("#SpecialRedemptionFlag3").hide();
  1817. $("#SpecialRedemption").val("否");
  1818. }
  1819. }
  1820. function setProductID(productModel)
  1821. {
  1822. var strChannelID=$('#'+productModel+"ChannelID").val();
  1823. if(strChannelID!='')
  1824. {
  1825. var strChannelName=$('#'+productModel+"ChannelID").find("option:selected").text();
  1826. $('#'+productModel+"ChannelName").val(strChannelName);
  1827. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getProductIDData?ParentID='+strChannelID);
  1828. $('#form1').ajaxSubmit(setProductIDData);
  1829. $('#ProductModel').val(productModel); 
  1830. }
  1831. else
  1832. {
  1833. $("#"+productModel+"ProductID").empty(); 
  1834. $("#"+productModel+"ChannelName").val(""); 
  1835. }
  1836. }
  1837. //回写产品数据
  1838. function setProductIDData(data)
  1839. {
  1840. var productModel=$('#ProductModel').val(); 
  1841. $("#"+productModel+"ProductID").empty();  
  1842. $("#"+productModel+"ProductID").append("<option value=''>请选择</option>");
  1843. $("#"+productModel+"ProductID").append(data);
  1844. }
  1845. function setProductName(productModel)
  1846. {
  1847. var idData=$("#"+productModel+"ProductID").val();
  1848. if(idData!='')
  1849. {
  1850. var nameData=$("#"+productModel+"ProductID").find("option:selected").text();
  1851. $("#"+productModel+"ProductName").val(nameData);
  1852. }
  1853. else
  1854. {
  1855. $("#"+productModel+"ProductName").val(""); 
  1856. }
  1857. }
  1858. function setQuestionTypeID2()
  1859. {
  1860. var strQuestionTypeID1=$('#QuestionTypeID1').val();
  1861. if(strQuestionTypeID1!='')
  1862. {
  1863. var strQuestionTypeName1=$("#QuestionTypeID1").find("option:selected").text();
  1864. $("#QuestionTypeName1").val(strQuestionTypeName1);
  1865. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getQuestionTypeID2Data?ParentID='+strQuestionTypeID1);
  1866. $('#form1').ajaxSubmit(setQuestionTypeID2Data);
  1867. }
  1868. else
  1869. {
  1870. $("#QuestionTypeID2").empty(); 
  1871. $("#QuestionTypeName1").val("");
  1872. }
  1873. }
  1874. //回写原因二类字典数据
  1875. function setQuestionTypeID2Data(data){
  1876. $("#QuestionTypeID2").empty();  
  1877. $("#QuestionTypeID2").append("<option value=''>请选择</option>");
  1878. $("#QuestionTypeID2").append(data);
  1879. }
  1880. function setQuestionTypeName2()
  1881. {
  1882. var strQuestionTypeID2=$('#QuestionTypeID2').val();
  1883. if(strQuestionTypeID2!='')
  1884. {
  1885. var strQuestionTypeName2=$("#QuestionTypeID2").find("option:selected").text();
  1886. $("#QuestionTypeName2").val(strQuestionTypeName2);
  1887. }
  1888. else
  1889. {
  1890. $("#QuestionTypeName2").val(""); 
  1891. }
  1892. }
  1893. //转办选人
  1894. function setZBOrgUser()
  1895. {
  1896. var zTreeObj;
  1897. var zNodes;
  1898. function zTreeChecked(event, treeId, treeNode) {
  1899. setZBOrgAndUser(treeNode.id,treeNode.name);
  1900. };
  1901. //异步获取数据
  1902. function ajaxDataFilter(treeId, parentNode, data) {
  1903. if(data == "") return;
  1904. var zNodes = [];
  1905. var orgN = data.Org;
  1906. orgN.forEach(function(item,index){
  1907. zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
  1908. })
  1909. var userN = data.User;
  1910. if(userN!=null)
  1911. {
  1912. userN.forEach(function(item,index){
  1913. zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
  1914. })
  1915. }
  1916. return zNodes;
  1917. }
  1918. var setting = { //初始化树
  1919. check: {
  1920. enable: true,
  1921. chkboxType: { "Y" : "", "N" : "" },
  1922. autoCheckTrigger: true
  1923. },
  1924. data: {
  1925. simpleData: {
  1926. idKey:"id",
  1927. pIdKey:"pId",
  1928. enable:true,
  1929. rootPId:"0"
  1930. }
  1931. },
  1932. callback: {
  1933. onCheck: zTreeChecked
  1934. },
  1935. async:{
  1936. enable:true,
  1937. url:"${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree",
  1938. autoParam:["id", "name"] ,
  1939. dataFilter: ajaxDataFilter
  1940. }
  1941. };
  1942. //初始化获取数据
  1943. $.ajax({
  1944. url : "${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree?name=init",
  1945. type : "post",
  1946. dataType : "json",
  1947. success : function(data) {
  1948. if(data == "") return;
  1949. var zNodes = [];
  1950. var orgN = data.Org;
  1951. if(orgN!=null)
  1952. {
  1953. orgN.forEach(function(item,index){
  1954. zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
  1955. })
  1956. }
  1957. var userN = data.User;
  1958. if(userN!=null)
  1959. {
  1960. userN.forEach(function(item,index){
  1961. zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
  1962. })
  1963. }
  1964. zTreeObj = $.fn.zTree.init($("#UserTree"), setting, zNodes);//初始化树节点时,添加同步获取的数据
  1965. }
  1966. });
  1967. $('#orgModal').modal({
  1968.  backdrop: 'static',
  1969.  keyboard: false
  1970. })
  1971. }
  1972. function setZBOrgAndUser(userid,username)
  1973. {
  1974. $('#ToUserID').val(userid);
  1975. $('#ToUserName').val(username);
  1976. $('#ToOrgAndJob').val(username);
  1977. $('#orgModal').modal('hide');
  1978. }
  1979. function setQueryNo()
  1980. {
  1981. var strQueryType=$("#QueryType").val();
  1982. if(strQueryType!="")
  1983. {
  1984. var strTName=$("#TName").val();
  1985. $("#QueryTName").val(strTName)
  1986. var strIDCard=$("#IDCard").val();
  1987. $("#QueryIDCard").val(strIDCard)
  1988. }
  1989. }
  1990. function setSupEndDate15()
  1991. {
  1992. var curDate=$("#SupTransactDate").val();
  1993. var nd = addNDays(curDate,14);
  1994. var limitEndDate = nd.format('yyyy-MM-dd');
  1995. if(curDate!='')
  1996. {
  1997. $("#SupEndDate15").val(limitEndDate);
  1998. }
  1999. }
  2000. //下载附件
  2001. function downFile(filePath,fileName)
  2002. {
  2003. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  2004. }
  2005. //选择抄送人员
  2006. function setSignUser()
  2007. {
  2008. var zTreeObj;
  2009. var zNodes;
  2010. function zTreeChecked(event, treeId, treeNode) {
  2011. var checkUserID = [];
  2012. var checkUserName = [];
  2013. var userArr = zTreeObj.getCheckedNodes(); //获取选中数组集合
  2014. if(userArr.length>0)
  2015. {
  2016. userArr.forEach(function(item,index){
  2017. if(item.istype)
  2018. {
  2019. checkUserID.push(item.id);
  2020. checkUserName.push(item.name);
  2021. }
  2022. })
  2023. }
  2024. setHBOrgAndUser(checkUserID,checkUserName);
  2025. };
  2026. //异步获取数据
  2027. function ajaxDataFilter(treeId, parentNode, data) {
  2028. if(data == "") return;
  2029. var zNodes = [];
  2030. var orgN = data.Org;
  2031. orgN.forEach(function(item,index){
  2032. zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
  2033. })
  2034. var userN = data.User;
  2035. if(userN!=null)
  2036. {
  2037. userN.forEach(function(item,index){
  2038. zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
  2039. })
  2040. }
  2041. return zNodes;
  2042. }
  2043. var setting = { //初始化树
  2044. check: {
  2045. enable: true,
  2046. chkboxType: { "Y" : "", "N" : "" },
  2047. autoCheckTrigger: true
  2048. },
  2049. data: {
  2050. simpleData: {
  2051. idKey:"id",
  2052. pIdKey:"pId",
  2053. enable:true,
  2054. rootPId:"0"
  2055. }
  2056. },
  2057. callback: {
  2058. onCheck: zTreeChecked
  2059. },
  2060. async:{
  2061. enable:true,
  2062. url:"${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree",
  2063. autoParam:["id", "name"] ,
  2064. dataFilter: ajaxDataFilter
  2065. }
  2066. };
  2067. //初始化获取数据
  2068. $.ajax({
  2069. url : "${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree?name=init",
  2070. type : "post",
  2071. dataType : "json",
  2072. success : function(data) {
  2073. if(data == "") return;
  2074. var zNodes = [];
  2075. var orgN = data.Org;
  2076. if(orgN!=null)
  2077. {
  2078. orgN.forEach(function(item,index){
  2079. zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
  2080. })
  2081. }
  2082. var userN = data.User;
  2083. if(userN!=null)
  2084. {
  2085. userN.forEach(function(item,index){
  2086. zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
  2087. })
  2088. }
  2089. zTreeObj = $.fn.zTree.init($("#SignUserTree"), setting, zNodes);//初始化树节点时,添加同步获取的数据
  2090. }
  2091. });
  2092. $('#signOrgModal').modal({
  2093.  backdrop: 'static',
  2094.  keyboard: false
  2095. })
  2096. }
  2097. function setHBOrgAndUser(useridArr,usernameArr)
  2098. {
  2099. $('#CopyToUserID').val(useridArr);
  2100. $('#CopyToUserName').val(usernameArr);
  2101. $('#CopyToUserShow').val(usernameArr);
  2102. }
  2103. function getSignOrgAndJob()
  2104. {
  2105. $('#signOrgModal').modal('hide');
  2106. }
  2107. function synchronizationIDCard()
  2108. {
  2109. var idCard=$("#IDCard").val();
  2110. $("#QueryIDCard").val(idCard);
  2111. }
  2112. //查看信息 2017-07-24
  2113. function seeData(appealid){
  2114. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  2115. }
  2116. </script>
  2117. <title>投诉信息登记</title>
  2118. <meta name="keywords" content="">
  2119. <meta name="description" content="">
  2120. </head>
  2121. <body >
  2122. <form id="form1" method="post" class="form-horizontal" role="form">
  2123. <div style="display: none">
  2124. <input type="hidden" id="SendInterfaceFlag" name="SendInterfaceFlag" value="${SendInterfaceFlag!''}"/>
  2125. <input type="hidden" id="Modal_Main" name="Modal_Main" value="appeal"/>
  2126. <input type="hidden" id="CurDate" name="CurDate" value="${curDate}"/>
  2127. <input type="hidden" id="AppealID" name="AppealID" value="${appealID}"/>
  2128. <input type="hidden" id="Modal_PersonType" name="Modal_PersonType" value=""/>
  2129. <input type="hidden" id="Modal_PersonID" name="Modal_PersonID" value=""/>
  2130. <input type="hidden" id="Modal_AppealID" name="Modal_AppealID" value=""/>
  2131. <input type="hidden" id="Modal_PersonRepeatFlag" name="Modal_PersonRepeatFlag" value="false"/>
  2132. <input type="hidden" id="Modal_LinkTel2" name="Modal_LinkTel2" value=""/>
  2133. <input type="hidden" id="Modal_WechatNo" name="Modal_WechatNo" value=""/>
  2134. <input type="hidden" id="Modal_LinkPerson" name="Modal_LinkPerson" value=""/>
  2135. <input type="hidden" id="Modal_ProvinceID" name="Modal_ProvinceID" value=""/>
  2136. <input type="hidden" id="Modal_ProvinceName" name="Modal_ProvinceName" value=""/>
  2137. <input type="hidden" id="Modal_AreaID" name="Modal_AreaID" value=""/>
  2138. <input type="hidden" id="Modal_AreaName" name="Modal_AreaName" value=""/>
  2139. <input type="hidden" id="Modal_CountyID" name="Modal_CountyID" value=""/>
  2140. <input type="hidden" id="Modal_CountyName" name="Modal_CountyName" value=""/>
  2141. <input type="hidden" id="Modal_Postalcode" name="Modal_Postalcode" value=""/>
  2142. <input type="hidden" id="Modal_EMail" name="Modal_EMail" value=""/>
  2143. <input type="hidden" id="PersonID" name="person.PersonID" value="${person.PersonID!''}"/>
  2144. <input type="hidden" id="respondent.KeyID" name="respondent.KeyID" value="${respondent.KeyID!''}"/>
  2145. <input type="hidden" id="respondent1.KeyID" name="respondent1.KeyID" value="${respondent1.KeyID!''}"/>
  2146. <input type="hidden" id="respondent2.KeyID" name="respondent2.KeyID" value="${respondent2.KeyID!''}"/>
  2147. <input type="hidden" id="respondent3.KeyID" name="respondent3.KeyID" value="${respondent3.KeyID!''}"/>
  2148. <input type="hidden" id="respondent4.KeyID" name="respondent4.KeyID" value="${respondent4.KeyID!''}"/>
  2149. <input type="hidden" id="transact.KeyID" name="transact.KeyID" value="${transact.KeyID!}"/>
  2150. <input type="hidden" id="ProvinceModel" name="ProvinceModel" value=""/>
  2151. <input type="hidden" id="personProvinceName" name="person.ProvinceName" value="${person.ProvinceName!''}"/>
  2152. <input type="hidden" id="personAreaName" name="person.AreaName" value="${person.AreaName!''}"/>
  2153. <input type="hidden" id="personCountyName" name="person.CountyName" value="${person.CountyName!''}"/>
  2154. <input type="hidden" id="appealAppealID" name="appeal.AppealID" value="${appealID}"/>
  2155. <input type="hidden" id="ForeignKeyID" name="appeal.ForeignKeyID" value="${appeal.ForeignKeyID!''}"/>
  2156. <input type="hidden" id="appealDoState" name="appeal.DoState" value="${appeal.DoState!''}"/>
  2157. <input type="hidden" id="RecordDate" name="appeal.RecordDate" value="${curDate}"/>
  2158. <input type="hidden" id="SerialNumber" name="appeal.SerialNumber" value="${appeal.SerialNumber!''}"/>
  2159. <input type="hidden" id="InsceTypeName1" name="appeal.InsceTypeName1" value="${appeal.InsceTypeName1!''}"/>
  2160. <input type="hidden" id="InsceTypeName2" name="appeal.InsceTypeName2" value="${appeal.InsceTypeName2!''}"/>
  2161. <input type="hidden" id="InsceTypeName3" name="appeal.InsceTypeName3" value="${appeal.InsceTypeName3!''}"/>
  2162. <input type="hidden" id=Repcomplaints name="appeal.Repcomplaints" value="${appeal.Repcomplaints!''}"/>
  2163. <input type="hidden" id="RepcomplaintsNum" name="appeal.RepcomplaintsNum" value="${appeal.RepcomplaintsNum!''}"/>
  2164. <input type="hidden" id="EndAppealDate" name="appeal.EndAppealDate" value="${appeal.EndAppealDate!''}"/>
  2165. <input type="hidden" id="ComplaintTypeName1" name="appeal.ComplaintTypeName1" value="${appeal.ComplaintTypeName1!''}"/>
  2166. <input type="hidden" id="ComplaintTypeName2" name="appeal.ComplaintTypeName2" value="${appeal.ComplaintTypeName2!''}"/>
  2167. <input type="hidden" id="ReasonName1" name="appeal.ReasonName1" value="${appeal.ReasonName1!''}"/>
  2168. <input type="hidden" id="ReasonName2" name="appeal.ReasonName2" value="${appeal.ReasonName2!''}"/>
  2169. <input type="hidden" id="ReasonName3" name="appeal.ReasonName3" value="${appeal.ReasonName3!''}"/>
  2170. <input type="hidden" id="AskTypeName1" name="appeal.AskTypeName1" value="${appeal.AskTypeName1!''}"/>
  2171. <input type="hidden" id="AskTypeName2" name="appeal.AskTypeName2" value="${appeal.AskTypeName2!''}"/>
  2172. <input type="hidden" id="AskTypeName3" name="appeal.AskTypeName3" value="${appeal.AskTypeName3!''}"/>
  2173. <input type="hidden" id="AskTimeBlockName" name="appeal.AskTimeBlockName" value="${appeal.AskTimeBlockName!''}"/>
  2174. <input type="hidden" id="UrgeDoTypeName1" name="appeal.UrgeDoTypeName1" value="${appeal.UrgeDoTypeName1!''}"/>
  2175. <input type="hidden" id="UrgeDoTypeName2" name="appeal.UrgeDoTypeName2" value="${appeal.UrgeDoTypeName2!''}"/>
  2176. <input type="hidden" id="NotTallyInfo" name="appeal.NotTallyInfo" value="${appeal.NotTallyInfo!''}"/>
  2177. <input type="hidden" id="NotTallyState" name="appeal.NotTallyState" value="${appeal.NotTallyState!''}"/>
  2178. <input type="hidden" id="NotTallyPay" name="appeal.NotTallyPay" value="${appeal.NotTallyPay!''}"/>
  2179. <input type="hidden" id="NotTallyCorrect" name="appeal.NotTallyCorrect" value="${appeal.NotTallyCorrect!''}"/>
  2180. <input type="hidden" id="NotTallyClaims" name="appeal.NotTallyClaims" value="${appeal.NotTallyClaims!''}"/>
  2181. <input type="hidden" id="NotTallyOther" name="appeal.NotTallyOther" value="${appeal.NotTallyOther!''}"/>
  2182. <input type="hidden" id="LimitDaysType" name="appeal.LimitDaysType" value="${dateType!''}"/>
  2183. <input type="hidden" id="ProductModel" name="ProductModel" value=""/>
  2184. <input type="hidden" id="RespondentModel" name="RespondentModel" value=""/>
  2185. <input type="hidden" id="RespondentNumber" name="appeal.RespondentNumber" value="1"/>
  2186. <input type="hidden" id="respondentFilialeName" name="respondent.FilialeName" value="${respondent.FilialeName!''}"/>
  2187. <input type="hidden" id="respondentCentreCompanyName" name="respondent.CentreCompanyName" value="${respondent.CentreCompanyName!''}"/>
  2188. <input type="hidden" id="respondentBusinessHallName" name="respondent.BusinessHallName" value="${respondent.BusinessHallName!''}"/>
  2189. <input type="hidden" id="respondentProvinceName" name="respondent.ProvinceName" value=""/>
  2190. <input type="hidden" id="respondentAreaName" name="respondent.AreaName" value=""/>
  2191. <input type="hidden" id="respondent1FilialeName" name="respondent1.FilialeName" value=""/>
  2192. <input type="hidden" id="respondent1CentreCompanyName" name="respondent1.CentreCompanyName" value=""/>
  2193. <input type="hidden" id="respondent1BusinessHallName" name="respondent1.BusinessHallName" value=""/>
  2194. <input type="hidden" id="respondent1ProvinceName" name="respondent1.ProvinceName" value=""/>
  2195. <input type="hidden" id="respondent1AreaName" name="respondent1.AreaName" value=""/>
  2196. <input type="hidden" id="respondent2FilialeName" name="respondent2.FilialeName" value=""/>
  2197. <input type="hidden" id="respondent2CentreCompanyName" name="respondent2.CentreCompanyName" value=""/>
  2198. <input type="hidden" id="respondent2BusinessHallName" name="respondent2.BusinessHallName" value=""/>
  2199. <input type="hidden" id="respondent2ProvinceName" name="respondent2.ProvinceName" value=""/>
  2200. <input type="hidden" id="respondent2AreaName" name="respondent2.AreaName" value=""/>
  2201. <input type="hidden" id="respondent3FilialeName" name="respondent3.FilialeName" value=""/>
  2202. <input type="hidden" id="respondent3CentreCompanyName" name="respondent3.CentreCompanyName" value=""/>
  2203. <input type="hidden" id="respondent3BusinessHallName" name="respondent3.BusinessHallName" value=""/>
  2204. <input type="hidden" id="respondent3ProvinceName" name="respondent3.ProvinceName" value=""/>
  2205. <input type="hidden" id="respondent3AreaName" name="respondent3.AreaName" value=""/>
  2206. <input type="hidden" id="respondent4FilialeName" name="respondent4.FilialeName" value=""/>
  2207. <input type="hidden" id="respondent4CentreCompanyName" name="respondent4.CentreCompanyName" value=""/>
  2208. <input type="hidden" id="respondent4BusinessHallName" name="respondent4.BusinessHallName" value=""/>
  2209. <input type="hidden" id="respondent4ProvinceName" name="respondent4.ProvinceName" value=""/>
  2210. <input type="hidden" id="respondent4AreaName" name="respondent4.AreaName" value=""/>
  2211. <input type="hidden" id="transactDoState" name="transact.DoState" value="${transact.DoState!''}"/>
  2212. <input type="hidden" id="TransactOrgID" name="transact.TransactOrgID" value="${user.OrgID}"/>
  2213. <input type="hidden" id="TransactOrgName" name="transact.TransactOrgName" value="${user.OrgName}"/>
  2214. <input type="hidden" id="TransactUserID" name="transact.TransactUserID" value="${user.UserID}"/>
  2215. <input type="hidden" id="TransactUserName" name="transact.TransactUserName" value="${user.UserName}"/>
  2216. <input type="hidden" id="ToFilialeOrgID" name="transact.ToFilialeOrgID" value="${transact.ToFilialeOrgID!''}"/>
  2217. <input type="hidden" id="ToFilialeOrgName" name="transact.ToFilialeOrgName" value="${transact.ToFilialeOrgName!''}"/>
  2218. <input type="hidden" id="ToCentreOrgID" name="transact.ToCentreOrgID" value="${transact.ToCentreOrgID!''}"/>
  2219. <input type="hidden" id="ToCentreOrgName" name="transact.ToCentreOrgName" value="${transact.ToCentreOrgName!''}"/>
  2220. <input type="hidden" id="ToOrgID" name="transact.ToOrgID" value=""/>
  2221. <input type="hidden" id="ToOrgName" name="transact.ToOrgName" value=""/>
  2222. <input type="hidden" id="ToJobID" name="transact.ToJobID" value=""/>
  2223. <input type="hidden" id="ToJobName" name="transact.ToJobName" value=""/>
  2224. <input type="hidden" id="ToUserID" name="transact.ToUserID" value=""/>
  2225. <input type="hidden" id="ToUserName" name="transact.ToUserName" value=""/>
  2226. <input type="hidden" id="CopyToUserID" name="transact.CopyToUserID" value=""/>
  2227. <input type="hidden" id="CopyToUserName" name="transact.CopyToUserName" value=""/>
  2228. <input type="hidden" id="transactLimitEndDate" name="transact.LimitEndDate" value="${transact.LimitEndDate!''}"/>
  2229. <input type="hidden" id="transactAppealState" name="transact.AppealState" value="受理"/>
  2230. <input type="hidden" id="transactNewFlag" name="transact.NewFlag" value="true"/>
  2231. <input type="hidden" id="transactArriveTime" name="transact.ArriveTime" value="${curDateTime}"/>
  2232. <input type="hidden" id="ProductNumber" name="appeal.ProductNumber" value="0"/>
  2233. <input type="hidden" id="ProductFlagNumber" name="ProductFlagNumber" value="0"/>
  2234. <input type="hidden" id="RedemptionNumber" name="appeal.RedemptionNumber" value="1"/>
  2235. <input type="hidden" id="QuestionTypeName1" name="appeal.QuestionTypeName1" value="${appeal.QuestionTypeName1!''}"/>
  2236. <input type="hidden" id="QuestionTypeName2" name="appeal.QuestionTypeName2" value="${appeal.QuestionTypeName2!''}"/>
  2237. </div>
  2238. <div class="container-fluid" style="margin-top:15px;">
  2239. <div class="panel panel-primary">
  2240. <div class="panel-heading">
  2241. <div style="display:inline;" >客户信息 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  2242. <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>
  2243. </div>
  2244. <div id="collapsePerson" class="panel-collapse collapse in">
  2245. <div class="panel-body" style="font-size:14px">
  2246. <div class="row" style="padding:5px" >
  2247. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2248. <label class="control-label" for="TName" id="Label_TName">姓名</label></div>
  2249. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback" >
  2250. <input type="text" class="form-control" onBlur="setLinkPerson()" value="${person.TName!''}" placeholder="" id="TName" name="person.TName" maxlength="40" vmode="not null" vdisp="姓名" vtype="string">
  2251. </div>
  2252. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2253. <label class="control-label" for="TSex">性别</label>
  2254. </div>
  2255. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback" >
  2256. <select id="TSex" name="person.TSex" class="form-control" vmode="not null" vdisp="性别" vtype="chinese">
  2257. <option value="">请选择</option>
  2258. <option value="男">男</option>
  2259. <option value="女">女</option>
  2260. </select>
  2261. <script type="text/javascript">$(function(){$("#TSex").val("${person.TSex!''}");})</script>
  2262. </div>
  2263. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2264. <label class="control-label" for="CardType">证件类型</label></div>
  2265. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
  2266. <select id="CardType" name="person.CardType" onChange=setIDCard() class="form-control" vmode="" vdisp="证件类型" vtype="chinese">
  2267. <option value="">请选择</option>
  2268. <option value='居民身份证'>居民身份证</option>
  2269. <option value='护照'>护照</option>
  2270. <option value='军人证'>军人证</option>
  2271. <option value='其他'>其他</option>
  2272. </select>
  2273. <script type="text/javascript">$(function(){$("#CardType").val("${person.CardType!''}");})</script>
  2274. </div>
  2275. </div>
  2276. <div class="row" style="padding:5px">
  2277. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2278. <label class="control-label" for="IDCard">证件号码</label></div>
  2279. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
  2280. <div class="input-group">
  2281. <input type="text" class="form-control" onBlur="setNavIDCard()" value="${person.IDCard!''}" placeholder="" id="IDCard" name="person.IDCard" vmode="" vdisp="证件号码" vtype="${cardTypeVtype!''}">
  2282. <div class="input-group-btn">
  2283. <button type="button" class="btn btn-default" aria-label="Left Align" onclick="repeatIDCard()" title="根据证件号码判重">
  2284. <span class="glyphicon glyphicon-check" aria-hidden="true"></span>
  2285. </button>
  2286. </div>
  2287. </div>
  2288. </div>
  2289. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2290. <label class="control-label" for="LinkTel1">联系电话1</label></div>
  2291. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2292. <div class="input-group">
  2293. <input type="text" class="form-control" onBlur="telIsMobile('auto')" value="${person.LinkTel1!''}" placeholder="" id="LinkTel1" name="person.LinkTel1" maxlength="20" vmode="not null" vdisp="联系电话1" vtype="phone">
  2294. <div class="input-group-btn">
  2295. <button type="button" class="btn btn-default" aria-label="Left Align" onclick="repeatLinkTel('assign')" title="根据电话号码判重">
  2296. <span class="glyphicon glyphicon-check" aria-hidden="true"></span>
  2297. </button>
  2298. </div>
  2299. </div>
  2300. </div>
  2301. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2302. <label class="control-label" for="Status">客户身份</label>
  2303. </div>
  2304. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
  2305. <select id="Status" name="person.Status" class="form-control" vmode="" vdisp="客户类型" vtype="chinese">
  2306. <option value="">请选择</option>
  2307. ${dic_statusName!''}
  2308. </select>
  2309. <script type="text/javascript">$(function(){$("#Status").val("${person.Status!''}");})</script>
  2310. </div>
  2311. </div>
  2312. <div class="row" style="padding:5px">
  2313. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2314. <label class="control-label" for="ProvinceID">通讯地址省</label></div>
  2315. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2316. <select id="personProvinceID" name="person.ProvinceID" onChange=setAreaID('person') class="form-control" vmode="" vdisp="通讯地址省" vtype="number">
  2317. <option value="">请选择</option>
  2318. ${provinceID!''}
  2319. </select>
  2320. <script type="text/javascript">$(function(){$("#personProvinceID").val("${person.ProvinceID!''}");})</script>
  2321. </div>
  2322. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2323. <label class="control-label" for="AreaID">地市</label></div>
  2324. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2325. <select id="personAreaID" name="person.AreaID" onChange=setCountyID('person') class="form-control" vmode="" vdisp="地市" vtype="number">
  2326. <option value="">请选择</option>
  2327. ${areaID!''}
  2328. </select>
  2329. <script type="text/javascript">$(function(){$("#personAreaID").val("${person.AreaID!''}");})</script>
  2330. </div>
  2331. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2332. <label class="control-label" for="CountyID">区县</label></div>
  2333. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2334. <select id="personCountyID" name="person.CountyID" onChange=setTownAddress('person') class="form-control" vmode="" vdisp="区县" vtype="number">
  2335. <option value="" >请选择</option>
  2336. ${countyID!''}
  2337. </select>
  2338. <script type="text/javascript">$(function(){$("#personCountyID").val("${person.CountyID!''}");})</script>
  2339. </div>
  2340. </div>
  2341. <div class="row" style="padding:5px">
  2342. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2343. <label class="control-label" for="TownAddress">详细地址</label></div>
  2344. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2345. <input type="text" class="form-control" value="${person.TownAddress!''}" placeholder="" id="TownAddress" name="person.TownAddress" maxlength="26" vmode="" vdisp="详细地址" vtype="string">
  2346. </div>
  2347. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2348. <label class="control-label" for="Postalcode">邮编</label></div>
  2349. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2350. <input type="text" class="form-control" value="${person.Postalcode!''}" placeholder="" id="Postalcode" name="person.Postalcode" maxlength="6" vmode="" vdisp="邮编" vtype="postcode">
  2351. </div>
  2352. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2353. <label class="control-label" for="EMail">电子邮箱</label></div>
  2354. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2355. <input type="text" class="form-control" value="${person.EMail!''}" placeholder="" id="EMail" name="person.EMail" maxlength="40" vmode="" vdisp="电子邮箱" vtype="email">
  2356. </div>
  2357. </div>
  2358. <div class="row" style="padding:5px">
  2359. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2360. <label class="control-label" for="PlanID" title="个人计划证明号">计划证明号</label></div>
  2361. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2362. <input type="text" class="form-control" placeholder="个人计划证明号" value="${person.PlanID!''}" id="PlanID" name="person.PlanID" maxlength="40" vmode="" vdisp="个人计划证明号" vtype="string">
  2363. </div>
  2364. </div>
  2365. </div>
  2366. </div>
  2367. </div>
  2368. <div class="panel panel-success">
  2369. <div class="panel-heading">
  2370. <div style="display:inline;" >业务/产品信息查询 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  2371. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseCompact"><span id="CompactCollapseIcon" onClick="setCollapseIcon('CompactCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
  2372. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href=""><span onClick="addProduct()" class="glyphicon glyphicon-plus" aria-hidden="true"></span></a></div>
  2373. </div>
  2374. <div id="collapseCompact" class="panel-collapse collapse in">
  2375. <div class="panel-body" style="font-size:14px" id=ProductObj>
  2376. <div class="row" style="padding:5px">
  2377. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2378. <label class="control-label" for="QueryIDCard">证件号码</label>
  2379. </div>
  2380. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
  2381. <div class="input-group">
  2382. <div class="input-group-btn">
  2383. <button type="button" class="btn btn-default" id="QueryCompactButton" onclick="synchronizationIDCard()" >同步</button>
  2384. </div>
  2385. <input type="text" class="form-control" value="" placeholder="身份证号" id="QueryIDCard" name="QueryIDCard" vmode="" vdisp="身份证号" vtype="string">
  2386. </div>
  2387. </div>
  2388. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
  2389. <div class="input-group">
  2390. <div class="input-group-btn">
  2391. <button type="button" class="btn btn-primary" id="QueryUnitButton" onclick="queryUnit()" ${Query!''}>个养/直销</button>
  2392. <button type="button" class="btn btn-success" id="QueryCompactButton" onclick="queryCompactBasic()" ${Query!''} >团养/企业年金</button>
  2393. </div>
  2394. </div>
  2395. </div>
  2396. </div>
  2397. </div>
  2398. </div>
  2399. </div>
  2400. <div class="panel panel-info">
  2401. <div class="panel-heading">
  2402. <div style="display:inline;" >被诉人信息 &nbsp;&nbsp;&nbsp;&nbsp;</div>
  2403. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseRespondent"><span id="RespondentCollapseIcon" onClick="setCollapseIcon('RespondentCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a> &nbsp;&nbsp;&nbsp;&nbsp;</div>
  2404. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href=""><span id="ComplainPersonCollapseIcon" onClick="addRespondent()" class="glyphicon glyphicon-plus" aria-hidden="true"></span></a></div>
  2405. </div>
  2406. <div id="collapseRespondent" class="panel-collapse collapse in">
  2407. <div class="panel-body" style="font-size:14px" id=ComplainPersonObj>
  2408. <div class="row" style="padding:5px" id="respondent_2" >
  2409. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2410. <label class="control-label" for="respondentRespondentTypeID1">主被诉机构</label>
  2411. </div>
  2412. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2413. <select id="respondentFilialeID" name="respondent.FilialeID" onChange=setBusinessHallID('respondent') class="form-control" vmode='not null' vdisp='主被诉公司' vtype='string'>
  2414. <option value="">请选择</option>
  2415. ${filialeID!''}
  2416. </select>
  2417. </div>
  2418. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2419. <label class="control-label" for="respondentBusinessHallID">被诉部门</label>
  2420. </div>
  2421. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2422. <select id="respondentBusinessHallID" name="respondent.BusinessHallID" onChange=setBusinessHallName('respondent') class="form-control" vmode="" vdisp="被诉部门" vtype="string">
  2423. <option value="">请选择</option>
  2424. </select>
  2425. </div>
  2426. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2427. <label class="control-label" for="respondentRespondentTypeID2">被投诉类型</label>
  2428. </div>
  2429. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2430. <select id="respondentRespondentType" name="respondent.RespondentType" class="form-control" vmode="not null" vdisp="被投诉类型" vtype="string">
  2431. <option value="">请选择</option>
  2432. ${dic_respondenttype!''}
  2433. </select>
  2434. </div>
  2435. </div>
  2436. <div class="row" style="padding:5px" id="respondent_3" >
  2437. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2438. <label class="control-label" for="ProvinceID">归属地省</label></div>
  2439. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2440. <select id="respondentProvinceID" name="respondent.ProvinceID" onChange=setAreaID('respondent') class="form-control" vmode="not null" vdisp="归属地省" vtype="number">
  2441. <option value="">请选择</option>
  2442. ${provinceID!''}
  2443. </select>
  2444. </div>
  2445. <div id="dsa" class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2446. <label id="ds" class="control-label" for="AreaID">地市</label></div>
  2447. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2448. <select id="respondentAreaID" name="respondent.AreaID" onChange=setAreaName('respondent') class="form-control" vmode="not null" vdisp="地市" vtype="number">
  2449. <option value="">请选择</option>
  2450. ${clpccc_areaID!''}
  2451. </select>
  2452. </div>
  2453. </div>
  2454. </div>
  2455. </div>
  2456. </div>
  2457. <div class="panel panel-warning">
  2458. <div class="panel-heading">
  2459. <div style="display:inline;" >客诉事项信息 &nbsp;&nbsp;</div>
  2460. <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>
  2461. </div>
  2462. <div id="collapseAppeal" class="panel-collapse collapse in">
  2463. <div class="panel-body" style="font-size:14px">
  2464. <div class="row" style="padding:5px">
  2465. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2466. <label class="control-label" for="Question" style="line-height:100px;">事由</label>
  2467. </div>
  2468. <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  2469. <textarea class="form-control" rows="5" id="Question" name="appeal.Question" maxlength="600" vmode="not null" vdisp="事由" vtype="string">${appeal.Question!''}</textarea>
  2470. </div>
  2471. </div>
  2472. <div class="row" style="padding:5px">
  2473. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2474. <label class="control-label" for="AskInfo">要求</label>
  2475. </div>
  2476. <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  2477. <input type="text" class="form-control" value="${appeal.AskInfo!''}" placeholder="" id="AskInfo" name="appeal.AskInfo" maxlength="200" vmode="not null" vdisp="要求" vtype="string">
  2478. </div>
  2479. </div>
  2480. <div class="row" style="padding:5px">
  2481. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2482. <label class="control-label" for="ReceptionSuggest" style="line-height:100px;">坐席建议描述</label>
  2483. </div>
  2484. <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  2485. <textarea class="form-control" rows="5" id="ReceptionSuggest" name="appeal.ReceptionSuggest" maxlength="600" vmode="not null" vdisp="坐席建议描述" vtype="string"></textarea>
  2486. </div>
  2487. </div>
  2488. <div class="row" style="padding:5px">
  2489. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2490. <label class="control-label" for="QuestionTypeID1">事由类别</label>
  2491. </div>
  2492. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2493. <select id="QuestionTypeID1" name="appeal.QuestionTypeID1" onChange=setQuestionTypeID2() class="form-control" vmode="not null" vdisp="事由类别" vtype="string">
  2494. <option value="">请选择</option>
  2495. ${dic_questiontype!''}
  2496. </select>
  2497. </div>
  2498. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2499. <label class="control-label" for="QuestionTypeID2">二级类别</label>
  2500. </div>
  2501. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2502. <select id=QuestionTypeID2 name="appeal.QuestionTypeID2" onChange=setQuestionTypeName2() class="form-control" vmode="not null" vdisp="二级事由类别" vtype="string">
  2503. <option value="">请选择</option>
  2504. </select>
  2505. </div>
  2506. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2507. <label class="control-label" for="ComplaintTypeID1">投诉级别</label>
  2508. </div>
  2509. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2510. <select id="ComplaintTypeID1" name="appeal.ComplaintTypeID1" onChange=setComplaintTypeID2() class="form-control" vmode="not null" vdisp="投诉级别" vtype="string">
  2511. <option value="">请选择</option>
  2512. ${dic_complainttypeID1!''}
  2513. </select>
  2514. <script type="text/javascript">$(function(){$("#ComplaintTypeID1").val("${appeal.ComplaintTypeID1!''}");})</script>
  2515. </div>
  2516. </div>
  2517. <div class="row" style="padding:5px">
  2518. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2519. <label class="control-label" for="InsceTypeID1">险种类别</label>
  2520. </div>
  2521. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2522. <select id="InsceTypeID1" name="appeal.InsceTypeID1" onChange=setInsceTypeID2() class="form-control" vmode="" vdisp="一级险种类别" vtype="string">
  2523. <option value="">请选择</option>
  2524. ${dic_inscetypeID1!''}
  2525. </select>
  2526. <script type="text/javascript">$(function(){$("#InsceTypeID1").val("${appeal.InsceTypeID1!''}");})</script>
  2527. </div>
  2528. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2529. <label class="control-label" for="InsceTypeID2">二级类别</label>
  2530. </div>
  2531. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2532. <select id="InsceTypeID2" name="appeal.InsceTypeID2" onChange=setInsceTypeID3() class="form-control" vmode="" vdisp="二级险种类别" vtype="string">
  2533. <option value="">请选择</option>
  2534. ${dic_inscetypeID2!''}
  2535. </select>
  2536. <script type="text/javascript">$(function(){$("#InsceTypeID2").val("${appeal.InsceTypeID2!''}");})</script>
  2537. </div>
  2538. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2539. <label class="control-label" for="InsceTypeID3">三级类别</label>
  2540. </div>
  2541. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2542. <select id="InsceTypeID3" name="appeal.InsceTypeID3" onChange=setInsceTypeName3() class="form-control" vmode="" vdisp="三级险种类别" vtype="string">
  2543. <option value="">请选择</option>
  2544. ${dic_inscetypeID3!''}
  2545. </select>
  2546. <script type="text/javascript">$(function(){$("#InsceTypeID3").val("${appeal.InsceTypeID3!''}");})</script>
  2547. </div>
  2548. </div>
  2549. <div class="row" style="padding:5px">
  2550. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2551. <label class="control-label" for="AppealType">客诉类别</label>
  2552. </div>
  2553. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2554. <select id="AppealType" name="appeal.AppealType" class="form-control" vmode="not null" vdisp="客诉类别" vtype="string">
  2555. <option value="${appeal.AppealType!''}">${appeal.AppealType!''}</option>
  2556. </select>
  2557. <script type="text/javascript">$(function(){$("#AppealType").val("${appeal.AppealType!''}");})</script>
  2558. </div>
  2559. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2560. <label class="control-label" for="AppealSource">客诉来源</label>
  2561. </div>
  2562. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2563. <select id="AppealSource" name="appeal.AppealSource" class="form-control" vmode="not null" vdisp="客诉来源" vtype="string">
  2564. <option value="监管系统转办">监管系统转办</option>
  2565. </select>
  2566. </div>
  2567. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2568. <label class="control-label" for="ComplaintPersonNum">投诉人数量</label>
  2569. </div>
  2570. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2571. <input type="text" class="form-control" onBlur=setComplaintPersonNum() value="${appeal.ComplaintPersonNum!''}" placeholder="" id="ComplaintPersonNum" name="appeal.ComplaintPersonNum" maxlength="3" vmode="" vdisp="投诉人数量" vtype="int">
  2572. </div>
  2573. </div>
  2574. <div class="row" style="padding:5px">
  2575. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2576. <label class="control-label" for="AppealDate">客诉时间</label>
  2577. </div>
  2578. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2579. <div class="input-group">
  2580. <input type="text" class="form-control" value="${appeal.AppealDate!''}" placeholder="" id="AppealDate" name="appeal.AppealDate" onChange="setAskEndTime()" vmode="not null" vdisp="客诉时间" vtype="string" readonly>
  2581. <div class="input-group-btn">
  2582. <button type="button" class="btn btn-default" aria-label="Left Align" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',el:'AppealDate',maxDate:'${CurEndDateHHmm!''}'})" title="选择客诉时间">
  2583. <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
  2584. </button>
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2589. <label class="control-label" for="SupTransactDate">监管转办日期</label>
  2590. </div>
  2591. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2592. <div class="input-group">
  2593. <input type="text" class="form-control" onChange=setSupEndDate15() id="SupTransactDate" name="appeal.SupTransactDate" >
  2594. <div class="input-group-btn">
  2595. <button type="button" class="btn btn-default" aria-label="Left Align" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'SupTransactDate',maxDate:'new Date()'})" title="选择客诉时间">
  2596. <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
  2597. </button>
  2598. </div>
  2599. </div>
  2600. </div>
  2601. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2602. <label class="control-label" for="SupTransactNum">监管投诉次数</label>
  2603. </div>
  2604. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2605. <input type="text" class="form-control" value="1" id="SupTransactNum" name="appeal.SupTransactNum" maxlength="3" vmode="" vdisp="监管投诉次数" vtype="int">
  2606. </div>
  2607. </div>
  2608. <div class="row" style="padding:5px" id=Complain1 >
  2609. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2610. <label class="control-label" for="UrgentLevel" >前期是否投诉至机构</label>
  2611. </div>
  2612. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2613. <select id="IsUpLevel" name="appeal.IsUpLevel" class="form-control" vmode="" vdisp="前期是否投诉至机构" vtype="string">
  2614. <option value=""></option>
  2615. <option value="是">是</option>
  2616. <option value="否">否</option>
  2617. </select>
  2618. </div>
  2619. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2620. <label class="control-label" for="FrontGoOrgNumber">前期至机构投诉数</label>
  2621. </div>
  2622. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 ">
  2623. <input type="text" class="form-control" value="0" id="FrontGoOrgNumber" name="appeal.FrontGoOrgNumber" maxlength="3" vmode="" vdisp="前期至机构投诉数" vtype="int">
  2624. </div>
  2625. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2626. <label class="control-label" for="GoOrgNumber">机构投诉数合计</label>
  2627. </div>
  2628. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 ">
  2629. <input type="text" class="form-control" value="0" id="GoOrgNumber" name="appeal.GoOrgNumber" maxlength="3" vmode="" vdisp="机构投诉数合计" vtype="int">
  2630. </div>
  2631. </div>
  2632. <div class="row" style="padding:5px" id=Complain2 >
  2633. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2634. <label class="control-label" for="ReasonID1">投诉原因</label>
  2635. </div>
  2636. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2637. <select id="ReasonID1" name="appeal.ReasonID1" onChange=setReasonID2() class="form-control" vmode="" vdisp="投诉原因" vtype="string">
  2638. <option value="">请选择</option>
  2639. ${reasonID1!''}
  2640. </select>
  2641. <script type="text/javascript">$(function(){$("#ReasonID1").val("${appeal.ReasonID1!''}");})</script>
  2642. </div>
  2643. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2644. <label class="control-label" for="ReasonID2">二级原因</label>
  2645. </div>
  2646. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2647. <select id=ReasonID2 name="appeal.ReasonID2" onChange=setReasonID3() class="form-control" vmode="" vdisp="二类原因" vtype="string">
  2648. <option value="">请选择</option>
  2649. ${reasonID2!''}
  2650. </select>
  2651. <script type="text/javascript">$(function(){$("#ReasonID2").val("${appeal.ReasonID2!''}");})</script>
  2652. </div>
  2653. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2654. <label class="control-label" for="ReasonID3">三级原因</label>
  2655. </div>
  2656. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2657. <select id="ReasonID3" name="appeal.ReasonID3" onChange=setReasonName3() class="form-control" vmode="" vdisp="三类原因" vtype="string">
  2658. <option value="">请选择</option>
  2659. ${reasonID3!''}
  2660. </select>
  2661. <script type="text/javascript">$(function(){$("#ReasonID3").val("${appeal.ReasonID3!''}");})</script>
  2662. </div>
  2663. </div>
  2664. <div class="row" style="padding:5px" id=Complain3 >
  2665. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2666. <label class="control-label" for="AskTypeID1">诉求类别</label>
  2667. </div>
  2668. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2669. <select id="AskTypeID1" name="appeal.AskTypeID1" onChange=setAskTypeID2() class="form-control" vmode="" vdisp="诉求类别" vtype="string">
  2670. <option value="">请选择</option>
  2671. ${dic_asktypeID1!''}
  2672. </select>
  2673. <script type="text/javascript">$(function(){$("#AskTypeID1").val("${appeal.AskTypeID1!''}");})</script>
  2674. </div>
  2675. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2676. <label class="control-label" for="AskTypeID2">二级类别</label>
  2677. </div>
  2678. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2679. <select id=AskTypeID2 name="appeal.AskTypeID2" onChange=setAskTypeID3() class="form-control" vmode="" vdisp="二级类别" vtype="string">
  2680. <option value="">请选择</option>
  2681. ${dic_asktypeID2!''}
  2682. </select>
  2683. <script type="text/javascript">$(function(){$("#AskTypeID2").val("${appeal.AskTypeID2!''}");})</script>
  2684. </div>
  2685. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2686. <label class="control-label" for="AskTypeID3">三级类别</label>
  2687. </div>
  2688. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2689. <select id=AskTypeID3 name="appeal.AskTypeID3" onChange=setAskTypeName3() class="form-control" vmode="" vdisp="三级类别" vtype="string">
  2690. <option value="">请选择</option>
  2691. ${dic_asktypeID3!''}
  2692. </select>
  2693. <script type="text/javascript">$(function(){$("#AskTypeID3").val("${appeal.AskTypeID3!''}");})</script>
  2694. </div>
  2695. </div>
  2696. <div class="row" style="padding:5px" >
  2697. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2698. <label class="control-label" for="InvolvedMoney">份额合计</label>
  2699. </div>
  2700. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2701. <div class="input-group">
  2702. <input type="text" class="form-control" value="${appeal.InvolvedCopies!''}" id="InvolvedCopies" name="appeal.InvolvedCopies" maxlength="12" vmode="" vdisp="份额合计" vtype="float" readonly>
  2703. <span class="input-group-addon">份</span>
  2704. </div>
  2705. </div>
  2706. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2707. <label class="control-label" for="InvolvedMoney">金额合计</label>
  2708. </div>
  2709. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2710. <div class="input-group">
  2711. <span class="input-group-addon">¥</span>
  2712. <input type="text" class="form-control" value="${appeal.InvolvedMoney!''}" id="InvolvedMoney" name="appeal.InvolvedMoney" maxlength="12" vmode="" vdisp="金额合计" vtype="float" readonly>
  2713. <span class="input-group-addon">元</span>
  2714. </div>
  2715. </div>
  2716. </div>
  2717. </div>
  2718. </div>
  2719. </div>
  2720. <div class="panel panel-danger">
  2721. <div class="panel-heading">
  2722. <div style="display:inline;" >客诉办理信息 &nbsp;&nbsp;</div>
  2723. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseTransact"><span id="TransactCollapseIcon" onClick="setCollapseIcon('TransactCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
  2724. </div>
  2725. <div id="collapseTransact" class="panel-collapse collapse in">
  2726. <div class="panel-body" style="font-size:14px">
  2727. <div class="row" style="padding:5px;">
  2728. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2729. <label class="control-label" for="TransactIdea" style="line-height:100px;">办理意见</label>
  2730. </div>
  2731. <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
  2732. <textarea class="form-control" rows="5" value="" placeholder="" id="TransactIdea" name="transact.TransactIdea" maxlength="600" vmode="not null" vdisp="办理意见" vtype="string">${transact.TransactIdea!''}</textarea>
  2733. </div>
  2734. </div>
  2735. <div class="row" style="padding:5px">
  2736. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2737. <label class="control-label" for="ToAllOrgID">办理方式</label>
  2738. </div>
  2739. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
  2740. <select id="TransactType" name="transact.TransactType" onChange=setTransactType() class="form-control" vmode="not null" vdisp="办理方式" vtype="string">
  2741. <option value="">请选择</option>
  2742. <option value="转办处理">转办处理</option>
  2743. </select>
  2744. </div>
  2745. </div>
  2746. <div class="row" style="padding:5px">
  2747. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2748. <label class="control-label" for="LimitDays">办理时限</label>
  2749. </div>
  2750. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2751. <div class="input-group spinner" data-trigger="spinner" id="LimitDaysSpinner">
  2752. <input type="text" class="form-control text-center" value="15" data-max="30" data-min="0" data-step="1" id="LimitDays" name="appeal.LimitDays" onChange="setLimitEndDate()" maxlength="2" vmode="" vdisp="办理时限" vtype="int" >
  2753. <span class="input-group-addon" id="basic-addon2">${dateType!''}</span>
  2754. <div class="input-group-addon">
  2755. <a href="javascript:;" class="spin-up" data-spin="up" ><i class="fa fa-caret-up"></i></a>
  2756. <a href="javascript:;" class="spin-down" data-spin="down"><i class="fa fa-caret-down"></i></a>
  2757. </div>
  2758. </div>
  2759. </div>
  2760. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2761. <label class="control-label" for="SupEndDate15">15日办结日期</label>
  2762. </div>
  2763. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2764. <input type="text" class="form-control" placeholder="" id="SupEndDate15" name="appeal.SupEndDate15" readonly>
  2765. </div>
  2766. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2767. <label class="control-label" for="LimitEndDate">截止日期</label>
  2768. </div>
  2769. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
  2770. <input type="text" class="form-control" placeholder="" id="LimitEndDate" name="appeal.LimitEndDate" readonly>
  2771. </div>
  2772. </div>
  2773. <div class="row" style="padding:5px" id="ToOrgInfo" hidden>
  2774. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
  2775. <label class="control-label" for="AskInfo">承办人员</label>
  2776. </div>
  2777. <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11">
  2778. <div class="input-group">
  2779. <input type="text" class="form-control" value="${transact.ToOrgAndJob!''}" placeholder="" id="ToOrgAndJob" name="transact.ToOrgAndJob" maxlength="200" vmode="" vdisp="承办人员" vtype="string" readonly>
  2780. <div class="input-group-btn">
  2781. <button type="button" class="btn btn-default" aria-label="Left Align" onclick="setZBOrgUser()" title="选择承办人">
  2782. <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
  2783. </button>
  2784. </div>
  2785. </div>
  2786. </div>
  2787. </div>
  2788. <div class="row" style="padding:5px" id="CopyToOrgInfo" hidden>
  2789. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2790. <label class="control-label" for="AskInfo">抄送人员</label>
  2791. </div>
  2792. <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11">
  2793. <div class="input-group">
  2794. <input type="text" class="form-control" value="" placeholder="" id="CopyToUserShow" name="transact.CopyToUserShow" maxlength="200" vmode="" vdisp="案件抄送人" vtype="string" readonly>
  2795. <div class="input-group-btn">
  2796. <button type="button" class="btn btn-default" aria-label="Left Align" onclick="setSignUser()" title="选择抄送人员">
  2797. <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
  2798. </button>
  2799. </div>
  2800. </div>
  2801. </div>
  2802. </div>
  2803. </div>
  2804. </div>
  2805. </div>
  2806. </form>
  2807. <div class="panel panel-default">
  2808. <div class="panel-heading">
  2809. <div style="display:inline;" >客诉资料附件&nbsp;&nbsp;</div>
  2810. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseFile"><span id="FileCollapseIcon" onClick="setCollapseIcon('FileCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
  2811. </div>
  2812. <div id="collapseFile" class="panel-collapse collapse in">
  2813. <div class="panel-body" style="font-size:14px">
  2814. <div class="row" style="padding:5px">
  2815. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  2816. <label class="control-label" for="FileAppealID">选择文件</label></div>
  2817. <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11" >
  2818. <input type="hidden" id="FileAppealID" name="FileAppealID" value="${appealID}"/>
  2819. <input id="file-0a" class="file-loading" type="file" multiple data-min-file-count="1">
  2820. </div>
  2821. </div>
  2822. <div class="row" style="padding:5px">
  2823. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" >
  2824. <table class="table table-striped">
  2825. <tr>
  2826. <td ><label class="form-label" for="web.title">文件名称</label></td>
  2827. <td ><label class="form-label" for="web.title">文件大小</label></td>
  2828. <td ><label class="form-label" for="web.title">上传人</label></td>
  2829. <td ><label class="form-label" for="web.title">上传时间</label></td>
  2830. </tr>
  2831. ${subjoinFileList!''}
  2832. </table>
  2833. </div>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. </div>
  2838. <div class="row" style="padding:5px">
  2839. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
  2840. <button type="button" class="btn btn-warning" id="SubmitButton" onclick=doSubmit() disabled><span class="glyphicon glyphicon-save"></span>&nbsp;&nbsp;提&nbsp;&nbsp;&nbsp;&nbsp;交</button>
  2841. </div>
  2842. </div>
  2843. ${historyInfoList!''}
  2844. </div>
  2845.  
  2846. <!-- 根据姓名和证件号码判重后弹出页面,模态框(Modal) -->
  2847. <div class="modal fade" id="repeatModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  2848. <div class="modal-dialog"  role="document" style="width:900px">  >  
  2849. <div class="modal-content">
  2850. <div class="modal-header">
  2851. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
  2852. &times;
  2853. </button>
  2854. <h3 class="modal-title" id="myModalLabel">
  2855. <span class="label label-danger">该客户此前进行过客诉,请人工查询判断是否重复录入!</span>
  2856. </h3>
  2857. </div>
  2858. <div class="modal-body">
  2859. <div class="row" style="padding:1px" >
  2860. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  2861. <label class="control-label" >姓名</label></div>
  2862. <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
  2863. <input type="text" class="form-control" value="" placeholder="" id="Modal_TName" name="Modal_TName" readonly>
  2864. </div>
  2865. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  2866. <label class="control-label" >身份</label></div>
  2867. <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
  2868. <input type="text" class="form-control" value="" placeholder="" id="Modal_Status" name="Modal_Status" readonly>
  2869. </div>
  2870. </div>
  2871. <div class="row" style="padding:1px" >
  2872. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  2873. <label class="control-label" >证件类型</label></div>
  2874. <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
  2875. <input type="text" class="form-control" value="" placeholder="" id="Modal_CardType" name="Modal_CardType" readonly>
  2876. </div>
  2877. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  2878. <label class="control-label" >证件号码</label></div>
  2879. <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
  2880. <input type="text" class="form-control" value="" placeholder="" id="Modal_IDCard" name="Modal_IDCard" readonly>
  2881. </div>
  2882. </div>
  2883. <div class="row" style="padding:2px">
  2884. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  2885. <label class="control-label" >联系电话1</label></div>
  2886. <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
  2887. <input type="text" class="form-control" value="" placeholder="" id="Modal_LinkTel1" name="Modal_LinkTel1" readonly>
  2888. </div>
  2889. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  2890. <label class="control-label" >联系地址</label></div>
  2891. <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
  2892. <input type="text" class="form-control" value="" placeholder="" id="Modal_TownAddress" name="Modal_TownAddress" readonly>
  2893. </div>
  2894. </div>
  2895. <div class="table-responsive">
  2896. <table class="table table-bordered" id="Modal_Appeal">
  2897. <tr class="info">
  2898. <th class="text-center" width="100px">客诉日期</th>
  2899. <th class="text-center">客诉来源</th>
  2900. <th class="text-center">客诉类型</th>
  2901. <th class="text-center" width="100px">查看详细</th>
  2902. </tr>
  2903. </table>
  2904. </div>
  2905. </div>
  2906. <div class="modal-footer">
  2907. <button type="button" class="btn btn-warning" onClick="repeatPerson()"><span class="glyphicon glyphicon-user"> 同人新件
  2908. </button>
  2909. <button type="button" class="btn btn-success" onClick="repeatClose()"><span class="glyphicon glyphicon-remove"> 关闭
  2910. </button>
  2911. </div>
  2912. </div><!-- /.modal-content -->
  2913. </div><!-- /.modal -->
  2914. </div>
  2915. <!-- 多事故理赔信息弹出页面,模态框(Modal) -->
  2916. <div class="modal fade" id="riskModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  2917. <div class="modal-dialog"  role="document" style="width:900px">  >  
  2918. <div class="modal-content">
  2919. <div class="modal-header">
  2920. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
  2921. &times;
  2922. </button>
  2923. <h3 class="modal-title" id="myModalLabel">
  2924. <span class="label label-danger">事故列表!</span>
  2925. </h3>
  2926. </div>
  2927. <div class="modal-body">
  2928. <div class="table-responsive">
  2929. <table class="table table-bordered" id="Modal_Risk">
  2930. <tr class="info">
  2931. <th class="text-center">事故编号</th>
  2932. <th class="text-center">事故时间</th>
  2933. <th class="text-center">事故地点</th>
  2934. </tr>
  2935. </table>
  2936. </div>
  2937. </div>
  2938. <div class="modal-footer">
  2939. <button type="button" class="btn btn-primary" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭
  2940. </button>
  2941. </div>
  2942. </div><!-- /.modal-content -->
  2943. </div><!-- /.modal -->
  2944. </div>
  2945. <!-- 根据姓名和证件号码判重后弹出页面,模态框(Modal) 结束-->
  2946. <!-- 根据保单编号查询包含险种信息弹出页面,模态框(Modal)结束 -->
  2947. <!-- 选择单位弹出页面,模态框(Modal) -->
  2948. <div class="modal fade" id="orgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  2949. <div class="modal-dialog"  role="document" style="width:600px;height:500px;">  >  
  2950. <div class="modal-content">
  2951. <div class="modal-header">
  2952. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
  2953. &times;
  2954. </button>
  2955. </div>
  2956. <div class="modal-body">
  2957. <div class="row" style="padding:1px" >
  2958. <ul id="UserTree" class="ztree"></ul>
  2959. </div>
  2960. </div>
  2961. <div class="modal-footer">
  2962. </div>
  2963. </div><!-- /.modal-content -->
  2964. </div><!-- /.modal -->
  2965. </div> 
  2966. <!-- 选择会签人员弹出页面,模态框(Modal) -->
  2967. <div class="modal fade" id="signOrgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  2968. <div class="modal-dialog"  role="document" style="width:600px;height:500px;"> 
  2969. <div class="modal-content">
  2970. <div class="modal-header">
  2971. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
  2972. &times;
  2973. </button>
  2974. </div>
  2975. <div class="modal-body">
  2976. <div class="row" style="padding:1px" >
  2977. <ul id="SignUserTree" class="ztree"></ul>
  2978. </div>
  2979. </div>
  2980. <div class="modal-footer">
  2981. <button type="button" class="btn btn-success" onClick="getSignOrgAndJob()"><span class="glyphicon glyphicon-user"> 确定</span></button>
  2982. </div>
  2983. </div><!-- /.modal-content -->
  2984. </div><!-- /.modal -->
  2985. </div> 
  2986. <div class="modal fade" id="CompactModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  2987. <div class="modal-dialog"  role="document" style="width:900px">
  2988. <div class="modal-content">
  2989. <div class="modal-header">
  2990. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
  2991. &times;
  2992. </button>
  2993. <h3 class="modal-title" id="myModalLabel">
  2994. <span class="label label-danger">产品列表!</span>
  2995. </h3>
  2996. </div>
  2997. <div class="modal-body">
  2998. <div class="table-responsive">
  2999. <table class="table table-bordered" id="CompactModal_Table">
  3000. <tr class="info">
  3001. <th class="text-center">操作</th>
  3002. <th class="text-center">渠道名称</th>
  3003. <th class="text-center">产品名称</th>
  3004. <th class="text-center">产品占比</th>
  3005. </tr>
  3006. </table>
  3007. </div>
  3008. </div>
  3009. <div class="modal-footer">
  3010. <button type="button" class="btn btn-primary" id="InCompactBut" onclick=okCompact() ><span class="glyphicon glyphicon-ok"></span>&nbsp;&nbsp;确定</button>
  3011. <button type="button" class="btn btn-primary" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭
  3012. </button>
  3013. </div>
  3014. </div><!-- /.modal-content -->
  3015. </div><!-- /.modal -->
  3016. </div>
  3017. </body>
  3018. <script type="text/javascript">
  3019. $(document).on('ready', function() {
  3020. $('#file-0a').fileinput({
  3021. language: 'zh',
  3022. uploadUrl: '${ctx}/myconsole/complaint/uploadfile/upload?FileAppealID=${appealID}',
  3023. deleteUrl: '${ctx}/myconsole/complaint/uploadfile/delete',
  3024. dropZoneEnabled: false,
  3025. showPreview: true,      //显示预览  
  3026. allowedFileExtensions : ['jpg', 'png','gif','doc','docx','pdf','mp3','mp4','xlsx'],
  3027. }).on("fileuploaded", function(event,data,previewId,index) {
  3028. if(data.response)
  3029. {
  3030. var result = data.response.id; 
  3031. }
  3032. });
  3033. });
  3034. $(function() {
  3035. setLimitEndDate();
  3036. setEndDate15();
  3037. $('#LimitDaysSpinner').spinner('changed', function(e, newVal, oldVal) {
  3038. setLimitEndDate();
  3039. });
  3040. });
  3041. //删除多余被诉对象
  3042. $(function()
  3043. {
  3044. var respondentNumber=parseInt($("#RespondentNumber").val());
  3045. for(var i=respondentNumber;i<5;i++)
  3046. {
  3047. $("div").remove("#respondent"+i+"_1 div");
  3048. $("div").remove("#respondent"+i+"_2 div");
  3049. }
  3050. }
  3051. )
  3052. </script>
  3053. </html>