miaofuhao лет назад: 3
Родитель
Сommit
2ebc35ccd7

+ 0 - 1
WebUI/CallCenterWeb.UI/Business/LeaderDSHTH.html

@@ -127,7 +127,6 @@
127 127
                                 <th>审核状态</th>
128 128
                             	<td>
129 129
                             		<select name="" id="state" class="select" style="width: 50%;">
130
-                                    <option selected="selected" value="">请选择</option>
131 130
                                         <option value="0">待退回审核</option>
132 131
                                         <option value="1">退回审核同意</option>
133 132
                                         <option value="2">退回审核拒绝</option>

+ 0 - 1
WebUI/CallCenterWeb.UI/Business/WorkYSSH.html

@@ -61,7 +61,6 @@
61 61
 									<th>延时审核状态:</th>
62 62
 									<td>
63 63
 										<select name="" id="state" class="select_">
64
-											<option selected="selected" value="">请选择</option>
65 64
 											<option value="0">待延时审核</option>
66 65
 											<option value="1">延时审核通过</option>
67 66
 											<option value="2">延时审核拒绝</option>

Разница между файлами не показана из-за своего большого размера
+ 759 - 734
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html


+ 1 - 14
WebUI/CallCenterWeb.UI/CommonHtml/jiaoban.html

@@ -329,19 +329,8 @@
329 329
             	redeployAPI ='WorkOrder/TurnSendWorkOrder'
330 330
             } else{
331 331
             	redeployAPI ='WorkOrder/AssignWorkOrderNew'
332
-            }
332
+            }           
333 333
             
334
-            $(".dropdown").on("focus"," .bs-searchbox input",function () {
335
-            	alert("!")
336
-            })
337
-            document.onkeydown = function(e){ 
338
-			    var ev = document.all ? window.event : e;
339
-			    if(ev.keyCode==13) {
340
-					$(".open  .dropdown-menu").css("display","none")
341
-			     }
342
-			    
343
-			}
344
-//          .open .dropdown-menu
345 334
             //保存
