|
|
@@ -8,6 +8,7 @@
|
|
8
|
8
|
<link rel="stylesheet" href="../css/init.css" />
|
|
9
|
9
|
<title>强制结案</title>
|
|
10
|
10
|
<style type="text/css">
|
|
|
11
|
+ .isStandard,
|
|
11
|
12
|
.bulletUnit{
|
|
12
|
13
|
display: none;
|
|
13
|
14
|
}
|
|
|
@@ -43,6 +44,13 @@
|
|
43
|
44
|
select:disabled{
|
|
44
|
45
|
background-color: #eee;
|
|
45
|
46
|
}
|
|
|
47
|
+ .reasons{
|
|
|
48
|
+ display: none;
|
|
|
49
|
+ height: 160px;
|
|
|
50
|
+ }
|
|
|
51
|
+ #reasons{
|
|
|
52
|
+ height: 160px;
|
|
|
53
|
+ }
|
|
46
|
54
|
</style>
|
|
47
|
55
|
</head>
|
|
48
|
56
|
<body>
|
|
|
@@ -74,16 +82,42 @@
|
|
74
|
82
|
</tr>
|
|
75
|
83
|
<tr class="bulletUnit">
|
|
76
|
84
|
<th class="Importent">通报原因:</th>
|
|
77
|
|
- <td><textarea name="" rows="4" cols="" id="bulletinReason"></textarea></td>
|
|
|
85
|
+ <td>
|
|
|
86
|
+ <select name="" class="form-control orderType">
|
|
|
87
|
+ <option value="0">请选择通报原因</option>
|
|
|
88
|
+ </select>
|
|
|
89
|
+ </td>
|
|
|
90
|
+ <!--<td><textarea name="" rows="4" cols="" id="bulletinReason"></textarea></td>-->
|
|
|
91
|
+ </tr>
|
|
|
92
|
+ <tr class="reasons">
|
|
|
93
|
+ <th class="Importent">其他原因:</th>
|
|
|
94
|
+ <td colspan="2"><textarea data-adaptheight id="reasons" name="" rows="6" cols=""></textarea></td>
|
|
78
|
95
|
</tr>
|
|
79
|
96
|
<tr>
|
|
80
|
|
- <th class="Importent">结案意见:</th>
|
|
81
|
|
- <td><textarea name="" rows="4" cols="" id="finalopinion"></textarea></td>
|
|
|
97
|
+ <th class="Importent">是否规范:</th>
|
|
|
98
|
+ <td>
|
|
|
99
|
+ <select class="select_" id='isStandard'>
|
|
|
100
|
+ <option value="0">是</option>
|
|
|
101
|
+ <option value="1">否</option>
|
|
|
102
|
+ </select>
|
|
|
103
|
+ </td>
|
|
|
104
|
+ </tr>
|
|
|
105
|
+ <tr class="isStandard">
|
|
|
106
|
+ <th class="Importent">不规范原因:</th>
|
|
|
107
|
+ <td>
|
|
|
108
|
+ <select name="" class="form-control standard">
|
|
|
109
|
+ <option value="0">请选择不规范原因</option>
|
|
|
110
|
+ </select>
|
|
|
111
|
+ </td>
|
|
82
|
112
|
</tr>
|
|
83
|
113
|
<tr>
|
|
|
114
|
+ <th class="Importent">备注:</th>
|
|
|
115
|
+ <td><textarea name="" rows="4" cols="" id="finalopinion"></textarea></td>
|
|
|
116
|
+ </tr>
|
|
|
117
|
+ <!--<tr>
|
|
84
|
118
|
<th class="Importent">处理结果:</th>
|
|
85
|
119
|
<td><textarea data-adaptheight name="" rows="4" cols="" id="result"></textarea></td>
|
|
86
|
|
- </tr>
|
|
|
120
|
+ </tr>-->
|
|
87
|
121
|
|
|
88
|
122
|
</table>
|
|
89
|
123
|
<div class="btn_box">
|
|
|
@@ -95,8 +129,12 @@
|
|
95
|
129
|
var wid = helper.request.queryString("wid");
|
|
96
|
130
|
var bulletinUnits = '';//通报单位
|
|
97
|
131
|
$(document).ready(function() {
|
|
|
132
|
+ //通报原因
|
|
|
133
|
+ getOrderType();
|
|
98
|
134
|
//获取单位
|
|
99
|
135
|
getUnit();
|
|
|
136
|
+ //不规范原因
|
|
|
137
|
+ getIsStandard();
|
|
100
|
138
|
//是否通报
|
|
101
|
139
|
$('#isBulletin').change(function(){
|
|
102
|
140
|
if($('#isBulletin').val() == '0'){
|
|
|
@@ -107,7 +145,15 @@
|
|
107
|
145
|
$('.bulletUnit').show();
|
|
108
|
146
|
}
|
|
109
|
147
|
});
|
|
110
|
|
-
|
|
|
148
|
+ //是否规范
|
|
|
149
|
+ $('#isStandard').change(function(){
|
|
|
150
|
+ if($('#isStandard').val() == '0'){
|
|
|
151
|
+ //默认规范
|
|
|
152
|
+ $('.isStandard').hide();
|
|
|
153
|
+ }else if($('#isStandard').val()== '1'){
|
|
|
154
|
+ $('.isStandard').show();
|
|
|
155
|
+ }
|
|
|
156
|
+ });
|
|
111
|
157
|
//保存
|
|
112
|
158
|
$('.BC').click(function() {
|
|
113
|
159
|
if($('#isBulletin').val() == 0){
|
|
|
@@ -117,13 +163,13 @@
|
|
117
|
163
|
JA(bulletinUnits);
|
|
118
|
164
|
}
|
|
119
|
165
|
}else if($('#isBulletin').val() == 1){
|
|
120
|
|
- if($("input[name='checkbox']:checkbox:checked").length <= 0){
|
|
121
|
|
- layer.msg("您没有选择通报单位。");
|
|
122
|
|
- }else if(!$("#bulletinReason").val()){
|
|
|
166
|
+ if(!$(".orderType").val() || $('.orderType').val()==0){
|
|
123
|
167
|
layer.msg("通报原因没有填写。");
|
|
124
|
|
- }else if(!$("#result").val()){
|
|
125
|
|
- layer.msg("处理结果不能为空");
|
|
126
|
|
- }else{
|
|
|
168
|
+ return
|
|
|
169
|
+ }else if ($(".orderType").val()==76&& !$('#reasons').val()){
|
|
|
170
|
+ layer.msg('其他通报原因没有填写');
|
|
|
171
|
+ return
|
|
|
172
|
+ }else {
|
|
127
|
173
|
$("input[name='checkbox']:checkbox:checked").each(function(){
|
|
128
|
174
|
bulletinUnits += $(this).val() + ',';
|
|
129
|
175
|
});
|
|
|
@@ -136,6 +182,13 @@
|
|
136
|
182
|
});
|
|
137
|
183
|
//回退
|
|
138
|
184
|
function JA(bUnits) {
|
|
|
185
|
+ var standardID=$('.standard').val()
|
|
|
186
|
+ if($('#isStandard').val()==1 && standardID==0){
|
|
|
187
|
+ layer.msg('请选择不规范原因');
|
|
|
188
|
+ return
|
|
|
189
|
+ }else if($('#isStandard').val()==0) {
|
|
|
190
|
+ standardID=''
|
|
|
191
|
+ }
|
|
139
|
192
|
$.post(huayi.config.callcenter_url + 'WorkOrder/ForceFinishWorkOrder', {
|
|
140
|
193
|
workorderid: wid,
|
|
141
|
194
|
finalopinion:$("#finalopinion").val(),
|
|
|
@@ -143,7 +196,11 @@
|
|
143
|
196
|
issatisfie:$('input[name="huifang"]:checked ').val(),
|
|
144
|
197
|
isnotice: $('#isBulletin').val(),//0不通告1通告
|
|
145
|
198
|
deptids: bUnits,//通报单位
|
|
146
|
|
- noticereson: $('#bulletinReason').val(),//通报原因
|
|
|
199
|
+// noticereson: $('#bulletinReason').val(),//通报原因
|
|
|
200
|
+ noticeid:$('.orderType').val(),//通报id
|
|
|
201
|
+ noticereson:$('#reasons').val(),//其他通报原因
|
|
|
202
|
+ isstandard:$('#isStandard').val(),//是否规范0是1否
|
|
|
203
|
+ standardids:standardID,//不规范id
|
|
147
|
204
|
token: $.cookie("token")
|
|
148
|
205
|
}, function(result) {
|
|
149
|
206
|
//debugger;
|
|
|
@@ -199,6 +256,38 @@
|
|
199
|
256
|
}
|
|
200
|
257
|
})
|
|
201
|
258
|
}
|
|
|
259
|
+ function getOrderType() {
|
|
|
260
|
+ $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
|
|
|
261
|
+ "token": $.cookie("token"),
|
|
|
262
|
+ pid: 62
|
|
|
263
|
+ }, function(result) {
|
|
|
264
|
+ result = $.parseJSON(result);
|
|
|
265
|
+ var Count = result.data;
|
|
|
266
|
+ $(Count).each(function(i, n) {
|
|
|
267
|
+ $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".orderType"));
|
|
|
268
|
+ })
|
|
|
269
|
+ });
|
|
|
270
|
+ }
|
|
|
271
|
+ //不规范原因
|
|
|
272
|
+ function getIsStandard() {
|
|
|
273
|
+ $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByParentId', {
|
|
|
274
|
+ "token": $.cookie("token"),
|
|
|
275
|
+ pid: 78
|
|
|
276
|
+ }, function(result) {
|
|
|
277
|
+ result = $.parseJSON(result);
|
|
|
278
|
+ var Count = result.data;
|
|
|
279
|
+ $(Count).each(function(i, n) {
|
|
|
280
|
+ $('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>').appendTo($(".standard"));
|
|
|
281
|
+ })
|
|
|
282
|
+ });
|
|
|
283
|
+ }
|
|
|
284
|
+ $('.orderType').change(()=>{
|
|
|
285
|
+ if($('.orderType').val()==76){
|
|
|
286
|
+ $('.reasons').show()
|
|
|
287
|
+ }else{
|
|
|
288
|
+ $('.reasons').hide()
|
|
|
289
|
+ }
|
|
|
290
|
+ })
|
|
202
|
291
|
</script>
|
|
203
|
292
|
</body>
|
|
204
|
293
|
</html>
|