| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="../css/init.css" rel="stylesheet" />
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <script src="../Script/Common/huayi.http.js"></script>
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
- <link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
- <link href="../css/init.css" rel="stylesheet" />
- <title>手工制单</title>
- <style>
- ul li {
- float: initial;
- list-style: none;
- }
-
- .common {
- width: 100%;
- text-align: center;
- padding: 10px 15px;
- }
-
- .common table {
- width: 100%;
- display: none;
- }
-
- .common table th {
- padding: 5px 8px 5px 0;
- text-align: right;
- /* width: 20%;*/
- }
-
- .common table td {
- padding: 6px 0 5px 10px;
- text-align: left;
- color: #717171;
- line-height: 200%;
- }
-
- .common table td textarea {
- width: 100%;
- vertical-align: middle;
- resize: none;
- outline: none;
- }
-
- .time-box {
- display: inline-block;
- position: relative;
- }
-
- i.tub {
- position: absolute;
- right: 8px;
- top: 8px;
- font-size: 18px;
- color: #00a0ca;
- }
-
- .treeList {
- top: 34px!important;
- border: 1px solid #e5e6e7!important;
- border-top: 0;
- height: auto!important;
- }
-
- #TreeDemo li {
- float: initial;
- }
-
- #typeclass {
- background: #fff;
- }
-
- .form-group {
- margin-bottom: 0;
- }
-
- .bootstrap-select>.dropdown-toggle.bs-placeholder {
- background-color: #ffffff!important;
- border-color: #e5e6e7!important;
- }
-
- .filter-option {
- color: #676b6d;
- }
-
- .bootstrap-select>.dropdown-toggle.btn-default {
- background-color: #ffffff!important;
- border-color: #e5e6e7!important;
- color: #555;
- }
-
- .testInput-list {
- position: absolute;
- z-index: 999;
- border: 1px solid rgb(204, 204, 204);
- background-color: rgb(255, 255, 255);
- z-index: 99999;
- padding-left: 0;
- width: 97.6%;
- display: none;
- }
-
- .testInput-list li {
- padding: 5px;
- }
-
- .testInput-list li:hover {
- background-color: #E43926;
- color: #fff;
- }
- #testInput1,#testInput2,#testInput3,#testInput4{
- outline:none;
- border: 1px solid #ccc;
- padding-left: 10px;
- outline-color :#fff;
-
- }
- .ke-container{
- width: 100%!important;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="daoHang clearfix" style="margin-bottom: 20px;">
- <div class="dhLeft">
- <sapn><i class="syIcon"></i>位置:
- <a href="javaScript:;" id="ReIndex">首页</a>>
- <a href="javaScript:;">工单管理</a>>
- <a href="" class="nowPosition">手工制单</a>
- </sapn>
- </div>
- </div>
- <div class="clearfix wrapper wrapper-content animated fadeInRight">
- <div class="common">
- <!--客服部-->
- <table class="customerService">
- <tbody>
- <tr>
- <th>姓名:</th>
- <td>
- <div class="form-group">
- <input type="text" class="form-control" id="name" />
- </div>
- </td>
- <th>电话:</th>
- <td>
- <div class="form-group">
- <input type="text" class="form-control" id="tel" />
- </div>
- </td>
- <th>来电单位:</th>
- <td style="position: relative;">
- <!--<select name="" id="testInput1" class="">
-
- </select>-->
- <input id="testInput1" type="text" style="width:100%;" />
- <ul class="testInput-list">
- <li></li>
- </ul>
- </td>
- </tr>
- <tr>
- <th>反馈单位:</th>
- <td style="position: relative;">
- <input id="testInput2" type="text" style="width:100%;" style="display: none;" />
- <ul class="testInput-list">
- <li></li>
- </ul>
- </td>
- <th>工单来源:</th>
- <td>
- <div class="form-group">
- <select name="" class="form-control" id="DicValueList"> </select>
- </div>
- </td>
- <th>工单状态:</th>
- <td>
- <div class="form-group">
- <select name="" class="form-control" id="State"> </select>
- </div>
- </td>
- </tr>
- <tr>
- <th>工单类型:</th>
- <td>
- <div class="time-box">
- <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
- <input class="form-control" type="text" id="typeclass" readonly="readonly">
- <input type="hidden" id="typeclassId" />
- <div class="addTree treeList">
- <ul id="TreeDemo" class="ztree">
- </ul>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <th>反馈内容及处理结果:</th>
- <td colspan="5">
- <textarea name="" rows="5" cols="" placeholder="" id="feedBackCon"></textarea>
- </td>
- </tr>
- <tr>
- <th>快递信息:</th>
- <td colspan="5">
- <textarea name="" rows="" cols="" id="express"></textarea>
- </td>
- </tr>
- <tr>
- <th>备注一:</th>
- <td colspan="5">
- <textarea name="" rows="" cols="" id="remark1"></textarea>
- </td>
- </tr>
- <tr>
- <th>备注二:</th>
- <td colspan="5">
- <textarea name="" rows="" cols="" id="remark2"></textarea>
- </td>
- </tr>
- <tr>
- <th>备注三:</th>
- <td colspan="5">
- <textarea name="" rows="" cols="" id="remark3"></textarea>
- </td>
- </tr>
- <tr>
- <td colspan="6" style="text-align: center;">
- <button class="btns customerSubmit">保 存</button>
- </td>
- </tr>
- </tbody>
- </table>
- <!--市场部-->
- <table class="market">
- <tbody>
- <tr>
- <th>姓名:</th>
- <td>
- <div class="form-group">
- <input type="text" class="form-control" id="name_market" />
- </div>
- </td>
- <th>电话:</th>
- <td>
- <div class="form-group">
- <input type="text" class="form-control" id="tel_market" />
- </div>
- </td>
- <th>来电单位:</th>
- <!--<td>
- <select class="form-control selectpicker" id="comeCall_dep_market" data-live-search="true">
- <option value="">请选择来电单位</option>
- </select>
- </td>-->
- <td style="position: relative;">
- <input id="testInput3" type="text" style="width:100%;" style="display: none;" />
- <ul class="testInput-list">
- <li></li>
- </ul>
- </td>
- </tr>
- <tr>
- <th>反馈单位:</th>
- <!--<td>
- <select class="form-control selectpicker" id="feedbackDep_market" data-live-search="true">
- <option value="">请选择反馈单位</option>
- </select>
- </td>-->
- <td style="position: relative;">
- <input id="testInput4" type="text" style="width:100%;" style="display: none;" />
- <ul class="testInput-list">
- <li></li>
- </ul>
- </td>
- </tr>
- <tr>
- <th>备注内容:</th>
- <td colspan="5">
- <textarea name="" rows="" cols="" id="remark_market"></textarea>
- </td>
- </tr>
- <tr>
- <td colspan="6" style="text-align: center;">
- <button class="btns marketSubmit">保 存</button>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <input type="hidden" id="CallID"/>
- </div>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
- <script src="../js/WorkOrder/AddWorkOrder.js"></script>
- <script src="../js/WorkOrder/jquery.editable-select.js"></script>
- <script src="../js/kindeditor/kindeditor.js"></script>
- <script src="../js/kindeditor/lang/zh_CN.js"></script>
- <script>
- Select($("#testInput1"));
- Select($("#testInput2"));
- Select($("#testInput3"));
- Select($("#testInput4"));
-
- function Select(obj) {
- obj.click(function (event) {
- event.preventDefault();
- });
- obj.focus(function() { //
- //失去焦点后触发的事件
- obj.parent().find('.testInput-list').show();
- BindLDdep();
- });
- obj.bind("input propertychange", function() {
- var value = $(this).val();
- obj.parent().find('.testInput-list').show();
- BindLDdep(value)
- });
- function BindLDdep(str) {
- $('.testInput-list').empty();
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "Customer/BindLDdep",
- dataType: 'json',
- async: true,
- data: {
- keypara: str,
- token: $.cookie("token")
- },
- success: function(data) {
- var Count = data.data.dep;
- console.log(Count);
- var html = '';
- $(Count).each(function(i, n) {
- html = '<li value="' + n + '" id="td'+i+'">' + n + '</li>';
- $(html).appendTo($('.testInput-list'));
- });
- $('.testInput-list>li').click(function() {
- obj.val($(this).html());
- console.log($(this).html());
- $('.testInput-list').hide();
- })
-
- }
- });
- };
- //
- }
- //请求单位
-
- $(document).ready(function(){
-
-
- $(document).click(function(e) {
- if(!$(e.target).is($('.testInput-list>li'))&&!$(e.target).is($('#testInput1'))&&!$(e.target).is($('#testInput2'))&&!$(e.target).is($('#testInput3'))&&!$(e.target).is($('#testInput4'))) {
- $('.testInput-list').hide();
- }
- })
- })
- </script>
- </body>
- </html>
|