Przeglądaj źródła

短信评议,多媒体审核

miaofuhao 3 lat temu
rodzic
commit
cd40f7136e

+ 25 - 63
WebUI/CallCenterWeb.UI/CommonHtml/haveDoneToAuditOperation.html

@@ -6,15 +6,13 @@
6 6
     <script src="../Script/Common/huayi.load.js"></script>
7 7
     <script src="../Script/Common/huayi.config.js"></script>
8 8
     <link rel="stylesheet" href="../css/bootstrap-select.css" />
9
+    <link rel="stylesheet" href="../css/layer/need/layer.css" />
9 10
     <link rel="stylesheet" href="../css/init.css" />
10 11
     <title>添加</title>
11 12
     <style>
12 13
         .Common table th {
13 14
             width: 100px
14 15
         }
15
-        .auditState {
16
-        	display: none;
17
-        }
18 16
     </style>
19 17
 </head>
20 18
 
@@ -23,17 +21,7 @@
23 21
         <div style="padding: 10px" class="tj_content clearFix">
24 22
             <div class="Common">
25 23
                 <table>
26
-                	<tr>
27
-                        <th>审核状态:</th>
28
-                        <td colspan="7">
29
-                            <select name="auditState" class="form-control" id="auditState">
30
-                            	<option value="0">审核通过</option>
31
-                            	<option value="1">审核不通过</option>
32
-                            	<option value="2">审核通过转办</option>
33
-                            </select>
34
-                        </td>
35
-                    </tr>
36
-                    <tr class="auditState">
24
+                    <tr>
37 25
                         <th>审核说明:</th>
38 26
                         <td colspan="7">
39 27
                             <textarea id="cbreason" class="form-control" name="" rows="" cols="" style=""></textarea>
@@ -50,61 +38,35 @@
50 38
     </div>
51 39
     <script>
52 40
         var wid = helper.request.queryString("wid");
53
-        var nexttype;
41
+        var nexttype = helper.request.queryString("nexttype");
54 42
         $(document).ready(function () {
55 43
             $(".save").click(function () {
56
-            	Add()
44
+                Add();
57 45
             });
58
-            $("#auditState").change(function(){
59
-            	
60
-            	if (Number($("#auditState").val())) {
61
-            		$(".auditState").show()
62
-            	} else {
63
-            		$(".auditState").hide()
64
-            		$("#cbreason").val('')
65
-            	}
66
-//          	Number($("#auditState").val()) ? $(".auditState").show():$(".auditState").hide()
67
-            })
68 46
         });
47
+
69 48
         //修改工单
70 49
         function Add() {
71
-        	
72
-        	nexttype =Number($("#auditState").val())
73
-        	if (nexttype === 0) {
74
-        		layer.confirm('确认审核通过吗?', {
75
-	                btn: ['是', '否'] //按钮
76
-	            }, function () {
77
-	                layer.confirm('是否发送短信?', {
78
-		                btn: ['是', '否'] //按钮
79
-		            }, function () {
80
-		                toExamineWorkOrder(1,nexttype)
81
-		            },function(){
82
-		            	toExamineWorkOrder(0,nexttype)
83
-		            });
84
-	            });
85
-        	} else if(nexttype===1 || nexttype ===2){
86
-        		$("#cbreason").show()
87
-        		toExamineWorkOrder()
88
-        	}
89
-        }
90
-        function toExamineWorkOrder(issmsAudit){
91
-        	
92
-        	$.post(huayi.config.callcenter_url + 'WorkOrder/ToExamineWorkOrder', {
93
-                workorderid: wid,
94
-                nexttype: nexttype, // 0审核通过 1审核不通过 2审核通过转办
95
-                issms:issmsAudit,
96
-                cbreason: $("#cbreason").val(),
97
-                "token": $.cookie("token")
98
-            }, function(result) {
99
-                result = JSON.parse(result);
100
-                if(result.state.toLowerCase() == "success") {
101
-                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
102
-                    parent.layer.close(index); //再执行关闭
103
-                    parent.$("#orderlist").bootstrapTable("refresh");
104
-                    parent.layer.msg("操作成功");
105
-                }
106
-            })
107
-        	
50
+            $.ajax({
51
+                type: "post",
52
+                url: huayi.config.callcenter_url + "WorkOrder/ToExamineWorkOrder",
53
+                dataType: "json",
54
+                async: true,
55
+                data: {
56
+                    token: $.cookie("token"),
57
+                    workorderid: wid,
58
+                    nexttype: nexttype, // 0审核通过 1审核不通过 2审核通过转办
59
+                    cbreason: $("#cbreason").val(),
60
+                },
61
+                success: function (data) {
62
+                    if (data.state.toLowerCase() == "success") {
63
+                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
64
+                            parent.layer.close(index); //再执行关闭
65
+                            parent.$("#orderlist").bootstrapTable("refresh");
66
+                            parent.layer.msg("操作成功");
67
+                    }
68
+                },
69
+            });
108 70
         }
109 71
     </script>
110 72
 </body>

+ 14 - 8
WebUI/CallCenterWeb.UI/citizenNode/orderComment.html

@@ -71,14 +71,21 @@
71 71
     <script type="text/javascript">
72 72
     	mui.init();
73 73
       var workorderid = helper.request.queryString("workorderid")
74
+      var SatisfactionChecked
74 75
     	mui.ready(function() {
75 76
         
76 77
     		document.getElementById("submit").addEventListener('tap', function() {
77
-    			if(!$("#content").val()) {
78
-    				mui.alert('输入评议内容');
78
+    			SatisfactionChecked = $('input[name="Satisfaction"]:checked').val()
79
+    			
80
+    			if(SatisfactionChecked==="不满意" || SatisfactionChecked==="非常不满意") {
81
+    				$("#content").val()?commentMethod(): mui.alert('输入评议内容');
79 82
     			} else {
80
-            
81
-            $.ajax({
83
+            commentMethod()
84
+    			}
85
+    		})
86
+    		
87
+    		function commentMethod(){
88
+    			$.ajax({
82 89
               type: "post",      
83 90
               url: huayi.config.callcenter_url + 'APP/Comment',
84 91
               dataType: "json",
@@ -86,11 +93,11 @@
86 93
               data: {
87 94
               	workorderid: workorderid,
88 95
               	content: $("#content").val(), //评议结果
89
-                Satisfaction: $('input[name="Satisfaction"]:checked').val()
96
+                Satisfaction: SatisfactionChecked
90 97
               },
91 98
               success: function(data) {
92 99
                 if(data.state == "success") {
93
-                  
100
+                  debugger
94 101
                 	mui.alert("评议成功");
95 102
                   window.location.href ="./orderDetails.html?workorderid="+workorderid
96 103
                 	
@@ -99,8 +106,7 @@
99 106
                 }
100 107
               }
101 108
             })
102
-    			}
103
-    		})
109
+    		}
104 110
         
105 111
     	})
106 112
     </script>

+ 3 - 1
WebUI/CallCenterWeb.UI/citizenNode/script/config.js

@@ -2,6 +2,8 @@ if(huayi == undefined) {
2 2
 	var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-	callcenter_url: "http://docking.zwfw.anyang.gov.cn:9998/",//生产环境
5
+	callcenter_url: "http://docking.zwfw.anyang.gov.cn:9998/",	//	生产环境
6
+//		callcenter_url: "http://192.168.8.9:1042/",	//	生产环境
7
+	
6 8
 
7 9
 };