|
|
@@ -4,6 +4,7 @@
|
|
4
|
4
|
|
|
5
|
5
|
//通话记录跳转过来的
|
|
6
|
6
|
var callId = helper.request.queryString("cid");
|
|
|
7
|
+var cCustomerName = decodeURIComponent(helper.request.queryString("cCustomerName"));
|
|
7
|
8
|
$(function() {
|
|
8
|
9
|
laydate.render({
|
|
9
|
10
|
elem: '#sc_time',
|
|
|
@@ -14,13 +15,17 @@ $(function() {
|
|
14
|
15
|
});
|
|
15
|
16
|
//通话记录跳转过来的
|
|
16
|
17
|
var cphone = helper.request.queryString("cphone");
|
|
17
|
|
- var cCustomerName = decodeURIComponent(helper.request.queryString("cCustomerName"));
|
|
|
18
|
+
|
|
|
19
|
+ // var FileUrl = decodeURIComponent(helper.request.queryString("FileUrl"));
|
|
18
|
20
|
if(cphone) {
|
|
19
|
21
|
$('#order_tel').val(cphone); //否 string 联系电话
|
|
20
|
22
|
}
|
|
21
|
23
|
if(cCustomerName) {
|
|
22
|
|
- $('#order_name').val(cCustomerName); //是 string 姓名/联系人
|
|
|
24
|
+ $('#order_company').val(cCustomerName); //是 string 姓名/联系人
|
|
23
|
25
|
}
|
|
|
26
|
+ // if(FileUrl) {
|
|
|
27
|
+ // $('#order_company').text(FileUrl); //是 string 姓名/联系人
|
|
|
28
|
+ // }
|
|
24
|
29
|
autosize($('textarea'));
|
|
25
|
30
|
//获取工单来源
|
|
26
|
31
|
helper.getDropList.getlistDropByDic($('#order_source'), 'GDLY');
|
|
|
@@ -146,7 +151,61 @@ function orderSave() {
|
|
146
|
151
|
}
|
|
147
|
152
|
})
|
|
148
|
153
|
}
|
|
149
|
|
-
|
|
|
154
|
+
|
|
|
155
|
+initTable();
|
|
|
156
|
+function initTable() {
|
|
|
157
|
+ //先销毁表格
|
|
|
158
|
+ $('#list').bootstrapTable('destroy');
|
|
|
159
|
+ //初始化表格,动态从服务器加载数据
|
|
|
160
|
+ $("#list").bootstrapTable({
|
|
|
161
|
+ method: "get", //使用get请求到服务器获取数据
|
|
|
162
|
+ url: huayi.config.callcenter_url + "Callleave/GetList", //获取数据的Servlet地址
|
|
|
163
|
+ contentType: 'application/x-www-form-urlencoded',
|
|
|
164
|
+ striped: true, //表格显示条纹
|
|
|
165
|
+ pagination: true, //启动分页
|
|
|
166
|
+ pageSize: 10, //每页显示的记录数
|
|
|
167
|
+ pageNumber: 1, //当前第几页
|
|
|
168
|
+ pageList: [10, 20, 50, 100], //记录数可选列表
|
|
|
169
|
+ search: false, //是否启用查询
|
|
|
170
|
+ showColumns: false, //显示下拉框勾选要显示的列
|
|
|
171
|
+ showRefresh: false, //显示刷新按钮
|
|
|
172
|
+ sidePagination: "server", //表示服务端请求
|
|
|
173
|
+ //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
|
174
|
+ //设置为limit可以获取limit, offset, search, sort, order
|
|
|
175
|
+ queryParamsType: "undefined",
|
|
|
176
|
+ queryParams: function queryParams(params) { //设置查询参数
|
|
|
177
|
+ var param = {
|
|
|
178
|
+ page: params.pageNumber,
|
|
|
179
|
+ pagesize: params.pageSize,
|
|
|
180
|
+ // strtelnum: $("#strtelnum").val(),
|
|
|
181
|
+ // settime: $("#lysj").val(),
|
|
|
182
|
+ // removetime: $("#clsj").val(),
|
|
|
183
|
+ // status: $("#cljg").val(),
|
|
|
184
|
+ token: $.cookie("token")
|
|
|
185
|
+ };
|
|
|
186
|
+ return param;
|
|
|
187
|
+ },
|
|
|
188
|
+ onLoadSuccess: function() { //加载成功时执行
|
|
|
189
|
+ //layer.msg("加载成功");
|
|
|
190
|
+ },
|
|
|
191
|
+ onLoadError: function() { //加载失败时执行
|
|
|
192
|
+ //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
|
193
|
+ }
|
|
|
194
|
+ });
|
|
|
195
|
+ }
|
|
|
196
|
+ $(".setwin").click(function() {
|
|
|
197
|
+ $(".t-shade").removeClass("cx");
|
|
|
198
|
+ $('audio')[0].pause();
|
|
|
199
|
+ });
|
|
|
200
|
+ //录音
|
|
|
201
|
+ function ck(val) {
|
|
|
202
|
+ var path =cCustomerName;
|
|
|
203
|
+ $(".t-shade").addClass("cx");
|
|
|
204
|
+ $(".Ly_box").empty();
|
|
|
205
|
+ $(".LY_box").empty();
|
|
|
206
|
+ $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
|
|
|
207
|
+ $('<a href="' + path + '" class="sc_btn LY "download="' + path + '">下载录音</a>').appendTo(".LY_box");
|
|
|
208
|
+ }
|
|
150
|
209
|
|
|
151
|
210
|
//清空表单
|
|
152
|
211
|
function cleanOrderForm() {
|