Bladeren bron

问题修改

yangjunfeng 4 jaren geleden
bovenliggende
commit
0fb78b3ee0
1 gewijzigde bestanden met toevoegingen van 141 en 97 verwijderingen
  1. 141 97
      WebUI/CallCenterWeb.UI/accessManagement/js/afterDischarge.js

+ 141 - 97
WebUI/CallCenterWeb.UI/accessManagement/js/afterDischarge.js

@@ -1,11 +1,11 @@
1 1
 var f_State = '住院患者'
2
-var $tableLeft=''
2
+var $tableLeft = ''
3 3
 $(function() {
4 4
 	getdept()
5 5
 	initTable()
6 6
 	var t, n, count = 0;
7 7
 
8
-	t = setInterval("showAuto()", 1000*60);
8
+	t = setInterval("showAuto()", 1000 * 60);
9 9
 	$("#sc_btns").click(function() {
10 10
 		initTable()
11 11
 	})
@@ -20,7 +20,7 @@ $(function() {
20 20
 		$(this).addClass('tab_head_active').siblings().removeClass('tab_head_active');
21 21
 		state = $(this).attr('data-index');
22 22
 		f_State = state
23
-	
23
+
24 24
 		initTable();
25 25
 	})
26 26
 })
@@ -59,7 +59,7 @@ function getdept() {
59 59
 }
60 60
 
