| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <!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>
- <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 rel="stylesheet" href="../js/comboSelect/combo.select.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>工单审核</title>
- <style>
- ul li {
- float: initial;
- list-style: none;
- }
-
- .wrapper-content {
- padding-top: 20px;
- }
-
- .common {
- width: 100%;
- text-align: center;
- padding: 1% 8% 0 0;
- }
-
- .common table {
- width: 100%;
- }
-
- .common table th {
- padding: 5px 8px 5px 0;
- text-align: center;
- }
-
- .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;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="clearfix wrapper wrapper-content animated fadeInRight">
- <div class="common">
- <table class="customerService">
- <tbody>
- <tr>
- <th>是否同意:</th>
- <td colspan="3">
- <select class="form-control" id="state">
- <option value="1">同意</option>
- <option value="2">拒绝</option>
- </select>
- </td>
- </tr>
- <tr>
- <th>审核内容:</th>
- <td colspan="7">
- <textarea name="" rows="5" cols="" placeholder="" id="cont" style="margin-top:10px;"></textarea>
- </td>
- </tr>
- <tr>
- <td colspan="8" style="text-align: center;">
- <button class="btns customerSubmit">确 定</button>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
- <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
- <script src="../js/WorkOrder/jquery.editable-select.js"></script>
- <script src="../js/comboSelect/jquery.combo.select.js"></script>
- <script src="../js/laydate/laydate.js"></script>
- <script>
- var id = helper.request.queryString("id");
- $(document).ready(function() {
- //保存
- $('.customerSubmit').click(function() {
- saveCustomer();
- });
- })
- //保存
- function saveCustomer() {
- $.ajax({
- type: "post",
- url: huayi.config.callcenter_url + "WorkOrder/ReviewWorkOrder",
- dataType: 'json',
- async: true,
- beforeSend: function() { //触发ajax请求开始时执行
- $('.customerSubmit').attr("disabled", true);
- $('.customerSubmit').text('确定中...');
- },
- data: {
- token: $.cookie("token"),
- id: id,
- state:$('#state').val(),
- cont: $('#cont').val(), //提交内容
- },
- success: function(data) {
- if(data.state.toLowerCase() == 'success') {
- $('.customerSubmit').attr("disabled", false);
- $('.customerSubmit').text('确定');
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.layer.msg("保存成功!");
- parent.initTable();
- } else {
- $('.customerSubmit').attr("disabled", false);
- $('.customerSubmit').text('确定');
- }
- }
- });
- }
- </script>
- </body>
- </html>
|