346 335
             $('.BC').click(function () {
347 336
             	
@@ -386,7 +375,6 @@
386 375
                 result = JSON.parse(result);
387 376
                 if (result.state.toLowerCase() == "success") {
388 377
                     var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
389
-                    //console.log(index);
390 378
                     parent.layer.close(index); //再执行关闭
391 379
                     parent.$('#orderlist').bootstrapTable('refresh');
392 380
                     var savemsgs = State == 0 ? '保存成功' : '交办成功';
@@ -418,7 +406,6 @@
418 406
 	        }, function (result) {
419 407
 	            if (result.state.toLowerCase() == "success") {
420 408
 	                var content = result.data;
421
-	                //console.log( content);
422 409
 	                if (content.data[0].F_OldWorkOrderId) {
423 410
 	                    $(".caseNumber").text(content.data[0].F_OldWorkOrderId); //工单
424 411
 	                } else {

+ 98 - 13
WebUI/CallCenterWeb.UI/CommonHtml/updatingFiles.html

@@ -96,7 +96,7 @@
96 96
     <div class="Common">
97 97
         <table>
98 98
             <tr class="files-wrappper">
99
-                <th class="Importent">上传扫描件:</th>
99
+                <th class="Importent updatingFiles">上传扫描件:</th>
100 100
                 <td colspan="5">
101 101
                     <div class="fileBox">
102 102
                     </div>
@@ -119,7 +119,18 @@
119 119
     <script src="../js/adjustHeight.js"></script>
120 120
     <script>
121 121
         var wid = helper.request.queryString("wid");
122
+        var fileType  = helper.request.queryString("fileType"); 
123
+        console.log(fileType)
122 124
         $(document).ready(function () {
125
+        	if (fileType =="2") {
126
+        		getFiles()
127
+        	} else if(fileType =="1"){
128
+        		$(".updatingFiles").text("上传附件")
129
+        		getFile()
130
+        	}else{
131
+        		getFiles()
132
+        	}
133
+        	
123 134
             //上传附件
124 135
             $("#scwj").click(function () {
125 136
                 $("#upFile").trigger("click");
@@ -129,7 +140,14 @@
129 140
             })
130 141
 
131 142
             $(".btns_save").click(function () {
132
-                JA();
143
+            	if (fileType =="2") {
144
+            		JA();
145
+            	}else if(fileType =="1"){
146
+            		JAs()
147
+            	}else{
148
+            		JA()
149
+            	}
150
+                
133 151
             });
134 152
         })
135 153
         function JA(bUnits) {
@@ -142,11 +160,74 @@
142 160
                 if (result.state.toLowerCase() == "success") {
143 161
                     var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
144 162
                     parent.layer.close(index); //再执行关闭
145
-                    parent.$('#orderlist').bootstrapTable('refresh');
163
+                    if (fileType) {
164
+                    	parent.load()
165
+                    }else{
166
+                    	parent.$('#orderlist').bootstrapTable('refresh');
167
+                    }
168
+                    
146 169
                     parent.layer.msg("上传成功");
147 170
                 }
148 171
             })
149 172
         }
173
+        function JAs(bUnits) {
174
+            $.post(huayi.config.callcenter_url + 'WorkOrder/saveFile', {
175
+                fid: wid,
176
+                file: $("#file").val(),
177
+                token: $.cookie("token"),
178
+            }, function (result) {
179
+                result = JSON.parse(result);
180
+                if (result.state.toLowerCase() == "success") {
181
+                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
182
+                    parent.layer.close(index); //再执行关闭
183
+                    if (fileType) {
184
+                    	parent.load()
185
+                    }else{
186
+                    	parent.$('#orderlist').bootstrapTable('refresh');
187
+                    }
188
+                    parent.layer.msg("上传成功");
189
+                }
190
+            })
191
+        }
192
+//      WorkOrder/getFile
193
+        function getFiles(){
194
+        	$.ajax({
195
+        		type:"get",
196
+        		url:huayi.config.callcenter_url+"WorkOrder/getFiles",
197
+        		dataType:"json",
198
+        		async:true,
199
+        		data:{
200
+        			workorderid:wid,
201
+        			token: $.cookie("token")
202
+        		},
203
+        		success:function(res){
204
+        			if (res.state.toLowerCase() ==="success") {
205
+        				var dataFile = res.data[0].Files
206
+        				console.log(dataFile)
207
+        				getDataFile(dataFile)
208
+        			}
209
+        		}
210
+        	});
211
+        }
212
+        function getFile(){
213
+        	$.ajax({
214
+        		type:"get",
215
+        		url:huayi.config.callcenter_url+"WorkOrder/getFile",
216
+        		dataType:"json",
217
+        		async:true,
218
+        		data:{
219
+        			fid:wid,
220
+        			token: $.cookie("token")
221
+        		},
222
+        		success:function(res){
223
+        			if (res.state.toLowerCase() ==="success") {
224
+        				var dataFile = res.data[0].File
225
+        				console.log(dataFile)
226
+        				getDataFile(dataFile)
227
+        			}
228
+        		}
229
+        	});
230
+        }
150 231
         //上传文件
151 232
         function upload() {
152 233
             var Files = document.getElementById("upFile").files;
@@ -179,16 +260,8 @@
179 260
 	                        var r = $.parseJSON(result);
180 261
 	                        if (r.state.toLowerCase() == "success") {
181 262
 	                            $(".fjnr").text(r.data[0].F_FileName);
182
-	                            var a = r.data;
183
-	                            $(a).each(function (i, n) {
184
-	                                var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
185
-	                                $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
186
-	                                    event.stopPropagation();
187
-	                                    $(this).parent().remove();
188
-	                                    file_num()
189
-	                                })
190
-	                            })
191
-	                            file_num();
263
+	                            var fileData =r.data
264
+	                            getDataFile(fileData)
192 265
 	                        }
193 266
 	                    }
194 267
 	                });
@@ -213,6 +286,18 @@
213 286
             })
214 287
             $("#file").val(Str);
215 288
         }
289
+        
290
+        function getDataFile(getDataFile){
291
+        	$(getDataFile).each(function (i, n) {
292
+                var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
293
+                $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
294
+                    event.stopPropagation();
295
+                    $(this).parent().remove();
296
+                    file_num()
297
+                })
298
+            })
299
+        	file_num()
300
+        }
216 301
     </script>
217 302
 </body>
218 303
 

+ 5 - 2
WebUI/CallCenterWeb.UI/widgets.html

@@ -638,7 +638,7 @@
638 638
 				myChart1 = echarts.init(document.getElementById('barbox1'));
639 639
 				myChart2 = echarts.init(document.getElementById('barbox2'));
640 640
 				initChart(561,myChart1);
641
-				initChart(571,myChart2);
641
+				initChart(570,myChart2);
642 642
 				
643 643
 				laydate.render({
644 644
 					elem: '#starttime', //指定元素
@@ -648,7 +648,7 @@
648 648
 						stime = value.split(' ~ ')[0]
649 649
 						etime = value.split(' ~ ')[1]
650 650
 						initChart(561,myChart1,stime,etime);
651
-						initChart(571,myChart2,stime,etime);
651
+						initChart(570,myChart2,stime,etime);
652 652
 				     }
653 653
 				});
654 654
 				DL();
@@ -702,6 +702,9 @@
702 702
 					title: {
703 703
 						text: ''
704 704
 					},
705
+					grid: {
706
+						y2:85
707
+					},
705 708
 					xAxis: {
706 709
 						type: 'category',
707 710
 						data: nameArr,