Pārlūkot izejas kodu

履职界定待审核表添加

liuzhen 5 gadi atpakaļ
vecāks
revīzija
302de18620

+ 9 - 1
WebUI/CallCenterWeb.UI/Business/Performance_reviewed.html

@@ -649,7 +649,15 @@
649 649
 				}
650 650
 				return html;
651 651
 			}
652
-
652
+			//界定审核
653
+			function jdsh(str) {
654
+				layer.open({
655
+					type: 2,
656
+					content: "../CommonHtml/Define_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
657
+					title: '界定审核',
658
+					area: ['85%', '60%'], //宽高
659
+				})
660
+			}
653 661
 			//查看详情
654 662
 			function ckxq(str) {
655 663
 				layer.open({

+ 182 - 0
WebUI/CallCenterWeb.UI/CommonHtml/Define_audit.html

@@ -0,0 +1,182 @@
1
+<!DOCTYPE html>
2
+<html>
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>
12
+        .input {
13
+            background-color: #FFF;
14
+            background-image: none;
15
+            border: 1px solid #ccc;
16
+            border-radius: 1px;
17
+            color: inherit;
18
+            padding: 6px 12px
19
+        }
20
+	    .fjnr {
21
+            padding: 0 !important;
22
+            border: none !important;
23
+        }
24
+        .Common table th {
25
+        	width: 10%;
26
+        }
27
+    </style>
28
+</head>
29
+
30
+<body>
31
+    <div class="Common">
32
+    	<!--审核信息-->
33
+		<div class="complain  DCL ">
34
+			<div style="width: 100%;padding: 10px;">
35
+				<table class="Table" border="" cellspacing="0" cellpadding="0">
36
+					<theard>
37
+						<tr>
38
+							<td class="text-center" style="min-width:100px;">次数</td>
39
+							<td class="text-center" style="min-width:100px;">申请时间</td>
40
+							<td class="text-center" style="min-width:100px;">申请原因</td>
41
+							<td class="text-center" style="min-width:100px;">状态</td>
42
+							<td class="text-center" style="min-width:100px;">审核时间</td>
43
+							<td class="text-center" style="min-width:80px;">审核意见</td>
44
+						</tr>
45
+					</theard>
46
+					<tbody class="YTHHS">
47
+					</tbody>
48
+				</table>
49
+			</div>
50
+		</div>
51
+        <table>
52
+            <tr>
53
+            	<th class="Importent">审核结果:</th>
54
+            	<td id="isProResultRadio" style="font-size: 12px">
55
+					<label style="margin-right: 10px">
56
+                    	<input type="radio" value="1" name="isDisposeResult" style="vertical-align: -2px;" />同意
57
+					</label>
58
+            		<label>
59
+                    	<input type="radio" value="2" name="isDisposeResult" style="vertical-align: -2px;" />拒绝
60
+            		</label>
61
+            	</td>
62
+            </tr>
63
+            <tr class="refuse_reason" style="height: 100px;">
64
+            	<th>拒绝理由:</th>
65
+            	<td colspan="5">
66
+                	<textarea data-adaptheight id="prosituation" name="" rows="6" cols="" ></textarea>
67
+            	</td>
68
+            </tr>
69
+        </table>
70
+        <div class="btn_box">
71
+            <button class="btns submit">保存</button>
72
+        </div>
73
+    </div>
74
+    <input type="hidden" name="" id="perid" value="" />
75
+    <script src="../css/laydate/laydate.js"></script>
76
+    <script src="../js/adjustHeight.js"></script>
77
+    <script>
78
+        var wid = helper.request.queryString("wid");
79
+        $(document).ready(function () {
80
+        	audit_information();//获取审核信息
81
+            $('.submit').click(function () {
82
+                 submit();
83
+            })
84
+			$(".refuse_reason").hide(); //拒绝理由
85
+			
86
+            /*
87
+             * 审核结果
88
+             * 同意 1
89
+             * 拒绝2
90
+             */
91
+			$('#isProResultRadio').find('input[type="radio"]').on('change', function() {
92
+					isProResultJudge($(this).val())
93
+			});
94
+        });
95
+        //保存
96
+        function submit() {
97
+        	if(!$('#isProResultRadio input[name="isDisposeResult"]:checked').val()){
98
+        		layer.msg('请选择审核结果');
99
+        		return false;
100
+        	}
101
+        	if($('#isProResultRadio input[name="isDisposeResult"]:checked').val()==2 && !$('#prosituation').val()){
102
+        		layer.msg('请填写拒绝理由');
103
+        		return false;
104
+        	}
105
+            $.post(huayi.config.callcenter_url + 'WorkOrder/DefinitionWorkOrder', {
106
+                workorderid: wid,
107
+                state: $('#isProResultRadio input[name="isDisposeResult"]:checked').val(), //审核结果
108
+                reason: $("#prosituation").val(), //拒绝理由
109
+                perid:$('#perid').val(),//履职界定id
110
+                token: $.cookie("token")
111
+            }, function (result) {
112
+                result = JSON.parse(result);
113
+                if (result.state.toLowerCase() == "success") {
114
+
115
+                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
116
+                    parent.layer.close(index); //再执行关闭
117
+                    parent.$('#orderlist').bootstrapTable('refresh');
118
+                    parent.layer.msg("保存成功");
119
+                }
120
+            })
121
+        }
122
+        // 拒绝理由
123
+        function isProResultJudge (isProResultdata) {
124
+			if(isProResultdata === '1') {
125
+				$(".refuse_reason").hide(); //拒绝理由
126
+			} else if (isProResultdata === '2') {
127
+				$(".refuse_reason").show(); //拒绝理由
128
+			}
129
+       }
130
+        //获取审核信息
131
+        function audit_information(){
132
+        	$.ajax({
133
+        		type:"get",
134
+        		url:huayi.config.callcenter_url + 'WorkOrder/GetAuditInfo',
135
+        		async:true,
136
+        		data:{
137
+        			workorderid:wid,
138
+					type:3,
139
+					"token": $.cookie("token")
140
+        		},
141
+        		success:function(result){
142
+        			//审核信息
143
+					var Ths = '';
144
+					$(".YTHHS").empty();
145
+					$($.parseJSON(result).data).each(function(i, n) {
146
+						var a = '未审核';
147
+						var AuditTime;
148
+						var AuditReason;
149
+						if(n.F_IsAudit == '1') {
150
+							a = '同意';
151
+						}
152
+						if(n.F_IsAudit == '2') {
153
+							a = '拒绝';
154
+						}
155
+						if(n.F_AuditTime == null) {
156
+							AuditTime="";
157
+						}else{
158
+							AuditTime=n.F_AuditTime
159
+						}
160
+						if(n.F_AuditReason == null) {
161
+							AuditReason = '';
162
+						}else{
163
+							AuditReason=n.F_AuditReason
164
+						}
165
+						$('#perid').val(n.F_Id);//履职界定id
166
+						Ths += '<tr>' +
167
+							'<td class="text-center">' + (i + 1) + '</td>' +
168
+							'<td class="text-center">' + n.F_CreateTime + '</td>' +
169
+							'<td class="text-center">' + n.F_Result + '</td>' +
170
+							'<td class="text-center">' + a + '</td>' +
171
+							'<td class="text-center">' + AuditTime + '</td>' +
172
+							'<td class="text-center">' + AuditReason + '</td>' +
173
+							'</tr>';
174
+					})
175
+					$(Ths).appendTo($(".YTHHS"));
176
+        		}
177
+        	});
178
+        }
179
+    </script>
180
+</body>
181
+
182
+</html>

+ 2 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -45,7 +45,8 @@ huayi.config = {
45 45
                 "<a class='xg' onclick='ndb(data)' title='不督办'>不督办</a>", //不督办
46 46
                 "<a class='xg' onclick='tjcb(data)' title='提交重办'>提交重办</a>", //重办
47 47
                 "<a class='xg' onclick='bhcb(data)' title='驳回重办'>驳回重办</a>" ,//重办
48
-                "<a class='xg' onclick='lzjd(data)' title='履职界定'>履职界定</a>" //履职界定
48
+                "<a class='xg' onclick='lzjd(data)' title='履职界定'>履职界定</a>" ,//履职界定
49
+                "<a class='xg' onclick='jdsh(data)' title='界定审核 '>界定审核</a>" //界定审核
49 50
 			],
50 51
 	 kapArr :["<a class='xg' onclick='goDetail(data,data_id)' title='查看'>查看</a>",
51 52
 				"<a class='xg' onclick='goEdit(data,data_id)' title='编辑'>编辑</a>",