| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/layer/need/layer.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>交办</title>
- <style>
- .inpBox {
- border: 1px solid #a9a9a9;
- height: 27px;
- width: 220px;
- display: inline-block;
- position: relative;
- vertical-align: middle;
- }
-
- .addTree {
- background: #fff;
- position: absolute;
- width: 100%;
- border: 1px solid darkgrey;
- right: 0;
- top: 26px;
- display: none;
- }
-
- .xl {
- display: inline-block;
- background: url(../../img/dropDown.png) no-repeat;
- height: 100%;
- background-position: center center;
- width: 20px;
- position: absolute;
- right: 0;
- top: 0px;
- /* background-color: #f7bc8b; */
- cursor: pointer;
- }
-
- .ztree li span {
- border: none;
- padding: 0;
- }
-
- .inps {
- width: 217px;
- height: 24px;
- outline: none;
- border: 0;
- border-image-width: 0;
- padding: 0;
- padding-left: 3px;
- }
-
- .xl {
- display: inline-block;
- background: url(../img/dropDown.png) no-repeat;
- height: 100%;
- background-position: center center;
- width: 20px;
- position: absolute;
- right: 0;
- top: 0px;
- /* background-color: #f7bc8b; */
- cursor: pointer;
- }
- </style>
- </head>
- <body>
- <div class="Common" style="height: 100%;">
- <table>
- <tr>
- <th class="Importent">办理时限:</th>
- <td> <input type="text" id="startTime" class="laydate-icon" style="height: 32px;"></td>
- </tr>
- <tr>
- <th class="Importent">交办意见:</th>
- <td><textarea data-adaptheight id="assignedopinion" name="" rows="4" cols=""></textarea></td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns BC">保存</button>
- </div>
- </div>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
-
- $(document).ready(function() {
- laydate.skin('blue');
- laydate({
- elem: '#startTime',
- event: 'focus'
- });
-
- XQ()
- $('.BC').click(function() {
- if($("#assignedopinion").val() == "") {
- layer.msg("交办意见不能为空");
- }else{
- JA();
- }
- })
- //交办
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/EditAssignInfoByAdmin', {
- id: wid,
- limittime: $("#startTime").val(), //办理时限
- assignedopinion: $('#assignedopinion').val(), //交办意见
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- parent.parent.layer.closeAll();
- parent.parent.$('#orderlist').bootstrapTable('refresh');
- parent.parent.layer.msg("操作成功!");
- }
- })
- }
- //所属分类下拉
- //清除
- function Clean() {
- $("#startTime").val(''),
- $('#assignedopinion').val('')
- }
- function XQ(){
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
- id: wid,
- type:1,
- token: $.cookie("token")
- }, function(result) {
- if(result.state.toLowerCase() == "success") {
- $("#startTime").val(result.data[0].F_LimitTime);
- $('#assignedopinion').val(result.data[0].F_AssignedOpinion);
- console.log(result);
-
- }
- })
- }
- });
- </script>
- </body>
- </html>
|