dotelcenter.html 128 KB

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