|
|
@@ -1,100 +1,113 @@
|
|
1
|
1
|
<!DOCTYPE html>
|
|
2
|
2
|
<html>
|
|
3
|
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 href="../css/layer/need/layer.css" />
|
|
9
|
|
- <link rel="stylesheet" href="../css/init.css" />
|
|
10
|
|
- <title>诉求单结案</title>
|
|
11
|
|
- <style type="text/css">
|
|
12
|
|
- .isStandard,
|
|
13
|
|
- .bulletUnit{
|
|
14
|
|
- display: none;
|
|
15
|
|
- }
|
|
16
|
|
- .bulletUnit ul{
|
|
17
|
|
- list-style: none;
|
|
18
|
|
- margin: 0;
|
|
19
|
|
- padding: 0;
|
|
20
|
|
- }
|
|
21
|
|
- .bulletUnit ul li{
|
|
22
|
|
- float: left;
|
|
23
|
|
- margin-right: 20px;
|
|
24
|
|
- text-align: center;
|
|
25
|
|
- padding: 6px 0;
|
|
26
|
|
- }
|
|
27
|
|
- .bulletUnit li input{
|
|
28
|
|
- display: none;
|
|
29
|
|
- }
|
|
30
|
|
- .bulletUnit li label{
|
|
31
|
|
- margin: 0;
|
|
32
|
|
- font-weight: normal;
|
|
33
|
|
- display: block;
|
|
34
|
|
- width: 100%;
|
|
35
|
|
- border: 1px solid #ccc;
|
|
36
|
|
- padding: 2px 10px;
|
|
37
|
|
- cursor: pointer;
|
|
38
|
|
- }
|
|
39
|
|
- .bulletUnit li label:hover{
|
|
40
|
|
- /*border-color: #fe6604;*/
|
|
41
|
|
- }
|
|
42
|
|
- .bulletUnit .checkedDept{
|
|
43
|
|
- border-color: #fe6604;
|
|
44
|
|
- }
|
|
45
|
|
- select:disabled{
|
|
46
|
|
- background-color: #eee;
|
|
47
|
|
- }
|
|
48
|
|
- .reasons{
|
|
49
|
|
- display: none;
|
|
50
|
|
- height: 160px;
|
|
51
|
|
- }
|
|
52
|
|
- #reasons{
|
|
53
|
|
- height: 160px;
|
|
54
|
|
- }
|
|
55
|
|
- #msg1,
|
|
56
|
|
- #msg2,
|
|
57
|
|
- #msg3,
|
|
58
|
|
- #phone{
|
|
59
|
|
- border:none;
|
|
60
|
|
- border-bottom: 1px solid #ccc;
|
|
61
|
|
- margin-bottom: 20px;
|
|
62
|
|
- background-color: #FFFFFF;
|
|
63
|
|
- color: #00a1cb;
|
|
64
|
|
- }
|
|
65
|
|
- #msg4{
|
|
66
|
|
- width: 250px;
|
|
67
|
|
- height: 50px;
|
|
68
|
|
- border: none;
|
|
69
|
|
- border-bottom: 1px solid #ccc;
|
|
70
|
|
- margin-bottom: 20px;
|
|
71
|
|
- vertical-align: top;
|
|
72
|
|
- }
|
|
73
|
|
- #msg2{
|
|
74
|
|
- vertical-align: top;
|
|
75
|
|
- height: 25px;
|
|
76
|
|
- }
|
|
77
|
|
- #msg1:focus,
|
|
78
|
|
- #msg2:focus,
|
|
79
|
|
- #msg3:focus,
|
|
80
|
|
- #msg4:focus,
|
|
81
|
|
- #phone:focus{
|
|
82
|
|
- outline: none;
|
|
83
|
|
- }
|
|
84
|
|
- </style>
|
|
85
|
|
- </head>
|
|
|
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 href="../css/layer/need/layer.css" />
|
|
|
9
|
+ <link rel="stylesheet" href="../css/init.css" />
|
|
|
10
|
+ <title>诉求单结案</title>
|
|
|
11
|
+ <style type="text/css">
|
|
|
12
|
+ .isStandard,
|
|
|
13
|
+ .bulletUnit {
|
|
|
14
|
+ display: none;
|
|
|
15
|
+ }
|
|
86
|
16
|
|
|
87
|
|
- <body>
|
|
88
|
|
- <div class="Common">
|
|
89
|
|
- <table>
|
|
90
|
|
- <tr>
|
|
91
|
|
- <th class="Importent">回访结果:</th>
|
|
92
|
|
- <td>
|
|
93
|
|
- <input checked="true" type="radio" value="1" name="huifang" />满意
|
|
94
|
|
- <input type="radio" value="0" name="huifang"/>不满意
|
|
95
|
|
- </td>
|
|
96
|
|
- </tr>
|
|
97
|
|
- <!--<tr>
|
|
|
17
|
+ .bulletUnit ul {
|
|
|
18
|
+ list-style: none;
|
|
|
19
|
+ margin: 0;
|
|
|
20
|
+ padding: 0;
|
|
|
21
|
+ }
|
|
|
22
|
+
|
|
|
23
|
+ .bulletUnit ul li {
|
|
|
24
|
+ float: left;
|
|
|
25
|
+ margin-right: 20px;
|
|
|
26
|
+ text-align: center;
|
|
|
27
|
+ padding: 6px 0;
|
|
|
28
|
+ }
|
|
|
29
|
+
|
|
|
30
|
+ .bulletUnit li input {
|
|
|
31
|
+ display: none;
|
|
|
32
|
+ }
|
|
|
33
|
+
|
|
|
34
|
+ .bulletUnit li label {
|
|
|
35
|
+ margin: 0;
|
|
|
36
|
+ font-weight: normal;
|
|
|
37
|
+ display: block;
|
|
|
38
|
+ width: 100%;
|
|
|
39
|
+ border: 1px solid #ccc;
|
|
|
40
|
+ padding: 2px 10px;
|
|
|
41
|
+ cursor: pointer;
|
|
|
42
|
+ }
|
|
|
43
|
+
|
|
|
44
|
+ .bulletUnit li label:hover {
|
|
|
45
|
+ /*border-color: #fe6604;*/
|
|
|
46
|
+ }
|
|
|
47
|
+
|
|
|
48
|
+ .bulletUnit .checkedDept {
|
|
|
49
|
+ border-color: #fe6604;
|
|
|
50
|
+ }
|
|
|
51
|
+
|
|
|
52
|
+ select:disabled {
|
|
|
53
|
+ background-color: #eee;
|
|
|
54
|
+ }
|
|
|
55
|
+
|
|
|
56
|
+ .reasons {
|
|
|
57
|
+ display: none;
|
|
|
58
|
+ height: 160px;
|
|
|
59
|
+ }
|
|
|
60
|
+
|
|
|
61
|
+ #reasons {
|
|
|
62
|
+ height: 160px;
|
|
|
63
|
+ }
|
|
|
64
|
+
|
|
|
65
|
+ #msg1,
|
|
|
66
|
+ #msg2,
|
|
|
67
|
+ #msg3,
|
|
|
68
|
+ #phone {
|
|
|
69
|
+ border: none;
|
|
|
70
|
+ border-bottom: 1px solid #ccc;
|
|
|
71
|
+ margin-bottom: 20px;
|
|
|
72
|
+ background-color: #FFFFFF;
|
|
|
73
|
+ color: #00a1cb;
|
|
|
74
|
+ }
|
|
|
75
|
+
|
|
|
76
|
+ #msg4 {
|
|
|
77
|
+ width: 250px;
|
|
|
78
|
+ height: 50px;
|
|
|
79
|
+ border: none;
|
|
|
80
|
+ border-bottom: 1px solid #ccc;
|
|
|
81
|
+ margin-bottom: 20px;
|
|
|
82
|
+ vertical-align: top;
|
|
|
83
|
+ }
|
|
|
84
|
+
|
|
|
85
|
+ #msg2 {
|
|
|
86
|
+ vertical-align: top;
|
|
|
87
|
+ height: 25px;
|
|
|
88
|
+ }
|
|
|
89
|
+
|
|
|
90
|
+ #msg1:focus,
|
|
|
91
|
+ #msg2:focus,
|
|
|
92
|
+ #msg3:focus,
|
|
|
93
|
+ #msg4:focus,
|
|
|
94
|
+ #phone:focus {
|
|
|
95
|
+ outline: none;
|
|
|
96
|
+ }
|
|
|
97
|
+ </style>
|
|
|
98
|
+</head>
|
|
|
99
|
+
|
|
|
100
|
+<body>
|
|
|
101
|
+ <div class="Common">
|
|
|
102
|
+ <table>
|
|
|
103
|
+ <tr>
|
|
|
104
|
+ <th class="Importent">回访结果:</th>
|
|
|
105
|
+ <td>
|
|
|
106
|
+ <input checked="true" type="radio" value="1" name="huifang" />满意
|
|
|
107
|
+ <input type="radio" value="0" name="huifang" />不满意
|
|
|
108
|
+ </td>
|
|
|
109
|
+ </tr>
|
|
|
110
|
+ <!--<tr>
|
|
98
|
111
|
<th class="Importent">是否通报:</th>
|
|
99
|
112
|
<td>
|
|
100
|
113
|
<select class="select_" id='isBulletin'>
|
|
|
@@ -111,266 +124,273 @@
|
|
111
|
124
|
</ul>
|
|
112
|
125
|
</td>
|
|
113
|
126
|
</tr>-->
|
|
114
|
|
- <tr class="bulletUnit">
|
|
115
|
|
- <th class="Importent">通报原因:</th>
|
|
116
|
|
- <td>
|
|
117
|
|
- <select name="" class="form-control orderType">
|
|
118
|
|
- <option value="0">请选择通报原因</option>
|
|
119
|
|
- </select>
|
|
120
|
|
- </td>
|
|
121
|
|
- <!--<td><textarea name="" rows="4" cols="" id="bulletinReason"></textarea></td>-->
|
|
122
|
|
- </tr>
|
|
123
|
|
- <tr class="reasons">
|
|
124
|
|
- <th class="Importent">其他原因:</th>
|
|
125
|
|
- <td colspan="2"><textarea data-adaptheight id="reasons" name="" rows="6" cols=""></textarea></td>
|
|
126
|
|
- </tr>
|
|
127
|
|
- <tr>
|
|
128
|
|
- <th class="Importent">是否规范:</th>
|
|
129
|
|
- <td>
|
|
130
|
|
- <select class="select_" id='isStandard'>
|
|
131
|
|
- <option value="0">是</option>
|
|
132
|
|
- <option value="1">否</option>
|
|
133
|
|
- </select>
|
|
134
|
|
- </td>
|
|
135
|
|
- </tr>
|
|
136
|
|
- <tr class="isStandard">
|
|
137
|
|
- <th class="Importent">不规范原因:</th>
|
|
138
|
|
- <td>
|
|
139
|
|
- <select name="" class="form-control standard">
|
|
140
|
|
- <option value="0">请选择不规范原因</option>
|
|
141
|
|
- </select>
|
|
142
|
|
- </td>
|
|
143
|
|
- </tr>
|
|
144
|
|
- <tr>
|
|
145
|
|
- <th class="Importent">备注:</th>
|
|
146
|
|
- <td colspan="2"><textarea data-adaptheight id="finalopinion" name="" rows="6" cols=""></textarea></td>
|
|
147
|
|
- </tr>
|
|
|
127
|
+ <tr class="bulletUnit">
|
|
|
128
|
+ <th class="Importent">通报原因:</th>
|
|
|
129
|
+ <td>
|
|
|
130
|
+ <select name="" class="form-control orderType">
|
|
|
131
|
+ <option value="0">请选择通报原因</option>
|
|
|
132
|
+ </select>
|
|
|
133
|
+ </td>
|
|
|
134
|
+ <!--<td><textarea name="" rows="4" cols="" id="bulletinReason"></textarea></td>-->
|
|
|
135
|
+ </tr>
|
|
|
136
|
+ <tr class="reasons">
|
|
|
137
|
+ <th class="Importent">其他原因:</th>
|
|
|
138
|
+ <td colspan="2"><textarea data-adaptheight id="reasons" name="" rows="6" cols=""></textarea></td>
|
|
|
139
|
+ </tr>
|
|
|
140
|
+ <tr>
|
|
|
141
|
+ <th class="Importent">是否规范:</th>
|
|
|
142
|
+ <td>
|
|
|
143
|
+ <select class="select_" id='isStandard'>
|
|
|
144
|
+ <option value="0">是</option>
|
|
|
145
|
+ <option value="1">否</option>
|
|
|
146
|
+ </select>
|
|
|
147
|
+ </td>
|
|
|
148
|
+ </tr>
|
|
|
149
|
+ <tr class="isStandard">
|
|
|
150
|
+ <th class="Importent">不规范原因:</th>
|
|
|
151
|
+ <td>
|
|
|
152
|
+ <select name="" class="form-control standard">
|
|
|
153
|
+ <option value="0">请选择不规范原因</option>
|
|
|
154
|
+ </select>
|
|
|
155
|
+ </td>
|
|
|
156
|
+ </tr>
|
|
|
157
|
+ <tr>
|
|
|
158
|
+ <th class="Importent">备注:</th>
|
|
|
159
|
+ <td colspan="2"><textarea data-adaptheight id="finalopinion" name="" rows="6" cols=""></textarea></td>
|
|
|
160
|
+ </tr>
|
|
148
|
161
|
|
|
149
|
|
- </table>
|
|
150
|
|
- <div class="" style="margin: 20px 0 0 10px;">
|
|
151
|
|
- 尊敬的市民,您于<input id="msg1" type="text" disabled/>反映的<textarea id="msg2" type="text" ></textarea>问题,工单号:<input id="msg3" type="text" disabled/>,<br />
|
|
152
|
|
- 处理结果如下:<textarea id="msg4" type="text"></textarea>如有异议,请您再次致电12345,感谢您的支持。<br />
|
|
153
|
|
- 通知号码:<input id="phone" type="text"/>
|
|
154
|
|
- <button class="btns sendMsg">发送短信</button>
|
|
155
|
|
- </div>
|
|
156
|
|
- <div class="btn_box">
|
|
157
|
|
- <button class="btns_save">保存</button>
|
|
158
|
|
- </div>
|
|
159
|
|
- </div>
|
|
160
|
|
- <input type="hidden" name="depID" id="depID" value="" />
|
|
161
|
|
- <script src="../js/adjustHeight.js"></script>
|
|
162
|
|
- <script>
|
|
163
|
|
- var wid = helper.request.queryString("wid");
|
|
164
|
|
- var bulletinUnits = '';//通报单位
|
|
165
|
|
- $(document).ready(function() {
|
|
166
|
|
- //获取工单信息
|
|
167
|
|
- loadTEL();
|
|
168
|
|
- //通报原因
|
|
169
|
|
- getOrderType();
|
|
170
|
|
- //获取单位
|
|
171
|
|
- getUnit();
|
|
172
|
|
- //不规范原因
|
|
173
|
|
- getIsStandard();
|
|
174
|
|
- //是否通报
|
|
175
|
|
- $('#isBulletin').change(function(){
|
|
176
|
|
- if($('#isBulletin').val() == '0'){
|
|
177
|
|
- //默认不通报,通报单位通报原因不显示
|
|
178
|
|
- $('.bulletUnit').hide();
|
|
179
|
|
- }else if($('#isBulletin').val()== '1'){
|
|
180
|
|
- //选择是 ,显示通报单位通报原因;
|
|
181
|
|
- $('.bulletUnit').show();
|
|
182
|
|
- }
|
|
183
|
|
- });
|
|
184
|
|
- //是否规范
|
|
185
|
|
- $('#isStandard').change(function(){
|
|
186
|
|
- if($('#isStandard').val() == '0'){
|
|
187
|
|
- //默认规范
|
|
188
|
|
- $('.isStandard').hide();
|
|
189
|
|
- }else if($('#isStandard').val()== '1'){
|
|
190
|
|
- $('.isStandard').show();
|
|
191
|
|
- }
|
|
192
|
|
- });
|
|
193
|
|
- $(".btns_save").click(function(){
|
|
194
|
|
- debugger
|
|
195
|
|
- if($('#isBulletin').val() == 0){
|
|
196
|
|
- JA(bulletinUnits);
|
|
197
|
|
- }else if($('#isBulletin').val() == 1){
|
|
198
|
|
- debugger
|
|
199
|
|
-// if($("input[name='checkbox']:checkbox:checked").length <= 0){
|
|
200
|
|
-// layer.msg("您没有选择通报单位。");
|
|
201
|
|
-// }else
|
|
202
|
|
- if(!$(".orderType").val() || $('.orderType').val()==0){
|
|
203
|
|
- layer.msg("通报原因没有填写。");
|
|
204
|
|
- return
|
|
205
|
|
- }else if ($(".orderType").val()==76&& !$('#reasons').val()){
|
|
206
|
|
- layer.msg('其他通报原因没有填写');
|
|
207
|
|
- return
|
|
208
|
|
- }else {
|
|
209
|
|
- $("input[name='checkbox']:checkbox:checked").each(function(){
|
|
210
|
|
- bulletinUnits += $(this).val() + ',';
|
|
211
|
|
- });
|
|
212
|
|
- bulletinUnits = bulletinUnits.substring(0,bulletinUnits.length-1);
|
|
213
|
|
- JA(bulletinUnits);
|
|
214
|
|
- }
|
|
|
162
|
+ </table>
|
|
|
163
|
+ <div class="" style="margin: 20px 0 0 10px;">
|
|
|
164
|
+ 尊敬的市民,您于<input id="msg1" type="text" disabled />反映的<textarea id="msg2" type="text"></textarea>问题,工单号:<input
|
|
|
165
|
+ id="msg3" type="text" disabled />,<br />
|
|
|
166
|
+ 处理结果如下:<textarea id="msg4" type="text"></textarea>如有异议,请您再次致电12345,感谢您的支持。<br />
|
|
|
167
|
+ 通知号码:<input id="phone" type="text" />
|
|
|
168
|
+ <button class="btns sendMsg">发送短信</button>
|
|
|
169
|
+ </div>
|
|
|
170
|
+ <div class="btn_box">
|
|
|
171
|
+ <button class="btns_save">保存</button>
|
|
|
172
|
+ </div>
|
|
|
173
|
+ </div>
|
|
|
174
|
+ <input type="hidden" name="depID" id="depID" value="" />
|
|
|
175
|
+ <script src="../js/adjustHeight.js"></script>
|
|
|
176
|
+ <script>
|
|
|
177
|
+ var wid = helper.request.queryString("wid");
|
|
|
178
|
+ var bulletinUnits = ''; //通报单位
|
|
|
179
|
+ $(document).ready(function () {
|
|
|
180
|
+ //获取工单信息
|
|
|
181
|
+ loadTEL();
|
|
|
182
|
+ //通报原因
|
|
|
183
|
+ getOrderType();
|
|
|
184
|
+ //获取单位
|
|
|
185
|
+ getUnit();
|
|
|
186
|
+ //不规范原因
|
|
|
187
|
+ getIsStandard();
|
|
|
188
|
+ //是否通报
|
|
|
189
|
+ $('#isBulletin').change(function () {
|
|
|
190
|
+ if ($('#isBulletin').val() == '0') {
|
|
|
191
|
+ //默认不通报,通报单位通报原因不显示
|
|
|
192
|
+ $('.bulletUnit').hide();
|
|
|
193
|
+ } else if ($('#isBulletin').val() == '1') {
|
|
|
194
|
+ //选择是 ,显示通报单位通报原因;
|
|
|
195
|
+ $('.bulletUnit').show();
|
|
|
196
|
+ }
|
|
|
197
|
+ });
|
|
|
198
|
+ //是否规范
|
|
|
199
|
+ $('#isStandard').change(function () {
|
|
|
200
|
+ if ($('#isStandard').val() == '0') {
|
|
|
201
|
+ //默认规范
|
|
|
202
|
+ $('.isStandard').hide();
|
|
|
203
|
+ } else if ($('#isStandard').val() == '1') {
|
|
|
204
|
+ $('.isStandard').show();
|
|
|
205
|
+ }
|
|
|
206
|
+ });
|
|
|
207
|
+ $(".btns_save").click(function () {
|
|
|
208
|
+ debugger
|
|
|
209
|
+ if ($('#isBulletin').val() == 0) {
|
|
|
210
|
+ JA(bulletinUnits);
|
|
|
211
|
+ } else if ($('#isBulletin').val() == 1) {
|
|
|
212
|
+ debugger
|
|
|
213
|
+ // if($("input[name='checkbox']:checkbox:checked").length <= 0){
|
|
|
214
|
+ // layer.msg("您没有选择通报单位。");
|
|
|
215
|
+ // }else
|
|
|
216
|
+ if (!$(".orderType").val() || $('.orderType').val() == 0) {
|
|
|
217
|
+ layer.msg("通报原因没有填写。");
|
|
|
218
|
+ return
|
|
|
219
|
+ } else if ($(".orderType").val() == 76 && !$('#reasons').val()) {
|
|
|
220
|
+ layer.msg('其他通报原因没有填写');
|
|
|
221
|
+ return
|
|
|
222
|
+ } else {
|
|
|
223
|
+ $("input[name='checkbox']:checkbox:checked").each(function () {
|
|
|
224
|
+ bulletinUnits += $(this).val() + ',';
|
|
|
225
|
+ });
|
|
|
226
|
+ bulletinUnits = bulletinUnits.substring(0, bulletinUnits.length - 1);
|
|
|
227
|
+ JA(bulletinUnits);
|
|
215
|
228
|
}
|
|
216
|
|
- });
|
|
217
|
|
- })
|
|
218
|
|
-
|
|
219
|
|
- function JA(bUnits) {
|
|
220
|
|
- var standardID=$('.standard').val()
|
|
221
|
|
- if($('#isStandard').val()==1 && standardID==0){
|
|
222
|
|
- layer.msg('请选择不规范原因');
|
|
223
|
|
- return
|
|
224
|
|
- }else if($('#isStandard').val()==0) {
|
|
225
|
|
- standardID=''
|
|
226
|
|
- }
|
|
227
|
|
- $.post(huayi.config.callcenter_url + 'WorkOrder/FinishWorkOrder', {
|
|
228
|
|
- workorderid: wid,
|
|
229
|
|
- issatisfie:$('input[name="huifang"]:checked ').val(),
|
|
230
|
|
- finalopinion: $("#finalopinion").val(),
|
|
231
|
|
- isnotice: $('#isBulletin').val(),//0不通告1通告
|
|
232
|
|
- deptids: $('#depID').val(),//通报单位
|
|
233
|
|
-// noticereson: $('#bulletinReason').val(),//通报原因
|
|
234
|
|
- noticeid:$('.orderType').val(),//通报id
|
|
235
|
|
- noticeinfo:$('.orderType').find("option:selected").text(),
|
|
236
|
|
- noticereson:$('#reasons').val(),//其他通报原因
|
|
237
|
|
- isstandard:$('#isStandard').val(),//是否规范0是1否
|
|
238
|
|
- standardids:standardID,//不规范id
|
|
239
|
|
- "token": $.cookie("token")
|
|
240
|
|
- }, function(result) {
|
|
241
|
|
- result = JSON.parse(result);
|
|
242
|
|
- if(result.state.toLowerCase() == "success") {
|
|
243
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
229
|
+ }
|
|
|
230
|
+ });
|
|
|
231
|
+ })
|
|
|
232
|
+
|
|
|
233
|
+ function JA(bUnits) {
|
|
|
234
|
+ var standardID = $('.standard').val()
|
|
|
235
|
+ if ($('#isStandard').val() == 1 && standardID == 0) {
|
|
|
236
|
+ layer.msg('请选择不规范原因');
|
|
|
237
|
+ return
|
|
|
238
|
+ } else if ($('#isStandard').val() == 0) {
|
|
|
239
|
+ standardID = ''
|
|
|
240
|
+ }
|
|
|
241
|
+ $.post(huayi.config.callcenter_url + 'WorkOrder/FinishWorkOrder', {
|
|
|
242
|
+ workorderid: wid,
|
|
|
243
|
+ issatisfie: $('input[name="huifang"]:checked ').val(),
|
|
|
244
|
+ finalopinion: $("#finalopinion").val(),
|
|
|
245
|
+ isnotice: $('#isBulletin').val(), //0不通告1通告
|
|
|
246
|
+ deptids: $('#depID').val(), //通报单位
|
|
|
247
|
+ // noticereson: $('#bulletinReason').val(),//通报原因
|
|
|
248
|
+ noticeid: $('.orderType').val(), //通报id
|
|
|
249
|
+ noticeinfo: $('.orderType').find("option:selected").text(),
|
|
|
250
|
+ noticereson: $('#reasons').val(), //其他通报原因
|
|
|
251
|
+ isstandard: $('#isStandard').val(), //是否规范0是1否
|
|
|
252
|
+ standardids: standardID, //不规范id
|
|
|
253
|
+ "token": $.cookie("token")
|
|
|
254
|
+ }, function (result) {
|
|
|
255
|
+ result = JSON.parse(result);
|
|
|
256
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
257
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
244
|
258
|
parent.layer.close(index); //再执行关闭
|
|
245
|
|
- parent.$('#orderlist').bootstrapTable('refresh');
|
|
246
|
|
- parent.layer.msg("结案成功");
|
|
247
|
|
- }
|
|
248
|
|
- })
|
|
249
|
|
- }
|
|
250
|
|
- //获取工单信息
|
|
251
|
|
- function loadTEL() {
|
|
252
|
|
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
|
|
253
|
|
- workorderid: wid,
|
|
254
|
|
- "token": $.cookie("token")
|
|
255
|
|
- }, function (result) {
|
|
256
|
|
- if (result.state.toLowerCase() == "success") {
|
|
257
|
|
- var Data = result.data.data;
|
|
258
|
|
- $('#msg3').val(Data[0].F_WorkOrderId)
|
|
259
|
|
- $('#msg1').val(Data[0].F_CreateTime)
|
|
260
|
|
- $('#msg2').text(Data[0].F_ComTitle)
|
|
261
|
|
- $('#msg4').val(result.data.bldata && result.data.bldata[result.data.bldata.length-1].F_Situation)
|
|
262
|
|
- $("#phone").val(Data[0].F_ConPhone)
|
|
263
|
|
- }
|
|
264
|
|
- })
|
|
265
|
|
- }
|
|
266
|
|
- //发送短信
|
|
267
|
|
- $('.sendMsg').click(function(){
|
|
268
|
|
- if(!$('#msg4').val()){
|
|
269
|
|
- layer.msg('请填写结果')
|
|
270
|
|
- return
|
|
271
|
|
- }
|
|
272
|
|
- if(!$('#phone').val()){
|
|
273
|
|
- layer.msg('请填写通知号码')
|
|
274
|
|
- return
|
|
275
|
|
- }
|
|
276
|
|
- $.ajax({
|
|
277
|
|
- type:"post",
|
|
278
|
|
- url:huayi.config.callcenter_url+'WorkOrder/SmsHand',
|
|
279
|
|
- async:true,
|
|
280
|
|
- data:{
|
|
281
|
|
- msg1:$('#msg1').val(),
|
|
282
|
|
- msg2:$('#msg2').val(),
|
|
283
|
|
- msg3:$('#msg3').val(),
|
|
284
|
|
- msg4:$('#msg4').val(),
|
|
285
|
|
- mobile:$('#phone').val(),
|
|
286
|
|
- token: $.cookie("token")
|
|
287
|
|
- },
|
|
288
|
|
- success:function(res){
|
|
289
|
|
- res=JSON.parse(res)
|
|
290
|
|
- if(res.state.toLowerCase()=='success'){
|
|
291
|
|
- layer.msg('短信发送成功')
|
|
292
|
|
- }else{
|
|
293
|
|
- layer.msg('短信发送失败')
|
|
294
|
|
- }
|
|
295
|
|
- }
|
|
296
|
|
- });
|
|
297
|
|
- })
|
|
298
|
|
- //获取单位
|
|
299
|
|
- function getUnit() {
|
|
300
|
|
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAllAssignDept', {
|
|
301
|
|
- workorderid: wid,
|
|
302
|
|
- token: $.cookie("token")
|
|
303
|
|
- }, function(result) {
|
|
304
|
|
- if(result.state.toLowerCase() == "success") {
|
|
305
|
|
- $('#depID').val(result.data[0].F_DeptId)
|
|
306
|
|
- if(result.data.length > 0) {
|
|
307
|
|
- $('#isBulletin').removeAttr("disabled");
|
|
308
|
|
- for(var i = 0; i < result.data.length; i++){
|
|
309
|
|
- $('#bulletinUnit ul').append('<li><input type="checkbox" name="checkbox" id="unit'+i+'" value=""/>'+
|
|
310
|
|
- '<label for="unit'+i+'">'+ result.data[i].F_DeptName +'</label></li>');
|
|
311
|
|
- }
|
|
312
|
|
- if(('#bulletinUnit input').length>0){
|
|
313
|
|
- $('#bulletinUnit input').each(function(index){
|
|
314
|
|
- if($(this).is('[type=checkbox]')){
|
|
315
|
|
- var cinput = $(this);
|
|
316
|
|
- var label = $('label[for='+cinput.attr('id')+']');
|
|
317
|
|
- cinput.bind('updateState', function(){
|
|
318
|
|
- if(cinput.is(':checked')){
|
|
319
|
|
- label.addClass('checkedDept');
|
|
320
|
|
- cinput.val(result.data[index].F_DeptId);
|
|
321
|
|
- }else{
|
|
322
|
|
- label.removeClass('checkedDept');
|
|
323
|
|
- cinput.val('');
|
|
324
|
|
- }
|
|
325
|
|
-
|
|
326
|
|
- })
|
|
327
|
|
- .trigger('updateState')
|
|
328
|
|
- .click(function(){
|
|
329
|
|
- $('input[name='+ $(this).attr('name') +']').trigger('updateState');
|
|
330
|
|
- });
|
|
331
|
|
- }
|
|
332
|
|
-
|
|
333
|
|
- });
|
|
334
|
|
- }
|
|
335
|
|
- }else{
|
|
336
|
|
- $('#isBulletin').attr("disabled","disabled");
|
|
337
|
|
- }
|
|
338
|
|
- }
|
|
339
|
|
- })
|
|
340
|
|
- }
|
|
341
|
|
- function getOrderType() {
|
|
342
|
|
- $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
|
|
343
|
|
- "token": $.cookie("token"),
|
|
344
|
|
- pid: 62
|
|
345
|
|
- }, function(result) {
|
|
346
|
|
- result = $.parseJSON(result);
|
|
347
|
|
- var Count = result.data;
|
|
348
|
|
- $(Count).each(function(i, n) {
|
|
349
|
|
- $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".orderType"));
|
|
350
|
|
- })
|
|
351
|
|
- });
|
|
352
|
|
- }
|
|
353
|
|
- //不规范原因
|
|
354
|
|
- function getIsStandard() {
|
|
355
|
|
- $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
|
|
356
|
|
- "token": $.cookie("token"),
|
|
357
|
|
- pid: 78
|
|
358
|
|
- }, function(result) {
|
|
359
|
|
- result = $.parseJSON(result);
|
|
360
|
|
- var Count = result.data;
|
|
361
|
|
- $(Count).each(function(i, n) {
|
|
362
|
|
- $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".standard"));
|
|
363
|
|
- })
|
|
364
|
|
- });
|
|
365
|
|
- }
|
|
366
|
|
- $('.orderType').change(()=>{
|
|
367
|
|
- if($('.orderType').val()==76){
|
|
368
|
|
- $('.reasons').show()
|
|
369
|
|
- }else{
|
|
370
|
|
- $('.reasons').hide()
|
|
371
|
|
- }
|
|
372
|
|
- })
|
|
373
|
|
- </script>
|
|
374
|
|
- </body>
|
|
|
259
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
260
|
+ parent.layer.msg("结案成功");
|
|
|
261
|
+ }
|
|
|
262
|
+ })
|
|
|
263
|
+ }
|
|
|
264
|
+ //获取工单信息
|
|
|
265
|
+ function loadTEL() {
|
|
|
266
|
+ $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
|
|
|
267
|
+ workorderid: wid,
|
|
|
268
|
+ "token": $.cookie("token")
|
|
|
269
|
+ }, function (result) {
|
|
|
270
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
271
|
+ var Data = result.data.data;
|
|
|
272
|
+ $('#msg3').val(Data[0].F_WorkOrderId)
|
|
|
273
|
+ $('#msg1').val(Data[0].F_CreateTime)
|
|
|
274
|
+ $('#msg2').text(Data[0].F_ComTitle)
|
|
|
275
|
+ $('#msg4').val(result.data.bldata && result.data.bldata[result.data.bldata.length - 1]
|
|
|
276
|
+ .F_Situation)
|
|
|
277
|
+ $("#phone").val(Data[0].F_ConPhone)
|
|
|
278
|
+ }
|
|
|
279
|
+ })
|
|
|
280
|
+ }
|
|
|
281
|
+ //发送短信
|
|
|
282
|
+ $('.sendMsg').click(function () {
|
|
|
283
|
+ if (!$('#msg4').val()) {
|
|
|
284
|
+ layer.msg('请填写结果')
|
|
|
285
|
+ return
|
|
|
286
|
+ }
|
|
|
287
|
+ if (!$('#phone').val()) {
|
|
|
288
|
+ layer.msg('请填写通知号码')
|
|
|
289
|
+ return
|
|
|
290
|
+ }
|
|
|
291
|
+ $.ajax({
|
|
|
292
|
+ type: "post",
|
|
|
293
|
+ url: huayi.config.callcenter_url + 'WorkOrder/SmsHand',
|
|
|
294
|
+ async: true,
|
|
|
295
|
+ data: {
|
|
|
296
|
+ msg1: $('#msg1').val(),
|
|
|
297
|
+ msg2: $('#msg2').val(),
|
|
|
298
|
+ msg3: $('#msg3').val(),
|
|
|
299
|
+ msg4: $('#msg4').val(),
|
|
|
300
|
+ mobile: $('#phone').val(),
|
|
|
301
|
+ token: $.cookie("token")
|
|
|
302
|
+ },
|
|
|
303
|
+ success: function (res) {
|
|
|
304
|
+ res = JSON.parse(res)
|
|
|
305
|
+ if (res.state.toLowerCase() == 'success') {
|
|
|
306
|
+ layer.msg('短信发送成功')
|
|
|
307
|
+ } else {
|
|
|
308
|
+ layer.msg('短信发送失败')
|
|
|
309
|
+ }
|
|
|
310
|
+ }
|
|
|
311
|
+ });
|
|
|
312
|
+ })
|
|
|
313
|
+ //获取单位
|
|
|
314
|
+ function getUnit() {
|
|
|
315
|
+ $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAllAssignDept', {
|
|
|
316
|
+ workorderid: wid,
|
|
|
317
|
+ token: $.cookie("token")
|
|
|
318
|
+ }, function (result) {
|
|
|
319
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
320
|
+ $('#depID').val(result.data[0].F_DeptId)
|
|
|
321
|
+ if (result.data.length > 0) {
|
|
|
322
|
+ $('#isBulletin').removeAttr("disabled");
|
|
|
323
|
+ for (var i = 0; i < result.data.length; i++) {
|
|
|
324
|
+ $('#bulletinUnit ul').append('<li><input type="checkbox" name="checkbox" id="unit' +
|
|
|
325
|
+ i + '" value=""/>' +
|
|
|
326
|
+ '<label for="unit' + i + '">' + result.data[i].F_DeptName + '</label></li>');
|
|
|
327
|
+ }
|
|
|
328
|
+ if (('#bulletinUnit input').length > 0) {
|
|
|
329
|
+ $('#bulletinUnit input').each(function (index) {
|
|
|
330
|
+ if ($(this).is('[type=checkbox]')) {
|
|
|
331
|
+ var cinput = $(this);
|
|
|
332
|
+ var label = $('label[for=' + cinput.attr('id') + ']');
|
|
|
333
|
+ cinput.bind('updateState', function () {
|
|
|
334
|
+ if (cinput.is(':checked')) {
|
|
|
335
|
+ label.addClass('checkedDept');
|
|
|
336
|
+ cinput.val(result.data[index].F_DeptId);
|
|
|
337
|
+ } else {
|
|
|
338
|
+ label.removeClass('checkedDept');
|
|
|
339
|
+ cinput.val('');
|
|
|
340
|
+ }
|
|
|
341
|
+
|
|
|
342
|
+ })
|
|
|
343
|
+ .trigger('updateState')
|
|
|
344
|
+ .click(function () {
|
|
|
345
|
+ $('input[name=' + $(this).attr('name') + ']').trigger(
|
|
|
346
|
+ 'updateState');
|
|
|
347
|
+ });
|
|
|
348
|
+ }
|
|
|
349
|
+
|
|
|
350
|
+ });
|
|
|
351
|
+ }
|
|
|
352
|
+ } else {
|
|
|
353
|
+ $('#isBulletin').attr("disabled", "disabled");
|
|
|
354
|
+ }
|
|
|
355
|
+ }
|
|
|
356
|
+ })
|
|
|
357
|
+ }
|
|
|
358
|
+
|
|
|
359
|
+ function getOrderType() {
|
|
|
360
|
+ $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
|
|
|
361
|
+ "token": $.cookie("token"),
|
|
|
362
|
+ pid: 62
|
|
|
363
|
+ }, function (result) {
|
|
|
364
|
+ result = $.parseJSON(result);
|
|
|
365
|
+ var Count = result.data;
|
|
|
366
|
+ $(Count).each(function (i, n) {
|
|
|
367
|
+ $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(
|
|
|
368
|
+ ".orderType"));
|
|
|
369
|
+ })
|
|
|
370
|
+ });
|
|
|
371
|
+ }
|
|
|
372
|
+ //不规范原因
|
|
|
373
|
+ function getIsStandard() {
|
|
|
374
|
+ $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
|
|
|
375
|
+ "token": $.cookie("token"),
|
|
|
376
|
+ pid: 78
|
|
|
377
|
+ }, function (result) {
|
|
|
378
|
+ result = $.parseJSON(result);
|
|
|
379
|
+ var Count = result.data;
|
|
|
380
|
+ $(Count).each(function (i, n) {
|
|
|
381
|
+ $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(
|
|
|
382
|
+ ".standard"));
|
|
|
383
|
+ })
|
|
|
384
|
+ });
|
|
|
385
|
+ }
|
|
|
386
|
+ $('.orderType').change(() => {
|
|
|
387
|
+ if ($('.orderType').val() == 76) {
|
|
|
388
|
+ $('.reasons').show()
|
|
|
389
|
+ } else {
|
|
|
390
|
+ $('.reasons').hide()
|
|
|
391
|
+ }
|
|
|
392
|
+ })
|
|
|
393
|
+ </script>
|
|
|
394
|
+</body>
|
|
375
|
395
|
|
|
376
|
396
|
</html>
|