61 61
 function initTable() {
62
-	 $tableLeft = $('#table_all');
62
+	$tableLeft = $('#table_all');
63 63
 	$tableLeft.bootstrapTable('destroy');
64 64
 	//先销毁表格
65 65
 	$tableLeft.bootstrapTable({
@@ -85,7 +85,7 @@ function initTable() {
85 85
 			var param = {
86 86
 				PageIndex: params.pageNumber,
87 87
 				PageSize: params.pageSize,
88
-				iszyormz:f_State,
88
+				iszyormz: f_State,
89 89
 				key: $("#key").val(),
90 90
 				yqinfo: $("#projectid").val(),
91 91
 				sendmydcent: $("#myd").val(),
@@ -95,95 +95,132 @@ function initTable() {
95 95
 			};
96 96
 			return param;
97 97
 		},
98
-		onPostBody:function () {
99
-		       //console.log("行数据渲染完成!");
100
-		       var totalPages = $tableLeft.bootstrapTable("getOptions").totalPages;
101
-		       var pageNumber = $tableLeft.bootstrapTable("getOptions").pageNumber;
102
-		       var goInputWidth = 45;//输入框默认宽度
103
-		       var maxLen = (""+totalPages).length;
104
-		       //根据总页数设定跳转页面输入框宽度
105
-		       if (totalPages>999)
106
-		       	goInputWidth = maxLen*10+15;
107
-		       var $pageGo = $('<span style="padding-left: 5px;">跳转到<input type="number" maxlength="'
108
-		           + maxLen+ '" min="1" max="' + totalPages 
109
-		           + '" class="input-box" id="c_jump-to-page" value="'
110
-		           + pageNumber+ '" style="width: '+goInputWidth+'px;" />/'
111
-		           + totalPages+'页&nbsp;</span>');
112
-		       var $go = $("<a href=\"javascript:;\">Go</a>");
113
-			  var $shou=$("<a href=\"javascript:;\">首页</a>")
114
-			  var $wei=$("<a href=\"javascript:;\">尾页</a>")
115
-			  $pageGo.append($go);
116
-			  $pageGo.append($shou);
117
-			  $pageGo.append($wei);
118
-		       $(".pagination-detail").append($pageGo);
119
-		       //页码范围限定(部分浏览器min~max失效时)
120
-		       $pageGo.change(function () {
121
-		           var goPage = $('#c_jump-to-page').val();
122
-		           if (goPage<1)
123
-		           	$('#c_jump-to-page').val(1);
124
-		           if (goPage>totalPages)
125
-		           	$('#c_jump-to-page').val(totalPages);
126
-		       });
127
-		       //跳转到
128
-		       $go.click(function () {
129
-		           var goPage = parseInt($('#c_jump-to-page').val());
130
-				   console.log(totalPages)
131
-		           if (goPage!=pageNumber)
132
-		           	$tableLeft.bootstrapTable('selectPage', parseInt(goPage));
133
-		       });
134
-			   $shou.click(function () {
135
-			       
136
-			       		$tableLeft.bootstrapTable('selectPage',1);
137
-			   });
138
-			   $wei.click(function () {
139
-			       
140
-			       		$tableLeft.bootstrapTable('selectPage', totalPages);
141
-			   });
142
-		   },
98
+		onPostBody: function() {
99
+			//console.log("行数据渲染完成!");
100
+			var totalPages = $tableLeft.bootstrapTable("getOptions").totalPages;
101
+			var pageNumber = $tableLeft.bootstrapTable("getOptions").pageNumber;
102
+			var goInputWidth = 45; //输入框默认宽度
103
+			var maxLen = ("" + totalPages).length;
104
+			//根据总页数设定跳转页面输入框宽度
105
+			if (totalPages > 999)
106
+				goInputWidth = maxLen * 10 + 15;
107
+			var $pageGo = $('<span style="padding-left: 5px;">跳转到<input type="number" maxlength="' +
108
+				maxLen + '" min="1" max="' + totalPages +
109
+				'" class="input-box" id="c_jump-to-page" value="' +
110
+				pageNumber + '" style="width: ' + goInputWidth + 'px;" />/' +
111
+				totalPages + '页&nbsp;</span>');
112
+			var $go = $("<a href=\"javascript:;\">Go</a>");
113
+			var $shou = $("<a href=\"javascript:;\">首页</a>")
114
+			var $wei = $("<a href=\"javascript:;\">尾页</a>")
115
+			$pageGo.append($go);
116
+			$pageGo.append($shou);
117
+			$pageGo.append($wei);
118
+			$(".pagination-detail").append($pageGo);
119
+			//页码范围限定(部分浏览器min~max失效时)
120
+			$pageGo.change(function() {
121
+				var goPage = $('#c_jump-to-page').val();
122
+				if (goPage < 1)
123
+					$('#c_jump-to-page').val(1);
124
+				if (goPage > totalPages)
125
+					$('#c_jump-to-page').val(totalPages);
126
+			});
127
+			//跳转到
128
+			$go.click(function() {
129
+				var goPage = parseInt($('#c_jump-to-page').val());
130
+				console.log(totalPages)
131
+				if (goPage != pageNumber)
132
+					$tableLeft.bootstrapTable('selectPage', parseInt(goPage));
133
+			});
134
+			$shou.click(function() {
135
+
136
+				$tableLeft.bootstrapTable('selectPage', 1);
137
+			});
138
+			$wei.click(function() {
139
+
140
+				$tableLeft.bootstrapTable('selectPage', totalPages);
141
+			});
142
+		},
143 143
 		onLoadSuccess: function(data) { //加载成功时执行
144
-		//判断 住院患者和门诊患者展示信息
145
-		if (f_State == '住院患者') {
146
-		$tableLeft.bootstrapTable('showColumn', 'ZY_NO');//显示
147
-		// $tableLeft.bootstrapTable('showColumn', 'NAME');//显示
148
-		// $tableLeft.bootstrapTable('showColumn', 'SEX');//显示
149
-		// $tableLeft.bootstrapTable('showColumn', 'PAT_PHONE');//显示
150
-		$tableLeft.bootstrapTable('showColumn', 'ZY_AGE');//显示
151
-		$tableLeft.bootstrapTable('showColumn', 'CY_ZD');//显示
152
-		$tableLeft.bootstrapTable('showColumn', 'CY_DEPT_NAME');//显示
153
-		$tableLeft.bootstrapTable('showColumn', 'CY_DATE');//显示
154
-		$tableLeft.bootstrapTable('showColumn', 'ZY_DEPT_NAME');//显示
155
-		// $tableLeft.bootstrapTable('hideColumn', 'chinic_no');//隐藏上述variablevalue列
156
-		// $tableLeft.bootstrapTable('hideColumn', 'patient_name');//隐藏上述variablevalue列
157
-		// $tableLeft.bootstrapTable('hideColumn', 'sex');//隐藏上述variablevalue列
158
-		// $tableLeft.bootstrapTable('hideColumn', 'phone');//隐藏上述variablevalue列
159
-		$tableLeft.bootstrapTable('hideColumn', 'JB_NAME');//隐藏上述variablevalue列
160
-		$tableLeft.bootstrapTable('hideColumn', 'mzjzdeptname');//隐藏上述variablevalue列
161
-		$tableLeft.bootstrapTable('hideColumn', 'mzjztime');//隐藏上述variablevalue列
162
-		$tableLeft.bootstrapTable('hideColumn', 'ZZ_DOC');//隐藏上述variablevalue列
163
-		} else {
164
-			$tableLeft.bootstrapTable('hideColumn', 'ZY_AGE');//隐藏上述variablevalue列
165
-			$tableLeft.bootstrapTable('hideColumn', 'ZY_NO');//隐藏上述variablevalue列
166
-			// $tableLeft.bootstrapTable('hideColumn', 'NAME');//隐藏上述variablevalue列
167
-			// $tableLeft.bootstrapTable('hideColumn', 'SEX');//隐藏上述variablevalue列
168
-			// $tableLeft.bootstrapTable('hideColumn', 'PAT_PHONE');//隐藏上述variablevalue列
169
-			$tableLeft.bootstrapTable('hideColumn', 'CY_ZD');//隐藏上述variablevalue列
170
-			$tableLeft.bootstrapTable('hideColumn', 'CY_DEPT_NAME');//隐藏上述variablevalue列
171
-			$tableLeft.bootstrapTable('hideColumn', 'CY_DATE');//隐藏上述variablevalue列
172
-			$tableLeft.bootstrapTable('hideColumn', 'ZY_DEPT_NAME');//隐藏上述variablevalue列
173
-			// $tableLeft.bootstrapTable('showColumn', 'chinic_no');// 显示
174
-			// $tableLeft.bootstrapTable('showColumn', 'patient_name');// 显示
175
-			// $tableLeft.bootstrapTable('showColumn', 'sex');// 显示
176
-			// $tableLeft.bootstrapTable('showColumn', 'phone');// 显示
177
-			$tableLeft.bootstrapTable('showColumn', 'JB_NAME');// 显示
178
-			$tableLeft.bootstrapTable('showColumn', 'mzjzdeptname');// 显示
179
-			$tableLeft.bootstrapTable('showColumn', 'mzjztime');// 显示
180
-			$tableLeft.bootstrapTable('showColumn', 'ZZ_DOC');// 显示
181
-		}
144
+			//判断 住院患者和门诊患者展示信息
145
+			if (f_State == '住院患者') {
146
+				$tableLeft.bootstrapTable('showColumn', 'ZY_NO'); //显示
147
+				// $tableLeft.bootstrapTable('showColumn', 'NAME');//显示
148
+				// $tableLeft.bootstrapTable('showColumn', 'SEX');//显示
149
+				// $tableLeft.bootstrapTable('showColumn', 'PAT_PHONE');//显示
150
+				$tableLeft.bootstrapTable('showColumn', 'ZY_AGE'); //显示
151
+				$tableLeft.bootstrapTable('showColumn', 'CY_ZD'); //显示
152
+				$tableLeft.bootstrapTable('showColumn', 'CY_DEPT_NAME'); //显示
153
+				$tableLeft.bootstrapTable('showColumn', 'CY_DATE'); //显示
154
+				$tableLeft.bootstrapTable('showColumn', 'ZY_DEPT_NAME'); //显示
155
+				// $tableLeft.bootstrapTable('hideColumn', 'chinic_no');//隐藏上述variablevalue列
156
+				// $tableLeft.bootstrapTable('hideColumn', 'patient_name');//隐藏上述variablevalue列
157
+				// $tableLeft.bootstrapTable('hideColumn', 'sex');//隐藏上述variablevalue列
158
+				// $tableLeft.bootstrapTable('hideColumn', 'phone');//隐藏上述variablevalue列
159
+				$tableLeft.bootstrapTable('hideColumn', 'JB_NAME'); //隐藏上述variablevalue列
160
+				$tableLeft.bootstrapTable('hideColumn', 'mzjzdeptname'); //隐藏上述variablevalue列
161
+				$tableLeft.bootstrapTable('hideColumn', 'mzjztime'); //隐藏上述variablevalue列
162
+				$tableLeft.bootstrapTable('hideColumn', 'ZZ_DOC'); //隐藏上述variablevalue列
163
+			} else {
164
+				$tableLeft.bootstrapTable('hideColumn', 'ZY_AGE'); //隐藏上述variablevalue列
165
+				$tableLeft.bootstrapTable('hideColumn', 'ZY_NO'); //隐藏上述variablevalue列
166
+				// $tableLeft.bootstrapTable('hideColumn', 'NAME');//隐藏上述variablevalue列
167
+				// $tableLeft.bootstrapTable('hideColumn', 'SEX');//隐藏上述variablevalue列
168
+				// $tableLeft.bootstrapTable('hideColumn', 'PAT_PHONE');//隐藏上述variablevalue列
169
+				$tableLeft.bootstrapTable('hideColumn', 'CY_ZD'); //隐藏上述variablevalue列
170
+				$tableLeft.bootstrapTable('hideColumn', 'CY_DEPT_NAME'); //隐藏上述variablevalue列
171
+				$tableLeft.bootstrapTable('hideColumn', 'CY_DATE'); //隐藏上述variablevalue列
172
+				$tableLeft.bootstrapTable('hideColumn', 'ZY_DEPT_NAME'); //隐藏上述variablevalue列
173
+				// $tableLeft.bootstrapTable('showColumn', 'chinic_no');// 显示
174
+				// $tableLeft.bootstrapTable('showColumn', 'patient_name');// 显示
175
+				// $tableLeft.bootstrapTable('showColumn', 'sex');// 显示
176
+				// $tableLeft.bootstrapTable('showColumn', 'phone');// 显示
177
+				$tableLeft.bootstrapTable('showColumn', 'JB_NAME'); // 显示
178
+				$tableLeft.bootstrapTable('showColumn', 'mzjzdeptname'); // 显示
179
+				$tableLeft.bootstrapTable('showColumn', 'mzjztime'); // 显示
180
+				$tableLeft.bootstrapTable('showColumn', 'ZZ_DOC'); // 显示
181
+			}
182 182
 			var newDataL = {};
183 183
 			newDataL.state = data.state;
184 184
 			newDataL.message = data.message;
185
-			newDataL.rows = data.data.rows;
186
-			newDataL.total = data.data.total;
185
+			var list = [{
186
+				CY_DATE: "2021-04-18 00:00:00",
187
+				CY_DEPT_NAME: "神经康复科病区",
188
+				CY_ZD: "脑梗死",
189
+				DIA_NAME: "主要诊断",
190
+				DIRECTOR: "李薇",
191
+				IS_OP: 0,
192
+				JB_NAME: "脑梗死",
193
+				JOB: "农民",
194
+				JZ_DOC: "蔡华胄",
195
+				NAME: "靳全德",
196
+				NURSE_IN_CHARGE: null,
197
+				OUT_OR_IN: "OUT",
198
+				PAT_PHONE: "13783629286",
199
+				RY_DATE: "2021-04-10",
200
+				SEX: "男",
201
+				ZY_AGE: 56,
202
+				ZY_DAYS: "8",
203
+				ZY_DEPT_NAME: "神经康复科病区",
204
+				ZY_NO: "8181486",
205
+				ZY_TIMES: 2,
206
+				ZZ_DOC: "王觅",
207
+				id: "608265ff19263835a74d1516",
208
+				isdelete: 0,
209
+				iszyormz: "住院患者",
210
+				mzjzdeptname: null,
211
+				mzjztime: "0001-01-01 00:00:00",
212
+				nomybecause: "",
213
+				replaycenters: "",
214
+				replaytime: null,
215
+				sendcenters: "您好 !感谢您对我们医院的信任与支持,请对本次住院的服务质量给予评价1 满意;2表扬;3 不满意,回复数字即可。谢谢!顺祝生活愉快【郑州市第一人民医院】",
216
+				senddate: "2021-04-23 14:15:27",
217
+				sendmyeds: "",
218
+				statesissuccess: "成功",
219
+			}]
220
+			newDataL.rows = list;
221
+			// newDataL.rows = data.data.rows;
222
+			// newDataL.total = data.data.total;
223
+			newDataL.total = 1;
187 224
 			$tableLeft.bootstrapTable('load', newDataL);
188 225
 			$('.tool_downs').authorizeOperateButton();
189 226
 		},
@@ -216,31 +253,37 @@ function projectName() {
216 253
 
217 254
 //格式化操作
218 255
 function formatterOperate(val, row) {
219
-	if(f_State=="门诊患者"){
256
+	if (f_State == "门诊患者") {
220 257
 		{
221 258
 			var str = '<ul class="tool_downs">' +
222 259
 				'<li><a class="aBtn" authorize="yes" id="HY_discharge_' + row.id + '" onclick="btn_myd(\'' + row.id +
223 260
 				'\')">满意度</a><li>' +
224 261
 				'<li><a class="aBtn" authorize="yes" id="HY_remarks_' + row.id + '" onclick="btn_remark(\'' + row.id +
225
-				'\')">备注</a><li>' 
262
+				'\')">备注</a><li>'
226 263
 			'</ul>';
227 264
 			return str
228 265
 		}
229
-	}else{
266
+	} else {
230 267
 		{
231 268
 			var str = '<ul class="tool_downs">' +
232 269
 				'<li><a class="aBtn" authorize="yes" id="HY_discharge_' + row.id + '" onclick="btn_myd(\'' + row.id +
233 270
 				'\')">满意度</a><li>' +
234 271
 				'<li><a class="aBtn" authorize="yes" id="HY_remarks_' + row.id + '" onclick="btn_remark(\'' + row.id +
235 272
 				'\')">备注</a><li>' +
236
-				'<li id="detail"><a class="aBtn" authorize="yes" id="HY_detail_' + row.id + '" onclick="btn_detail(\'' + row.id +
273
+				'<li id="detail"><a class="aBtn" authorize="yes" id="HY_detail_' + row.id + '" onclick="btn_detail(\'' +
274
+				row.id +
237 275
 				'\')">详情</a><li>'
238 276
 			'</ul>';
239 277
 			return str
240 278
 		}
241 279
 	}
242
-	
280
+
243 281
 }
282
+// // 外呼  
283
+// function callout(val, row) {
284
+//     var str='<div>'+ val+'<img src="./img/extensionnumber_icons.png" style="width:15px;height:15px;display:block" />'+ '</div>'
285
+// 	return str
286
+// }
244 287
 
245 288
 function btn_myd(sendmyeds) {
246 289
 	layer.open({
@@ -301,13 +344,14 @@ $("#HY_export").click(function() {
301 344
 
302 345
 	var sendmydcent = $('#myd').val() //满意度
303 346
 	var deptname = $('#deptname').val() //科室名称
304
-    var iszyormz =f_State
347
+	var iszyormz = f_State
305 348
 	var stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0] //开始时间
306 349
 	var etime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1] //结束时间
307 350
 
308 351
 
309 352
 	window.location.href = huayi.config.callcenter_url + "testusertypeapi/api/Test/exportexcel?sendmydcent=" +
310
-		sendmydcent + "&stime=" + stime + "&etime=" + etime + "+&key=" + key + "&deptname=" + deptname + "&yqinfo=" +
353
+		sendmydcent + "&stime=" + stime + "&etime=" + etime + "+&key=" + key + "&deptname=" + deptname +
354
+		"&yqinfo=" +
311 355
 		yqinfo + "&iszyormz=" +
312 356
 		iszyormz
313 357