liuyifan преди 5 години
родител
ревизия
29beebfc9e

+ 0 - 1
CallCenterWeb.UI/js/index.js

@@ -17,7 +17,6 @@ $(document).ready(function() {
17 17
 		"token": $.cookie("token")
18 18
 	}, function(result) {
19 19
 		if(result.state.toLowerCase() == "success") {
20
-			debugger
21 20
 			console.log(result);
22 21
 			$(".username").text(result.data.user.F_UserName);
23 22
 			$('.user_code').text(result.data.user.F_UserCode);

+ 1 - 3
CallCenterWeb.UI/registrationManagement/registrationList/css/registrationList.css

@@ -508,6 +508,4 @@ textarea {
508 508
 }
509 509
 #sponsor li:hover{
510 510
     background: #00a1cb;
511
-}
512
-
513
-
511
+}

+ 0 - 0
CallCenterWeb.UI/registrationManagement/registrationList/js/print.js


+ 24 - 0
CallCenterWeb.UI/registrationManagement/registrationList/js/receive.js

@@ -0,0 +1,24 @@
1
+var id = helper.request.queryString("ids");
2
+var depId; //部门id
3
+var depName = ''; //部门name
4
+$(document).ready(function() {
5
+    getDepartmentTree()
6
+})
7
+
8
+//保存按钮
9
+$('.customerSubmit').click(function() {
10
+    $.post(huayi.config.callcenter_url + 'ATheChangeLog/AddBTheChangeLog', {
11
+		"token": $.cookie("token"),
12
+        token: $.cookie("token"),
13
+		ATheChangeLogid: id,
14
+    }, function(result) {
15
+        result = $.parseJSON(result);
16
+        if(result.state.toLowerCase() == "success") {
17
+            $("#activess").val(result.data);
18
+            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
19
+            parent.layer.close(index); //再执行关闭
20
+            parent.layer.msg("保存成功!");
21
+            parent.$("#registerList").bootstrapTable('refresh');
22
+        }
23
+    })
24
+})

+ 50 - 14
CallCenterWeb.UI/registrationManagement/registrationList/js/registrationList.js

@@ -1,5 +1,4 @@
1 1
 $(document).ready(function(){
2
-    initTable()
3 2
     laydate.render({
4 3
         elem: '#greetingTimes',
5 4
         range: '~',
@@ -10,15 +9,12 @@ $(document).ready(function(){
10 9
         range: '~',
11 10
         theme: '#1ab394',
12 11
     });
13
-    $(".search").click(function() {
14
-        initTable()
15
-    })
16 12
     // getProvinceCounty($("#searchProvince"), 0, "请选择省")
17 13
     getFounder($("#searchFounder"))
18 14
 });
19 15
 
20 16
 
21
-function initTable() {
17
+function initTable(innerType) {
22 18
     //先销毁表格
23 19
     $('#registerList').bootstrapTable('destroy');
24 20
     //初始化表格,动态从服务器加载数据
@@ -48,6 +44,7 @@ function initTable() {
48 44
                 direction: $("#searchDirection").val(),//方向
49 45
                 type: $("#searchRegistrationType").val(),//登记类型
50 46
                 usercode: $("#searchFounder").val(),//创建人
47
+                innerType: innerType,
51 48
                 pageindex: params.pageNumber, //页码
52 49
                 pagesize: params.pageSize, //条数
53 50
             };
@@ -121,6 +118,54 @@ function btn_register_details(id) {
121 118
     });
122 119
 }
123 120
 
121
+function btn_transfer(id) {
122
+    layer.open({
123
+        type: 2,
124
+        title: '转移登记',
125
+        maxmin: true, //开启最大化最小化按钮
126
+        area: ['50%', '50%'],
127
+        content: 'transfer.html?ids=' + id
128
+    });
129
+}
130
+
131
+// function btn_receive(id) {
132
+//     layer.open({
133
+//         type: 2,
134
+//         title: '接收登记',
135
+//         maxmin: true, //开启最大化最小化按钮
136
+//         area: ['50%', '50%'],
137
+//         content: 'receive.html?ids=' + id
138
+//     });
139
+// }
140
+
141
+function btn_receive (id) {
142
+    var laye = layer.confirm('您确定要接收吗?', {
143
+        btn: ['确定', '取消'] //可以无限个按钮
144
+    }, function () {
145
+        //按钮【按钮一】的回调
146
+        $.ajax({
147
+            type: "post",
148
+            url: huayi.config.callcenter_url + "ATheChangeLog/AddBTheChangeLog",
149
+            async: true,
150
+            dataType: "json",
151
+            data: {
152
+                token: $.cookie("token"),
153
+                ATheChangeLogid: id
154
+            },
155
+            success: function (data) {
156
+                if (data.state.toLowerCase() == 'success') {
157
+                    layer.msg("接收成功!");
158
+                    $("#registerList").bootstrapTable('refresh');
159
+                }
160
+            }
161
+        });
162
+    }, function (index) {
163
+        //按钮【按钮二】的回调
164
+        layer.close(laye)
165
+    });
166
+}
167
+
168
+
124 169
 function btn_delete (id) {
125 170
     var laye = layer.confirm('您确定要删除吗?', {
126 171
         btn: ['确定', '取消'] //可以无限个按钮
@@ -189,12 +234,3 @@ function getFounder(element) {
189 234
         })
190 235
 	})
191 236
 }
192
-
193
-// 按回车搜索
194
-document.onkeydown = function (e) {
195
-    var theEvent = window.event || e;
196
-    var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
197
-    if (code == 13) {
198
-        initTable();
199
-    }
200
-}

+ 72 - 0
CallCenterWeb.UI/registrationManagement/registrationList/js/transfer.js

@@ -0,0 +1,72 @@
1
+var id = helper.request.queryString("ids");
2
+var depId; //部门id
3
+var depName = ''; //部门name
4
+$(document).ready(function() {
5
+    getDepartmentTree()
6
+})
7
+
8
+//保存按钮
9
+$('.customerSubmit').click(function() {
10
+    $.post(huayi.config.callcenter_url + 'ATheChangeLog/AddAreaATheChangeLog', {
11
+		"token": $.cookie("token"),
12
+        token: $.cookie("token"),
13
+		F_CustomerId: id,
14
+		F_Bdeptid: depId,
15
+		F_Bdeptname: depName,
16
+    }, function(result) {
17
+        result = $.parseJSON(result);
18
+        if(result.state.toLowerCase() == "success") {
19
+            $("#activess").val(result.data);
20
+            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
21
+            parent.layer.close(index); //再执行关闭
22
+            parent.layer.msg("保存成功!");
23
+            parent.$("#registerList").bootstrapTable('refresh');
24
+        }
25
+    })
26
+})
27
+
28
+//所属部门
29
+var settingDepartment = {
30
+	data: {
31
+		key: {
32
+			name: "text"
33
+		},
34
+		simpleData: {
35
+			enable: true,
36
+			idKey: "id",
37
+			rootPId: 0
38
+		}
39
+	},
40
+	callback: {
41
+		onClick: ztreeDep
42
+	}
43
+};
44
+function ztreeDep(event, treeId, treeNode) {
45
+	depId = treeNode.id;
46
+	depName = treeNode.text;
47
+	$('#departmentTreeValue').val(depName);
48
+};
49
+function getDepartmentTree() {
50
+	$.get(huayi.config.callcenter_url + "Department/GetDeptList", {
51
+		"token": $.cookie("token"),
52
+		"pid": '',
53
+	}, function(result) {
54
+		result = $.parseJSON(result);
55
+		$.fn.zTree.init($("#departmentTree"), settingDepartment, result.data); //实例化树形图
56
+	});
57
+}
58
+
59
+$('#departmentTreeValue').focus(function() {
60
+	$('.dropDownThreeListDepartment').css('display', 'block');
61
+})
62
+$('.dropDownThreeIconDepartment').click(function() {
63
+	if($('.dropDownThreeListDepartment').css('display') == 'block') {
64
+		$('.dropDownThreeListDepartment').css('display', 'none')
65
+	} else {
66
+		$('.dropDownThreeListDepartment').css('display', 'block')
67
+	}
68
+})
69
+$('.dropDownThree').mouseleave(function() {
70
+	$(this).css('display', 'none')
71
+})
72
+

+ 133 - 0
CallCenterWeb.UI/registrationManagement/registrationList/receive.html

@@ -0,0 +1,133 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <script src="../../Script/Common/huayi.load.js"></script>
8
+    <script src="../../Script/Common/huayi.config.js"></script>
9
+    <link rel="stylesheet" href="../../js/zTree/zTreeStyle.css" />
10
+    <link rel="stylesheet" href="../../css/init.css" />
11
+    <link rel="stylesheet" href="./css/registrationList.css">
12
+    <title>编辑</title>
13
+    <style>
14
+        ul li {
15
+            float: initial;
16
+            list-style: none;
17
+        }
18
+        .wrapper-content{
19
+            padding-right: 60px;
20
+        }
21
+        .common {
22
+            width: 100%;
23
+            text-align: center;
24
+            padding: 10px 15px;
25
+        }
26
+        .common table {
27
+            width: 100%;
28
+        }
29
+        .common table th {
30
+            padding: 5px 8px 5px 0;
31
+            text-align: right;
32
+        }
33
+	    .common table td {
34
+            padding: 6px 0 5px 10px;
35
+            text-align: left;
36
+            color: #717171;
37
+            line-height: 200%;
38
+        }
39
+        .common table td textarea {
40
+            width: 100%;
41
+            vertical-align: middle;
42
+            resize: none;
43
+            outline: none;
44
+        }
45
+        .form-group {
46
+            margin-bottom: 0;
47
+        }
48
+        .dropDownTree {
49
+            border: 1px solid #a9a9a9;
50
+            height: 27px;
51
+            width: 55%;
52
+            display: inline-block;
53
+            position: relative;
54
+            vertical-align: middle;
55
+        }
56
+        .dropDownTreeInput {
57
+            width: 100%;
58
+            height: 24px;
59
+            outline: none;
60
+            border: 0;
61
+            border-image-width: 0;
62
+            padding: 0;
63
+            padding-left: 3px;
64
+        }
65
+        .dropDownThreeIcon {
66
+            display: inline-block;
67
+            background: url(../../img/dropDown.png) no-repeat;
68
+            height: 100%;
69
+            background-position: center center;
70
+            width: 20px;
71
+            position: absolute;
72
+            right: 0;
73
+            top: 0px;
74
+            background-color: #f7bc8b;
75
+            cursor: pointer;
76
+        }
77
+        
78
+        .dropDownThreeIcon:hover {
79
+            background-color: #e6d523;
80
+        }
81
+        
82
+        .dropDownThree {
83
+            background: #fff;
84
+            position: absolute;
85
+            width: 100%;
86
+            border: 1px solid darkgrey;
87
+            right: 0;
88
+            top: 26px;
89
+            display: none;
90
+            height: 220px;
91
+            overflow-y: auto;
92
+            z-index: 99;
93
+        }
94
+    </style>
95
+</head>
96
+
97
+<body class="gray-bg">
98
+    <div class="clearfix wrapper wrapper-content animated fadeInRight">
99
+        <div class="common">
100
+            <table class="customerService">
101
+            	<tbody>
102
+                    <tr>
103
+                        <th>所属部门:</th>
104
+                        <td>
105
+                            <div class="dropDownTree">
106
+                                <input type="text" class="dropDownTreeInput" id="departmentTreeValue"  readonly="readonly"/>
107
+                                <i class="dropDownThreeIcon dropDownThreeIconDepartment"></i>
108
+                                <div class="dropDownThree dropDownThreeListDepartment">
109
+                                    <ul id="departmentTree" class="ztree">
110
+                                        
111
+                                    </ul>
112
+                                </div>
113
+                            </div>
114
+                        </td>
115
+                    </tr>
116
+                    <tr>
117
+                        <td colspan="8" style="text-align: center;">
118
+                            <button class="btns customerSubmit">保&nbsp;存</button>
119
+                        </td>
120
+                    </tr>
121
+                </tbody>
122
+            </table>
123
+        </div>
124
+    </div>
125
+
126
+    <script src="../../js/zTree/jquery.ztree.core.js"></script>
127
+    <script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
128
+    <script src="../../js/comboSelect/jquery.combo.select.js"></script>
129
+    <script src="../../js/laydate/laydate.js"></script>
130
+    <script src="./js/transfer.js"></script>
131
+</body>
132
+
133
+</html>

+ 18 - 0
CallCenterWeb.UI/registrationManagement/registrationList/registrationList.html

@@ -122,6 +122,24 @@
122 122
 		<script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
123 123
 		<script src="../../js/comboSelect/jquery.combo.select.js"></script>
124 124
 		<script src="./js/registrationList.js"></script>
125
+		
126
+		<script>
127
+			$(document).ready(function() {
128
+				initTable('')
129
+				$(".search").click(function() {
130
+					initTable('')
131
+				})
132
+				// 按回车搜索
133
+				document.onkeydown = function (e) {
134
+					var theEvent = window.event || e;
135
+					var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
136
+					if (code == 13) {
137
+						initTable('');
138
+					}
139
+				}
140
+
141
+			})
142
+		</script>
125 143
 	</body>
126 144
 
127 145
 </html>

+ 19 - 0
CallCenterWeb.UI/registrationManagement/registrationList/registrationListReceive.html

@@ -122,6 +122,25 @@
122 122
 		<script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
123 123
 		<script src="../../js/comboSelect/jquery.combo.select.js"></script>
124 124
 		<script src="./js/registrationList.js"></script>
125
+
126
+		<script>
127
+			$(document).ready(function() {
128
+				initTable(1)
129
+				$(".search").click(function() {
130
+					initTable(1)
131
+				})
132
+				// 按回车搜索
133
+				document.onkeydown = function (e) {
134
+					var theEvent = window.event || e;
135
+					var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
136
+					if (code == 13) {
137
+						initTable(1);
138
+					}
139
+				}
140
+
141
+			})
142
+		</script>
143
+
125 144
 	</body>
126 145
 
127 146
 </html>

+ 19 - 0
CallCenterWeb.UI/registrationManagement/registrationList/registrationListTransfer.html

@@ -122,6 +122,25 @@
122 122
 		<script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
123 123
 		<script src="../../js/comboSelect/jquery.combo.select.js"></script>
124 124
 		<script src="./js/registrationList.js"></script>
125
+
126
+		<script>
127
+			$(document).ready(function() {
128
+				initTable(0)
129
+				$(".search").click(function() {
130
+					initTable(0)
131
+				})
132
+				// 按回车搜索
133
+				document.onkeydown = function (e) {
134
+					var theEvent = window.event || e;
135
+					var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
136
+					if (code == 13) {
137
+						initTable(0);
138
+					}
139
+				}
140
+
141
+			})
142
+		</script>
143
+
125 144
 	</body>
126 145
 
127 146
 </html>

+ 133 - 0
CallCenterWeb.UI/registrationManagement/registrationList/transfer.html

@@ -0,0 +1,133 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <script src="../../Script/Common/huayi.load.js"></script>
8
+    <script src="../../Script/Common/huayi.config.js"></script>
9
+    <link rel="stylesheet" href="../../js/zTree/zTreeStyle.css" />
10
+    <link rel="stylesheet" href="../../css/init.css" />
11
+    <link rel="stylesheet" href="./css/registrationList.css">
12
+    <title>编辑</title>
13
+    <style>
14
+        ul li {
15
+            float: initial;
16
+            list-style: none;
17
+        }
18
+        .wrapper-content{
19
+            padding-right: 60px;
20
+        }
21
+        .common {
22
+            width: 100%;
23
+            text-align: center;
24
+            padding: 10px 15px;
25
+        }
26
+        .common table {
27
+            width: 100%;
28
+        }
29
+        .common table th {
30
+            padding: 5px 8px 5px 0;
31
+            text-align: right;
32
+        }
33
+	    .common table td {
34
+            padding: 6px 0 5px 10px;
35
+            text-align: left;
36
+            color: #717171;
37
+            line-height: 200%;
38
+        }
39
+        .common table td textarea {
40
+            width: 100%;
41
+            vertical-align: middle;
42
+            resize: none;
43
+            outline: none;
44
+        }
45
+        .form-group {
46
+            margin-bottom: 0;
47
+        }
48
+        .dropDownTree {
49
+            border: 1px solid #a9a9a9;
50
+            height: 27px;
51
+            width: 55%;
52
+            display: inline-block;
53
+            position: relative;
54
+            vertical-align: middle;
55
+        }
56
+        .dropDownTreeInput {
57
+            width: 100%;
58
+            height: 24px;
59
+            outline: none;
60
+            border: 0;
61
+            border-image-width: 0;
62
+            padding: 0;
63
+            padding-left: 3px;
64
+        }
65
+        .dropDownThreeIcon {
66
+            display: inline-block;
67
+            background: url(../../img/dropDown.png) no-repeat;
68
+            height: 100%;
69
+            background-position: center center;
70
+            width: 20px;
71
+            position: absolute;
72
+            right: 0;
73
+            top: 0px;
74
+            background-color: #f7bc8b;
75
+            cursor: pointer;
76
+        }
77
+        
78
+        .dropDownThreeIcon:hover {
79
+            background-color: #e6d523;
80
+        }
81
+        
82
+        .dropDownThree {
83
+            background: #fff;
84
+            position: absolute;
85
+            width: 100%;
86
+            border: 1px solid darkgrey;
87
+            right: 0;
88
+            top: 26px;
89
+            display: none;
90
+            height: 220px;
91
+            overflow-y: auto;
92
+            z-index: 99;
93
+        }
94
+    </style>
95
+</head>
96
+
97
+<body class="gray-bg">
98
+    <div class="clearfix wrapper wrapper-content animated fadeInRight">
99
+        <div class="common">
100
+            <table class="customerService">
101
+            	<tbody>
102
+                    <tr>
103
+                        <th>所属部门:</th>
104
+                        <td>
105
+                            <div class="dropDownTree">
106
+                                <input type="text" class="dropDownTreeInput" id="departmentTreeValue"  readonly="readonly"/>
107
+                                <i class="dropDownThreeIcon dropDownThreeIconDepartment"></i>
108
+                                <div class="dropDownThree dropDownThreeListDepartment">
109
+                                    <ul id="departmentTree" class="ztree">
110
+                                        
111
+                                    </ul>
112
+                                </div>
113
+                            </div>
114
+                        </td>
115
+                    </tr>
116
+                    <tr>
117
+                        <td colspan="8" style="text-align: center;">
118
+                            <button class="btns customerSubmit">保&nbsp;存</button>
119
+                        </td>
120
+                    </tr>
121
+                </tbody>
122
+            </table>
123
+        </div>
124
+    </div>
125
+
126
+    <script src="../../js/zTree/jquery.ztree.core.js"></script>
127
+    <script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
128
+    <script src="../../js/comboSelect/jquery.combo.select.js"></script>
129
+    <script src="../../js/laydate/laydate.js"></script>
130
+    <script src="./js/transfer.js"></script>
131
+</body>
132
+
133
+</html>