|
|
@@ -51,6 +51,7 @@
|
|
51
|
51
|
|
|
52
|
52
|
<div class="pull-right">
|
|
53
|
53
|
<button class="btns" id="sc_btns">搜索</button>
|
|
|
54
|
+ <a class="btns" onclick="dcexcel(this)">导出</a>
|
|
54
|
55
|
</div>
|
|
55
|
56
|
</div>
|
|
56
|
57
|
|
|
|
@@ -62,7 +63,7 @@
|
|
62
|
63
|
<th data-field="Sex" data-align="center">性别</th>
|
|
63
|
64
|
<th data-field="Age" data-align="center">年龄</th>
|
|
64
|
65
|
<th data-field="Address" data-align="center">家庭地址</th>
|
|
65
|
|
- <th data-field="Tel" data-align="center">联系方式</th>
|
|
|
66
|
+ <th data-field="Tel" data-align="center" data-formatter="formatterTel">联系方式</th>
|
|
66
|
67
|
<th data-field="Admloc" data-align="center">就诊科室</th>
|
|
67
|
68
|
<th data-field="Admdoc" data-align="center">就诊医生</th>
|
|
68
|
69
|
<th data-field="DinoseT" data-align="center">就诊内容</th>
|
|
|
@@ -112,6 +113,60 @@
|
|
112
|
113
|
initTableLogs();
|
|
113
|
114
|
}
|
|
114
|
115
|
|
|
|
116
|
+ function formatterTel(val, row) {
|
|
|
117
|
+ if(row.Name == ' ') {
|
|
|
118
|
+ row.Name = ''
|
|
|
119
|
+ }
|
|
|
120
|
+ if(row.Tel == ' ') {
|
|
|
121
|
+ row.Tel = ''
|
|
|
122
|
+ }
|
|
|
123
|
+ if(row.Age == ' ') {
|
|
|
124
|
+ row.Age = ''
|
|
|
125
|
+ }
|
|
|
126
|
+ if(row.Sex == ' ') {
|
|
|
127
|
+ row.Sex = ''
|
|
|
128
|
+ }
|
|
|
129
|
+ if(row.Address == ' ') {
|
|
|
130
|
+ row.Address = ''
|
|
|
131
|
+ }
|
|
|
132
|
+ if(row.Admloc == ' ') {
|
|
|
133
|
+ row.Admloc = ''
|
|
|
134
|
+ }
|
|
|
135
|
+ if(row.DinoseT == ' ') {
|
|
|
136
|
+ row.DinoseT = ''
|
|
|
137
|
+ }
|
|
|
138
|
+ console.log(row.DinoseT)
|
|
|
139
|
+ console.log(row.Name)
|
|
|
140
|
+ return '<div class="imgs" ><a class="xg" onclick= "btn_visit(\'' + row.EpisodID + '\',\'' + row.Name + '\',\'' + row.Tel +
|
|
|
141
|
+ '\',\'' + row.Age + '\',\'' + row.Sex + '\',\'' + row.Address + '\',\'' + row.Admloc + '\',\'' + row.Admdoc + '\',\'' + row.DinoseT + '\')" >' + val + '</a></div>';
|
|
|
142
|
+ }
|
|
|
143
|
+
|
|
|
144
|
+ function btn_visit(oid, Name, Tel, Age, Sex, Address, Admloc, Admdoc, DinoseT) {
|
|
|
145
|
+ console.log(Name)
|
|
|
146
|
+ let stime = $('#sc_time').val() && $('#sc_time').val().split(' ~ ')[0]
|
|
|
147
|
+ let etime = $('#sc_time').val() && $('#sc_time').val().split(' ~ ')[1]
|
|
|
148
|
+ layer.open({
|
|
|
149
|
+ type: 2,
|
|
|
150
|
+ title: '回访信息',
|
|
|
151
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
152
|
+ shade: 0,
|
|
|
153
|
+ area: ['80%', '90%'],
|
|
|
154
|
+ content: '../commonTpl/LookHZYFMessage.html?oid=' + oid + '&stime=' + stime + '&etime=' + etime + '&Name=' + Name + '&Tel=' + Tel + '&Age=' + Age + '&Sex=' + Sex + '&Address=' + Address + '&Admloc=' + Admloc + '&Admdoc=' + Admdoc + '&DinoseT=' + DinoseT
|
|
|
155
|
+ });
|
|
|
156
|
+ }
|
|
|
157
|
+
|
|
|
158
|
+ function dcexcel(obj) {
|
|
|
159
|
+ console.log(1)
|
|
|
160
|
+ var url = huayi.config.callcenter_url + "CustomerNew/ReturnVisitRecordListS?token=" + $.cookie("token");
|
|
|
161
|
+ url += "&isexport=" + 1;
|
|
|
162
|
+ url += "&dinoseT=" + $('#dinoseT').val();
|
|
|
163
|
+ url += "&callresult=" + $("#callresult").val();
|
|
|
164
|
+ url += "&admloc=" + $("#department").val();
|
|
|
165
|
+ url += "&starttime=" + ($('#sc_time').val() && $('#sc_time').val().split(' ~ ')[0]);
|
|
|
166
|
+ url += "&endtime=" + ($('#sc_time').val() && $('#sc_time').val().split(' ~ ')[1]);
|
|
|
167
|
+ obj.href = url;
|
|
|
168
|
+ }
|
|
|
169
|
+
|
|
115
|
170
|
function initTableLogs() {
|
|
116
|
171
|
//先销毁表格
|
|
117
|
172
|
$('#visitlist').bootstrapTable('destroy');
|
|
|
@@ -136,8 +191,8 @@
|
|
136
|
191
|
var param = {
|
|
137
|
192
|
PageIndex: params.pageNumber, //否 int 当前页
|
|
138
|
193
|
PageSize: params.pageSize, //否 int 每页数
|
|
139
|
|
- dinoseT:$('#dinoseT').val(),
|
|
140
|
|
- callresult:$('#callresult').val(),
|
|
|
194
|
+ dinoseT: $('#dinoseT').val(),
|
|
|
195
|
+ callresult: $('#callresult').val(),
|
|
141
|
196
|
admloc: $('#department').val(), //否 string 模糊搜索(
|
|
142
|
197
|
starttime: $('#sc_time').val() && $('#sc_time').val().split(' ~ ')[0], //否 string 工单起止时间
|
|
143
|
198
|
endtime: $('#sc_time').val() && $('#sc_time').val().split(' ~ ')[1], //否 string 工单起止时间
|