123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
- <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/default.css">
- <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/fileinput.css">
- <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-spinner/bootstrap-spinner.css">
- <link rel="stylesheet" href="${ctx}/assets/lib/font-awesome-4.7.0/css/font-awesome.css">
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/bootstrap-select/bootstrap-select.css">
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
- <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-spinner/jquery.spinner.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-select/bootstrap-select.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/crypto-js-4.1.1/crypto-js.js"></script>
- <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
- <script src="${ctx}/assets/js/validate.js" ></script>
- <!--[if lt IE 9]>
- <script src="${ctx}/assets/lib/bootstrap-3.3.7/js/html5shiv.min.js"></script>
- <script src="${ctx}/assets/lib/bootstrap-3.3.7/js/respond.min.js"></script>
- <![endif]-->
- <script type="text/javascript">
- function doSubmit(){
-
- if($("#FileSelectFlag").val()=='false'&&$('#file-0a').val()!='')
- {
- layer.msg("有选择的文件没上传,请先上传提交!");
- return false;
- }
- doTrim(form1);
- var transactType=$("#TransactType").val();
- var transactType2=$("#TransactType2").val();
- if(transactType=='取消登记'){
- deleteData();
- }else if(doValidate(form1))
- {
- var limitEndDate=$("#LimitEndDate").val();
- if(limitEndDate!="")
- {
- $("#transactLimitEndDate").val(limitEndDate);
- }
- var linkTel1=$("#LinkTel1").val();
- if(linkTel1.substring(0,1)=="1"&&linkTel1.length!=11)
- {
- layer.msg("手机号码必须为11位!");
- $("#LinkTel1").focus();
- return false;
- }
-
- $("#TempSaveButton").attr("disabled",'disabled');
- $("#EndButton").attr("disabled",'disabled');
- $("#SubmitButton").attr("disabled",'disabled');
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/savePutFlowData');
- $('#form1').ajaxSubmit(resultHandle);
- }
- }
- function resultHandle(data){
- var res=eval('(' + data + ')');
- if(res.flag){
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
-
- function(){
-
- layer.closeAll('dialog');
- window.parent.opener.location.reload();
- window.parent.close();
-
- });
-
- }else{
- if(res.flag == false)
- {
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- }
- //悬浮姓名失去焦点处理
- function blurTNme()
- {
- var navTName=$("#navTName").val();
- $("#TName").val(navTName);
- }
- //
- function blurIDCard()
- {
- var navIDCard=$("#navIDCard").val();
- $("#IDCard").val(navIDCard);
- }
- // 从后台获取保单号设置到查询条件中
- $(function(){
- var PolicyNumber=$("#PolicyNumber").val();
- if(null != PolicyNumber){
- $("#QueryNo").val(PolicyNumber);
- $("#QueryType").val("保单号");
- }
- var appealSource="${appeal.AppealSource!''}";
- if(null != appealSource){
- if(appealSource=="互联网" ){
- $("#appealRemarksInfo").val("${appeal.RemarksInfo!''}"+"${appeal.AllPolicyNumber!''}")
- }
-
- }
-
- })
-
-
- function setInsceTypeID2(){
- var insceTypeID1=$('#InsceTypeID1').val();
- if(insceTypeID1!='')
- {
- var insceTypeName1=$("#InsceTypeID1").find("option:selected").text();
- $("#InsceTypeName1").val(insceTypeName1);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getInsceTypeID2Data');
- $('#form1').ajaxSubmit(setInsceTypeID2Data);
- }
- else
- {
- $("#InsceTypeID2").empty();
- $("#InsceTypeName1").val("");
- }
-
-
- }
- //回写投诉二级分类字典数据
- function setInsceTypeID2Data(data)
- {
- $("#InsceTypeID2").empty();
- $("#InsceTypeID2").append("<option value=''>请选择</option>");
- $("#InsceTypeID2").append(data);
- }
- function setInsceTypeName2()
- {
- var insceTypeID2=$('#InsceTypeID2').val();
- if(insceTypeID2!='')
- {
- var insceTypeName2=$("#InsceTypeID2").find("option:selected").text();
- $("#InsceTypeName2").val(insceTypeName2);
-
- }
- else
- {
- $("#InsceTypeName2").val("");
- }
- }
- //根据被诉对象选择二级类别信息qqq
- function setRespondentTypeID1(respondentModel)
- {
- var RespondentTypeID1=$('#'+respondentModel+"RespondentTypeID1").val();
- if(RespondentTypeID1!='')
- {
- var RespondentTypeName1=$('#'+respondentModel+"RespondentTypeID1").find("option:selected").text();
- $('#'+respondentModel+"RespondentTypeName1").val(RespondentTypeName1);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getRespondentTypeID2Data?RespondentModel='+respondentModel);
- $('#form1').ajaxSubmit(setRespondentTypeID1Data);
- $('#RespondentModel').val(respondentModel);
- //setFilialeBusinessHallID(respondentModel);
-
- }
- else
- {
- $("#"+respondentModel+"RespondentTypeID2").empty();
- $('#'+respondentModel+"RespondentTypeName1").val("");
- }
- }
- //回写原因二类字典数据qqqq
- function setRespondentTypeID1Data(data){
- var respondentModel=$('#RespondentModel').val();
- $("#"+respondentModel+"RespondentTypeID2").empty();
- $("#"+respondentModel+"RespondentTypeID2").append("<option value=''>请选择</option>");
- $("#"+respondentModel+"RespondentTypeID2").append(data);
- }
- function setRespondentTypeName2(respondentModel)
- {
- var idData=$("#"+respondentModel+"RespondentTypeID2").val();
- if(idData!='')
- {
- var nameData=$("#"+respondentModel+"RespondentTypeID2").find("option:selected").text();
- $("#"+respondentModel+"RespondentTypeName2").val(nameData);
- }
- else
- {
- $("#"+respondentModel+"RespondentTypeName2").val("");
- }
- }
- //
- function blurLinkTel1()
- {
- var navLinkTel1=$("#navLinkTel1").val();
- $("#LinkTel1").val(navLinkTel1);
-
- if(navLinkTel1.substring(0,1)=="1"&&navLinkTel1.length!=11)
- {
- layer.msg("手机号码必须为11位!");
- $("#navLinkTel1").focus();
- return false;
- }
- }
- //判断电话是否为手机
- function telIsMobile()
- {
- var linkTel1=$("#LinkTel1").val();
- if(linkTel1.substring(0,1)=="1"&&linkTel1.length!=11)
- {
- layer.msg("手机号码必须为11位!");
- return false;
- }
- else
- {
- return true;
- }
- }
- //
- function setLinkPerson()
- {
- var personType=$("#PersonType").val();
- var tName=$("#TName").val();
- $("#navTName").val(tName);
- if(personType=='自然人')
- {
- var linkPerson=$("#TName").val();
- $("#LinkPerson").val(linkPerson);
- }
- else
- {
- $("#LinkPerson").val("");
- }
-
- }
- //根据人员类别选择证件信息2017-08-19
- function setLabelTName()
- {
- var personType=$("#PersonType").val();
- if(personType=='')
- {
- $("#Label_TName").text("姓名");
- $("#Label_navTName").text("姓名");
- $("#CardType").empty();
- $("#CardType").append("<option value=''>请选择</option>");
- $("#LinkPerson").attr("vmode","");
- $("#LinkPersonDiv1").removeClass("has-error has-feedback");
- $("#LinkPersonDiv2").removeClass("has-error has-feedback");
-
-
- }
- if(personType=='自然人')
- {
- $("#Label_TName").text("姓名");
- $("#Label_navTName").text("姓名");
- $("#CardType").empty();
- $("#CardType").append("<option value='居民身份证'>居民身份证</option>");
- $("#CardType").append("<option value='护照'>护照</option>");
- $("#CardType").append("<option value='军人证'>军人证</option>");
- $("#CardType").append("<option value='其他'>其他</option>");
- $("#LinkPerson").attr("vmode","");
- $("#LinkPersonDiv1").removeClass("has-error has-feedback");
- $("#LinkPersonDiv2").removeClass("has-error has-feedback");
-
-
- }
- if(personType=='非自然人')
- {
- $("#Label_TName").text("单位名称");
- $("#Label_navTName").text("单位名称");
- $("#CardType").empty();
- $("#CardType").append("<option value='统一社会信用代码'>统一社会信用代码</option>");
- $("#CardType").append("<option value='组织机构代码'>组织机构代码</option>");
- $("#LinkPerson").attr("vmode","not null");
- $("#LinkPersonDiv1").addClass("has-error has-feedback");
- $("#LinkPersonDiv2").addClass("has-error has-feedback");
- }
- }
- //设置导航条身份证号码
- function setNavIDCard()
- {
- var idCard=$("#IDCard").val();
- $("#navIDCard").val(idCard);
-
- }
- //设置导航条联系电话
- function setNavLinkTel1()
- {
- var linkTel1=$("#LinkTel1").val();
- $("#navLinkTel1").val(linkTel1);
-
- }
- //验证身份证信息
- function setIDCard()
- {
- var cardType=$("#CardType").val();
- if(cardType=='居民身份证')
- {
- $("#IDCard").attr("vtype","idcard");
- }
- else
- {
- $("#IDCard").attr("vtype","string");
- }
-
- }
- //根据投诉人姓名,证件类型,证件号码判重
- function repeatIDCard()
- {
- var tName=$("#TName").val();
- var cardType=$("#CardType").val();
- var idCard=$("#IDCard").val();
- var personType=$("#PersonType").val();
- if(tName!=""&&cardType!=""&&cardType!="")
- {
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/repeatIDCard');
- $('#form1').ajaxSubmit(setPersonData);
- }
- else
- {
- var alertInfo="";
- if(personType=="自然人"||personType=="")
- {
- alertInfo="投诉人姓名,证件类型,证件号码都必须填写!";
- }
- else
- {
- alertInfo="单位名称,证件类型,证件号码都必须填写!";
- }
- layer.alert(alertInfo, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- function repeatLinkTel(doType)
- {
- var linkTel1=$("#LinkTel1").val();
- if(linkTel1!="")
- {
- if(telIsMobile())
- {
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/repeatLinkTel');
- $('#form1').ajaxSubmit(setPersonData);
- }
-
- }
- else
- {
- if(doType=="assign")
- {
- var alertInfo="联系电话必须填写!";
- layer.alert(alertInfo, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- }
- //回写投诉人判重数据
- function setPersonData(data){
- var personJson = JSON.parse(data);
- var flag=personJson.flag;
- if(flag)
- {
- var person=personJson.person;
- $("#Modal_PersonType").val(person.persontype);
- $("#Modal_TName").val(person.tname);
- $("#Modal_Status").val(person.status);
- $("#Modal_CardType").val(person.cardtype);
- $("#Modal_IDCard").val(person.idcard);
- $("#Modal_LinkTel1").val(person.linktel1);
- $("#Modal_TownAddress").val(person.townaddress);
- $("#Modal_PersonID").val(person.personid);
-
- $("#Modal_LinkTel2").val(person.linktel2);
- $("#Modal_WechatNo").val(person.wechatno);
- $("#Modal_LinkPerson").val(person.linkperson);
- $("#Modal_ProvinceID").val(person.provinceid);
- $("#Modal_ProvinceName").val(person.provincename);
- $("#Modal_AreaID").val(person.areaid);
- $("#Modal_AreaName").val(person.areaname);
- $("#Modal_CountyID").val(person.countyid);
- $("#Modal_CountyName").val(person.countyname);
- $("#Modal_Postalcode").val(person.postalcode);
- $("#Modal_EMail").val(person.email);
-
- $("#Modal_Appeal").find("tr:not(:first)").remove();
-
- var listAppeal=eval(personJson.listAppeal);
- listAppeal.forEach(function(item,index)
- {
- if(item.serialnumber==null){
- $("#Modal_Appeal").append("<tr><td></td><td>"+item.appealdate+"</td><td>"+item.appealsource+"</td><td>"+item.appealtype+"</td><td></td></tr>");
- }else{
- $("#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>");
-
- }
- })
-
- $('#repeatModal').modal({
- backdrop: 'static',
- keyboard: false
- })
-
- }
- else
- {
- layer.alert("该投诉人为首次投诉!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
-
- }
- }
- function repeatPerson()
- {
- var modal_PersonID=$("#Modal_PersonID").val();
-
- $("#Modal_PersonRepeatFlag").val("true");
- $("#PersonType").val($("#Modal_PersonType").val());
- $("#PersonType").attr("readOnly","true");
- setLabelTName();
- $("#TName").val($("#Modal_TName").val());
- $("#TName").attr("readOnly","true");
- $("#Status").val($("#Modal_Status").val());
- $("#Status").attr("readOnly","true");
- $("#CardType").val($("#Modal_CardType").val());
- $("#CardType").attr("readOnly","true");
-
- $("#IDCard").val($("#Modal_IDCard").val());
- $("#IDCard").attr("readOnly","true");
- $("#PersonID").val($("#Modal_PersonID").val());
-
- $("#LinkTel1").val($("#Modal_LinkTel1").val());
- $("#LinkTel1").attr("readOnly","true");
- $("#LinkTel2").val($("#Modal_LinkTel2").val());
- $("#LinkTel2").attr("readOnly","true");
-
- $("#TownAddress").val($("#Modal_TownAddress").val());
- $("#TownAddress").attr("readOnly","true");
- $("#Postalcode").val($("#Modal_Postalcode").val());
- $("#Postalcode").attr("readOnly","true");
- $("#WechatNo").val($("#Modal_WechatNo").val());
- $("#WechatNo").attr("readOnly","true");
- $("#EMail").val($("#Modal_EMail").val());
- $("#EMail").attr("readOnly","true");
- $("#LinkPerson").val($("#Modal_LinkPerson").val());
- $("#LinkPerson").attr("readOnly","true");
-
-
- $("#ProvinceID").val($("#Modal_ProvinceID").val());
- $("#ProvinceID").attr("readOnly","true");
- $("#ProvinceName").val($("#Modal_ProvinceName").val());
- $("#AreaID").empty();
- $("#AreaID").append("<option value='"+$("#Modal_AreaID").val()+"'>"+$("#Modal_AreaName").val()+"</option>");
- $("#AreaID").attr("readOnly","true");
- $("#CountyID").empty();
- $("#CountyID").append("<option value='"+$("#Modal_CountyID").val()+"'>"+$("#Modal_CountyName").val()+"</option>");
- $("#CountyID").attr("readOnly","true");
-
- $('#repeatModal').modal('hide');
-
- }
- //根据省取地市数据
- function setAreaID(strModel)
- {
- var provinceID=$('#'+strModel+"ProvinceID").val();
- if(provinceID!='')
- {
- var provinceName=$('#'+strModel+"ProvinceID").find("option:selected").text();
- $('#'+strModel+"ProvinceName").val(provinceName);
- $("#form1").attr("action","${ctx}/myconsole/complaint/register/getAreaIDData?ParentID="+provinceID);
- $("#form1").ajaxSubmit(setAreaIDData);
- $('#ProvinceModel').val(strModel);
- }
- else
- {
- $('#'+strModel+"ProvinceName").val("");
- $('#'+strModel+"AreaID").empty();
- $('#ProvinceModel').val(strModel);
- }
- }
- //回写json地市数据
- function setAreaIDData(data){
-
- var strModel=$('#ProvinceModel').val();
- $('#'+strModel+"AreaID").empty();
- $('#'+strModel+"AreaID").append("<option value=''>请选择</option>");
- var listRegionJson = JSON.parse(data);
- var postalCode=listRegionJson.PostalCode;
- var listregion=eval(listRegionJson.ListRegion);
- $.each(listregion,function(index,item)
- {
- $('#'+strModel+"AreaID").append("<option value='"+item.tid+"'>"+item.tname+"</option>");
- })
- }
- function setAreaName(strModel)
- {
- var areaID=$('#'+strModel+"AreaID").val();
- if(areaID!='')
- {
- var areaName=$('#'+strModel+"AreaID").find("option:selected").text();
- $('#'+strModel+"AreaName").val(areaName);
- }
- else
- {
- $('#'+strModel+"AreaName").val("");
- }
- }
- //根据地市数据选择县区数据
- function setCountyID()
- {
- var areaID=$('#AreaID').val();
- if(areaID!='')
- {
- $("#form1").attr("action","${ctx}/myconsole/complaint/register/getCountyIDData");
- $("#form1").ajaxSubmit(setCountyIDData);
- }
- else
- {
- $("#CountyID").empty();
- }
- if($("#AreaID").val()!="")
- {
- var provinceName=$("#ProvinceID").find("option:selected").text();
- var areaName=$("#AreaID").find("option:selected").text();
- $("#ProvinceName").val(provinceName);
- $("#AreaName").val(areaName);
- }
- else
- {
- $("#AreaName").val("");
- }
- }
- //回写json区县数据
- function setCountyIDData(data){
- $("#CountyID").empty();
- $("#CountyID").append("<option value=''>请选择</option>");
- var listRegionJson = JSON.parse(data);
- var postalCode=listRegionJson.PostalCode;
- var listregion=eval(listRegionJson.ListRegion);
- listregion.forEach(function(item,index)
- {
- $("#CountyID").append("<option value='"+item.tid+"'>"+item.tname+"</option>");
- })
- $("#Postalcode").val(postalCode);
- }
- //设置详细地址
- function setTownAddress()
- {
- if($("#CountyID").val()!="")
- {
- var countyName=$("#CountyID").find("option:selected").text();
- $("#CountyName").val(countyName);
- $("#form1").attr("action","${ctx}/myconsole/complaint/register/getPostalCode");
- $("#form1").ajaxSubmit(setPostalCodeData);
- }
- else
- {
- $("#CountyName").val("");
- }
- }
- //回写邮编数据
- function setPostalCodeData(data){
- $("#Postalcode").val(data);
- }
- //
- function setContractExist()
- {
- if($("#ContractExistFlag").is(":checked"))
- {
- $("#ContractExistFlag1").show();
- $("#ContractExistFlag2").show();
- $("#ContractExistFlag3").show();
- $("#ContractExistFlag4").show();
- $("#ContractExist").val("有保单");
- }
- else
- {
- $("#ContractExistFlag1").hide();
- $("#ContractExistFlag2").hide();
- $("#ContractExistFlag3").hide();
- $("#ContractExistFlag4").hide();
- $("#Inscetype").hide();
- $("#CompactPanelFlag").hide();
- $("#ContractExist").val("无保单");
- removeCompactAllInfo();
- $("#CompactModal_Table").find("tr:not(:first)").remove();
- $("#Compact_Table").find("tr:not(:first)").remove();
- $('#CompactModal_Table').modal('hide');
- $('#Compact_Table').modal('hide');
- }
- }
- function removeCompactAllInfo()
- {
-
-
- $("#Compact1PanelFlag").hide();
- $("#Compact1Public1").hide();
- $("#Compact1Public2").hide();
- $("#Compact1Public3").hide();
- $("#Compact1Public4").hide();
- $("#Compact1Personal1").hide();
- $("#Compact1Personal2").hide();
- $("#Compact1Personal3").hide();
- $("#Compact1Personal4").hide();
- $("#Compact1Personal5").hide();
- $("#Compact1Personal6").hide();
- $("#Compact1Group1").hide();
- $("#Compact1Group2").hide();
- $("#Compact1Group3").hide();
- $("#Compact1Group4").hide();
-
- $("#PolicyNumber1").val("");
- $("#RiskName1").val("");
- $("#RealSign1").val("");
- $("#EffectiveDate1").val("");
- $("#PolicyAmount1").val("");
- $("#PolicyPremium1").val("");
- $("#PolicyDuration1").val("");
- $("#PayYearNumber1").val("");
- $("#SumPremium1").val("");
- $("#AppntName1").val("");
- $("#AppntSex1").val("");
- $("#AppntCustomerId1").val("");
- $("#AppntMobile1").val("");
- $("#InsuredName1").val("");
- $("#InsuredCustomerId1").val("");
- $("#InsuredMobile1").val("");
- $("#Contractor1").val("");
- $("#SaleChnlName1").val("");
- $("#SalesTypeName1").val("");
- $("#ProxyOrgName1").val("");
- $("#ProxyName1").val("");
- $("#SaleOrgName1").val("");
- $("#ProtocolLock1").val("");
- $("#OrderType1").val("");
- $("#IsFree1").val("");
- $("#CashValue1").val("");
- $("#TerminationType1").val("");
- $("#SurrenderMoney1").val("");
- $("#BankName1").val("");
- $("#CustomerAccount1").val("");
- $("#PayDate1").val("");
- riskList=compactJson.riskList;
- $('#CompactModal').modal('hide');
-
-
-
- //主附险别
- $("#InsceMainbe").val("");
- //承保方式
- $("#UnderWriteType").val("");
-
- }
- //设置查询条件
- function setQueryType()
- {
- var policyTypeFlag=$("input[name='PolicyTypeFlag']:checked").val();
- if(policyTypeFlag=="个人")
- {
- $("#PolicyType").val("个人");
- $("#QueryName").show();
- $("#QueryType").empty();
- $("#QueryType").append("<option value='保单号'>保单号</option>");
- $("#QueryType").append("<option value='身份证号'>身份证号</option>");
- $("#QueryType").append("<option value='军人证'>军人证</option>");
- $("#QueryType").append("<option value='护照'>护照</option>");
- }
- else
- {
- $("#PolicyType").val("团体");
- $("#QueryName").hide();
- $("#QueryType").empty();
- $("#QueryType").append("<option value='团单号'>团单号</option>");
- $("#QueryType").append("<option value='公司名称'>公司名称</option>");
- $("#QueryType").append("<option value='统一社会信用代码'>统一社会信用代码</option>");
- $("#QueryType").append("<option value='税务登记号'>税务登记号</option>");
- }
- }
- //设置查询号码的提醒
- function setQueryNo()
- {
- var strQueryType=$("#QueryType").val();
- if(strQueryType!="")
- {
- var strTName=$("#TName").val();
- $("#QueryTName").val(strTName)
- var strIDCard=$("#IDCard").val();
- $("#QueryIDCard").val(strIDCard)
- }
-
- }
- //点击查看保单信息
- function showCompactDetail(strPolicyNumber)
- {
- $('#form1').attr('action','${ctx}/myconsole/complaint/interface/queryCompactAllInfo?QueryPolicyNumber='+strPolicyNumber);
- $('#form1').ajaxSubmit(setCompactAllInfoNew);
-
- }
- //根据被诉业务选择二级类别信息qqq
- function setRespondentbusinesstypeID2(respondentModel)
- {
-
- var RespondentbusinesstypeID1=$('#'+respondentModel+"RespondentbusinesstypeID1").val();
- if(RespondentbusinesstypeID1!='')
- {
-
- var RespondentbusinesstypeName1=$('#'+respondentModel+"RespondentbusinesstypeID1").find("option:selected").text();
- $('#'+respondentModel+"RespondentbusinesstypeName1").val(RespondentbusinesstypeName1);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getRespondentBusinessTypeID2Data?RespondentModel='+respondentModel);
- $('#form1').ajaxSubmit(setRespondentbusinesstypeID1Data);
- $('#RespondentModel').val(respondentModel);
- //setFilialeBusinessHallID(respondentModel);
-
- }
- else
- {
- $("#"+respondentModel+"RespondentbusinesstypeID2").empty();
- $('#'+respondentModel+"RespondentbusinesstypeName1").val("");
- }
- }
- //回写原因二类字典数据qqqq
- function setRespondentbusinesstypeID1Data(data)
- {
- var respondentModel=$('#RespondentModel').val();
-
- $("#"+respondentModel+"RespondentbusinesstypeID2").empty();
- $("#"+respondentModel+"RespondentbusinesstypeID2").append("<option value=''>请选择</option>");
- $("#"+respondentModel+"RespondentbusinesstypeID2").append(data);
- }
- function setRespondentbusinesstypeName2(respondentModel)
- {
- var idData=$("#"+respondentModel+"RespondentbusinesstypeID2").val();
- if(idData!='')
- {
- var nameData=$("#"+respondentModel+"RespondentbusinesstypeID2").find("option:selected").text();
- $("#"+respondentModel+"RespondentbusinesstypeName2").val(nameData);
- }
- else
- {
- $("#"+respondentModel+"RespondentbusinesstypeName2").val("");
- }
- }
- function setCentreCompanyName(respondentModel)
- {
- var idData=$("#"+respondentModel+"CentreCompanyID").val();
- if(idData!='')
- {
- var nameData=$("#"+respondentModel+"CentreCompanyID").find("option:selected").text();
- $("#"+respondentModel+"CentreCompanyName").val(nameData);
- }
- else
- {
- $("#"+respondentModel+"CentreCompanyName").val("");
- }
- }
- function setCompactAllInfoNew(data){
- var compactJson = JSON.parse(data);
- //console.log(compactJson);
- var flag=compactJson.flag;
-
- if(flag)
- {
- var compact=compactJson.compact;
- //$("#CompactDetailModal").show();
- $("#ListCompact1Public1").show();
- $("#ListCompact1Public2").show();
- $("#ListCompact1Public3").show();
- $("#ListCompact1Public4").show();
- $("#ListCompact1Personal1").show();
- $("#ListCompact1Personal2").show();
- $("#ListCompact1Personal3").show();
- $("#ListCompact1Personal4").show();
- $("#ListCompact1Personal5").show();
- $("#ListCompact1Personal6").show();
- $("#ListCompact1Group1").hide();
- $("#ListCompact1Group2").hide();
- $("#ListCompact1Group3").hide();
- $("#ListCompact1Group4").hide();
-
- $("#ListPolicyNumber1").val(compact.policynumber);
- $("#ListRiskName1").val(compact.riskname);
- $("#ListRealSign1").val(compact.realsign);
- $("#ListEffectiveDate1").val(compact.effectivedate);
- $("#ListPolicyAmount1").val(compact.policyamount);
- $("#ListPolicyPremium1").val(compact.policypremium);
- $("#ListPolicyDuration1").val(compact.policyduration);
- $("#ListPayYearNumber1").val(compact.payyearnumber);
- $("#ListSumPremium1").val(compact.sumpremium);
- $("#ListAppntName1").val(compact.appntname);
- $("#ListAppntSex1").val(compact.appntsex);
- $("#ListAppntCustomerId1").val(compact.appntcustomerid);
- $("#ListAppntMobile1").val(compact.appntmobile);
- $("#ListInsuredName1").val(compact.insuredname);
- $("#ListInsuredCustomerId1").val(compact.insuredcustomerid);
- $("#ListInsuredMobile1").val(compact.insuredmobile);
- $("#ListContractor1").val(compact.contractor);
- $("#ListSaleChnlName1").val(compact.salechnlname);
- $("#ListSalesTypeName1").val(compact.salestypename);
- $("#ListProxyOrgName1").val(compact.proxyorgname);
- $("#ListProxyName1").val(compact.proxyname);
- $("#ListSaleOrgName1").val(compact.saleorgname);
- $("#ListProtocolLock1").val(compact.protocollock1);
- $("#ListOrderType1").val(compact.ordertype);
- $("#ListIsFree1").val(compact.isfree);
- $("#ListCashValue1").val(compact.cashvalue);
- $("#ListTerminationType1").val(compact.terminationtype);
- $("#ListSurrenderMoney1").val(compact.surrendermoney);
- $("#ListBankName1").val(compact.bankname);
- $("#ListCustomerAccount1").val(compact.customeraccount);
- $("#ListPayDate1").val(compact.paydate);
- riskList=compactJson.riskList;
- //$('#CompactModal').modal('hide');
-
-
- /**
- * 同步保单信息
- */
- //销售渠道
- /* var strSaleChnlName1=$("#ListSaleChnlName1").val();
- $ ("#ListSalesChannelID option" ). each( function () {
- if($(this).text()==strSaleChnlName1){
- $(this).attr("selected","selected");
- return false;
- }
- })
- //销售方式
- var strSalesTypeName1=$("#ListSalesTypeName1").val();
- $ ("#ListSalesTypeID option" ). each( function () {
- if($(this).text()==strSalesTypeName1){
- $(this).attr("selected","selected");
- return false;
- }
- })
- //产品名称--对应核心的险种名称
- var strRiskName1=$("#ListRiskName1").val();
- $ ("#ListProductID option" ). each( function () {
- if($(this).text()==strRiskName1){
- $(this).attr("selected","selected");
- return false;
- }
- })
- //主附险别
- $("#ListInsceMainbe").val("主险");
- //承保方式
- $("#ListUnderWriteType").val("个人"); */
- $('#CompactDetailModal ').modal({
- backdrop: 'static',
- keyboard: false
- })
- }
- else
- {
- layer.alert("没有查询到保单信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- //回写保单列表数据
-
-
-
- //根据一级投诉原因设置二级投诉原因
- function setReasonID2()
- {
- $("#ReasonID3").empty();
- var reasonID1=$('#ReasonID1').val();
- if(reasonID1!='')
- {
- var reasonName1=$("#ReasonID1").find("option:selected").text();
- $("#ReasonName1").val(reasonName1);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getReasonID2Data');
- $('#form1').ajaxSubmit(setReasonID2Data);
- }
- else
- {
- $("#ReasonID2").empty();
- $("#ReasonName1").val("");
- }
- }
- //回写原因二类字典数据
- function setReasonID2Data(data){
- $("#ReasonID2").empty();
- $("#ReasonID2").append("<option value=''>请选择</option>");
- $("#ReasonID2").append(data);
- }
- //根据二级投诉原因设置三级投诉原因
- function setReasonID3()
- {
- var reasonID2=$('#ReasonID2').val();
- if(reasonID2!='')
- {
- var reasonName2=$("#ReasonID2").find("option:selected").text();
- $("#ReasonName2").val(reasonName2);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getReasonID3Data');
- $('#form1').ajaxSubmit(setReasonID3Data);
- }
- else
- {
- $("#ReasonID3").empty();
- $("#ReasonName2").val("");
- }
- }
- //回写原因二类字典数据
- function setReasonID3Data(data){
- $("#ReasonID3").empty();
- $("#ReasonID3").append("<option value=''>请选择</option>");
- $("#ReasonID3").append(data);
- }
- //设置三级投诉原因名称
- function setReasonName3()
- {
- var reasonID3=$('#ReasonID3').val();
- if(reasonID3!='')
- {
- var reasonName3=$("#ReasonID3").find("option:selected").text();
- $("#ReasonName3").val(reasonName3);
- }
- else
- {
- $("#ReasonName3").val("");
- }
- }
- //根据被诉分公司选择中支公司信息
- function setCentreCompanyID(respondentModel)
- {
- var filialeID=$('#'+respondentModel+"FilialeID").val();
- if(filialeID!='')
- {
- var filialeName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
- $('#'+respondentModel+"FilialeName").val(filialeName);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getCentreCompanyIDData?RespondentModel='+respondentModel);
- $('#form1').ajaxSubmit(setCentreCompanyIDData);
- $('#RespondentModel').val(respondentModel);
- setFilialeBusinessHallID(respondentModel);
- }
- else
- {
- $("#"+respondentModel+"CentreCompanyID").empty();
- $('#'+respondentModel+"FilialeName").val("");
- }
- }
- //回写原因二类字典数据
- function setCentreCompanyIDData(data)
- {
- var respondentModel=$('#RespondentModel').val();
- $("#"+respondentModel+"CentreCompanyID").empty();
- $("#"+respondentModel+"CentreCompanyID").append("<option value=''>请选择</option>");
- $("#"+respondentModel+"CentreCompanyID").append(data);
- }
- //根据分公司选择部门
- function setFilialeBusinessHallID(respondentModel)
- {
- var filialeID=$('#'+respondentModel+"FilialeID").val();
- if(filialeID!='')
- {
- var filialeName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
- $('#'+respondentModel+"FilialeName").val(filialeName);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getFilialeBusinessHallIDData?RespondentModel='+respondentModel);
- $('#form1').ajaxSubmit(setBusinessHallIDData);
- $('#RespondentModel').val(respondentModel);
- }
- else
- {
- $("#"+respondentModel+"BusinessHallID").empty();
- $('#'+respondentModel+"FilialeName").val("");
- }
- }
- //根据中支选择部门
- function setBusinessHallID(respondentModel)
- {
- var centreCompanyID=$('#'+respondentModel+"FilialeID").val();
- if(centreCompanyID!='')
- {
- var centreCompanyName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
- $('#'+respondentModel+"FilialeName").val(centreCompanyName);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getBusinessHallIDData?ParentID='+centreCompanyID);
- $('#form1').ajaxSubmit(setBusinessHallIDData);
- $('#RespondentModel').val(respondentModel);
- if(centreCompanyName=='总公司'||centreCompanyName=='中国人寿养老保险公司')
- {
- $('#'+respondentModel+"ProvinceID").val('110000');
- $('#'+respondentModel+"ProvinceName").val('北京市');
- $('#'+respondentModel+"AreaID").empty();
- $('#'+respondentModel+"AreaID").append("<option value='110102'>西城区</option>");
- $('#'+respondentModel+"AreaName").val('西城区');
- }
- else
- {
- var strProvinceID=$('#personProvinceID').val();
- var strProvinceName=$('#personProvinceName').val();
- var strAreaID=$('#personAreaID').val();
- var strAreaName=$('#personAreaName').val();
-
- $('#'+respondentModel+"ProvinceID").val(strProvinceID);
- $('#'+respondentModel+"ProvinceName").val(strProvinceName);
- $('#'+respondentModel+"AreaID").empty();
- $('#'+respondentModel+"AreaID").append("<option value='"+strAreaID+"'>"+strAreaName+"</option>");
- $('#'+respondentModel+"AreaName").val(strAreaName);
- }
- }
- else
- {
- $("#"+respondentModel+"BusinessHallID").empty();
- $('#'+respondentModel+"FilialeName").val("");
- }
- }
- //回写被诉网点数据
- function setBusinessHallIDData(data)
- {
- var respondentModel=$('#RespondentModel').val();
- $("#"+respondentModel+"BusinessHallID").empty();
- $("#"+respondentModel+"BusinessHallID").append("<option value=''>请选择</option>");
- $("#"+respondentModel+"BusinessHallID").append(data);
- }
- function setBusinessHallName(respondentModel)
- {
- var idData=$("#"+respondentModel+"BusinessHallID").val();
- if(idData!='')
- {
- var nameData=$("#"+respondentModel+"BusinessHallID").find("option:selected").text();
- $("#"+respondentModel+"BusinessHallName").val(nameData);
- }
- else
- {
- $("#"+respondentModel+"BusinessHallName").val("");
- }
- }
- //setAskTypeID2()选择二级诉求类别
- function setAskTypeID2()
- {
- var askTypeID1=$('#AskTypeID1').val();
- if(askTypeID1!='')
- {
- var askTypeName1=$("#AskTypeID1").find("option:selected").text();
- $("#AskTypeName1").val(askTypeName1);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getAskTypeID2Data');
- $('#form1').ajaxSubmit(setAskTypeID2Data);
- }
- else
- {
- $("#AskTypeID2").empty();
- $("#FilialeName").val("");
- }
- }
- //回写原因二类字典数据
- function setAskTypeID2Data(data){
- $("#AskTypeID2").empty();
- $("#AskTypeID2").append("<option value=''>请选择</option>");
- $("#AskTypeID2").append(data);
- }
- //setAskTypeID3()选择三级诉求类别
- function setAskTypeID3()
- {
- var askTypeID2=$('#AskTypeID2').val();
- if(askTypeID2!='')
- {
- var askTypeName2=$("#AskTypeID2").find("option:selected").text();
- $("#AskTypeName2").val(askTypeName2);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getAskTypeID3Data');
- $('#form1').ajaxSubmit(setAskTypeID3Data);
- }
- else
- {
- $("#AskTypeID3").empty();
- $("#AskTypeName2").val("");
- }
- }
- //回写原因二类字典数据
- function setAskTypeID3Data(data){
- $("#AskTypeID3").empty();
- $("#AskTypeID3").append("<option value=''>请选择</option>");
- $("#AskTypeID3").append(data);
- }
- function setAskTypeName3()
- {
- var askTypeID3=$('#AskTypeID3').val();
- if(askTypeID3!='')
- {
- var askTypeName3=$("#AskTypeID3").find("option:selected").text();
- $("#AskTypeName3").val(askTypeName3);
- }
- else
- {
- $("#AskTypeName3").val("");
- }
- }
- //setComplaintTypeID2()根据投诉类别一级分类取二级分类
- function setComplaintTypeID2()
- {
- var complaintTypeID1=$('#ComplaintTypeID1').val();
- if(complaintTypeID1!='')
- {
- var complaintTypeName1=$("#ComplaintTypeID1").find("option:selected").text();
- $("#ComplaintTypeName1").val(complaintTypeName1);
- if(complaintTypeName1=='疑难投诉')
- {
- $("#LimitDays").val("15");
- }
- if(complaintTypeName1=='重大投诉')
- {
- $("#LimitDays").val("15");
- }
- if(complaintTypeName1=='常规投诉')
- {
- $("#LimitDays").val("5");
- }
- }
- else
- {
- $("#ComplaintTypeName1").val("");
- }
- setLimitEndDate();
-
- }
- //回写投诉二级分类字典数据
- function setComplaintTypeID2Data(data){
- $("#ComplaintTypeID2").empty();
- $("#ComplaintTypeID2").append("<option value=''>请选择</option>");
- $("#ComplaintTypeID2").append(data);
- }
- function setComplaintTypeName2()
- {
- var complaintTypeID2=$('#ComplaintTypeID2').val();
- if(complaintTypeID2!='')
- {
- var complaintTypeName2=$("#ComplaintTypeID2").find("option:selected").text();
- $("#ComplaintTypeName2").val(complaintTypeName2);
- if(complaintTypeName2=="群访事件")
- {
- $("#ComplaintPersonNum").attr("vmode","not null");
- }
- }
- else
- {
- $("#ComplaintTypeName2").val("");
- }
- }
- //群访事件客诉人数量判断
- function setComplaintPersonNum()
- {
- var complaintTypeName2=$("#ComplaintTypeID2").find("option:selected").text();
- var iComplaintPersonNum=parseInt($("#ComplaintPersonNum").val());
- if(complaintTypeName2=="群访事件")
- {
- if(iComplaintPersonNum<5)
- {
- layer.alert("群访事件投诉人数量不能少于5人!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- if(iComplaintPersonNum>=5)
- {
- if(complaintTypeName2!="群访事件")
- {
- layer.alert("投诉人数量大于等于5人以上的必须选择群访事件!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- }
- //业务催办二级分类
- function setUrgeDoTypeID2()
- {
- var idData=$('#UrgeDoTypeID1').val();
- if(idData!='')
- {
- var nameData=$("#UrgeDoTypeID1").find("option:selected").text();
- $("#UrgeDoTypeName1").val(nameData);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getUrgeDoTypeID2Data');
- $('#form1').ajaxSubmit(setUrgeDoTypeID2Data);
- }
- else
- {
- $("#UrgeDoTypeID2").empty();
- $("#UrgeDoTypeName1").val("");
- }
- }
- //回写投诉二级分类字典数据
- function setUrgeDoTypeID2Data(data){
- $("#UrgeDoTypeID2").empty();
- $("#UrgeDoTypeID2").append("<option value=''>请选择</option>");
- $("#UrgeDoTypeID2").append(data);
- }
- function setUrgeDoTypeName2()
- {
- var idData=$('#UrgeDoTypeID2').val();
- if(idData!='')
- {
- var nameData=$("#UrgeDoTypeID2").find("option:selected").text();
- $("#UrgeDoTypeName2").val(nameData);
- }
- else
- {
- $("#UrgeDoTypeName2").val("");
- }
- }
- function setSectionName()
- {
- var sectionID=$('#SectionID').val();
- if(sectionID!='')
- {
- var sectionName=$("#SectionID").find("option:selected").text();
- $("#SectionName").val(sectionName);
- }
- else
- {
- $("#SectionName").val("");
- }
- }
- function setToAllOrgName()
- {
- var toAllOrgID=$('#ToAllOrgID').val();
- if(toAllOrgID!='')
- {
- var toAllOrgName=$("#ToAllOrgID").find("option:selected").text();
- $("#ToAllOrgName").val(toAllOrgName);
- }
- else
- {
- $("#ToAllOrgName").val("");
- }
- }
-
-
- function repeatClose()
- {
- $('#repeatModal').modal('hide');
- }
-
- //查询产品列表
- function queryUnit()
- {
- var strQueryCardType="0";
- var strQueryIDCard=$("#QueryIDCard").val();
- if(strQueryIDCard!=""&&strQueryCardType!="")
- {
- var strCryptoKey="ZGIyMTM5NTYxYzlmZTA2OA==";
- var key = CryptoJS.enc.Utf8.parse(strCryptoKey);
- var strUTF8QueryIDCard = CryptoJS.enc.Utf8.parse(strQueryIDCard);
- var encQueryIDCard = CryptoJS.AES.encrypt(strUTF8QueryIDCard, key, {mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7});
- var strEncQueryIDCard1 = encQueryIDCard.toString();
-
- var strEncQueryIDCard=encodeURIComponent(strEncQueryIDCard1);
- //测试地址
- //fullOpen("http://10.19.16.180:80/equerying/manager.do?method=adminIndex&identitytype=100&fundacco="+strEncQueryIDCard+"&certificatetype="+strQueryCardType);
- //生产地址
- fullOpen("http://10.20.122.71:80/equerying/manager.do?method=adminIndex&identitytype=100&fundacco="+strEncQueryIDCard+"&certificatetype="+strQueryCardType);
- }
- else
- {
- layer.alert("证件号码不能为空!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- function queryCompactBasic()
- {
- var strQueryCardType="0";
- var strQueryIDCard=$("#QueryIDCard").val();
- if(strQueryIDCard!=""&&strQueryCardType!="")
- {
- $('#form1').attr('action','${ctx}/myconsole/complaint/interface/queryProductBasic');
- $('#form1').ajaxSubmit(setCompactList);
- }
- else
- {
- layer.alert("证件号码不能为空!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- //回写产品列表数据
- var productList=null;
- function setCompactList(data)
- {
- var compactJson = JSON.parse(data);
- console.log(compactJson);
- var flag=compactJson.flag;
- productList=null;
- productList=compactJson.productList;
-
- if(flag)
- {
- $("#CompactModal_Table").find("tr:not(:first)").remove();
- for(var i=0;i<compactJson.productList.length;i++)
- {
- var compact=compactJson.productList[i];
- var strKeyID=compact.keyid;
- var strChannelName=compact.channelname;
- var strProductName=compact.productname;
- var strProductShare=compact.productshare;
-
- $("#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>");
-
- }
- $('#CompactModal').modal({
- backdrop: 'static',
- keyboard: false
- })
-
- }
- else
- {
- layer.alert("没有查询到产品信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
-
- function okCompact()
- {
- var obj=$("input[name='PolicySelectFlag']");
- var strSelectedKeyID="";
-
- for(k in obj)
- {
- if(obj[k].checked)
- {
- strSelectedKeyID=strSelectedKeyID+obj[k].value+",";
- }
- }
-
- if(strSelectedKeyID=='')
- {
- layer.alert("请选择至少一个产品!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- else
- {
- $('#CompactModal').modal('hide');
-
- for(var i=0;i<productList.length;i++)
- {
- var compact=productList[i];
- var strKeyID=compact.keyid;
- if(strSelectedKeyID.indexOf(strKeyID)!=-1)
- {
-
- var strChannelID=compact.channelid;
- var strChannelName=compact.channelname;
- var strProductID=compact.productid;
- var strProductName=compact.productname;
- var strProductShare=compact.productshare;
- var strCompanyName=compact.companyname;
- var strAccountBalance=compact.accountbalance;
- var strAccountState=compact.accountstate;
- var strBuyList=compact.buylist;
-
- var iProductNumber=parseInt($("#ProductNumber").val());
- var iProductFlagNumber=parseInt($("#ProductFlagNumber").val());
-
- iProductNumber=iProductNumber+1;
- iProductFlagNumber=iProductFlagNumber+1
-
- var content="<div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_0>"+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"Channel'>渠道</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' value='"+strChannelName+"' id='product"+iProductFlagNumber+"ChannelName' name='product.ChannelName' maxlength='40' vmode='' vdisp='渠道' vtype='string' readonly > "+
- " <input type='hidden' value='"+strChannelID+"' id='product"+iProductFlagNumber+"ChannelID' name='product.ChannelID' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"ProductName'>名称</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' value='"+strProductName+"' id='product"+iProductFlagNumber+"ProductName' name='product.ProductName' maxlength='40' vmode='' vdisp='名称' vtype='string' readonly >"+
- " <input type='hidden' value='"+strProductID+"' id='product"+iProductFlagNumber+"ProductID' name='product.ProductID' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"ProductShare'>产品持有份额/金额</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <div class='input-group'>"+
- " <input type='text' class='form-control' onBlur=countShare() value='"+strProductShare+"' id='product"+iProductFlagNumber+"ProductShare' name='product.ProductShare' vmode='' vdisp='产品份额' vtype='string' readonly >"+
- " <div class='input-group-btn'>"+
- " <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>"+
- " <ul class='dropdown-menu dropdown-menu-right'>"+
- " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','份')>份</a></li>"+
- " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','元')>元</a></li>"+
- " </ul>"+
- " <input type='hidden' id='product"+iProductFlagNumber+"ShareUnit' name='product.ShareUnit' value='份'>"+
- " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteProduct('product"+iProductFlagNumber+"')>"+
- " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
- " </button> "+
- " </div>"+
- " </div>"+
- " </div> "+
- " </div> "+
- " <div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_1>"+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"CompanyName'>企业名称</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' value='"+strCompanyName+"' id='product"+iProductFlagNumber+"CompanyName' name='product.CompanyName' maxlength='80' vmode='' vdisp='企业名称' vtype='string' readonly >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"AccountBalance'>个人账户余额</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' value='"+strAccountBalance+"' id='product"+iProductFlagNumber+"AccountBalance' name='product.AccountBalance' maxlength='18' vmode='' vdisp='个人账户余额' vtype='float' readonly >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"AccountState'>个人账户状态</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' value='"+strAccountState+"' id='product"+iProductFlagNumber+"AccountState' name='product.AccountState' maxlength='20' vmode='' vdisp='个人账户状态' vtype='string' readonly >"+
- " </div> "+
- " </div> ";
-
- $("#ProductNumber").val(iProductNumber);
- $("#ProductFlagNumber").val(iProductFlagNumber);
- $("#ProductObj").append(content);
-
- }
-
-
- }
- countShare();
- }
-
- }
- function countShare()
- {
- var iProductNumber=parseInt($("#ProductNumber").val());
- if(iProductNumber>1)
- {
- var objShareUnit=$("input[name='product.ShareUnit']");
- var objProductShare=$("input[name='product.ProductShare']");
-
- var fInvolvedCopies=0.0;
- var fInvolvedMoney=0.0;
-
- for(var k=0;k<iProductNumber;k++)
- {
- var strProductShare = objProductShare[k].value;
- if(strProductShare=="")
- {
- strProductShare="0";
- }
- if(objShareUnit[k].value=='份')
- {
- fInvolvedCopies=fInvolvedCopies+parseFloat(strProductShare);
- }
- else
- {
- fInvolvedMoney=fInvolvedMoney+parseFloat(strProductShare);
- }
- }
- fInvolvedCopies=fInvolvedCopies.toFixed(4);
- fInvolvedMoney=fInvolvedMoney.toFixed(2);
- $("#InvolvedCopies").val(fInvolvedCopies);
- $("#InvolvedMoney").val(fInvolvedMoney);
- }
- else
- {
- var strProductShare=$("#product1ProductShare").val();
- var strShareUnit=$("#product1ShareUnit").val();
- if(strShareUnit=='份')
- {
- $("#InvolvedCopies").val(strProductShare);
- $("#InvolvedMoney").val("");
- }
- else
- {
- $("#InvolvedMoney").val(strProductShare);
- $("#InvolvedCopies").val("");
- }
-
- }
- }
- function addProduct()
- {
- var iProductNumber=parseInt($("#ProductNumber").val());
- var iProductFlagNumber=parseInt($("#ProductFlagNumber").val());
- if(iProductNumber>=100)
- {
- layer.alert("最多只能设置100个产品信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- else
- {
- iProductNumber=iProductNumber+1;
- iProductFlagNumber=iProductFlagNumber+1
-
- var content="<div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_0>"+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"Channel'>渠道</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <select id='product"+iProductFlagNumber+"ChannelID' name='product.ChannelID' onChange=setProductID('product"+iProductFlagNumber+"') class='form-control' vmode='' vdisp='渠道' vtype='string'>"+
- " <option value=''>请选择</option>"+
- " ${dic_productnameForID!''}"+
- " </select> "+
- " <input type='hidden' id='product"+iProductFlagNumber+"ChannelName' name='product.ChannelName' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"ProductName'>名称</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <select id='product"+iProductFlagNumber+"ProductID' name='product.ProductID' onChange=setProductName('product"+iProductFlagNumber+"') class='form-control' vmode='' vdisp='产品名称' vtype='string'>"+
- " <option value=''>请选择</option>"+
- " </select>"+
- " <input type='hidden' id='product"+iProductFlagNumber+"ProductName' name='product.ProductName' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"ProductShare'>产品持有份额/金额</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <div class='input-group'>"+
- " <input type='text' class='form-control' onBlur=countShare() id='product"+iProductFlagNumber+"ProductShare' name='product.ProductShare' vmode='' vdisp='产品份额' vtype='string' >"+
- " <div class='input-group-btn'>"+
- " <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>"+
- " <ul class='dropdown-menu dropdown-menu-right'>"+
- " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','份')>份</a></li>"+
- " <li><a href='#' onclick=setProductShare('product"+iProductFlagNumber+"','元')>元</a></li>"+
- " </ul>"+
- " <input type='hidden' id='product"+iProductFlagNumber+"ShareUnit' name='product.ShareUnit' value='份'>"+
- " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteProduct('product"+iProductFlagNumber+"')>"+
- " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
- " </button> "+
- " </div>"+
- " </div>"+
- " </div> "+
- " </div> "+
- " <div class='row' style='padding:5px' id=product"+iProductFlagNumber+"_1>"+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"CompanyName'>企业名称</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' id='product"+iProductFlagNumber+"CompanyName' name='product.CompanyName' maxlength='80' vmode='' vdisp='企业名称' vtype='string' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"AccountBalance'>个人账户余额</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' id='product"+iProductFlagNumber+"AccountBalance' name='product.AccountBalance' maxlength='18' vmode='' vdisp='个人账户余额' vtype='float' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='product"+iProductFlagNumber+"AccountState'>个人账户状态</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <input type='text' class='form-control' id='product"+iProductFlagNumber+"AccountState' name='product.AccountState' maxlength='20' vmode='' vdisp='个人账户状态' vtype='string' >"+
- " </div> "+
- " </div> ";
-
- $("#ProductNumber").val(iProductNumber);
- $("#ProductFlagNumber").val(iProductFlagNumber);
- $("#ProductObj").append(content);
-
-
- }
- }
- function setProductShare(productModel,strType)
- {
- $("#"+productModel+'ShareUnitShow').text(strType);
- $("#"+productModel+'ShareUnit').val(strType);
- if(strType=="元")
- {
- var strProductShare=$("#"+productModel+"ProductShare").val();
- if(strProductShare.indexOf(".")!=-1)
- {
- var iLong=strProductShare.split(".")[1].length;
- if(iLong>2)
- {
- layer.alert("金额最多只能保留两位小数!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
-
- }
- if(strType=="份")
- {
- var strProductShare=$("#"+productModel+"ProductShare").val();
- if(strProductShare.indexOf(".")!=-1)
- {
- var iLong=strProductShare.split(".")[1].length;
- if(iLong>4)
- {
- layer.alert("金额最多只能保留四位小数!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- }
- countShare();
- }
- function deleteProduct(productFlagNumber)
- {
- var iProductNumber=parseInt($("#ProductNumber").val());
- if(iProductNumber>=100)
- {
- iProductNumber=100;
- }
- iProductNumber=iProductNumber-1;
- $("#ProductNumber").val(iProductNumber);
- $("div").remove("#"+productFlagNumber+"_0");
- $("div").remove("#"+productFlagNumber+"_1");
-
- }
- function addRedemption()
- {
- var iProductNumber=parseInt($("#RedemptionNumber").val());
- if(iProductNumber>=10)
- {
- layer.alert("最多只能设置10个产品赎回信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- else
- {
-
-
- var content="<div class='row' style='padding:5px' id=redemption"+iProductNumber+">"+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='redemption"+iProductNumber+"Channel'>渠道</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <select id='redemption"+iProductNumber+"ChannelID' name='redemption.ChannelID' onChange=setProductID('redemption"+iProductNumber+"') class='form-control' vmode='' vdisp='渠道' vtype='string'>"+
- " <option value=''>请选择</option>"+
- " ${dic_productnameForID!''}"+
- " </select> "+
- " <input type='hidden' id='redemption"+iProductNumber+"ChannelName' name='redemption.ChannelName' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='redemption"+iProductNumber+"ProductName'>产品名称</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <select id='redemption"+iProductNumber+"ProductID' name='redemption.ProductID' onChange=setProductName('redemption"+iProductNumber+"') class='form-control' vmode='' vdisp='产品名称' vtype='string'>"+
- " <option value=''>请选择</option>"+
- " </select>"+
- " <input type='hidden' id='redemption"+iProductNumber+"ProductName' name='redemption.ProductName' >"+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- " <label class='control-label' for='redemption"+iProductNumber+"ArrivalAmount'>到账金额</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- " <div class='input-group'>"+
- " <input type='text' class='form-control' id='redemption"+iProductNumber+"ArrivalAmount' name='redemption.ArrivalAmount' vmode='' vdisp='产品份额' vtype='string' >"+
- " <div class='input-group-btn'>"+
- " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteRedemption()>"+
- " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
- " </button> "+
- " </div>"+
- " </div>"+
- " </div> "+
- " </div>";
- iProductNumber=iProductNumber+1;
- $("#RedemptionNumber").val(iProductNumber);
- $("#RedemptionObj").append(content);
-
-
- }
- }
- function deleteRedemption()
- {
- var iProductNumber=parseInt($("#RedemptionNumber").val());
- if(iProductNumber>=10)
- {
- iProductNumber=10;
- }
- iProductNumber=iProductNumber-1;
- $("div").remove("#redemption"+iProductNumber);
- $("#RedemptionNumber").val(iProductNumber);
- }
- //同步证件信息
- function synchroIDCard(TNameField,IDCardField)
- {
- var TNameValue=$("#"+TNameField).val();
- var IDCardValue=$("#"+IDCardField).val();
- $("#TName").val(TNameValue);
- $("#IDCard").val(IDCardValue);
- $("#navTName").val(TNameValue);
- $("#navIDCard").val(IDCardValue);
- }
- //同步电话号码
- function synchroLinkTel1(LinkTel1Field)
- {
- var LinkTel1Value=$("#"+LinkTel1Field).val();
- $("#LinkTel1").val(LinkTel1Value);
- $("#navLinkTel1").val(LinkTel1Value);
- }
- function setCollapseIcon(collapseIcon)
- {
- var curCollapseIconClass=$("#"+collapseIcon).attr("class");
- if(curCollapseIconClass=="glyphicon glyphicon-menu-up")
- {
- $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-down");
- }
- else
- {
- $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-up");
- }
- }
- //查看 2017-07-19
- function seeRepeatData(appealid){
- fullOpen("${ctx}/myconsole/complaint/register/seeRepeatData?appealid="+appealid);
- }
- //设置客户最后要求时间
- function setAskEndTime()
- {
- var appealDate=$("#AppealDate").val();
- var askTimeBlockID=$('#AskTimeBlockID').val();
- var limitHours=parseInt(askTimeBlockID);
-
- if(askTimeBlockID!='')
- {
- var nameValue=$("#AskTimeBlockID").find("option:selected").text();
- $("#AskTimeBlockName").val(nameValue);
- }
- else
- {
- $("#AskTimeBlockName").val("");
- }
-
- var limitDays=parseInt(limitHours/24);
- var initLimitDays=limitDays;
- var limitDaysType=$("#LimitDaysType").val();
- if(limitDaysType=="工作日")
- {
- var mydate = new Date(appealDate+":01");
- var week=parseInt(mydate.getDay());
- var iSat=0;
- if(week==6)
- {
- week=0;
- iSat=1;
- }
-
- var iCountDate=parseInt(limitDays+week);
- if(iCountDate>5&&iCountDate<=10)
- {
- limitDays=limitDays+2;
- }
- if(iCountDate>10&&iCountDate<=15)
- {
- limitDays=limitDays+4;
- }
- if(iCountDate>15&&iCountDate<=20)
- {
- limitDays=limitDays+6;
- }
- if(iCountDate>20&&iCountDate<=25)
- {
- limitDays=limitDays+8;
- }
- if(iCountDate>25&&iCountDate<=30)
- {
- limitDays=limitDays+10;
- }
- limitDays=limitDays+iSat;
- }
- var newLimitDays=limitDays-initLimitDays;
- limitHours=parseInt(limitHours+newLimitDays*24);
-
- var nd = addNHours(appealDate+":01",limitHours);
- var askEndTime = nd.format('yyyy-MM-dd hh:mm');
- if(askTimeBlockID=="0.5")
- {
- var nd1 = addNMinute(askEndTime+":01",30);
- askEndTime = nd1.format('yyyy-MM-dd hh:mm');
- }
- if(askTimeBlockID!=''&&askTimeBlockID!='0')
- {
- $("#AskEndTime").val(askEndTime);
- }
- }
- //设置最后办理时限
- //设置最后办理时限
- function setLimitEndDate()
- {
- var curDate=$("#AppealDate").val();
- var limitDays=parseInt($("#LimitDays").val())-1;
- var limitDaysType=$("#LimitDaysType").val();
- if(limitDaysType=="工作日")
- {
- var mydate = new Date(curDate);
- var week=parseInt(mydate.getDay());
- var iSat=0;
- if(week==6)
- {
- week=0;
- iSat=1;
- }
-
- var iCountDate=parseInt(limitDays+week);
- if(iCountDate>5&&iCountDate<=10)
- {
- limitDays=limitDays+2;
- }
- if(iCountDate>10&&iCountDate<=15)
- {
- limitDays=limitDays+4;
- }
- if(iCountDate>15&&iCountDate<=20)
- {
- limitDays=limitDays+6;
- }
- if(iCountDate>20&&iCountDate<=25)
- {
- limitDays=limitDays+8;
- }
- if(iCountDate>25&&iCountDate<=30)
- {
- limitDays=limitDays+10;
- }
- limitDays=limitDays+iSat;
- }
- var nd = addNDays(curDate,limitDays);
- var limitEndDate = nd.format('yyyy-MM-dd');
- if($("#LimitDays").val()!='')
- {
- $("#LimitEndDate").val(limitEndDate);
- }
-
- }
- Date.prototype.format =function(format)
- {
- var o = {
- "M+" : this.getMonth()+1, //month
- "d+" : this.getDate(), //day
- "h+" : this.getHours(), //hour
- "m+" : this.getMinutes(), //minute
- "s+" : this.getSeconds(), //second
- "q+" : Math.floor((this.getMonth()+3)/3), //quarter
- "S" : this.getMilliseconds() //millisecond
- }
- if(/(y+)/.test(format)){
- format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4- RegExp.$1.length));
- }
- for(var k in o){
- if(new RegExp("("+ k +")").test(format)){
- format = format.replace(RegExp.$1,RegExp.$1.length==1? o[k] :("00"+ o[k]).substr((""+o[k]).length));
- }
- }
- return format;
- }
-
- var addNDays=function(date,n){
- var d = new Date(Date.parse(date.replace(/-/g,"/")));
- var time=d.getTime();
- var newTime=time+n*24*60*60*1000;
- return new Date(newTime);
- };
- var addNHours=function(date,n){
- var d = new Date(Date.parse(date.replace(/-/g,"/")));
- var time=d.getTime();
- var newTime=time+n*60*60*1000;
- return new Date(newTime);
- };
- var addNMinute=function(date,n){
- var d = new Date(Date.parse(date.replace(/-/g,"/")));
- var time=d.getTime();
- var newTime=time+n*60*1000;
- return new Date(newTime);
- };
- function addRespondent()
- {
-
- var respondentNumber=parseInt($("#RespondentNumber").val());
- if(respondentNumber>=5)
- {
- layer.alert("最多只能设置5个被诉人信息!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- else
- {
- var content="<div class='row' style='padding:5px' id=respondent"+respondentNumber+"_1>"+
- "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
- " <label class='control-label' for='FilialeID'>次被诉公司</label>"+
- "</div>"+
- "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
- " <select id='respondent"+respondentNumber+"FilialeID' name='respondent"+respondentNumber+".FilialeID' onChange=setBusinessHallID('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='次被诉公司' vtype='string'>"+
- " <option value=''>请选择</option>"+
- " ${filialeID!''} "+
- " </select> "+
- "</div> "+
- "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1' >"+
- "<label class='control-label' for='BusinessHallID'>被诉部门</label>"+
- "</div>"+
- "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>"+
- "<select id='respondent"+respondentNumber+"BusinessHallID' name='respondent"+respondentNumber+".BusinessHallID' onChange=setBusinessHallName('respondent"+respondentNumber+"') class='form-control' vmode='' vdisp='被诉部门' vtype='string'>"+
- " <option value='''>请选择</option> "+
- " </select> "+
- "</div>"+
- "<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
- " <label class='control-label' for='RespondentType'>被投诉类型</label>"+
- "</div>"+
- "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
- " <select id='respondent"+respondentNumber+"RespondentType' name='respondent"+respondentNumber+".RespondentType' onChange=setBusinessHallName('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='被投诉类型' vtype='string'>"+
- " <option value='''>请选择</option> ${dic_respondenttype!''}"+
- " </select> "+
- "</div> "+
- " </div>"+
- "<div class='row' style='padding:5px' id=respondent"+respondentNumber+"_2 >"+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
- " <label class='control-label' for='respondent"+respondentNumber+"ProvinceID'>归属地省</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
- " <select id='respondent"+respondentNumber+"ProvinceID' name='respondent"+respondentNumber+".ProvinceID' onChange=setAreaID('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='归属地省' vtype='number'>"+
- " <option value=''>请选择</option>"+
- " ${provinceID!''} "+
- " </select> "+
- " </div> "+
- " <div class='col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback' >"+
- " <label class='control-label' for='respondent"+respondentNumber+"AreaID'>地市</label>"+
- " </div>"+
- " <div class='col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback'>"+
- " <div class='input-group'>"+
- " <select id='respondent"+respondentNumber+"AreaID' name='respondent"+respondentNumber+".AreaID' onChange=setAreaName('respondent"+respondentNumber+"') class='form-control' vmode='not null' vdisp='地市' vtype='number' >"+
- " <option value=''>请选择</option>"+
- " </select> "+
- " <div class='input-group-btn'>"+
- " <button type='button' class='btn btn-default' aria-label='Left Align' onclick=deleteRespondent()>"+
- " <span class='glyphicon glyphicon-minus' aria-hidden='true'></span>"+
- " </button> "+
- " </div>"+
- " </div>"+
- " </div> "+
- " </div>";
- respondentNumber=respondentNumber+1;
- $("#RespondentNumber").val(respondentNumber);
- $("#ComplainPersonObj").append(content);
-
-
- }
- }
- function deleteRespondent()
- {
- var respondentNumber=parseInt($("#RespondentNumber").val());
- if(respondentNumber>=6)
- {
- respondentNumber=5;
- }
- respondentNumber=respondentNumber-1;
- var resObj='respondent'+respondentNumber
- $("div").remove("#"+resObj+"_1");
- $("div").remove("#"+resObj+"_2");
- $("#RespondentNumber").val(respondentNumber);
- }
-
- function setAppealType()
- {
- var appealType=$("#AppealType").val();
- if(appealType=='消费投诉')
- {
- $("#Complain1").show();
- $("#Complain2").show();
- $("#Complain3").show();
- $("#ReasonID1").attr("vmode","not null");
- if($("#ComplaintTypeID1").val()=="001")
- {
- $("#LimitDays").val("5");
- }
- else
- {
- $("#LimitDays").val("3");
- }
- $("#LimitDays").attr("readOnly","true");
- $("#LimitEndDate").attr("readOnly","true");
- setLimitEndDate();
- $("#ComplaintTypeID1").val("002");
- }
- else
- {
- $("#Complain1").hide();
- $("#Complain2").hide();
- $("#Complain3").hide();
- $("#ReasonID1").attr("vmode","");
- $("#LimitDays").val("0");
- $("#LimitEndDate").val("");
- $("#LimitDays").removeAttr("readOnly");
- $("#LimitEndDate").removeAttr("readOnly");
- $("#ComplaintTypeID1").val("");
- }
- if(appealType=='异议信息')
- {
- $("#LimitDays").val("5");
-
- $("#LimitDays").attr("readOnly","true");
- $("#LimitEndDate").attr("readOnly","true");
- setLimitEndDate();
- }
-
- if(appealType=='不满抱怨')
- {
- $("#LimitDays").val("5");
-
- $("#LimitDays").attr("readOnly","true");
- $("#LimitEndDate").attr("readOnly","true");
- setLimitEndDate();
- }
-
- }
- function setTransactType()
- {
- var transactType=$("#TransactType").val();
- if(transactType=='')
- {
- $("#ToOrgInfo").hide();
- $("#CopyToOrgInfo").hide();
- $("#ToOrgAndJob").attr("vmode","");
- }
- else
- {
- $("#SubmitButton").removeAttr('disabled');
- var transactIdea=$("#TransactIdea").val();
- if(transactIdea==""||transactIdea=="暂存"||transactIdea=="转办处理"||transactIdea=="已安抚化解")
- {
- var transactTypeShowName=$("#TransactType").find("option:selected").text();
- $("#TransactIdea").val(transactTypeShowName);
- }
- }
- if(transactType=='暂存')
- {
- $("#ToOrgInfo").hide();
- $("#RemoveDataIdea").attr("vmode","");
- $("#divRemoveDataIdea").hide();
- $('#transactAppealState').val("暂存");
- $("#appealDoState").val("暂存");
- $("#transactDoState").val("暂存");
- $("#ToOrgAndJob").attr("vmode","");
- }
- if(transactType=='转办处理')
- {
- $('#transactAppealState').val("办理");
- $("#appealDoState").val("办理");
- $("#transactDoState").val("已办理");
- $('#form1').attr('action','${ctx}/myconsole/complaint/rule/getAutoRule');
- $('#form1').ajaxSubmit(setAutoRule);
- }
- if(transactType=='已安抚化解'||transactType=='客户仍有不满情绪')
- {
- $('#transactAppealState').val("办理");
- $("#appealDoState").val("办理");
- $("#transactDoState").val("已办理");
- $('#form1').attr('action','${ctx}/myconsole/complaint/rule/getSelfRule');
- $('#form1').ajaxSubmit(setAutoRule);
- }
-
- }
-
- function setAutoRule(data)
- {
- var ruleJson = JSON.parse(data);
- var flag=ruleJson.flag;
- if(flag)
- {
- $('#ToOrgAndJob').val(ruleJson.Job_UserName);
- $('#ToOrgID').val(ruleJson.Job_OrgID);
- $('#ToOrgName').val(ruleJson.Job_OrgName);
- $('#ToUserID').val(ruleJson.Job_UserID);
- $('#ToUserName').val(ruleJson.Job_UserName);
- if(ruleJson.Job_OrgParentOrgType=="中支公司")
- {
- $('#ToCentreOrgID').val(ruleJson.Job_OrgParentID);
- $('#ToCentreOrgName').val(ruleJson.Job_OrgParentName);
- }
- if(ruleJson.Job_OrgParentOrgType=="分公司")
- {
- $('#ToFilialeOrgID').val(ruleJson.Job_OrgParentID);
- $('#ToFilialeOrgName').val(ruleJson.Job_OrgParentName);
- }
- }
- $("#TempSaveButton").attr("disabled",'disabled');
- $("#EndButton").attr("disabled",'disabled');
- $("#SubmitButton").removeAttr('disabled');
- $("#ToOrgInfo").show();
- $("#CopyToOrgInfo").show();
- $("#ToOrgAndJob").attr("vmode","not null");
- }
-
- $(function() {
- setLimitEndDate();
- $('#LimitDaysSpinner').spinner('changed', function(e, newVal, oldVal) {
- setLimitEndDate();
- });
- });
-
- //下载附件
- function downFile(filePath,fileName)
- {
- window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
- }
-
- function setSalesChannelName()
- {
- var idData=$('#SalesChannelID').val();
- if(idData!='')
- {
- var nameData=$("#SalesChannelID").find("option:selected").text();
- $("#SalesChannelName").val(nameData);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getSalesTypeIDData?ParentID='+idData);
- $('#form1').ajaxSubmit(setSalesTypeIDData);
- }
- else
- {
- $("#SalesChannelName").val("");
- }
- }
- //回写销售方式数据
- function setSalesTypeIDData(data)
- {
- $("#SalesTypeID").empty();
- $("#SalesTypeID").append("<option value=''>请选择</option>");
- $("#SalesTypeID").append(data);
- }
- function setSalesTypeName()
- {
- var idData=$('#SalesTypeID').val();
- if(idData!='')
- {
- var nameData=$("#SalesTypeID").find("option:selected").text();
- $("#SalesTypeName").val(nameData);
- }
- else
- {
- $("#SalesTypeName").val("");
- }
- }
- //转办选人
- function setZBOrgUser()
- {
- var zTreeObj;
- var zNodes;
- function zTreeChecked(event, treeId, treeNode) {
- setZBOrgAndUser(treeNode.id,treeNode.name);
- };
- //异步获取数据
- function ajaxDataFilter(treeId, parentNode, data) {
- if(data == "") return;
- var zNodes = [];
-
- var orgN = data.Org;
-
- orgN.forEach(function(item,index){
- zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
- })
- var userN = data.User;
- if(userN!=null)
- {
- userN.forEach(function(item,index){
- zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
-
- })
- }
-
- return zNodes;
- }
- var setting = { //初始化树
- check: {
- enable: true,
- chkboxType: { "Y" : "", "N" : "" },
- autoCheckTrigger: true
- },
- data: {
- simpleData: {
- idKey:"id",
- pIdKey:"pId",
- enable:true,
- rootPId:"0"
- }
- },
- callback: {
- onCheck: zTreeChecked
- },
- async:{
- enable:true,
- url:"${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree",
- autoParam:["id", "name"] ,
- dataFilter: ajaxDataFilter
- }
- };
- //初始化获取数据
- $.ajax({
- url : "${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree?name=init",
- type : "post",
- dataType : "json",
- success : function(data) {
- if(data == "") return;
- var zNodes = [];
- var orgN = data.Org;
- if(orgN!=null)
- {
- orgN.forEach(function(item,index){
- zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
- })
- }
- var userN = data.User;
- if(userN!=null)
- {
- userN.forEach(function(item,index){
- zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
- })
- }
-
-
- zTreeObj = $.fn.zTree.init($("#UserTree"), setting, zNodes);//初始化树节点时,添加同步获取的数据
- }
- });
- $('#orgModal').modal({
- backdrop: 'static',
- keyboard: false
- })
-
- }
- function setSpecialRedemption()
- {
- if($("#SpecialRedemptionFlag").is(":checked"))
- {
- $("#SpecialRedemptionFlag1").show();
- $("#SpecialRedemptionFlag2").show();
- $("#SpecialRedemptionFlag3").show();
- $("#SpecialRedemption").val("是");
- }
- else
- {
- $("#SpecialRedemptionFlag1").hide();
- $("#SpecialRedemptionFlag2").hide();
- $("#SpecialRedemptionFlag3").hide();
- $("#SpecialRedemption").val("否");
- }
- }
- function setProductID(productModel)
- {
- var strChannelID=$('#'+productModel+"ChannelID").val();
- if(strChannelID!='')
- {
- var strChannelName=$('#'+productModel+"ChannelID").find("option:selected").text();
- $('#'+productModel+"ChannelName").val(strChannelName);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getProductIDData?ParentID='+strChannelID);
- $('#form1').ajaxSubmit(setProductIDData);
- $('#ProductModel').val(productModel);
- }
- else
- {
- $("#"+productModel+"ProductID").empty();
- $("#"+productModel+"ChannelName").val("");
- }
-
- }
- //回写产品数据
- function setProductIDData(data)
- {
- var productModel=$('#ProductModel').val();
- $("#"+productModel+"ProductID").empty();
- $("#"+productModel+"ProductID").append("<option value=''>请选择</option>");
- $("#"+productModel+"ProductID").append(data);
- }
- function setProductName(productModel)
- {
- var idData=$("#"+productModel+"ProductID").val();
- if(idData!='')
- {
- var nameData=$("#"+productModel+"ProductID").find("option:selected").text();
- $("#"+productModel+"ProductName").val(nameData);
- }
- else
- {
- $("#"+productModel+"ProductName").val("");
- }
- }
- function setQuestionTypeID2()
- {
- var strQuestionTypeID1=$('#QuestionTypeID1').val();
- if(strQuestionTypeID1!='')
- {
- var strQuestionTypeName1=$("#QuestionTypeID1").find("option:selected").text();
- $("#QuestionTypeName1").val(strQuestionTypeName1);
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getQuestionTypeID2Data?ParentID='+strQuestionTypeID1);
- $('#form1').ajaxSubmit(setQuestionTypeID2Data);
- }
- else
- {
- $("#QuestionTypeID2").empty();
- $("#QuestionTypeName1").val("");
- }
- }
- //回写原因二类字典数据
- function setQuestionTypeID2Data(data){
- $("#QuestionTypeID2").empty();
- $("#QuestionTypeID2").append("<option value=''>请选择</option>");
- $("#QuestionTypeID2").append(data);
- }
- function setQuestionTypeName2()
- {
- var strQuestionTypeID2=$('#QuestionTypeID2').val();
- if(strQuestionTypeID2!='')
- {
- var strQuestionTypeName2=$("#QuestionTypeID2").find("option:selected").text();
- $("#QuestionTypeName2").val(strQuestionTypeName2);
- }
- else
- {
- $("#QuestionTypeName2").val("");
- }
- }
- function setZBOrgAndUser(userid,username)
- {
- $('#ToUserID').val(userid);
- $('#ToUserName').val(username);
- $('#ToOrgAndJob').val(username);
- $('#orgModal').modal('hide');
- }
- //选择抄送人员
- function setSignUser()
- {
- var zTreeObj;
- var zNodes;
- function zTreeChecked(event, treeId, treeNode) {
- var checkUserID = [];
- var checkUserName = [];
- var userArr = zTreeObj.getCheckedNodes(); //获取选中数组集合
- if(userArr.length>0)
- {
- userArr.forEach(function(item,index){
- if(item.istype)
- {
- checkUserID.push(item.id);
- checkUserName.push(item.name);
- }
- })
- }
-
- setHBOrgAndUser(checkUserID,checkUserName);
-
- };
- //异步获取数据
- function ajaxDataFilter(treeId, parentNode, data) {
- if(data == "") return;
- var zNodes = [];
-
- var orgN = data.Org;
-
- orgN.forEach(function(item,index){
- zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
- })
- var userN = data.User;
- if(userN!=null)
- {
- userN.forEach(function(item,index){
- zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
- })
- }
-
- return zNodes;
- }
- var setting = { //初始化树
- check: {
- enable: true,
- chkboxType: { "Y" : "", "N" : "" },
- autoCheckTrigger: true
- },
- data: {
- simpleData: {
- idKey:"id",
- pIdKey:"pId",
- enable:true,
- rootPId:"0"
- }
- },
- callback: {
- onCheck: zTreeChecked
- },
- async:{
- enable:true,
- url:"${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree",
- autoParam:["id", "name"] ,
- dataFilter: ajaxDataFilter
- }
- };
- //初始化获取数据
- $.ajax({
- url : "${ctx}/myconsole/complaint/preinflow/getOrgAndUserTree?name=init",
- type : "post",
- dataType : "json",
- success : function(data) {
- if(data == "") return;
- var zNodes = [];
- var orgN = data.Org;
- if(orgN!=null)
- {
- orgN.forEach(function(item,index){
- zNodes.push({id:item.orgid,pId:item.parentid,name:item.orgname,istype:false, isParent:true,"nocheck":true});
- })
- }
- var userN = data.User;
- if(userN!=null)
- {
- userN.forEach(function(item,index){
- zNodes.push({id:item.userid,pId:item.orgid,name:item.username,istype:true,checked:false});
- })
- }
-
-
- zTreeObj = $.fn.zTree.init($("#SignUserTree"), setting, zNodes);//初始化树节点时,添加同步获取的数据
- }
- });
- $('#signOrgModal').modal({
- backdrop: 'static',
- keyboard: false
- })
-
- }
- function setHBOrgAndUser(useridArr,usernameArr)
- {
- $('#CopyToUserID').val(useridArr);
- $('#CopyToUserName').val(usernameArr);
- $('#CopyToUserShow').val(usernameArr);
- }
- function getSignOrgAndJob()
- {
- $('#signOrgModal').modal('hide');
- }
- function synchronizationIDCard()
- {
- var idCard=$("#IDCard").val();
- $("#QueryIDCard").val(idCard);
- }
- //查看信息 2017-07-24
- function seeData(appealid){
- fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
- }
- </script>
-
- <title>投诉信息登记</title>
- <meta name="keywords" content="">
- <meta name="description" content="">
- </head>
- <body >
-
- <form id="form1" method="post" class="form-horizontal" role="form">
- <div style="display: none">
- <input type="hidden" id="Modal_Main" name="Modal_Main" value="appeal"/>
- <input type="hidden" id="CurDate" name="CurDate" value="${curDate}"/>
- <input type="hidden" id="AppealID" name="AppealID" value="${appealID}"/>
-
- <input type="hidden" id="Modal_PersonType" name="Modal_PersonType" value=""/>
- <input type="hidden" id="Modal_PersonID" name="Modal_PersonID" value=""/>
- <input type="hidden" id="Modal_AppealID" name="Modal_AppealID" value=""/>
- <input type="hidden" id="Modal_PersonRepeatFlag" name="Modal_PersonRepeatFlag" value="false"/>
- <input type="hidden" id="Modal_LinkTel2" name="Modal_LinkTel2" value=""/>
- <input type="hidden" id="Modal_WechatNo" name="Modal_WechatNo" value=""/>
- <input type="hidden" id="Modal_LinkPerson" name="Modal_LinkPerson" value=""/>
- <input type="hidden" id="Modal_ProvinceID" name="Modal_ProvinceID" value=""/>
- <input type="hidden" id="Modal_ProvinceName" name="Modal_ProvinceName" value=""/>
- <input type="hidden" id="Modal_AreaID" name="Modal_AreaID" value=""/>
- <input type="hidden" id="Modal_AreaName" name="Modal_AreaName" value=""/>
- <input type="hidden" id="Modal_CountyID" name="Modal_CountyID" value=""/>
- <input type="hidden" id="Modal_CountyName" name="Modal_CountyName" value=""/>
- <input type="hidden" id="Modal_Postalcode" name="Modal_Postalcode" value=""/>
- <input type="hidden" id="Modal_EMail" name="Modal_EMail" value=""/>
-
- <input type="hidden" id="PersonID" name="person.PersonID" value="${person.PersonID!''}"/>
-
- <input type="hidden" id="ProvinceModel" name="ProvinceModel" value=""/>
- <input type="hidden" id="personProvinceName" name="person.ProvinceName" value="${person.ProvinceName!''}"/>
- <input type="hidden" id="personAreaName" name="person.AreaName" value="${person.AreaName!''}"/>
- <input type="hidden" id="personCountyName" name="person.CountyName" value="${person.CountyName!''}"/>
-
-
-
- <input type="hidden" id="ContractExist" name="compact.ContractExist" value=""/>
- <input type="hidden" id="PolicyType" name="compact.PolicyType" value="个人"/>
-
- <input type="hidden" id="appealAppealID" name="appeal.AppealID" value="${appealID}"/>
- <input type="hidden" id="ForeignKeyID" name="appeal.ForeignKeyID" value="${appeal.ForeignKeyID!''}"/>
- <input type="hidden" id="appealDoState" name="appeal.DoState" value="${appeal.DoState!''}"/>
- <input type="hidden" id="RecordDate" name="appeal.RecordDate" value="${curDate}"/>
-
- <input type="hidden" id="SerialNumber" name="appeal.SerialNumber" value="${appeal.SerialNumber!''}"/>
-
- <input type="hidden" id="InsceTypeName1" name="appeal.InsceTypeName1" value="${appeal.InsceTypeName1!''}"/>
- <input type="hidden" id="InsceTypeName2" name="appeal.InsceTypeName2" value="${appeal.InsceTypeName2!''}"/>
- <input type="hidden" id="InsceTypeName3" name="appeal.InsceTypeName3" value="${appeal.InsceTypeName3!''}"/>
- <input type="hidden" id=Repcomplaints name="appeal.Repcomplaints" value="${appeal.Repcomplaints!''}"/>
- <input type="hidden" id="RepcomplaintsNum" name="appeal.RepcomplaintsNum" value="0"/>
- <input type="hidden" id="EndAppealDate" name="appeal.EndAppealDate" value="${appeal.EndAppealDate!''}"/>
- <input type="hidden" id="ComplaintTypeName1" name="appeal.ComplaintTypeName1" value="${appeal.ComplaintTypeName1!''}"/>
- <input type="hidden" id="ComplaintTypeName2" name="appeal.ComplaintTypeName2" value="${appeal.ComplaintTypeName2!''}"/>
- <input type="hidden" id="ReasonName1" name="appeal.ReasonName1" value="${appeal.ReasonName1!''}"/>
- <input type="hidden" id="ReasonName2" name="appeal.ReasonName2" value="${appeal.ReasonName2!''}"/>
- <input type="hidden" id="ReasonName3" name="appeal.ReasonName3" value="${appeal.ReasonName3!''}"/>
- <input type="hidden" id="AskTypeName1" name="appeal.AskTypeName1" value="${appeal.AskTypeName1!''}"/>
- <input type="hidden" id="AskTypeName2" name="appeal.AskTypeName2" value="${appeal.AskTypeName2!''}"/>
- <input type="hidden" id="AskTypeName3" name="appeal.AskTypeName3" value="${appeal.AskTypeName3!''}"/>
-
- <input type="hidden" id="AskTimeBlockName" name="appeal.AskTimeBlockName" value="${appeal.AskTimeBlockName!''}"/>
- <input type="hidden" id="UrgeDoTypeName1" name="appeal.UrgeDoTypeName1" value="${appeal.UrgeDoTypeName1!''}"/>
- <input type="hidden" id="UrgeDoTypeName2" name="appeal.UrgeDoTypeName2" value="${appeal.UrgeDoTypeName2!''}"/>
-
- <input type="hidden" id="LimitDaysType" name="appeal.LimitDaysType" value="${dateType!''}"/>
-
- <input type="hidden" id="ProductName" name="appeal.ProductName" value="${appeal.ProductName!''}"/>
- <input type="hidden" id="SalesChannelName" name="appeal.SalesChannelName" value="${appeal.SalesChannelName!''}"/>
- <input type="hidden" id="SalesTypeName" name="appeal.SalesTypeName" value="${appeal.SalesTypeName!''}"/>
- <input type="hidden" id="PolicyNumber" name="appeal.PolicyNumber" value="${appeal.PolicyNumber!''}"/>
- <input type="hidden" id="CplIdentityName" name="appeal.CplIdentityName" value=""/>
-
- <input type="hidden" id="ProductModel" name="ProductModel" value=""/>
- <input type="hidden" id="RespondentModel" name="RespondentModel" value=""/>
- <input type="hidden" id="RespondentNumber" name="appeal.RespondentNumber" value="1"/>
-
- <input type="hidden" id="respondentFilialeName" name="respondent.FilialeName" value=""/>
- <input type="hidden" id="respondentCentreCompanyName" name="respondent.CentreCompanyName" value=""/>
- <input type="hidden" id="respondentBusinessHallName" name="respondent.BusinessHallName" value=""/>
- <input type="hidden" id="respondentProvinceName" name="respondent.ProvinceName" value=""/>
- <input type="hidden" id="respondentAreaName" name="respondent.AreaName" value=""/>
-
- <input type="hidden" id="respondent1FilialeName" name="respondent1.FilialeName" value=""/>
- <input type="hidden" id="respondent1CentreCompanyName" name="respondent1.CentreCompanyName" value=""/>
- <input type="hidden" id="respondent1BusinessHallName" name="respondent1.BusinessHallName" value=""/>
- <input type="hidden" id="respondent1ProvinceName" name="respondent1.ProvinceName" value=""/>
- <input type="hidden" id="respondent1AreaName" name="respondent1.AreaName" value=""/>
-
- <input type="hidden" id="respondent2FilialeName" name="respondent2.FilialeName" value=""/>
- <input type="hidden" id="respondent2CentreCompanyName" name="respondent2.CentreCompanyName" value=""/>
- <input type="hidden" id="respondent2BusinessHallName" name="respondent2.BusinessHallName" value=""/>
- <input type="hidden" id="respondent2ProvinceName" name="respondent2.ProvinceName" value=""/>
- <input type="hidden" id="respondent2AreaName" name="respondent2.AreaName" value=""/>
-
- <input type="hidden" id="respondent3FilialeName" name="respondent3.FilialeName" value=""/>
- <input type="hidden" id="respondent3CentreCompanyName" name="respondent3.CentreCompanyName" value=""/>
- <input type="hidden" id="respondent3BusinessHallName" name="respondent3.BusinessHallName" value=""/>
- <input type="hidden" id="respondent3ProvinceName" name="respondent3.ProvinceName" value=""/>
- <input type="hidden" id="respondent3AreaName" name="respondent3.AreaName" value=""/>
-
- <input type="hidden" id="respondent4FilialeName" name="respondent4.FilialeName" value=""/>
- <input type="hidden" id="respondent4CentreCompanyName" name="respondent4.CentreCompanyName" value=""/>
- <input type="hidden" id="respondent4BusinessHallName" name="respondent4.BusinessHallName" value=""/>
- <input type="hidden" id="respondent4ProvinceName" name="respondent4.ProvinceName" value=""/>
- <input type="hidden" id="respondent4AreaName" name="respondent4.AreaName" value=""/>
-
- <input type="hidden" id="TransactOrgID" name="transact.TransactOrgID" value="${user.OrgID}"/>
- <input type="hidden" id="TransactOrgName" name="transact.TransactOrgName" value="${user.OrgName}"/>
- <input type="hidden" id="TransactUserID" name="transact.TransactUserID" value="${user.UserID}"/>
- <input type="hidden" id="TransactUserName" name="transact.TransactUserName" value="${user.UserName}"/>
-
- <input type="hidden" id="ToFilialeOrgID" name="transact.ToFilialeOrgID" value=""/>
- <input type="hidden" id="ToFilialeOrgName" name="transact.ToFilialeOrgName" value=""/>
- <input type="hidden" id="ToCentreOrgID" name="transact.ToCentreOrgID" value=""/>
- <input type="hidden" id="ToCentreOrgName" name="transact.ToCentreOrgName" value=""/>
-
- <input type="hidden" id="ToOrgID" name="transact.ToOrgID" value=""/>
- <input type="hidden" id="ToOrgName" name="transact.ToOrgName" value=""/>
- <input type="hidden" id="ToJobID" name="transact.ToJobID" value=""/>
- <input type="hidden" id="ToJobName" name="transact.ToJobName" value=""/>
-
- <input type="hidden" id="ToUserID" name="transact.ToUserID" value=""/>
- <input type="hidden" id="ToUserName" name="transact.ToUserName" value=""/>
-
- <input type="hidden" id="CopyToUserID" name="transact.CopyToUserID" value=""/>
- <input type="hidden" id="CopyToUserName" name="transact.CopyToUserName" value=""/>
-
- <input type="hidden" id="transactLimitEndDate" name="transact.LimitEndDate" value=""/>
- <input type="hidden" id="transactAppealState" name="transact.AppealState" value="受理"/>
- <input type="hidden" id="transactNewFlag" name="transact.NewFlag" value="true"/>
- <input type="hidden" id="SelectedPolicyNumber" name="SelectedPolicyNumber" value=""/>
-
- <input type="hidden" id="transactArriveTime" name="transact.ArriveTime" value="${curDateTime}"/>
-
- <input type="hidden" id="FileSelectFlag" name="FileSelectFlag" value="true"/>
-
- <input type="hidden" id="ProductNumber" name="appeal.ProductNumber" value="0"/>
- <input type="hidden" id="ProductFlagNumber" name="ProductFlagNumber" value="0"/>
-
- <input type="hidden" id="RedemptionNumber" name="appeal.RedemptionNumber" value="1"/>
- <input type="hidden" id="QuestionTypeName1" name="appeal.QuestionTypeName1" value="${appeal.QuestionTypeName1!''}"/>
- <input type="hidden" id="QuestionTypeName2" name="appeal.QuestionTypeName2" value="${appeal.QuestionTypeName2!''}"/>
- </div>
-
- <div class="container-fluid" style="margin-top:15px;">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <div style="display:inline;" >客户信息 </div>
- <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>
- </div>
- <div id="collapsePerson" class="panel-collapse collapse in">
- <div class="panel-body" style="font-size:14px">
-
- <div class="row" style="padding:5px" >
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="TName" id="Label_TName">姓名</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback" >
- <input type="text" class="form-control" value="${person.TName!''}" id="TName" name="person.TName" maxlength="40" vmode="not null" vdisp="姓名" vtype="string">
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="TSex">性别</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback" >
- <select id="TSex" name="person.TSex" class="form-control" vmode="not null" vdisp="性别" vtype="chinese">
- <option value="">请选择</option>
- <option value="男">男</option>
- <option value="女">女</option>
- <option value="未知">未知</option>
- </select>
- <script type="text/javascript">$(function(){$("#TSex").val("${person.TSex!''}");})</script>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="CardType">证件类型</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
- <select id="CardType" name="person.CardType" onChange=setIDCard() class="form-control" vmode="" vdisp="证件类型" vtype="chinese">
- <option value="">请选择</option>
- <option value='居民身份证'>居民身份证</option>
- <option value='护照'>护照</option>
- <option value='军人证'>军人证</option>
- <option value='其他'>其他</option>
- </select>
- <script type="text/javascript">$(function(){$("#CardType").val("${person.CardType!''}");})</script>
- </div>
- </div>
- <div class="row" style="padding:5px">
-
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="IDCard">证件号码</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
- <div class="input-group">
- <input type="text" class="form-control" onBlur="repeatIDCard()" value="${person.IDCard!''}" placeholder="" id="IDCard" name="person.IDCard" vmode="" vdisp="证件号码" vtype="idcard">
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" aria-label="Left Align" onclick="repeatIDCard()" title="根据证件号码判重">
- <span class="glyphicon glyphicon-check" aria-hidden="true"></span>
- </button>
- </div>
- </div>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="Birthday">生日</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <div class="input-group">
- <input type="text" class="form-control" value="${person.Birthday!''}" placeholder="yyyy-mm-dd" id="Birthday" name="person.Birthday" vmode="" vdisp="出生日期" vtype="date" >
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" aria-label="Left Align" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'Birthday',maxDate:new Date()})" title="选择出生日期">
- <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
- </button>
- </div>
- </div>
- </div>
-
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="EMail">电子邮箱</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <input type="text" class="form-control" value="${person.EMail!''}" id="EMail" name="person.EMail" maxlength="40" vmode="" vdisp="电子邮箱" vtype="email">
- </div>
- </div>
- <div class="row" style="padding:5px">
-
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="LinkTel1">联系方式</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <div class="input-group">
- <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">
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" aria-label="Left Align" onclick="repeatLinkTel('assign')" title="根据电话号码判重">
- <span class="glyphicon glyphicon-check" aria-hidden="true"></span>
- </button>
- </div>
- </div>
- </div>
-
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="ProvinceID">归属地省</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="personProvinceID" name="person.ProvinceID" onChange=setAreaID('person') class="form-control" vmode="not null" vdisp="通讯地址省" vtype="number">
- <option value="">请选择</option>
- ${provinceID!''}
- </select>
- <script type="text/javascript">$(function(){$("#personProvinceID").val("${person.ProvinceID!''}");})</script>
-
- </div>
- <div id="dsa" class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label id="ds" class="control-label" for="AreaID">地市</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="personAreaID" name="person.AreaID" onChange=setAreaName('person') class="form-control" vmode="not null" vdisp="地市" vtype="number">
- <option value="">请选择</option>
- ${areaID!''}
- </select>
- <script type="text/javascript">$(function(){$("#personAreaID").val("${person.AreaID!''}");})</script>
- </div>
-
- </div>
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="PlanID" title="个人计划证明号">计划证明号</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <input type="text" class="form-control" placeholder="个人计划证明号" value="${person.PlanID!''}" id="PlanID" name="person.PlanID" maxlength="40" vmode="" vdisp="个人计划证明号" vtype="string">
- </div>
- </div>
-
-
- </div>
- </div>
- </div>
- <div class="panel panel-success">
- <div class="panel-heading">
- <div style="display:inline;" >业务/产品信息查询 </div>
- <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> </div>
- <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>
- </div>
- <div id="collapseCompact" class="panel-collapse collapse in">
- <div class="panel-body" style="font-size:14px" id=ProductObj>
- <div class="row" style="padding:5px">
-
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="QueryIDCard">证件号码</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
- <div class="input-group">
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" id="QueryCompactButton" onclick="synchronizationIDCard()" >同步</button>
-
- </div>
- <input type="text" class="form-control" value="" placeholder="身份证号" id="QueryIDCard" name="QueryIDCard" vmode="" vdisp="身份证号" vtype="string">
-
- </div>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3" >
- <div class="input-group">
-
- <div class="input-group-btn">
- <button type="button" class="btn btn-primary" id="QueryUnitButton" onclick="queryUnit()" ${Query!''} >个养/直销</button>
- <button type="button" class="btn btn-success" id="QueryCompactButton" onclick="queryCompactBasic()" ${Query!''} >团养/企业年金</button>
-
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- </div>
- <div class="panel panel-info">
- <div class="panel-heading">
- <div style="display:inline;" >被诉人信息 </div>
- <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> </div>
-
- <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>
- </div>
- <div id="collapseRespondent" class="panel-collapse collapse in">
-
- <div class="panel-body" style="font-size:14px" id=ComplainPersonObj>
- <div class="row" style="padding:5px" id="respondent_1" >
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="respondentRespondentTypeID1">主被诉机构</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="respondentFilialeID" name="respondent.FilialeID" onChange=setBusinessHallID('respondent') class="form-control" vmode='not null' vdisp='主被诉公司' vtype='string'>
- <option value="">请选择</option>
- ${filialeID!''}
- </select>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="respondentBusinessHallID">被诉部门</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <select id="respondentBusinessHallID" name="respondent.BusinessHallID" onChange=setBusinessHallName('respondent') class="form-control" vmode="" vdisp="被诉部门" vtype="string">
- <option value="">请选择</option>
- </select>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="respondentRespondentTypeID2">被投诉类型</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="respondentRespondentType" name="respondent.RespondentType" class="form-control" vmode="not null" vdisp="被投诉类型" vtype="string">
- <option value="">请选择</option>
- ${dic_respondenttype!''}
- </select>
- </div>
- </div>
-
- <div class="row" style="padding:5px" id="respondent_2" >
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="ProvinceID">归属地省</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="respondentProvinceID" name="respondent.ProvinceID" onChange=setAreaID('respondent') class="form-control" vmode="not null" vdisp="归属地省" vtype="number">
- <option value="">请选择</option>
- ${provinceID!''}
- </select>
-
- </div>
- <div id="dsa" class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label id="ds" class="control-label" for="AreaID">地市</label></div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="respondentAreaID" name="respondent.AreaID" onChange=setAreaName('respondent') class="form-control" vmode="not null" vdisp="地市" vtype="number">
- <option value="">请选择</option>
- ${clpccc_areaID!''}
- </select>
-
- </div>
- </div>
-
- </div>
- </div>
- </div>
-
-
-
-
- <div class="panel panel-warning">
- <div class="panel-heading">
- <div style="display:inline;" >客诉事项信息 </div>
- <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>
- </div>
- <div id="collapseAppeal" class="panel-collapse collapse in">
- <div class="panel-body" style="font-size:14px">
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="Question" style="line-height:100px;">客户问题描述</label>
- </div>
- <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
- <textarea class="form-control" rows="5" id="Question" name="appeal.Question" maxlength="600" vmode="not null" vdisp="客户问题描述" vtype="string">${appeal.Question!''}</textarea>
- </div>
- </div>
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="ReceptionSuggest" style="line-height:100px;">坐席建议描述</label>
- </div>
- <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
- <textarea class="form-control" rows="5" id="ReceptionSuggest" name="appeal.ReceptionSuggest" maxlength="600" vmode="not null" vdisp="坐席建议描述" vtype="string">${appeal.ReceptionSuggest!''}</textarea>
- </div>
- </div>
-
-
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="AppealType">客诉类别</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="AppealType" name="appeal.AppealType" onChange=setAppealType() class="form-control" vmode="not null" vdisp="客诉类别" vtype="string">
- <option value="消费投诉">消费投诉</option>
- <option value="不满抱怨">不满抱怨</option>
- <option value="异议信息">异议信息</option>
- </select>
- <script type="text/javascript">$(function(){$("#AppealType").val("${appeal.AppealType!''}");})</script>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="QuestionTypeID1">事由类别</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="QuestionTypeID1" name="appeal.QuestionTypeID1" onChange=setQuestionTypeID2() class="form-control" vmode="not null" vdisp="事由类别" vtype="string">
- <option value="">请选择</option>
- ${dic_questiontype!''}
- </select>
- <script type="text/javascript">$(function(){$("#QuestionTypeID1").val("${appeal.QuestionTypeID1!''}");})</script>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="QuestionTypeID2">二级类别</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id=QuestionTypeID2 name="appeal.QuestionTypeID2" onChange=setQuestionTypeName2() class="form-control" vmode="not null" vdisp="二级事由类别" vtype="string">
- <option value="">请选择</option>
- ${dic_questiontype2!''}
- </select>
- <script type="text/javascript">$(function(){$("#QuestionTypeID2").val("${appeal.QuestionTypeID2!''}");})</script>
- </div>
-
-
- </div>
-
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="AppealSource">客诉来源</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="AppealSource" name="appeal.AppealSource" class="form-control" vmode="not null" vdisp="客诉来源" vtype="string">
- ${appealSource!''}
- </select>
- <script type="text/javascript">$(function(){$("#AppealSource").val("${appeal.AppealSource!''}");})</script>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="ComplaintTypeID1">投诉级别</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="ComplaintTypeID1" name="appeal.ComplaintTypeID1" onChange=setComplaintTypeID2() class="form-control" vmode="not null" vdisp="投诉级别" vtype="string">
- <option value="">请选择</option>
- ${dic_complainttypeID1!''}
- </select>
- <script type="text/javascript">$(function(){$("#ComplaintTypeID1").val("${appeal.ComplaintTypeID1!''}");})</script>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="AppealDate">投诉时间</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <div class="input-group">
- <input type="text" class="form-control" value="${appeal.AppealDate!''}" id="AppealDate" name="appeal.AppealDate" onChange="setAskEndTime()" vmode="not null" vdisp="投诉时间" vtype="string" >
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" aria-label="Left Align" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',el:'AppealDate',maxDate:'${CurEndDateHHmm!''}'})" title="选择投诉时间">
- <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
- </button>
- </div>
- </div>
- </div>
-
-
-
- </div>
-
- <div class="row" style="padding:5px" >
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="InvolvedMoney">份额合计</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <div class="input-group">
-
- <input type="text" class="form-control" value="${appeal.InvolvedCopies!''}" id="InvolvedCopies" name="appeal.InvolvedCopies" maxlength="12" vmode="" vdisp="份额合计" vtype="float" readonly>
- <span class="input-group-addon">份</span>
- </div>
- </div>
-
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="InvolvedMoney">金额合计</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <div class="input-group">
- <span class="input-group-addon">¥</span>
- <input type="text" class="form-control" value="${appeal.InvolvedMoney!''}" id="InvolvedMoney" name="appeal.InvolvedMoney" maxlength="12" vmode="" vdisp="金额合计" vtype="float" readonly>
- <span class="input-group-addon">元</span>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- </div>
-
-
- <div class="panel panel-danger">
- <div class="panel-heading">
- <div style="display:inline;" >客诉办理信息 </div>
- <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>
- </div>
- <div id="collapseTransact" class="panel-collapse collapse in">
-
- <div class="panel-body" style="font-size:14px">
- <div class="row" style="padding:5px;">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="TransactIdea" style="line-height:100px;">办理意见</label>
- </div>
- <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11 has-error has-feedback">
- <textarea class="form-control" rows="5" value="" placeholder="" id="TransactIdea" name="transact.TransactIdea" maxlength="600" vmode="not null" vdisp="办理意见" vtype="string"></textarea>
- </div>
- </div>
- <div class="row" style="padding:5px;">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="TransactType">办理方式</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 has-error has-feedback">
- <select id="TransactType" name="transact.TransactType" onChange=setTransactType() class="form-control" vmode="not null" vdisp="办理方式1" vtype="string">
- <option value="">请选择</option>
- <option value="已安抚化解">已安抚化解</option>
- <option value="转办处理">转办处理</option>
- </select>
- </div>
-
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="LimitDays">办理时限</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <div class="input-group spinner" data-trigger="spinner" id="LimitDaysSpinner">
- <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">
- <span class="input-group-addon" id="basic-addon2">${dateType!''}</span>
- <div class="input-group-addon">
- <a href="javascript:;" class="spin-up" data-spin="up" ><i class="fa fa-caret-up"></i></a>
- <a href="javascript:;" class="spin-down" data-spin="down"><i class="fa fa-caret-down"></i></a>
- </div>
-
- </div>
- </div>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="LimitEndDate">截止日期</label>
- </div>
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
- <div class="input-group">
- <input type="text" class="form-control" value="" placeholder="" id="LimitEndDate" name="appeal.LimitEndDate" >
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" aria-label="Left Align" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'LimitEndDate',minDate:new Date()})" title="选择办结日期">
- <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
- </button>
- </div>
- </div>
- </div>
- </div>
- <div class="row" style="padding:5px" id="ToOrgInfo" hidden>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" >
- <label class="control-label" for="AskInfo">承办人员</label>
- </div>
- <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11">
- <div class="input-group">
- <input type="text" class="form-control" value="" placeholder="" id="ToOrgAndJob" name="transact.ToOrgAndJob" maxlength="200" vmode="" vdisp="案件接收人" vtype="string" readonly>
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" aria-label="Left Align" onclick="setZBOrgUser()" title="选择案件接收人">
- <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
- </button>
- </div>
- </div>
-
- </div>
- </div>
- <div class="row" style="padding:5px" id="CopyToOrgInfo" hidden>
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
- <label class="control-label" for="AskInfo">抄送人员</label>
- </div>
- <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11">
- <div class="input-group">
- <input type="text" class="form-control" value="" placeholder="" id="CopyToUserShow" name="transact.CopyToUserShow" maxlength="200" vmode="" vdisp="案件抄送人" vtype="string" readonly>
- <div class="input-group-btn">
- <button type="button" class="btn btn-default" aria-label="Left Align" onclick="setSignUser()" title="选择抄送人员">
- <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
- </button>
- </div>
- </div>
-
- </div>
- </div>
-
- </div>
- </div>
- </div>
- </form>
- <div class="panel panel-default">
- <div class="panel-heading">
- <div style="display:inline;" >客诉资料附件 </div>
- <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>
- </div>
- <div id="collapseFile" class="panel-collapse collapse in">
-
- <div class="panel-body" style="font-size:14px">
-
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
-
- <label class="control-label" for="FileAppealID">选择文件</label></div>
- <div class="col-xs-12 col-sm-11 col-md-11 col-lg-11" >
- <input type="hidden" id="FileAppealID" name="FileAppealID" value="${appealID}"/>
- <input id="file-0a" class="file-loading" type="file" multiple data-min-file-count="1" onchange=setSelectFile()>
-
-
- </div>
- </div>
-
- </div>
- </div>
- </div>
-
-
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
- <button type="button" class="btn btn-warning" id="SubmitButton" onclick=doSubmit() disabled><span class="glyphicon glyphicon-save"></span> 提 交</button>
- </div>
-
- </div>
-
-
-
- ${historyInfoList!''}
-
- </div>
-
- <!-- 根据姓名和证件号码判重后弹出页面,模态框(Modal) -->
- <div class="modal fade" id="repeatModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document" style="width:900px"> >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
- ×
- </button>
- <h3 class="modal-title" id="myModalLabel">
- <span class="label label-danger">该客户此前进行过客诉,请人工查询判断是否重复录入!</span>
- </h3>
- </div>
- <div class="modal-body">
-
-
- <div class="row" style="padding:1px" >
- <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
- <label class="control-label" >姓名</label></div>
- <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
- <input type="text" class="form-control" value="" placeholder="" id="Modal_TName" name="Modal_TName" readonly>
- </div>
- <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
- <label class="control-label" >身份</label></div>
- <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
- <input type="text" class="form-control" value="" placeholder="" id="Modal_Status" name="Modal_Status" readonly>
- </div>
- </div>
- <div class="row" style="padding:1px" >
- <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
- <label class="control-label" >证件类型</label></div>
- <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
- <input type="text" class="form-control" value="" placeholder="" id="Modal_CardType" name="Modal_CardType" readonly>
- </div>
- <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
- <label class="control-label" >证件号码</label></div>
- <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" >
- <input type="text" class="form-control" value="" placeholder="" id="Modal_IDCard" name="Modal_IDCard" readonly>
- </div>
- </div>
- <div class="row" style="padding:2px">
- <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
- <label class="control-label" >联系电话1</label></div>
- <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
- <input type="text" class="form-control" value="" placeholder="" id="Modal_LinkTel1" name="Modal_LinkTel1" readonly>
- </div>
- <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
- <label class="control-label" >联系地址</label></div>
- <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
- <input type="text" class="form-control" value="" placeholder="" id="Modal_TownAddress" name="Modal_TownAddress" readonly>
- </div>
- </div>
-
- <div class="table-responsive">
- <table class="table table-bordered" id="Modal_Appeal">
- <tr class="info">
- <th class="text-center" width="100px">客诉日期</th>
- <th class="text-center">客诉来源</th>
- <th class="text-center">客诉类型</th>
- <th class="text-center" width="100px">查看详细</th>
- </tr>
- </table>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-warning" onClick="repeatPerson()"><span class="glyphicon glyphicon-user"> 同人新件
- </button>
- <button type="button" class="btn btn-success" onClick="repeatClose()"><span class="glyphicon glyphicon-remove"> 关闭
- </button>
-
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal -->
- </div>
- <!-- 保单列表信息弹出页面,模态框(Modal) -->
- <div class="modal fade" id="CompactModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document" style="width:900px">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
- ×
- </button>
- <h3 class="modal-title" id="myModalLabel">
- <span class="label label-danger">产品列表!</span>
- </h3>
- </div>
- <div class="modal-body">
-
- <div class="table-responsive">
- <table class="table table-bordered" id="CompactModal_Table">
- <tr class="info">
- <th class="text-center">操作</th>
- <th class="text-center">渠道名称</th>
- <th class="text-center">产品名称</th>
- <th class="text-center">产品占比</th>
- </tr>
- </table>
- </div>
-
-
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" id="InCompactBut" onclick=okCompact() ><span class="glyphicon glyphicon-ok"></span> 确定</button>
- <button type="button" class="btn btn-primary" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭
- </button>
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal -->
- </div>
- <!-- 多事故理赔信息弹出页面,模态框(Modal) -->
- <div class="modal fade" id="PaymentModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document" style="width:900px"> >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
- ×
- </button>
- <h3 class="modal-title" id="myModalLabel">
- <span class="label label-danger">事故列表!</span>
- </h3>
- </div>
- <div class="modal-body">
-
- <div class="table-responsive">
- <table class="table table-bordered" id="PaymentModal_Table">
- <tr class="info">
- <th class="text-center">赔案号</th>
- <th class="text-center">客户姓名</th>
- <th class="text-center">事故日期</th>
- </tr>
- </table>
- </div>
-
- </div>
- <div class="modal-footer">
-
- <button type="button" class="btn btn-primary" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭
- </button>
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal -->
- </div>
- <!-- 根据姓名和证件号码判重后弹出页面,模态框(Modal) 结束-->
- <!-- 根据保单编号查询包含险种信息弹出页面,模态框(Modal)结束 -->
- <!-- 选择单位弹出页面,模态框(Modal) -->
- <div class="modal fade" id="orgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document" style="width:600px;height:500px;"> >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
- ×
- </button>
-
- </div>
- <div class="modal-body">
-
-
- <div class="row" style="padding:1px" >
- <ul id="UserTree" class="ztree"></ul>
- </div>
-
-
-
-
- </div>
- <div class="modal-footer">
-
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal -->
- </div>
- <!-- 选择会签人员弹出页面,模态框(Modal) -->
- <div class="modal fade" id="signOrgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document" style="width:600px;height:500px;">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
- ×
- </button>
- </div>
- <div class="modal-body">
- <div class="row" style="padding:1px" >
- <ul id="SignUserTree" class="ztree"></ul>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-success" onClick="getSignOrgAndJob()"><span class="glyphicon glyphicon-user"> 确定</span></button>
-
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal -->
- </div>
-
- </body>
- <script type="text/javascript">
- $(document).on('ready', function() {
- $('#file-0a').fileinput({
- language: 'zh',
- uploadUrl: '${ctx}/myconsole/complaint/uploadfile/upload?FileAppealID=${appealID}',
- deleteUrl: '${ctx}/myconsole/complaint/uploadfile/delete',
- dropZoneEnabled: false,
- showPreview: true, //显示预览
- allowedFileExtensions : ['jpg', 'png','gif','doc','docx','pdf','mp3','mp4','xlsx'],
- }).on("fileuploaded", function(event,data,previewId,index) {
- if(data.response)
- {
- var result = data.response.id;
- $("#FileSelectFlag").val("true");
- }
- });
- });
- function setSelectFile()
- {
- if ($('#file-0a').val()!='') {
- $("#FileSelectFlag").val("false");
- }
- else
- {
- $("#FileSelectFlag").val("true");
- }
- }
- /* //删除单条数据处理 韩林平2017-07-19
- function deleteData(){
- var appealid=$("#AppealID").val();
- layer.confirm('你确定要删除该数据吗?', {
- btn: ['确定','取消'] //按钮
- }, function(){
-
-
- $.getJSON("${ctx}/myconsole/complaint/register/deleteData", {
- appealid : appealid
- }, function(json){
- if(json.flag){
- //处理成功返回消息;
- layer.alert(json.message, {
- skin: 'layui-layer-molv' //样式类名
- ,closeBtn: 0
- }, function(){
- layer.closeAll('dialog');
- window.parent.opener.location.reload();
- window.parent.close();
- });
-
- }else{
- //处理失败返回消息;
- layer.alert(json.message, {
- skin: 'layui-layer-molv' //样式类名
- ,closeBtn: 0
- }, function(){window.parent.close();});
- }
- });
-
-
-
- });//确认按钮结束
- } */
-
- //删除单条数据处理 马玉洁2021-03-11
- function deleteData(){
- var RemoveDataIdea=$("#RemoveDataIdea").val();
- if(RemoveDataIdea!=""){
-
- $("#TempSaveButton").attr("disabled",'disabled');
- $("#EndButton").attr("disabled",'disabled');
- $("#SubmitButton").attr("disabled",'disabled');
- $("#DeleteButton").attr("disabled",'disabled');
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/removeDataputflow');
- $('#form1').ajaxSubmit(resultHandle);
-
- } else{
- layer.alert("取消登记意见必须填写!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
-
-
- </script>
- </html>
|