| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>工单详情</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link href="../css/mui.css" rel="stylesheet" />
- <link href="../css/mui.picker.css" rel="stylesheet" />
- <link href="../css/mui.poppicker.css" rel="stylesheet" />
- <link href="../css/iconfont.css" rel="stylesheet" />
- <link href="css/details.css" rel="stylesheet" />
- <style>
- .pop_up_div8{
- display: none;
- }
- #order_source{
- margin-left: 10%;
- display: none;
- }
- </style>
- </head>
- <body>
- <div class="mui-nav" id="mNavbar">
- <a class="mui-icon mui-icon-arrowleft return"></a>
- 工单详情
- </div>
- <div class="mui-content" id="mContent">
- <ul class="mui-table-view mui-table-view-ul" style="margin-top: 0px;">
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">工单编号:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_bianhao"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">工单类型:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_classname"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">部门:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="section"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li ">
- <div class="mui-input-row">
- <label class="label font-color5">客户姓名:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="customer"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">联系电话:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="customerTel"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">公司名称:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_areaname" data-index=""></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">业务员:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="order_tower"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">业务员电话:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="order_unit"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">添加人工号:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_houseID"></label>
- </div>
- </div>
- </li>
- <!--业主信息-->
- <!--<li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">业主信息:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6">范冰冰 1566666666</label>
- </div>
- </div>
- </li>-->
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">处理人:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_ownerRelations"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li" id="source">
- <div class="mui-input-row">
- <label class="label font-color5">处理时间:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_source"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li Work_lastDealDiv">
- <div class="mui-input-row">
- <label class="label font-color5">处理内容:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6 Work_lastDealUser"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">处理结果:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6 Work_last"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">未处理原因:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_workOrderID"></label>
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell mui-table-view-li">
- <div class="mui-input-row">
- <label class="label font-color5">是否回访:</label>
- <div class="mui-radio mui-right radio_box">
- <label class="font-color6" id="Work_wor"></label>
- </div>
- </div>
- </li>
- <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin ">
- <p><span class="font-color4">补充描述:</span>预约时间改为下午六点。现在不方便</p>
- </li>-->
- <li class="mui-table-view-cell mui-table-view-cell-pmargin">
- <p id="Work_detail"></p>
- </li>
- <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin" id="Work_comment">
-
- </li>-->
- </ul>
- <ul class="mui-table-view mui-grid-view">
- <h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
- <div class="type1">
- <!--待派单-->
- <div class="mui_btn1 dispose1">
- <!--<li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block redeploy">转派</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block finsh">完结</button>
- </li>-->
- </div>
- <!--待处理-->
-
- <div class="mui_btn1 dispose2">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
- </li>
- <!--<li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block deal">处理</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
- </li>-->
- </div>
- <!--已完成-->
- <div class="mui_btn1 dispose3">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
- </li>
- <!--<li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
- </li>-->
- </div>
- </div>
- <div class="type2">
- <!--待派单-->
- <div class="mui_btn1 dispose1">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block rece">接单</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
- </li>
- </div>
- <!--待处理-->
- <div class="mui_btn1 dispose2">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block disp">处理</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">分配</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block abnormal">异常退回</button>
- </li>
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block postpone">申请延期</button>
- </li>
- <!--<li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
- </li>-->
- </div>
- <!--已完成-->
- <!--<div class="mui_btn1 dispose3">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
- </li>
- </div>-->
- </div>
- <div class="type3">
- <!--待派单-->
- <div class="mui_btn1 dispose1">
-
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">审批</button>
- </li>
-
- </div>
- <div class="mui_btn1 dispose2">
-
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block approva">高层审批</button>
- </li>
-
- </div>
-
- </div>
- <div class="type4">
- <!--待派单-->
- <div class="mui_btn1 ">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">接单</button>
- </li>
- </div>
- <!--待处理-->
- <div class="mui_btn1 dispose2">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">处理</button>
- </li>
- </div>
- </div>
- <div class="type5">
- <!--待处理-->
- <div class="mui_btn1 dispose3">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
- </li>
- </div>
- <!--待处理-->
- <div class="mui_btn1 dispose1">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
- </li>
- </div>
- <!--已完成-->
- <div class="mui_btn1 dispose2">
- <li class=" mui-media mui-col-xs-3">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
- </li>
- </div>
- </div>
- </ul>
- <div id="slider" class="mui-slider">
- <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
- <a class="mui-control-item mui-active" href="#item1mobile" data-index="1">
- 工单跟踪
- </a>
- <!--<a class="mui-control-item" href="#item2mobile" data-index="2">
- 催单记录
- </a>
- <a class="mui-control-item" href="#item3mobile" data-index="2">
- 评论记录
- </a>-->
- </div>
- <div class="mui-slider-group">
- <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
- <ul class="mui-table-view folowlist" id="folow"></ul>
- </div>
- <div id="item2mobile" class="mui-slider-item mui-control-content">
- <ul class="mui-table-view" id="remind"></ul>
- </div>
- <div id="item3mobile" class="mui-slider-item mui-control-content">
- <ul class="mui-table-view" id="commentlist"></ul>
- </div>
- </div>
- </div>
- </div>
- <div class="WordID" style="display: none;"></div>
- <!--弹框1-->
- <div class="pop_up_bj"></div>
- <div class="pop_up_div1">
- <div class="tit">请输入评论理由</div>
- <div class="contain">
- <textarea name="" rows="" cols="" class="evaluate_con"></textarea>
- </div>
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr evaluate">确定</button>
- </div>
- </div>
- <!--弹框2-->
- <div class="pop_up_div2">
- <div class="tit">请输入工单完结理由</div>
- <div class="contain">
- <textarea class="textcont" id="finsh_cont"></textarea>
- </div>
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
- </div>
- </div>
- <!--弹框2-->
- <div class="pop_up_div6" style="display: none;">
- <div class="tit">请输入处理内容</div>
- <div class="contain">
- <textarea class="textcont" id="deal_cont"></textarea>
- </div>
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
- </div>
- </div>
- <!--弹框4-->
- <div class="pop_up_div4">
- <div class="tit">请输入处理内容</div>
- <div class="contain">
- <textarea class="textcont_deal"></textarea>
- </div>
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
- </div>
- </div>
- <!--弹框2-->
- <div class="pop_up_div5" style="display: none;">
- <div class="tit">请输入催单内容</div>
- <div class="contain">
- <textarea class="textcont reminder_con" ></textarea>
- </div>
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
- </div>
- </div>
- <!--弹框3-->
- <div class="pop_up_div3">
- <div class="tit">请输入转派理由</div>
- <div class="contain">
- <textarea class="reason" name="" rows="" cols="" style="height: 100px;"></textarea>
- </div>
- <input type="text" id='complaintOrder_type' class="ui-alert type_con size-14" data-index="" readonly="readonly" />
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">下一步</button>
- </div>
- </div>
- <!--//申请延期弹出框-->
- <div class="pop_up_div8">
- <div class="tit">请输入延期说明</div>
- <div class="contain">
- <textarea class="reas" name="" rows="" cols="" style="height: 50px;"></textarea>
- </div>
-
- <div class="tit">申请延期时限</div>
- <div class="mui-input-row mui-radio mui-left radio_box order_type">
- <label>1小时</label>
- <input type="radio" type="radio" name="form" checked="checked" value="1小时" class="size-14" />
- </div>
- <div class="mui-input-row mui-radio mui-left radio_box order_type">
- <label>8小时</label>
- <input type="radio" type="radio" name="form" value="8小时" class="size-14" />
- </div>
- <div class="mui-input-row mui-radio mui-left radio_box order_type">
- <label>24小时</label>
- <input type="radio" type="radio" name="form" value="24小时" class="size-14" />
- </div>
- <div class="mui-input-row mui-radio mui-left radio_box order_type">
- <label>其他</label>
- <input type="radio" type="radio" name="form" value="其他" class="size-14" id="qita"/>
- </div>
-
- <input type="number" id='order_source' data-index="" placeholder="默认小时" style="width:55%;"/>
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
- </div>
- </div>
- <!--审批弹窗-->
- <div class="pop_up_div9">
- <div class="tit">请输入审批意见</div>
- <div class="contain">
- <textarea class="reasaa" name="" rows="" cols="" style="height: 50px;"></textarea>
- </div>
- <div class="tit">审批结果</div>
- <div class="mui-input-row mui-radio mui-left radio_box order_ty">
- <label>同意上报</label>
- <input type="radio" type="radio" name="form" checked="checked" value="0" class="size-14" />
- </div>
- <div class="mui-input-row mui-radio mui-left radio_box order_ty">
- <label>驳回修订</label>
- <input type="radio" type="radio" name="form" value="1" class="size-14" />
- </div>
- <div class="mui-input-row mui-radio mui-left radio_box order_ty">
- <label>强制结案</label>
- <input type="radio" type="radio" name="form" value="3" class="size-14" />
- </div>
-
-
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
- </div>
- </div>
- <!--高层审批弹框-->
- <div class="pop_up_div10">
- <div class="tit">请输入审批意见</div>
- <div class="contain">
- <textarea class="reaa" name="" rows="" cols="" style="height: 50px;"></textarea>
- </div>
- <div class="btn">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
- </div>
- </div>
- <script src="../js/jquery.min.js"></script>
- <script src="js/details.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <script src="../Script/Common/huayi.http.js"></script>
- <script src="../js/mui.min.js"></script>
- <script src="../js/mui.picker.js"></script>
- <script src="../js/mui.poppicker.js"></script>
- <script src="js/city.data-3.js"></script>
- <script>
- var id = helper.request.queryString("id");
- var itype = helper.request.queryString("itype");
-
-
-
-
- var isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
- var openid = helper.cookies.get("openid");
- var UserType = helper.cookies.get("usertype");
- var state = helper.cookies.get("state");
- var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
- if(isReply == 0){
- $('.btn_reply').show();
- }
- if (state==1) {
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").hide();
-
- }
- if (UserType==-1) {
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
-
- } else if(UserType==0){
- // alert(UserType)
- $(".type1").show();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
- }else if(UserType==1){
- // alert(UserType)
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
- }else if(UserType==2){
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
- }else if(UserType==3){
- $(".type1").hide();
- $(".type2").show();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- }else if(UserType==4){
- $(".type1").show();
- $(".type2").hide();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- }
- Ajax();
- flow();
- // $("label:empty"=='').hide()
- //
- // var temp = $('.font-color6').text();
- // if (temp == '') {
- // $('.mui-radio').hide();
- // }else{
- // $('.mui-radio').show();
- // }
- // if($('.font-color6').is(':empty')){
- //
- // $('.mui-input-row').show();
- // alert(1111)
- // }
- // Remind();
- // Comment();
- //获取数据
- function Ajax() {
- $.ajax({
- url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
- data: {
- id: id, //工单编号
- OpenId: openid, //微信openid,
- },
- async: true,
- dataType: 'json',
- type: 'get', //HTTP请求类型
- success: function(data) {
- if(data.state.toLowerCase() == "success") {
- var result = data.rows[0];
- if(result.Source == 0) {
- $("#source").hide();
- } else {
- $("#source").show();
- }
- var itype=result.F_State;
- //
- if(itype == 0) {
- $(".dispose1").hide();
- $(".dispose2").show();
- }else if(itype == 1) {
- //alert(itype)
- $(".dispose1").show();
- } else if(itype == 2) {
- $(".dispose2").show();
- } else if(itype == 3) {
- $(".dispose3").show();
- }else if(itype == 4) {
- $(".dispose2").show();
- $(".dispose1").hide();
- }else if(itype == 5) {
- $(".dispose2").hide();
- }else if(itype == 16) {
- $(".dispose1").show();
- }
-
- if (result.GDLXName=="咨询") {
- $(".Work_lastDealDiv").hide(); //受理人
- $("#source").hide(); //投诉
- } else{
- $(".Work_lastDealDiv").show(); //受理人
- $("#source").show(); //投诉
- }
- var builName
- if (result.buildingname==null) {
- builName=""
- } else{
- builName=result.buildingname
- }
- var proName
-
- if (result.proname==null) {
- proName=""
- } else{
- proName=result.proname
- }
- var complain
- if (result.ComplaintDepartment==null) {
- complain=""
- } else{
- complain=result.ComplaintDepartment
- }
- $("#Work_bianhao").text(result.F_WorkOrderCode);
- $(".WordID").text(result.ID);
- $("#Work_classname").text(result.F_TypeName); //工单类型
- $("#section").text(result.F_DeptName); //部门
- $("#customer").text(result.F_CusName); //客户姓名
- $("#customerTel").text(result.F_CusPhone); //联系电话
- $("#Work_areaname").text(result.F_CompanyName); //公司名称
- $("#Work_areaname").attr('data-index',result.IsAdminSend);
- $("#order_tower").text(result.F_Salesman); //业务员
- $("#order_unit").text(result.F_SalesPhone); //单元号
- $("#Work_houseID").text(result.F_CreateBy); //添加人工号
- $("#Work_ownerRelations").text(result.F_DealBy); //处理人
- $("#Work_source").text(result.F_DealTime); //处理时间
- $(".Work_lastDealUser").text(result.F_DealContent); //处理内容
- $(".Work_last").text(result.F_DealResult); //处理结果
- $("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
- $("#Work_workOrderID").text(result.F_IsVisit); //是否回访
- $("#Work_detail").text("问题描述:" + result.F_Description); //描述详情
-
-
- }
- },
- error: function(xhr, type, errorThrown) {
- //异常处理;
- }
- })
- }
- //跳转页面
- //修改
- $('.edit').on('tap', function() {
- window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
- });
- //返回列表
- $('.return').on('tap', function() {
- if (itype==0) {
- window.location.href = "client_index.html"
- }if (itype==1) {
- window.location.href = "Waiting_list.html"
- } else if (itype==2){
- window.location.href = "haveorder_list.html"
- } else if (itype==3){
- window.location.href = "Have_list.html"
- }
-
- //window.location.href = "client_index.html?Itype=" + itype;
- });
- //工单跟踪
- function flow() {
- $.ajax({
- url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
- data: {
- id: id, //工单编号
- OpenId: openid, //微信openid,
- },
- async: true,
- dataType: 'json',
- type: 'get', //HTTP请求类型
- success: function(data) {
- if(data.state.toLowerCase() == "success") {
- if(data.total && data.total.length > 0) {
- $(data.total).each(function(i, n) {
- var str = '';
- if(n.F_OptType == 0){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 1){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 2){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 3){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 4){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 5){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 6){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 7){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 8){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 9){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 10){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 11){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 12){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 13){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 14){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 15){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- if(n.F_OptType == 16){
- str = str + n.F_OptContent+"<br>";
- // alert(str)
- }
- var spandeta="";
- // if (n.Detail==null) {
- // spandeta=""
- // } else if (n.Detail==""){
- // spandeta=""
- // }else if(n.IsLast == 1){
- // spandeta="完结内容:"+n.F_OptContent
- // }else if(n.SureUserName) {
- // spandeta="接单内容:"+n.F_OptContent
- // } else if(n.DealTime){
- // spandeta="处理内容:"+n.F_OptContent
- // }else if(n.ToDeptName){
- // spandeta="转派内容:"+n.F_OptContent
- // }
- if ($(".spandeta").text()=="") {
- $(this).hide();
- }
- //else if(row.IsStart) {str = str + row.CreateUserName + " 重新开启工单";}
- $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.F_CreateTime +
- '</span></br><span style="font-size:12px;">' + str +
- '</span><span class="spandeta">'+spandeta+
- '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#folow');
-
-
- });
- var num = data.rows.length - 1;
- $("#folow li:eq(0)").children(".string").css("top", "20px");
- $("#folow li:eq(" + num + ")").children(".string").css("height", "5px");
- $("#folow li:eq(0)").children(".string").css("top", "20px");
- $("#folow li:eq(0)").children(".circular_h").css({
- "background": "#2cc6a7",
- "left": "15px",
- "top": "20px",
- "width": "12px",
- "height": "12px",
- "border-radius": "6px"
- });
- $("#folow li:eq(" + num + ")").children(".circular_h").css({
- "left": "15px",
- "width": "12px",
- "height": "12px",
- "border-radius": "6px"
- });
- }
- }
- },
- error: function(xhr, type, errorThrown) {
- //异常处理;
- }
- })
- }
- //催单记录
- // function Remind() {
- // $.ajax({
- // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
- // data: {
- // id: id, //工单编号
- // type: 2,
- // OpenId: openid, //微信openid,
- // },
- // async: true,
- // dataType: 'json',
- // type: 'get', //HTTP请求类型
- // success: function(data) {
- // if(data.state.toLowerCase() == "success") {
- // if(data.rows && data.rows.length > 0) {
- // $(data.rows).each(function(i, n) {
- // var spandeta;
- // if (n.Detail==null) {
- // spandeta=""
- // } else if (n.Detail==""){
- // spandeta=""
- // }else{
- // spandeta="催办内容:"+n.Detail
- // }
- // var depart;
- // if(n.ToDeptName==null){
- // depart=""
- // }else{
- // depart=n.ToDeptName
- // }
- // var deperson;
- // if(n.ToUserName==null){
- // deperson=""
- // }else{
- // deperson=n.ToUserName
- // }
- // $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.CreateTime +
- //// '</span></br><span>被催办部门:'+depart+
- //// '</span></br><span>被催办人:'+deperson+
- // '</span></br><span>催办人:' + n.CreateUserName +
- // '</span></br><span>'+spandeta+
- // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#remind');
- // });
- // var num = data.rows.length - 1;
- // $("#remind li:eq(0)").children(".string").css("top", "20px");
- // $("#remind li:eq(" + num + ")").children(".string").css("height", "5px");
- // $("#remind li:eq(0)").children(".string").css("top", "20px");
- // $("#remind li:eq(0)").children(".circular_h").css({
- // "background": "#2cc6a7",
- // "left": "15px",
- // "top": "20px",
- // "width": "12px",
- // "height": "12px",
- // "border-radius": "6px"
- // });
- // $("#remind li:eq(" + num + ")").children(".circular_h").css({
- // "left": "15px",
- // "width": "12px",
- // "height": "12px",
- // "border-radius": "6px"
- // });
- // }
- // }
- // },
- // error: function(xhr, type, errorThrown) {
- // //异常处理;
- // }
- // })
- // }
- //评论记录
- // function Comment() {
- // $.ajax({
- // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
- // data: {
- // id: id, //工单编号
- // type: 3,
- // OpenId: openid, //微信openid,
- // },
- // async: true,
- // dataType: 'json',
- // type: 'get', //HTTP请求类型
- // success: function(data) {
- // if(data.state.toLowerCase() == "success") {
- // if(data.rows && data.rows.length > 0) {
- //
- // $(data.rows).each(function(i, n) {
- // var spandeta;
- // if (n.Detail==null) {
- // spandeta=""
- // } else if (n.Detail==""){
- // spandeta=""
- // }else{
- // spandeta="评论内容:"+n.Detail
- // }
- // $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.CreateTime +
- // '</span></br><span >'+spandeta+
- // '</span><span class="span3">' + n.CreateUserName +
- // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#commentlist');
- // if (n.Detail==null||n.Detail=="") {
- // $(".spandeta").hide();
- // } else{
- // $(".spandeta").show();
- // }
- // });
- // var num = data.rows.length - 1;
- // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
- // $("#commentlist li:eq(" + num + ")").children(".string").css("height", "5px");
- // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
- // $("#commentlist li:eq(0)").children(".circular_h").css({
- // "background": "#2cc6a7",
- // "left": "15px",
- // "top": "20px",
- // "width": "12px",
- // "height": "12px",
- // "border-radius": "6px"
- // });
- // $("#commentlist li:eq(" + num + ")").children(".circular_h").css({
- // "left": "15px",
- // "width": "12px",
- // "height": "12px",
- // "border-radius": "6px"
- // });
- // }
- // }
- // },
- // error: function(xhr, type, errorThrown) {
- // //异常处理;
- // }
- // })
- // }
- //转派
- //转派弹框
- $(".allot").click(function() {
- var areaID = $("#Work_areaname").attr('data-index')
- window.location.href = "redeploy.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
- })
- // 处理提单框
- $(".disp").click(function() {
- var areaID = $("#Work_areaname").attr('data-index')
- window.location.href = "dispose.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
- })
- //评论工单
- $(".comment").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div1").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div1").hide();
- })
- $(".pop_up_div1 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div1").hide();
- })
- $(".pop_up_div1 .btn .fr" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div1").hide();
- })
- $(".evaluate").click(function(){
- if(!$(".evaluate_con").val()) {
- mui.alert("请输入评论内容");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div3").hide();
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + '/WxLogin/CommentWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- cont: $(".evaluate_con").val(), //否 int 处理内容
- openid: openid, //微信openid,
- },
- success: function(data) {
- if(data.state == "success") {
- debugger
- mui.toast('评论成功');
- window.location.href = "details.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
- })
- //处理完结
- $(".daal").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div6").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- })
- $(".pop_up_div6 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- })
- $(".pop_up_div6 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- if($("#deal_cont").val()=="") {
- mui.alert("请输入处理内容");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- isend: 1, //否 int 你看一下前端是什么参数
- cont: $("#deal_cont").val(), //否 int 处理内容
- openid: openid, //微信openid 测试用
- },
- success: function(data) {
- if(data.state == "success") {
- debugger
- mui.toast('处理成功');
-
- window.location.href = "pend_index.html";
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
- //完结
- $(".finsh").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div2").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div2").hide();
- })
- $(".pop_up_div2 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div2").hide();
- mui.alert("取消");
- })
- $(".pop_up_div2 .btn .fr" ).click(function(){
- $("#finsh_cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div2").hide();
- if($(".textcont").val()=="") {
- mui.alert("请输入完结内容");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div2").hide();
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- isend: 1, //否 int 你看一下前端是什么参数
- cont: $("#finsh_cont").val(), //否 int 处理内容
- openid: openid, //微信openid,
- },
- success: function(data) {
- if(data.state == "success") {
- debugger
- mui.toast('处理成功');
-
- window.location.href = "client_index.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
- //处理
- $(".deal").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div4").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div4").hide();
- })
- $(".pop_up_div4 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div4").hide();
- mui.alert("取消");
- })
- $(".pop_up_div4 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div4").hide();
- if($(".textcont_deal").val()=="") {
- mui.alert("请输入处理内容");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div4").hide();
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- isend: itype, //否 int 你看一下前端是什么参数
- cont: $("#textcont_deal").val(), //否 int 处理内容
- Openid: openid, //微信openid,
- },
- success: function(data) {
- if(data.state == "success") {
- debugger
- mui.toast('处理成功');
-
- window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
-
- //回复
- $(".btn_reply").click(function(){
- var btnArray = ['取消', '确定'];
- mui.confirm('确定回复?', '提示', btnArray, function(f) {
- if(f.index == 1) {
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + 'WxLogin/ReplyWorkOrder',
- async: true,
- data: {
- openid: openid,// 是 strubg openid
- orderid: id// 是 string 工单号码
- },
- success: function(data) {
- if(data.state == "success") {
- mui.toast('操作成功');
- window.location.href = "client_index.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- } else {
- mui.toast("取消操作");
- }
- })
- });
- //接单
- $(".rece").click(function(){
- var btnArray = ['否', '是'];
- mui.confirm('确定接单?', '提示', btnArray, function(f) {
-
- if(f.index == 1) {
- $.ajax({
- type: "get",
- dataType: 'json',
- url: huayi.config.callcenter_url + 'WxLogin/SureWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- OpenId: openid, //微信openid 测试用
- },
- success: function(data) {
- debugger
- // alert(data.state)
- if(data.state == "success") {
- mui.toast('接单成功');
- window.location.href = "Waiting_list.html";
- } else {
- mui.toast(data.message);
- }
- }
- });
-
- } else {
- mui.toast("取消");
- }
- })
- })
- //审批
- $(".receiving").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div9").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div9").hide();
- })
- $(".pop_up_div9 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div9").hide();
- })
- $(".pop_up_div9 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div9").hide();
- if($(".reasaa").val()=="") {
- mui.alert("请输入审批意见.");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div9").hide();
- $.ajax({
- type: "get",
- dataType: 'json',
- url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- OpenId: openid,
- AuditCont: $(".reasaa").val(),
- IsAudit:1,
- AuditState:$('.order_ty').find('input[type="radio"]:checked').val(), //工单类型
- },
-
- success: function(data) {
- debugger
- if(data.state == "success") {
- debugger
- mui.toast('申请成功');
- window.location.href = "client_index.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
-
-
-
- //高层审批
- $(".approva").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div10").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div10").hide();
- })
- $(".pop_up_div10 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div10").hide();
- })
- $(".pop_up_div10 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div10").hide();
- if($(".reaa").val()=="") {
- mui.alert("请输入审批意见.11");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div10").hide();
- $.ajax({
- type: "get",
- dataType: 'json',
- url: huayi.config.callcenter_url + 'WxLogin/HigApprovalOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- OpenId: openid,
- cont: $(".reaa").val(),
- },
-
- success: function(data) {
- debugger
- if(data.state == "success") {
- debugger
- mui.toast('申请成功');
- window.location.href = "high_list.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
- //退回
- $(".sendback").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div6").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- })
- $(".pop_up_div6 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- })
- $(".pop_up_div6 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- if($("#deal_cont").val()=="") {
- mui.alert("请输入处理内容");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- $.ajax({
- type: "get",
- dataType: 'json',
- url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- type: 0, //否 int 你看一下前端是什么参数
- cont: $("#deal_cont").val(), //否 int 处理内容
- openid: openid, //微信openid 测试用
- },
-
- success: function(data) {
- if(data.state == "success") {
- debugger
- mui.toast('退回成功');
- window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
- //申请延期实现
- $(".postpone").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div8").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div8").hide();
- })
- $(".pop_up_div8 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div8").hide();
- })
- $(".pop_up_div8 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div8").hide();
- if($(".reas").val()=="") {
- mui.alert("请输入延期说明.");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div8").hide();
- $.ajax({
- type: "get",
- dataType: 'json',
- url: huayi.config.callcenter_url + 'WxLogin/DelayWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- // type: 0, //否 int 你看一下前端是什么参数 reas
- cont: $(".reas").val(),
- // limit:$("#order_source").val(), //否 int 处理内容
- limit:$('.order_type').find('input[type="radio"]:checked').val(), //工单类型
- openid: openid, //微信openid 测试用
- },
-
- success: function(data) {
- debugger
- if(data.state == "success") {
- debugger
- mui.toast('申请成功');
- window.location.href = "haveorder_list.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
- //异常退回
- $(".abnormal").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div6").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- })
- $(".pop_up_div6 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- })
- $(".pop_up_div6 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- if($("#deal_cont").val()=="") {
- mui.alert("请输入处理内容");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div6").hide();
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- type: 1, //否 int 你看一下前端是什么参数
- cont: $("#deal_cont").val(), //否 int 处理内容
- openid: openid, //微信openid 测试用
- },
- success: function(data) {
- debugger
- if(data.state == "success") {
- debugger
- mui.toast('退回成功');
- window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
- //删除工单
- $(".delet").click(function(){
- var btnArray = ['否', '是'];
- mui.confirm('确定删除?', '提示', btnArray, function(f) {
- if(f.index == 1) {
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + '/WxLogin/DelWorkOrder',
- async: true,
- data: {
- ids: $(".WordID").text(), //否 strubg 工单编号
- openid: openid, //微信openid,
- },
- success: function(data) {
- if(data.state == "success") {
- debugger
- mui.toast('删除成功');
- if (itype==2) {
- window.location.href = "pend_index.html";
- } else if(itype==3){
- window.location.href = "finsh_index.html";
- }
-
- } else {
- mui.toast(data.message);
- }
- }
- });
- } else {
- mui.toast("取消");
- }
- })
- })
- //催单
- $(".reminder").click(function(){
- $(".pop_up_bj").fadeIn();
- $(".pop_up_div5").fadeIn();
- })
- $(".pop_up_bj" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div5").hide();
- })
- $(".pop_up_div5 .btn .fl" ).click(function(){
- $(".pop_up_bj").hide();
- $(".pop_up_div5").hide();
- })
- $(".pop_up_div5 .btn .fr" ).click(function(){
- // $("#cont").text("");
- $(".pop_up_bj").hide();
- $(".pop_up_div5").hide();
- if($(".textcont").val()=="") {
- mui.alert("请输入催单内容");
- }else{
- $(".pop_up_bj").hide();
- $(".pop_up_div5").hide();
- $.ajax({
- type: "post",
- dataType: 'json',
- url: huayi.config.callcenter_url + '/WxLogin/RemindWorkOrder',
- async: true,
- data: {
- orderid: id, //否 strubg 工单编号
- cont: $(".reminder_con").val(), //否 int 处理内容
- openid: openid, //微信openid,
- //openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE', //微信openid 测试用
- },
- success: function(data) {
- if(data.state == "success") {
- // debugger
- mui.toast('催单成功');
- window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
- } else {
- mui.toast(data.message);
- }
- }
- });
- }
-
- })
-
- $("#qita").click(function(){
- $("#order_source").show();
- })
- </script>
- </body>
- </html>
|