123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <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">
- <title></title>
- <#include "/base/list_base.ftl">
- <style>
- .Hui-aside{top:60px;padding-top: 0;background-color: #292f36;width:138px;}
- .container-fluid{padding: 8px 15px;}
- #Hui-userbar{top:8px;}
- .Hui-article-box{top:58px;}
- .navbar{background: #292f36;}
- .navbar-slogan{font-size: 14px;}
- .Hui-aside .menu_dropdown dt{border-bottom: 0}
- .Hui-aside .menu_dropdown dt {color: #fff; background: #292f36;}
- .Hui-aside .menu_dropdown dt.selected{background: #50a2ea;color:#fff;border-left: 4px solid #1f6eb3;}
- .Hui-aside .menu_dropdown dt:hover { color: #f0f0f0 !important; }
- .Hui-aside .menu_dropdown dt .Hui-iconfont { color: #fff; }
- .menu_dropdown dt .menu_dropdown-arrow { color: #fff; }
- .Hui-aside .menu_dropdown dd ul{background: #292f36; }
- .Hui-aside .menu_dropdown li a{color: #94a0b5;}
- .Hui-aside .menu_dropdown li.active a{color: #50a2ea;}
- .acrossTab li{color: #999;}
- .acrossTab li.active{color:#50a2ea;}
- table{border: 1px solid rgba(0,0,0,.1);}
- table th{background: #f7fafd;}
- table th,table td{border-collapse: collapse;border: 1px solid rgba(0,0,0,.1);text-align: center;padding: 5px 0;}
- </style>
- </head>
- <body>
- <article class="page-container" style="padding: 10px;">
- <form action="/" method="post" class="form form-horizontal" id="form">
- <div class="row cl">
- <label class="form-label col-12 col-sm-12"><strong>所属客户:</strong>
- <span id="detectName"></span>
- </label>
- </div>
- <div class="row cl">
- <label class="form-label col-12 col-sm-12"><strong>产品信息:</strong>
- <span id="productName"></span>
- </label>
- </div>
- <div class="row cl">
- <label class="form-label col-12 col-sm-12"><strong>咨询问题:</strong>
- <span id="questionName"></span>
- </label>
- </div>
- <div class="row cl">
- <label class="form-label col-12 col-sm-12"><strong>检测信息:</strong></label>
- </div>
- <div class="row cl">
- <div class="col-12 col-sm-12">
- <table>
- <tr>
- <th>是否故障</th><td id="isMaintenance" style="width: 50%;">是</td>
- </tr>
- <tr>
- <th>是否可翻新</th><td id="detectRenovation">否</td>
- </tr>
- <tr>
- <th>浮子类型</th><td id="detectFloatType">长</td>
- </tr>
- <tr>
- <th>厚膜类型</th><td id="detectFilmType"></td>
- </tr>
- <tr>
- <th>是否为翻新机</th><td id="detectIsRefurbishing"></td>
- </tr>
- <tr>
- <th>生产月份</th><td id="detectProduction"></td>
- </tr>
- <tr>
- <th>版本号</th><td id="detectVersionNumber"></td>
- </tr>
- <tr>
- <th>检测现象</th><td id="detectPhenomenon"></td>
- </tr>
- <tr>
- <th>维修报价</th><td id="detectOffer"></td>
- </tr>
- <tr>
- <th>备注信息</th><td id="detectDesc"></td>
- </tr>
- </table>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-12 col-sm-12"><strong>当前已检测完成,请确认:</strong></label>
- </div>
- <div class="row cl">
- <div class="formControls col-12 col-sm-12 skin-minimal customerSourceType_text_all">
- <div class="radio-box">
- <input type="radio" name="detectProcessingResults" value="2" id="radio-1" checked="checked">
- <label for="radio-1" class="">免费维修</label>
- </div>
- <div class="radio-box">
- <input type="radio" name="detectProcessingResults" value="1" id="radio-2"/>
- <label for="radio-2">付费维修</label>
- </div>
- <div class="radio-box">
- <input type="radio" name="detectProcessingResults" value="5" id="radio-3"/>
- <label for="radio-3" class="">原机退回</label>
- </div>
- <div class="radio-box">
- <input type="radio" name="detectProcessingResults" value="4" id="radio-4"/>
- <label for="radio-4" class="">换货</label>
- </div>
- <div class="radio-box">
- <input type="radio" name="detectProcessingResults" value="3" id="radio-5"/>
- <label for="radio-5" class="">退货</label>
- </div>
- </div>
- </div>
- <div class="row cl">
- <div class="col-6 col-sm-6 col-offset-3">
- <input type="hidden" id="methodId" value="6">
- <button class="btn btn-block btn-primary" type="button" onclick="updateDetect();">确认</button>
- </div>
- </div>
- </form>
- <p style="font-size: 12px;text-align:center;color: #f00;padding: 15px 0 20px 0;">*确认处理后,系统将不支持再修改,维修部立即开始处理*</p>
- </article>
- </body>
- <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
- <script>
- var detectId = getParam("detectId");
- $('.skin-minimal input').iCheck({
- checkboxClass: 'icheckbox-blue',
- radioClass: 'iradio-blue',
- increaseArea: '20%'
- });
- getDetect();
- $("#radio-1").click(function (){
- $("#methodId").val(6);
- });
- $("#radio-2").click(function (){
- $("#methodId").val(7);
- });
- $("#radio-3").click(function (){
- $("#methodId").val(44);
- });
- $("#radio-4").click(function (){
- $("#methodId").val(3);
- });
- $("#radio-5").click(function (){
- $("#methodId").val(8);
- });
- function getDetect() {
- $.ajax({
- cache: true,
- type: "POST",
- url: "${path}/detect/get_detail",
- data:{detectId:detectId},// 你的formid
- async: false,
- success: function(data){
- if (data.returnCode == 200) {
- var detectinfo = data.returnMsg.detectinfo;
- var isMaintenance = "";
- if(detectinfo.isMaintenance === 1){
- isMaintenance = "有故障";
- }else if(detectinfo.isMaintenance === 2){
- isMaintenance = "无故障";
- }
- var detectRenovation = "";
- if(detectinfo.detectRenovation === 1){
- detectRenovation = "可翻新";
- }else if(detectinfo.detectRenovation === 2){
- detectRenovation = "不可翻新";
- }
- var detectFloatType = "";
- if(detectinfo.detectFloatType === 1){
- detectFloatType = "长";
- }else if(detectinfo.detectFloatType === 2){
- detectFloatType = "短";
- }
- var detectFilmType = "";
- if(detectinfo.detectFilmType === 1){
- detectFilmType = "圆";
- }else if(detectinfo.detectFilmType === 2){
- detectFilmType = "扁";
- }
- var detectIsRefurbishing = "";
- if(detectinfo.detectIsRefurbishing === 1){
- detectIsRefurbishing = "是";
- }else if(detectinfo.detectIsRefurbishing === 2){
- detectIsRefurbishing = "否";
- }
- var detectPhenomenon = "";
- $(detectinfo.configli1).each(function (){
- detectPhenomenon = detectPhenomenon+this.configDetectContent+";";
- });
- $("#detectName").text(detectinfo.detectName+","+detectinfo.detectTel);
- $("#productName").text(detectinfo.productName+"("+detectinfo.colorName+")");
- $("#questionName").text(detectinfo.questionName);
- $("#isMaintenance").text(isMaintenance);
- $("#detectRenovation").text(detectRenovation);
- $("#detectFloatType").text(detectFloatType);
- $("#detectFilmType").text(detectFilmType);
- $("#detectIsRefurbishing").text(detectIsRefurbishing);
- $("#detectProduction").text(detectinfo.detectProduction);
- $("#detectVersionNumber").text(detectinfo.detectVersionNumber);
- $("#detectPhenomenon").text(detectinfo.detectPhenomenon);
- if(detectinfo.detectOffer != null && detectinfo.detectOffer != ""){
- $("#detectOffer").text(detectinfo.detectOffer/100);
- }
- $("#detectDesc").text(detectinfo.detectDesc);
- }
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- layer.msg('删除失败',{icon: 5,time:1000});
- }
- });
- };
- function updateDetect() {
- var detectProcessingResults = $('input[name="detectProcessingResults"]:checked').val();//处理结果
- //查询处理方式
- var methodId = $("#methodId").val();//处理结果
- $.ajax({
- cache: true,
- type: "POST",
- url: "${path}/detect/salesman_confirm",
- data:{ "detectId": detectId,
- "detectProcessingResults": detectProcessingResults,// 你的formid
- "methodId": methodId},
- async: false,
- success: function(data){
- if (data.returnCode == 200) {
- layer.alert("提交成功!", function() {
- location.reload();
- });
- }else {
- layer.alert("提交失败!");
- }
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- layer.msg('删除失败',{icon: 5,time:1000});
- }
- });
- };
- function getParam(paramName) {
- paramValue = "", isFound = !1;
- if(this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) {
- arrSource = unescape(this.location.search).substring(1, this.location.search.length).split("&"), i = 0;
- while(i < arrSource.length && !isFound) {
- arrSource[i].indexOf("=") > 0 && arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase() && (paramValue = arrSource[i].split("=")[1], isFound = !0), i++
- }
- }
- return paramValue == "" && (paramValue = null), paramValue
- };
- </script>
- </html>
|