loser
1 year ago
15 changed files with 354 additions and 16 deletions
@ -0,0 +1,96 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
||||||
|
<head> |
||||||
|
<th:block th:include="include :: header('死亡管理提交')" /> |
||||||
|
<th:block th:include="include :: datetimepicker-css" /> |
||||||
|
</head> |
||||||
|
<body class="white-bg"> |
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
||||||
|
<form class="form-horizontal m" id="form-patientCure-add" th:object="${patientManage}"> |
||||||
|
<input name="patientId" th:field="*{patientId}" type="hidden"> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">患者姓名:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="patientName" readonly="true" th:field="*{patientName}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="col-md-12"> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">性别:</label> |
||||||
|
<div class="col-sm-9"> |
||||||
|
<label class="radio-box"> |
||||||
|
<input type="radio" readonly="true" th:field="*{patientSex}" value="1" id="male" name="patientSex">男</label> |
||||||
|
<label class="radio-box"> |
||||||
|
<input type="radio" readonly="true" th:field="*{patientSex}" value="0" id="female" name="patientSex">女</label> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">年龄:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="patientAge" readonly="true" th:field="*{patientAge}" class="form-control" type="text" maxlength="4"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">患者身份证:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="patientIdCard" readonly="true" th:field="*{patientIdCard}" class="form-control" type="text" maxlength="18"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">当天体温:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="temperature" readonly="true" th:field="*{temperature}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">备注:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="description" readonly="true" th:field="*{description}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">最近感染地区:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="currentLocation" readonly="true" th:field="*{currentLocation}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">感染时间:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<div class="input-group date"> |
||||||
|
<input name="diagnosedTime" readonly="true" th:value="${#dates.format(patientManage.diagnosedTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
||||||
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<div class="col-sm-offset-5 col-sm-10"> |
||||||
|
<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button> |
||||||
|
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
<th:block th:include="include :: footer" /> |
||||||
|
<th:block th:include="include :: datetimepicker-js" /> |
||||||
|
<script th:inline="javascript"> |
||||||
|
var prefix = ctx + "patientDead/dead"; |
||||||
|
var urlParams = new URLSearchParams(window.location.search); |
||||||
|
var aId = urlParams.get("patientId"); |
||||||
|
|
||||||
|
function submitHandler() { |
||||||
|
if ($.validate.form()) { |
||||||
|
$.operate.save(prefix + "/add", $('#form-patientCure-add').serialize()); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
$("input[name='diagnosedTime']").datetimepicker({ |
||||||
|
format: "yyyy-mm-dd", |
||||||
|
minView: "month", |
||||||
|
autoclose: true |
||||||
|
}); |
||||||
|
</script> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,96 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
||||||
|
<head> |
||||||
|
<th:block th:include="include :: header('死亡管理提交')" /> |
||||||
|
<th:block th:include="include :: datetimepicker-css" /> |
||||||
|
</head> |
||||||
|
<body class="white-bg"> |
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
||||||
|
<form class="form-horizontal m" id="form-patientDead-add" th:object="${patientManage}"> |
||||||
|
<input name="patientId" th:field="*{patientId}" type="hidden"> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">患者姓名:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="patientName" readonly="true" th:field="*{patientName}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="col-md-12"> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">性别:</label> |
||||||
|
<div class="col-sm-9"> |
||||||
|
<label class="radio-box"> |
||||||
|
<input type="radio" readonly="true" th:field="*{patientSex}" value="1" id="male" name="patientSex">男</label> |
||||||
|
<label class="radio-box"> |
||||||
|
<input type="radio" readonly="true" th:field="*{patientSex}" value="0" id="female" name="patientSex">女</label> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">年龄:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="patientAge" readonly="true" th:field="*{patientAge}" class="form-control" type="text" maxlength="4"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">患者身份证:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="patientIdCard" readonly="true" th:field="*{patientIdCard}" class="form-control" type="text" maxlength="18"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">当天体温:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="temperature" readonly="true" th:field="*{temperature}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">备注:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="description" readonly="true" th:field="*{description}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">最近感染地区:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<input name="currentLocation" readonly="true" th:field="*{currentLocation}" class="form-control" type="text"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-3 control-label">感染时间:</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<div class="input-group date"> |
||||||
|
<input name="diagnosedTime" readonly="true" th:value="${#dates.format(patientManage.diagnosedTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
||||||
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<div class="col-sm-offset-5 col-sm-10"> |
||||||
|
<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button> |
||||||
|
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
<th:block th:include="include :: footer" /> |
||||||
|
<th:block th:include="include :: datetimepicker-js" /> |
||||||
|
<script th:inline="javascript"> |
||||||
|
var prefix = ctx + "patientDead/dead"; |
||||||
|
var id=document.getElementById("patientId").id; |
||||||
|
alert() |
||||||
|
function submitHandler() { |
||||||
|
// if ($.validate.form()) { |
||||||
|
// $.operate.save(prefix + "/add", $('#form-patientDead-add').serialize()); |
||||||
|
// } |
||||||
|
alert(id) |
||||||
|
} |
||||||
|
|
||||||
|
$("input[name='diagnosedTime']").datetimepicker({ |
||||||
|
format: "yyyy-mm-dd", |
||||||
|
minView: "month", |
||||||
|
autoclose: true |
||||||
|
}); |
||||||
|
</script> |
||||||
|
</body> |
||||||
|
</html> |
Loading…
Reference in new issue