|
|
@@ -6,15 +6,13 @@
|
|
6
|
6
|
<script src="../Script/Common/huayi.load.js"></script>
|
|
7
|
7
|
<script src="../Script/Common/huayi.config.js"></script>
|
|
8
|
8
|
<link rel="stylesheet" href="../css/bootstrap-select.css" />
|
|
|
9
|
+ <link rel="stylesheet" href="../css/layer/need/layer.css" />
|
|
9
|
10
|
<link rel="stylesheet" href="../css/init.css" />
|
|
10
|
11
|
<title>添加</title>
|
|
11
|
12
|
<style>
|
|
12
|
13
|
.Common table th {
|
|
13
|
14
|
width: 100px
|
|
14
|
15
|
}
|
|
15
|
|
- .auditState {
|
|
16
|
|
- display: none;
|
|
17
|
|
- }
|
|
18
|
16
|
</style>
|
|
19
|
17
|
</head>
|
|
20
|
18
|
|
|
|
@@ -23,17 +21,7 @@
|
|
23
|
21
|
<div style="padding: 10px" class="tj_content clearFix">
|
|
24
|
22
|
<div class="Common">
|
|
25
|
23
|
<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">
|
|
|
24
|
+ <tr>
|
|
37
|
25
|
<th>审核说明:</th>
|
|
38
|
26
|
<td colspan="7">
|
|
39
|
27
|
<textarea id="cbreason" class="form-control" name="" rows="" cols="" style=""></textarea>
|
|
|
@@ -50,61 +38,35 @@
|
|
50
|
38
|
</div>
|
|
51
|
39
|
<script>
|
|
52
|
40
|
var wid = helper.request.queryString("wid");
|
|
53
|
|
- var nexttype;
|
|
|
41
|
+ var nexttype = helper.request.queryString("nexttype");
|
|
54
|
42
|
$(document).ready(function () {
|
|
55
|
43
|
$(".save").click(function () {
|
|
56
|
|
- Add()
|
|
|
44
|
+ Add();
|
|
57
|
45
|
});
|
|
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
|
46
|
});
|
|
|
47
|
+
|
|
69
|
48
|
//修改工单
|
|
70
|
49
|
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
|
|
-
|
|
|
50
|
+ $.ajax({
|
|
|
51
|
+ type: "post",
|
|
|
52
|
+ url: huayi.config.callcenter_url + "WorkOrder/ToExamineWorkOrder",
|
|
|
53
|
+ dataType: "json",
|
|
|
54
|
+ async: true,
|
|
|
55
|
+ data: {
|
|
|
56
|
+ token: $.cookie("token"),
|
|
|
57
|
+ workorderid: wid,
|
|
|
58
|
+ nexttype: nexttype, // 0审核通过 1审核不通过 2审核通过转办
|
|
|
59
|
+ cbreason: $("#cbreason").val(),
|
|
|
60
|
+ },
|
|
|
61
|
+ success: function (data) {
|
|
|
62
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
63
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
64
|
+ parent.layer.close(index); //再执行关闭
|
|
|
65
|
+ parent.$("#orderlist").bootstrapTable("refresh");
|
|
|
66
|
+ parent.layer.msg("操作成功");
|
|
|
67
|
+ }
|
|
|
68
|
+ },
|
|
|
69
|
+ });
|
|
108
|
70
|
}
|
|
109
|
71
|
</script>
|
|
110
|
72
|
</body>
|