123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>工单回调</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="format-detection" content="telephone=no">
- <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
- <link rel="stylesheet" type="text/css" href="../script/lib/valid/validationEngine.jquery.css">
- <link rel="stylesheet" type="text/css" href="../script/lib/layui/admin/style/admin.css?v9" media="all">
- <link rel="stylesheet" type="text/css" href="../script/lib/fancybox/jquery.fancybox.css">
- <script src="../script/lib/jquery/jquery.min.js"></script>
- <script src="../script/lib/layui/layui.js"></script>
- <script src="../script/lib/echarts/echarts.common.min.js"></script>
- <script src="../script/lib/miniui/miniui.js"></script>
- <script><{Dever::script()}></script>
- <script src="../script/dever/core.js"></script>
- <script src="../script/dever/core.js?1"></script>
- <script type="text/javascript" src="../script/lib/valid/jquery.validationEngine.min.js?v3"></script>
- <script type="text/javascript" src="../script/lib/layui/upload.js?v226"></script>
- <script type="text/javascript" src="../script/lib/fancybox/jquery.fancybox.js"></script>
- <script src="../script/lib/manage/main.js"></script>
- <style>
- .dever-upload-pic
- {
- width:100px;
- }
- h5 {
- margin-bottom: 10px;
- }
- td {
- color: black;
- }
- .layui-card-body {
- /*position: relative;*/
- /*padding: 50px 15px;*/
- line-height: 20px;
- margin-left: -10px;
- }
- .layui-input {
- /*position: relative;*/
- /*padding: 30px;*/
- margin-top: 20px;
- /*line-height: 24px;*/
- }
- .container{
- max-width: 1024px;
- margin: auto;
- }
- .layui-span{
- color: blue;
- margin-left: 80px;
- }
- .layui-col-xs4{
- font-size: 18px;
- }
- .layui-col-xs6{
- margin-top: 15px;
- font-size: 15px;
- }
- #content{
- margin-left: 11px;
- margin-right: 18px;
- }
- .url{
- margin-top:40px;
- margin-bottom: 20px;
- }
- .huifu{
- border-style:none;
- background-color: white;
- }
- .pm{
- margin-left: 14px;
- margin-bottom: -14px;
- }
- </style>
- </head>
- <body>
- <div class="layui-card">
- <div class="layui-container">
- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;"> </fieldset>
- <p class='pm'>手机号:</p>
- <input type="text" value="<{$user['mobile']}>" autocomplete="off" id="content" class="layui-input" style="width: auto;display: inline;" placeholder="输入手机号"><a href="javascript:;" class="layui-btn" id="search" >搜索</a>
- <div class="layui-card-body">
- <{if(isset($user)):}>
- <table class="table layui-table layui-table-body" id="table">
- <col width="100">
- <col width="100">
- <thead>
- <tr>
- <{if(isset($user['name']) && $user['name']):}>
- <th>名称</th>
- <{endif}>
- <th>电话号码</th>
- <th>平台</th>
- <{if(isset($user['role_name']) && $user['role_name']):}>
- <th>角色</th>
- <{endif}>
- </tr>
- </thead>
- <tbody>
- <tr>
- <{if(isset($user['name']) && $user['name']):}>
- <td><{$user['name']}></td>
- <{endif}>
- <td><{$user['mobile']}></td>
- <td width=80px;><{$user['type']}></td>
- <{if(isset($user['role_name']) && $user['role_name']):}>
- <td width=80px;><{$user['role_name']}></td>
- <{endif}>
- </tr>
- </tbody>
- </table>
- <div class="url">
- <{if(isset($user['agent_uid']) && $user['agent_uid']>0):}>
- <a href="<{$user['order']}>" class="layui-btn" id="order" onclick="order();">代理商订单</a>
- <a href="<{$user['agent']}>" class="layui-btn" id="desc" onclick="desc();">代理商详情</a>
- <a href="<{$user['soft']}>" class="layui-btn" id="soft" onclick="soft();">软件服务费</a>
- <{endif}>
- <{if(isset($user['option_uid']) && $user['option_uid']>0):}>
- <a href="<{$user['option']}>;" class="layui-btn" id="option" onclick="option();">期权信息</a>
- <{endif}>
- <a href="<{$user['work']}>" class="layui-btn" id="work" onclick="work();">创建工单</a>
- </div>
- <{endif}>
- <{if(isset($info)):}>
- <div class="layui-card-body">
- <h3>往期问题工单:</h3>
- <table class="table layui-table layui-table-body" id="table">
- <col width="100">
- <col width="100">
- <thead>
- <tr>
- <th>时间/完成时间</th>
- <th>问题类型</th>
- <th>优先级</th>
- <th>问题描述</th>
- <th>协助部门</th>
- <th>处理结果</th>
- <th>管理</th>
- </tr>
- </thead>
- <{foreach($info as $k => $v):}>
- <tbody>
- <tr>
- <td><{$v['cdate']}><br/><{$v['fdate']}></td>
- <td><{$v['cate_name']}></td>
- <td><{$v['you']}></td>
- <td><{$v['desc']}></td>
- <td><{$v['branch']}></td>
- <td><{$v['status']}></td>
- <!-- <div class="zong"> -->
- <td width=60px><a href="<{$v['url']}>">查看详情</a><br/>
- <{if($v['zhipai'] ):}>
- <button class="huifu" onclick="fastEdit($(this),'<{$v['zhipai']}>')">指派工单</button>
- <{endif}>
- </td>
- <!-- </div> -->
- </tr>
- </tbody>
- <{endforeach}>
- </table>
- <div><{$page}></div>
- </div>
- <{endif}>
- </div>
- </div>
- </div>
- </div>
- <!-- <input id="id" name="id" value="<{$id}>" type='hidden'/> -->
- </div>
- <script>
- var layer;
- layui.use('layer', function(){
- layer = layui.layer;
- });
- function search()
- {
- var content = $('#content').val();
- if (!content) {
- layer.alert('请输入手机号');
- layer.close();
- } else {
- $.ajax({
- type:"GET",
- url:config.host + 'lib/appoint.back',
- data: {
- mobile : $('#content').val(),
- json:2,
- },
- success: function (data) {
- if(data == '代理商手机号不正确'){
- layer.alert('请输入正确的手机号');
- // location.reload();
- layer.close();
- } else {
- location.href = config.host + 'lib/appoint.back&mobile=' + $('#content').val();
- }
-
- },
- error: function(data){
- layer.alert('手机号错误', function(){
- // location.href = config.host + "lib/appoint.back&id=<{$active_id}>";
- layer.close();
- });
-
- }
- });
- }
-
-
- }
- $('#search').click(function() {
- search();
- })
- $('#content').focus();
- $('#content').bind('keydown',function(event){
- if(event.keyCode == "13")
- {
- $.ajax({
- type:"GET",
- url:config.host + 'lib/appoint.back',
- data: {
- mobile : $('#content').val(),
- json:2,
- },
- success: function (data) {
- if(data == '代理商手机号不正确'){
- layer.alert('请输入正确的手机号');
- layer.close();
- } else {
- location.href = config.host + 'lib/appoint.back&mobile=' + $('#content').val();
- }
-
- },
- error: function(data){
- layer.alert('手机号错误', function(){
- // location.href = config.host + "lib/appoint.back&id=<{$active_id}>";
- layer.close();
- });
-
- // top.location.href = config.host + "lib/appoint.back&mobile=" + $('#content').val();
- }
- });
- }
- });
- // var order_url = "<{$user['order']}>";
- function order(){
- // location.href = 'www.baidu.com';
- //"<{$user['order']}>";
- }
- </script>
- </body>
- </html>
|