| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355 |
- <!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="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-cell-pmargin">
- <p id="Work_detail"></p>
- </li>
-
- </ul>
-
- <!--图片展示-->
- <div class="mui-table-view">
- <div id='image-list' class="row image-list"></div>
- </div>
-
- <ul class="mui-table-view mui-grid-view" style="display: none;">
- <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 sendback">退回</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>
-
- </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>
- </div>-->
- </div>
- <div class="WordID" style="display: none;"></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 src="../js/mui.zoom.js"></script>
- <script src="../js/mui.previewimage.js"></script>
- <script>
- var id = helper.request.queryString("id");
- var itype = helper.request.queryString("itype");
- var state = helper.request.queryString("state");
-
-
-
- var isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
- var openid = helper.cookies.get("openid");
- var UserType = helper.cookies.get("usertype");
- mui.previewImage();
- if(isReply == 0){
- $('.btn_reply').show();
- }
- if (UserType==-1) {
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
-
- } else if(UserType==0){
- $(".type1").show();
- $(".type2").hide();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").hide();
- }else if(UserType==1){
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
- }else if(UserType==2){
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").show();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").hide();
- }else if(UserType==3){
- $(".type1").hide();
- $(".type2").show();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").hide();
- }else if(UserType==4){
- $(".type1").show();
- $(".type2").hide();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").hide();
- }else if(UserType==5){
- $(".type1").show();
- $(".type2").hide();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").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 (state==1) {
- // alert(state);
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").hide();
- }
- if (state==11) {
- // alert(state);
- $(".type1").hide();
- $(".type2").hide();
- $(".type3").hide();
- $(".type4").hide();
- $(".type5").hide();
- $(".type6").hide();
- $(".type7").hide();
- $(".type8").hide();
- $(".type9").hide();
- }
- if(itype == 0) {
- $(".dispose1").hide();
- $(".dispose2").hide();
- }else if(itype == 1) {
- //alert(itype)
- $(".dispose1").hide();
- } else if(itype == 2) {
- $(".dispose2").hide();
- } else if(itype == 3) {
- $(".dispose3").hide();
- }else if(itype == 4) {
- $(".dispose2").hide();
- $(".dispose1").hide();
- }else if(itype == 5) {
- $(".dispose1").hide();
- $(".dispose2").hide();
- }else if(itype == 16) {
- $(".dispose1").hide();
- }
-
- 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_Canal); //公司名称
- $("#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); //描述详情
- //图片展示
- if (data.FileUrl) {
- $(data.FileUrl).each(function (i, n) {
- if (n.F_FileType == '.jpg' || n.F_FileType == '.png') {
- debugger
- $('<div class="img-box"><img src="' + n.F_FileUrl + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
- $(".image-list").show();
- }
- // else{
- // $('<div class="img-box"><a href="' + n.F_FileUrl + '" download="' + n.F_FileUrl + '"></a><div>').appendTo("#image-list");
- // }
- })
- }
- }
- },
- error: function(xhr, type, errorThrown) {
- //异常处理;
- }
- })
- }
- //跳转页面
- //修改
- $('.edit').on('tap', function() {
- window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
- });
- //返回列表
- $('.return').on('tap', function() {
-
- window.location.href = "tourist.html"
-
-
-
- });
- //工单跟踪
- 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>
|