You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
5.1 KiB
HTML
145 lines
5.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
<script src="js/jquery-1.12.4.min.js" crossorigin="anonymous"></script>
|
|
<link rel="stylesheet" href="css/bootstrap.min.css" crossorigin="anonymous">
|
|
<script src="js/bootstrap.min.js" crossorigin="anonymous"></script>
|
|
<script src="js/bootstrap-datetimepicker.min.js"></script>
|
|
<!-- <script src="js/jquery.freezeheader.js"></script> -->
|
|
<script src="js/jquery.jqprint-0.3.js"></script>
|
|
<script src="js/jquery-migrate-1.2.1.min.js"></script>
|
|
<script type="text/javascript" src="js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
|
<link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css">
|
|
</head>
|
|
<body>
|
|
|
|
<script>
|
|
//let BaseUrl='http://10.50.120.166/YiJiYuYue/Laravel/public'
|
|
let BaseUrl='http://YiJiYuYue-Common'
|
|
//获取url参数
|
|
function getParameterByName(name, url) {
|
|
if (!url) url = decodeURIComponent(window.location.href)
|
|
name = name.replace(/[\[\]]/g, '\\$&')
|
|
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
|
|
results = regex.exec(url)
|
|
if (!results) return null
|
|
if (!results[2]) return ''
|
|
return decodeURIComponent(results[2].replace(/\+/g, ' '))
|
|
}
|
|
function GetList(){
|
|
$('#table_entrust_list tbody').html('');
|
|
$('#loadingModal').modal('show');
|
|
$.post(BaseUrl+'/api/admin/GetPersonYuYueList', {
|
|
reg_num: getParameterByName('reg_num'),
|
|
}, function(data) {
|
|
$('#loadingModal').modal('hide');
|
|
if (data.status) {
|
|
if(data.data.list.length>0){
|
|
data.data.list.forEach(function(v, i) {
|
|
let zhuangtai =GetStatus(v.list_status)
|
|
$('#table_entrust_list tbody').append('<tr >\n' +
|
|
' <td>' + v.user_name + '</td>\n' +
|
|
' <td>' + v.user_phone + '</td>\n' +
|
|
' <td>' + v.reg_num + '</td>\n' +
|
|
' <td>' + v.reservation_department + '</td>\n' +
|
|
' <td>' + v.implement_department + '</td>\n' +
|
|
' <td>' + v.department_resources_name + '</td>\n' +
|
|
' <td>' + v.reservation_date+'</br>' +(v.period_begin_time==null?"":v.period_begin_time.substr(0, 5))+' - ' + (v.period_end_time==null?"":v.period_end_time.substr(0, 5)) +'</td>\n' +
|
|
' <td>' + v.entrust + '</td>\n' +
|
|
' <td>' + v.qudao_name + '</td>\n' +
|
|
' <td class='+zhuangtai[1]+'>' + zhuangtai[0] + '</td>\n' +
|
|
' </tr>')
|
|
})
|
|
}else{
|
|
$('#table_entrust_list tbody').append('<tr >\n' +
|
|
' <td colspan=6>' + '暂无数据' + '</td>\n'+
|
|
' </tr>')
|
|
}
|
|
|
|
$('#usedList').modal('show');
|
|
}else{
|
|
MsgAlert(data.msg)
|
|
}
|
|
})
|
|
}
|
|
function GetStatus(a){
|
|
switch(a) {
|
|
case 0:
|
|
return ["正在申请",""]
|
|
break;
|
|
case 1:
|
|
return ["已预约","yiyuyue"]
|
|
break;
|
|
case 2:
|
|
return ["已登记","yidengji"]
|
|
break;
|
|
case 3:
|
|
return ["完成","yiwancheng"]
|
|
break;
|
|
|
|
}
|
|
}
|
|
$(function(){
|
|
GetList()
|
|
$('#back_button').click(function(){
|
|
window.history.back();
|
|
})
|
|
})
|
|
</script>
|
|
<div style="padding: 0px 40px;">
|
|
<button type="button" id="back_button" class="btn btn-info" style="width: 130px;margin-bottom: 8px;margin-top: 8px;">返 回</button>
|
|
<table id="table_entrust_list" >
|
|
<thead>
|
|
<tr>
|
|
<th>姓名</th>
|
|
<th>电话</th>
|
|
<th>登记号</th>
|
|
<th>申请科室</th>
|
|
<th>预约科室</th>
|
|
<th>预约资源</th>
|
|
<th>预约时段</th>
|
|
<th>项目</th>
|
|
<th>渠道</th>
|
|
<th>状态</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<style>
|
|
table {
|
|
width: 100%;
|
|
color: #666;
|
|
|
|
}
|
|
thead{
|
|
background-color: #ebe9e9;
|
|
color: #999898;
|
|
}
|
|
table, td, th {
|
|
border: 1px solid #ccc;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
td ,th{
|
|
width: 100px ;
|
|
white-space: normal; /* 保留空白符序列,但是正常换行 */
|
|
word-break: break-all; /* 允许在单词内换行 */
|
|
height: 50px;
|
|
}
|
|
.yiyuyue{
|
|
color:#73cb87
|
|
}
|
|
.yidengji{
|
|
color:#cbb573
|
|
}
|
|
.yiwancheng{
|
|
color:#ef9365
|
|
}
|
|
</style>
|
|
</body>
|
|
</html>
|