|
|
@@ -266,6 +266,7 @@ function getWorkOrderDetails() {
|
|
266
|
266
|
$("#detailDealResult").text(data.F_DealResult); //落实情况
|
|
267
|
267
|
$("#detailDealUser").text(data.F_DealUser);
|
|
268
|
268
|
$("#detailDealTime").text(data.F_DealTime);
|
|
|
269
|
+ $("#detailReduction").text(workOrderDetailsReductionJudge(data)) //是否减免
|
|
269
|
270
|
}
|
|
270
|
271
|
}
|
|
271
|
272
|
})
|
|
|
@@ -332,42 +333,15 @@ function getWorkOrderDe() {
|
|
332
|
333
|
debugger;
|
|
333
|
334
|
var fileType = n.F_Type;
|
|
334
|
335
|
var fileType1 = n.F_Type.split("\/")[0];
|
|
335
|
|
- if (fileType === '.jpg'||fileType === '.png'||fileType1==='image') {
|
|
|
336
|
+ if (fileType === '.jpg'||fileType === '.png'|| fileType1==='image') {
|
|
336
|
337
|
$('<div class="img-box">' +
|
|
337
|
|
- '<span class="img_mask"><span onclick=downloadFile("'+ n.F_Url + '","' + n.F_Name + '","' + n.F_Type +
|
|
338
|
|
- '") title="点击下载"><i class="fa fa-download" aria-hidden="true"></i></span></span>' +
|
|
339
|
338
|
'<img layer-src="' + n.F_Url + '" src="' + n.F_Url + '" alt="' + n.F_Name +
|
|
340
|
339
|
'" class="image-item" /><div>').appendTo("#fileList");
|
|
341
|
340
|
} else {
|
|
342
|
341
|
$('<div class="img-box">' +
|
|
343
|
|
- '<span class="img_mask"><span href="javascript:;" onclick=downloadFile("' + n.F_Url + '","' + n.F_Name +
|
|
344
|
|
- '","' + n.F_Type +
|
|
345
|
|
- '") title="点击下载"><i class="fa fa-download" aria-hidden="true"></i></span></span>' +
|
|
346
|
|
- '<span class="img_filename">'+n.F_OriName + n.F_Name.split(".")[1] + '</span><div>').appendTo("#fileList");
|
|
|
342
|
+ '<span class="img_filename">'+n.F_Name + n.F_Name.split(".")[1] + '</span><div>').appendTo("#fileList");
|
|
347
|
343
|
}
|
|
348
|
344
|
});
|
|
349
|
|
- layer.photos({
|
|
350
|
|
- photos: '#fileList',
|
|
351
|
|
- anim: 5, //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
|
|
352
|
|
- title: '查看图片',
|
|
353
|
|
- move: '.layui-layer-title',
|
|
354
|
|
- shadeClose: false,
|
|
355
|
|
- closeBtn: 1,
|
|
356
|
|
- area: ['80%', '90%'],
|
|
357
|
|
- tab: function(pic, layero) {
|
|
358
|
|
- $('.layui-layer-content').on("mousewheel", function(e, d) {
|
|
359
|
|
-
|
|
360
|
|
- helper.methods.zoomImg($('#layui-layer-photos').find('img[alt="' + pic.alt + '"]'), d);
|
|
361
|
|
- $('#layui-layer-photos').find('img[alt="' + pic.alt + '"]').dragging({
|
|
362
|
|
- move: "both", //拖动方向,x y both
|
|
363
|
|
- randomPosition: false //初始位置是否随机
|
|
364
|
|
- });
|
|
365
|
|
- return false;
|
|
366
|
|
-
|
|
367
|
|
- });
|
|
368
|
|
- helper.methods.initLayerPhotos('#layui-layer-photos', pic, layero);
|
|
369
|
|
- },
|
|
370
|
|
- });
|
|
371
|
345
|
}
|
|
372
|
346
|
|
|
373
|
347
|
}
|
|
|
@@ -375,19 +349,6 @@ function getWorkOrderDe() {
|
|
375
|
349
|
});
|
|
376
|
350
|
}
|
|
377
|
351
|
|
|
378
|
|
-//下载
|
|
379
|
|
-function downloadFile(data, strFileName, strMimeType) {
|
|
380
|
|
- event.preventDefault();
|
|
381
|
|
- //详细见文档 http://danml.com/download.html
|
|
382
|
|
- var x = new XMLHttpRequest();
|
|
383
|
|
- x.open("GET", data, true);
|
|
384
|
|
- x.responseType = 'blob';
|
|
385
|
|
- x.onload = function(e) {
|
|
386
|
|
- download(x.response, strFileName, strMimeType);
|
|
387
|
|
- }
|
|
388
|
|
- x.send();
|
|
389
|
|
-}
|
|
390
|
|
-
|
|
391
|
352
|
// 工单详情中判断工单来源的值
|
|
392
|
353
|
function workOrderDetailsSourceJudge (data) {
|
|
393
|
354
|
if (data.F_Source === 1) {
|
|
|
@@ -438,11 +399,22 @@ function workOrderDetailsStateJudge (data) {
|
|
438
|
399
|
}
|
|
439
|
400
|
|
|
440
|
401
|
// 工单详情中重复工单返回值判断
|
|
441
|
|
-function workOrderDetailsDuplicateJudge (data) {
|
|
442
|
|
- if (data.F_Duplicate === 0) {
|
|
443
|
|
- return '未重复';
|
|
444
|
|
- } else if (data.F_Duplicate === 1) {
|
|
445
|
|
- return '重复';
|
|
|
402
|
+//function workOrderDetailsDuplicateJudge (data) {
|
|
|
403
|
+// if (data.F_Duplicate === 0) {
|
|
|
404
|
+// return '未重复';
|
|
|
405
|
+// } else if (data.F_Duplicate === 1) {
|
|
|
406
|
+// return '重复';
|
|
|
407
|
+// } else {
|
|
|
408
|
+// return '';
|
|
|
409
|
+// }
|
|
|
410
|
+//}
|
|
|
411
|
+
|
|
|
412
|
+// 工单详情减免返回值
|
|
|
413
|
+function workOrderDetailsReductionJudge (data) {
|
|
|
414
|
+ if (data.F_IsReduction === 0) {
|
|
|
415
|
+ return '未减免';
|
|
|
416
|
+ } else if (data.F_IsReduction === 1) {
|
|
|
417
|
+ return '已减免';
|
|
446
|
418
|
} else {
|
|
447
|
419
|
return '';
|
|
448
|
420
|
}
|
|
|
@@ -735,7 +707,7 @@ function btn_dealWith(id) {
|
|
735
|
707
|
type: 2,
|
|
736
|
708
|
title: '处理工单',
|
|
737
|
709
|
maxmin: true, //开启最大化最小化按钮
|
|
738
|
|
- area: ['35%', '45%'],
|
|
|
710
|
+ area: ['35%', '50%'],
|
|
739
|
711
|
content: "../WorkOrder/WorkOrderDealWith.html?id=" + id
|
|
740
|
712
|
});
|
|
741
|
713
|
}
|
|
|
@@ -972,14 +944,18 @@ document.onkeydown = function (e) {
|
|
972
|
944
|
}
|
|
973
|
945
|
|
|
974
|
946
|
// 导出
|
|
975
|
|
-function dcexcel(state, isdc) {
|
|
|
947
|
+function dcexcel(state, isdc, CJ) {
|
|
976
|
948
|
if (isdc === 3) {
|
|
977
|
|
- console.log("1231231231")
|
|
978
|
949
|
var isdc = 3;
|
|
979
|
950
|
} else {
|
|
980
|
|
- console.log("12312312132")
|
|
981
|
951
|
var isdc = 2;
|
|
982
|
952
|
}
|
|
|
953
|
+ if (CJ === 1) {
|
|
|
954
|
+ var CJ = 1;
|
|
|
955
|
+ } else {
|
|
|
956
|
+ var CJ = "";
|
|
|
957
|
+ }
|
|
|
958
|
+
|
|
983
|
959
|
var token = $.cookie("token");
|
|
984
|
960
|
var code = $("#searchCode").val(); //工单编号
|
|
985
|
961
|
var area = $("#searchArea").val(); //大区
|
|
|
@@ -1000,6 +976,6 @@ function dcexcel(state, isdc) {
|
|
1000
|
976
|
url += "&state=" + state + "&code=" + code + "&area=" + area + "&office=" + office + "&starttime=" + starttime
|
|
1001
|
977
|
+ "&endtime=" + endtime + "&productType=" + productType + "&productDate=" + productDate + "&batchNumber=" + batchNumber
|
|
1002
|
978
|
+ "&manufacturer=" + manufacturer + "&problemCode=" + problemCode + "¬ifications=" + notifications
|
|
1003
|
|
- + "&type=" + type + "&dealTimely=" + dealTimely + "&see=" + see + "&isdc=" + isdc;
|
|
|
979
|
+ + "&type=" + type + "&dealTimely=" + dealTimely + "&see=" + see + "&isdc=" + isdc + "&CJ=" + CJ;
|
|
1004
|
980
|
window.location.href = url;
|
|
1005
|
981
|
}
|