|
|
@@ -0,0 +1,237 @@
|
|
|
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.http.js"></script>
|
|
|
8
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
9
|
+ <link rel="stylesheet" href="../css/jquery-ui.css" />
|
|
|
10
|
+ <link rel="stylesheet" href="../css/tpkerjqui.css" />
|
|
|
11
|
+ <link rel="stylesheet" href="../css/timePicker.css" />
|
|
|
12
|
+ <link rel="stylesheet" href="../css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css">
|
|
|
13
|
+ <link rel="stylesheet" href="../css/stty.css" />
|
|
|
14
|
+ <link rel="stylesheet" href="../css/init.css" />
|
|
|
15
|
+ <link rel="stylesheet" type="text/css" href="../js/bootstrap-treeview/bootstrap-treeview.min.css" />
|
|
|
16
|
+ <title>添加任务</title>
|
|
|
17
|
+ <style>
|
|
|
18
|
+ .page-title {
|
|
|
19
|
+ padding: 0px;
|
|
|
20
|
+ font-size: 16px;
|
|
|
21
|
+ font-weight: bold;
|
|
|
22
|
+ letter-spacing: -1px;
|
|
|
23
|
+ display: block;
|
|
|
24
|
+ color: #1570A6;
|
|
|
25
|
+ margin: 20px 0px 15px 0px;
|
|
|
26
|
+ }
|
|
|
27
|
+
|
|
|
28
|
+ hr {
|
|
|
29
|
+ margin: 20px 0;
|
|
|
30
|
+ border: 0;
|
|
|
31
|
+ border-top: 1px solid #E0DFDF;
|
|
|
32
|
+ border-bottom: 1px solid #FEFEFE;
|
|
|
33
|
+ }
|
|
|
34
|
+ .bjCon {
|
|
|
35
|
+ padding-top: 20px;
|
|
|
36
|
+ /*border: 1px solid #e5e5e5;
|
|
|
37
|
+ border-top: 0;*/
|
|
|
38
|
+ }
|
|
|
39
|
+
|
|
|
40
|
+ .bjright table td input {
|
|
|
41
|
+ padding-left: 30px;
|
|
|
42
|
+ }
|
|
|
43
|
+
|
|
|
44
|
+ .tub {
|
|
|
45
|
+ position: absolute;
|
|
|
46
|
+ left: 18px;
|
|
|
47
|
+ top: 13px;
|
|
|
48
|
+ font-size: 18px;
|
|
|
49
|
+ color: #ccc;
|
|
|
50
|
+ }
|
|
|
51
|
+
|
|
|
52
|
+ .ui-datepicker.ui-widget-content {
|
|
|
53
|
+ background: none !important;
|
|
|
54
|
+ background-color: #eee !important;
|
|
|
55
|
+ }
|
|
|
56
|
+
|
|
|
57
|
+ .ui-widget-header .ui-icon {
|
|
|
58
|
+ background-image: url(../img/ui-icons_444444_256x240.png) !important;
|
|
|
59
|
+ }
|
|
|
60
|
+
|
|
|
61
|
+ .box {
|
|
|
62
|
+ width: 55%;
|
|
|
63
|
+ margin: 0 auto;
|
|
|
64
|
+ margin-top: 5%;
|
|
|
65
|
+ }
|
|
|
66
|
+
|
|
|
67
|
+ .box .btop {
|
|
|
68
|
+ height: 35px;
|
|
|
69
|
+ background: #1ab394;
|
|
|
70
|
+ color: #fff;
|
|
|
71
|
+ line-height: 35px;
|
|
|
72
|
+ padding: 0 15px;
|
|
|
73
|
+ /* margin-bottom: 15px; */
|
|
|
74
|
+ }
|
|
|
75
|
+
|
|
|
76
|
+ .btl {
|
|
|
77
|
+ float: left;
|
|
|
78
|
+ margin: 0;
|
|
|
79
|
+ }
|
|
|
80
|
+
|
|
|
81
|
+ .btr {
|
|
|
82
|
+ float: right;
|
|
|
83
|
+ margin: 0;
|
|
|
84
|
+ cursor: pointer;
|
|
|
85
|
+ }
|
|
|
86
|
+
|
|
|
87
|
+ .boxCon {
|
|
|
88
|
+ width: 100%;
|
|
|
89
|
+ min-height: 400px;
|
|
|
90
|
+ background: #fff;
|
|
|
91
|
+ text-align: center;
|
|
|
92
|
+ padding: 10px 15px;
|
|
|
93
|
+ height: auto;
|
|
|
94
|
+ overflow-y: scroll;
|
|
|
95
|
+ }
|
|
|
96
|
+ .select_ {
|
|
|
97
|
+ width: 150px;
|
|
|
98
|
+ background-color: #FFF;
|
|
|
99
|
+ background-image: none;
|
|
|
100
|
+ border: 1px solid #ccc;
|
|
|
101
|
+ border-radius: 1px;
|
|
|
102
|
+ color: inherit;
|
|
|
103
|
+ padding: 6px 12px;
|
|
|
104
|
+ outline: none;
|
|
|
105
|
+ vertical-align: middle;
|
|
|
106
|
+ margin-top: 20px;
|
|
|
107
|
+ margin-right: 20px;
|
|
|
108
|
+ }
|
|
|
109
|
+ .tool {
|
|
|
110
|
+ margin: 20px 0;
|
|
|
111
|
+ }
|
|
|
112
|
+
|
|
|
113
|
+ .searchbox input {
|
|
|
114
|
+ width: 99%;
|
|
|
115
|
+ height: 98%;
|
|
|
116
|
+ border: 0;
|
|
|
117
|
+ outline: none;
|
|
|
118
|
+ padding-left: 10px;
|
|
|
119
|
+ }
|
|
|
120
|
+
|
|
|
121
|
+ .secon {
|
|
|
122
|
+ width: 100%;
|
|
|
123
|
+ height: 34px;
|
|
|
124
|
+ margin-bottom: 15px;
|
|
|
125
|
+ }
|
|
|
126
|
+
|
|
|
127
|
+ .secl {
|
|
|
128
|
+ width: 65%;
|
|
|
129
|
+ display: inline-block;
|
|
|
130
|
+ height: 100%;
|
|
|
131
|
+ margin: 0;
|
|
|
132
|
+ border: 1px solid #eee;
|
|
|
133
|
+ }
|
|
|
134
|
+
|
|
|
135
|
+
|
|
|
136
|
+ </style>
|
|
|
137
|
+ </head>
|
|
|
138
|
+
|
|
|
139
|
+ <body>
|
|
|
140
|
+ <form class="container-fluid" enctype="multipart/form-data">
|
|
|
141
|
+ <div class="row-fluid clearfix">
|
|
|
142
|
+ <div class="tool clearfix">
|
|
|
143
|
+ <div class="searchbox col-sm-2">
|
|
|
144
|
+ <div class="secon">
|
|
|
145
|
+ <b>号码:</b>
|
|
|
146
|
+ <p class="secl"><input type="text" placeholder="号码" class="phone" /></p>
|
|
|
147
|
+ </div>
|
|
|
148
|
+ </div>
|
|
|
149
|
+ </div>
|
|
|
150
|
+ </div>
|
|
|
151
|
+ <p style="text-align: center; padding: 20px 0;">
|
|
|
152
|
+
|
|
|
153
|
+ <button class="btns sureCun" type="button">保存</button>
|
|
|
154
|
+ <a class="btns" id="return">取消</a>
|
|
|
155
|
+ </p>
|
|
|
156
|
+ </form>
|
|
|
157
|
+
|
|
|
158
|
+ <script src="../js/jquery-ui.js"></script>
|
|
|
159
|
+ <script src="../js/timePicker.js"></script>
|
|
|
160
|
+ <!--<script src="../js/ajaxfileupload.js"></script>-->
|
|
|
161
|
+ <script src="../dianXiao/js/jquery.form.min.js"></script>
|
|
|
162
|
+ <script src="../js/bootstrap-treeview/bootstrap-treeview.min.js"></script>
|
|
|
163
|
+ <script>
|
|
|
164
|
+ var token = $.cookie("token");
|
|
|
165
|
+ var id=helper.request.queryString("id");
|
|
|
166
|
+
|
|
|
167
|
+ $(document).ready(function() {
|
|
|
168
|
+ //取消
|
|
|
169
|
+ $('#return').click(function () {
|
|
|
170
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
171
|
+ parent.layer.close(index); //再执行关闭
|
|
|
172
|
+ });
|
|
|
173
|
+
|
|
|
174
|
+ $.ajax({
|
|
|
175
|
+ type:"get",
|
|
|
176
|
+ url: huayi.config.callcenter_url + 'Customer/GetCustomer',
|
|
|
177
|
+ async:true,
|
|
|
178
|
+ dataType:'json',
|
|
|
179
|
+ data:{
|
|
|
180
|
+ token: token,
|
|
|
181
|
+ id:id
|
|
|
182
|
+ },
|
|
|
183
|
+ success:function(res){
|
|
|
184
|
+ if(res.state.toLowerCase()=='success'){
|
|
|
185
|
+ $('.tool').html('');
|
|
|
186
|
+ var nameList=res.data.namelist,
|
|
|
187
|
+ headList=res.data.headlist,
|
|
|
188
|
+ dataList=res.data.datalist;
|
|
|
189
|
+ $(nameList).each(function(i,n){
|
|
|
190
|
+ $('<div class="searchbox col-sm-3">'+
|
|
|
191
|
+ '<div class="secon">'+
|
|
|
192
|
+ '<b>'+headList[i] +':</b>'+
|
|
|
193
|
+ '<p class="secl"><input type="text" class="phone" name="'+n+'" value="'+dataList[i] +'"/></p>'+
|
|
|
194
|
+ '</div>'+
|
|
|
195
|
+ '</div>').appendTo('.tool')
|
|
|
196
|
+
|
|
|
197
|
+ })
|
|
|
198
|
+
|
|
|
199
|
+ }
|
|
|
200
|
+
|
|
|
201
|
+ }
|
|
|
202
|
+ });
|
|
|
203
|
+
|
|
|
204
|
+ $('.sureCun').click(function() {
|
|
|
205
|
+ $(".container-fluid")
|
|
|
206
|
+ .attr("method", "post")
|
|
|
207
|
+ .attr("action", huayi.config.callcenter_url + "Customer/AddCustomer")
|
|
|
208
|
+ .attr("enctype", "multipart/form-data");
|
|
|
209
|
+ $(".container-fluid").ajaxSubmit({
|
|
|
210
|
+ dataType: "json",
|
|
|
211
|
+ data: {
|
|
|
212
|
+ id: id,
|
|
|
213
|
+ token: token
|
|
|
214
|
+ },
|
|
|
215
|
+ success: function(res) {
|
|
|
216
|
+ //debugger;
|
|
|
217
|
+ if(res.state.toLowerCase() == "success") {
|
|
|
218
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
219
|
+ parent.layer.close(index); //再执行关闭
|
|
|
220
|
+ parent.msg(res.message);
|
|
|
221
|
+ parent.initTable();
|
|
|
222
|
+ } else {
|
|
|
223
|
+ layer.msg(res.message);
|
|
|
224
|
+ }
|
|
|
225
|
+
|
|
|
226
|
+ }
|
|
|
227
|
+ });
|
|
|
228
|
+
|
|
|
229
|
+ })
|
|
|
230
|
+
|
|
|
231
|
+ })
|
|
|
232
|
+
|
|
|
233
|
+
|
|
|
234
|
+ </script>
|
|
|
235
|
+ </body>
|
|
|
236
|
+
|
|
|
237
|
+</html>
|