| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440 |
- <!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_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>
-
- <!--图片展示-->
- <div class="mui-table-view">
- <div id='image-list' class="row image-list"></div>
- </div>
- <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>
- <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 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="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>
- <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 isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
- var openid = helper.cookies.get("openid");
- var UserType = helper.cookies.get("usertype");
- // var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
- 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){
- // alert(UserType)
- $(".type1").hide();
- $(".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();
- // 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").show();
- $(".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").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
- }
- $(".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); //描述详情
- //图片展示
- 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() {
- if (itype==0) {
- window.location.href = "client_index.html"
- }if (itype==1) {
- window.location.href = "haveorder_list.html"
- } else if (itype==2){
- window.location.href = "pend_index.html"
- } else if (itype==3){
- window.location.href = "haveorder_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 == 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)
- }
- 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 = "haveorder_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>
|