|
|
@@ -1,112 +0,0 @@
|
|
1
|
|
-<!DOCTYPE html>
|
|
2
|
|
-<html>
|
|
3
|
|
-
|
|
4
|
|
-<head>
|
|
5
|
|
- <meta charset="UTF-8" />
|
|
6
|
|
- <script src="../Script/Common/huayi.load.js"></script>
|
|
7
|
|
- <script src="../Script/Common/huayi.config.js"></script>
|
|
8
|
|
- <link rel="stylesheet" href="../css/bootstrap-select.css" />
|
|
9
|
|
- <link rel="stylesheet" href="../css/init.css" />
|
|
10
|
|
- <title>添加</title>
|
|
11
|
|
- <style>
|
|
12
|
|
- .Common table th {
|
|
13
|
|
- width: 100px
|
|
14
|
|
- }
|
|
15
|
|
- .auditState {
|
|
16
|
|
- display: none;
|
|
17
|
|
- }
|
|
18
|
|
- </style>
|
|
19
|
|
-</head>
|
|
20
|
|
-
|
|
21
|
|
-<body>
|
|
22
|
|
- <div class="wrapper wrapper-content animated fadeInRight">
|
|
23
|
|
- <div style="padding: 10px" class="tj_content clearFix">
|
|
24
|
|
- <div class="Common">
|
|
25
|
|
- <table>
|
|
26
|
|
- <tr>
|
|
27
|
|
- <th>审核状态:</th>
|
|
28
|
|
- <td colspan="7">
|
|
29
|
|
- <select name="auditState" class="form-control" id="auditState">
|
|
30
|
|
- <option value="0">审核通过</option>
|
|
31
|
|
- <option value="1">审核不通过</option>
|
|
32
|
|
- <option value="2">审核通过转办</option>
|
|
33
|
|
- </select>
|
|
34
|
|
- </td>
|
|
35
|
|
- </tr>
|
|
36
|
|
- <tr class="auditState">
|
|
37
|
|
- <th>审核说明:</th>
|
|
38
|
|
- <td colspan="7">
|
|
39
|
|
- <textarea id="cbreason" class="form-control" name="" rows="" cols="" style=""></textarea>
|
|
40
|
|
- </td>
|
|
41
|
|
- </tr>
|
|
42
|
|
- <tr>
|
|
43
|
|
- <td colspan="8" style="text-align: center">
|
|
44
|
|
- <button class="btns save">保存</button>
|
|
45
|
|
- </td>
|
|
46
|
|
- </tr>
|
|
47
|
|
- </table>
|
|
48
|
|
- </div>
|
|
49
|
|
- </div>
|
|
50
|
|
- </div>
|
|
51
|
|
- <script>
|
|
52
|
|
- var wid = helper.request.queryString("wid");
|
|
53
|
|
- var nexttype;
|
|
54
|
|
- $(document).ready(function () {
|
|
55
|
|
- $(".save").click(function () {
|
|
56
|
|
- Add()
|
|
57
|
|
- });
|
|
58
|
|
- $("#auditState").change(function(){
|
|
59
|
|
-
|
|
60
|
|
- if (Number($("#auditState").val())) {
|
|
61
|
|
- $(".auditState").show()
|
|
62
|
|
- } else {
|
|
63
|
|
- $(".auditState").hide()
|
|
64
|
|
- $("#cbreason").val('')
|
|
65
|
|
- }
|
|
66
|
|
-// Number($("#auditState").val()) ? $(".auditState").show():$(".auditState").hide()
|
|
67
|
|
- })
|
|
68
|
|
- });
|
|
69
|
|
- //修改工单
|
|
70
|
|
- function Add() {
|
|
71
|
|
-
|
|
72
|
|
- nexttype =Number($("#auditState").val())
|
|
73
|
|
- if (nexttype === 0) {
|
|
74
|
|
- layer.confirm('确认审核通过吗?', {
|
|
75
|
|
- btn: ['是', '否'] //按钮
|
|
76
|
|
- }, function () {
|
|
77
|
|
- layer.confirm('是否发送短信?', {
|
|
78
|
|
- btn: ['是', '否'] //按钮
|
|
79
|
|
- }, function () {
|
|
80
|
|
- toExamineWorkOrder(1,nexttype)
|
|
81
|
|
- },function(){
|
|
82
|
|
- toExamineWorkOrder(0,nexttype)
|
|
83
|
|
- });
|
|
84
|
|
- });
|
|
85
|
|
- } else if(nexttype===1 || nexttype ===2){
|
|
86
|
|
- $("#cbreason").show()
|
|
87
|
|
- toExamineWorkOrder()
|
|
88
|
|
- }
|
|
89
|
|
- }
|
|
90
|
|
- function toExamineWorkOrder(issmsAudit){
|
|
91
|
|
-
|
|
92
|
|
- $.post(huayi.config.callcenter_url + 'WorkOrder/ToExamineWorkOrder', {
|
|
93
|
|
- workorderid: wid,
|
|
94
|
|
- nexttype: nexttype, // 0审核通过 1审核不通过 2审核通过转办
|
|
95
|
|
- issms:issmsAudit,
|
|
96
|
|
- cbreason: $("#cbreason").val(),
|
|
97
|
|
- "token": $.cookie("token")
|
|
98
|
|
- }, function(result) {
|
|
99
|
|
- result = JSON.parse(result);
|
|
100
|
|
- if(result.state.toLowerCase() == "success") {
|
|
101
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
102
|
|
- parent.layer.close(index); //再执行关闭
|
|
103
|
|
- parent.$("#orderlist").bootstrapTable("refresh");
|
|
104
|
|
- parent.layer.msg("操作成功");
|
|
105
|
|
- }
|
|
106
|
|
- })
|
|
107
|
|
-
|
|
108
|
|
- }
|
|
109
|
|
- </script>
|
|
110
|
|
-</body>
|
|
111
|
|
-
|
|
112
|
|
-</html>
|