|
|
|
@ -21,27 +21,33 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label class="col-sm-3 control-label">年龄:</label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
<input name="patientAge" th:field="*{patientAge}" 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="patientIdCard" th:field="*{patientIdCard}" class="form-control" type="text"> |
|
|
|
|
<input name="patientIdCard" th:field="*{patientIdCard}" class="form-control" type="text" maxlength="18"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label class="col-sm-3 control-label">备注:</label> |
|
|
|
|
<label class="col-sm-3 control-label">当天体温:</label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
<input name="description" th:field="*{description}" class="form-control" type="text"> |
|
|
|
|
<input name="temperature" th:field="*{temperature}" class="form-control" type="text"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label class="col-sm-3 control-label">最近感染地区:</label> |
|
|
|
|
<label class="col-sm-3 control-label">备注:</label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
<input name="currentLocation" th:field="*{currentLocation}" class="form-control" type="text"> |
|
|
|
|
<input name="description" th:field="*{description}" class="form-control" type="text"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label class="col-sm-3 control-label">当天体温:</label> |
|
|
|
|
<label class="col-sm-3 control-label">最近感染地区:</label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
<input name="temperature" th:field="*{temperature}" class="form-control" type="text"> |
|
|
|
|
<input name="currentLocation" th:field="*{currentLocation}" class="form-control" type="text"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
@ -53,27 +59,27 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group" style="display: flex"> |
|
|
|
|
<label class="col-sm-3 control-label">是否为密接人员:</label> |
|
|
|
|
<div class="col-sm-2"> |
|
|
|
|
<label class="toggle-switch switch-solid"> |
|
|
|
|
<input id="isTouch" th:field="*{temperature}" class="form-control" type="checkbox"> |
|
|
|
|
<span></span> |
|
|
|
|
</label> |
|
|
|
|
</div> |
|
|
|
|
<label class="col-sm-3 control-label">是否去过高风险地区:</label> |
|
|
|
|
<div class="col-sm-2"> |
|
|
|
|
<label class="toggle-switch switch-solid" th:field="*{temperature}" class="form-control" type="checkbox"> |
|
|
|
|
<input type="checkbox" id="isHigh"> |
|
|
|
|
<span></span> |
|
|
|
|
</label> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="form-group" style="display: flex">--> |
|
|
|
|
<!-- <label class="col-sm-3 control-label">是否为密接人员:</label>--> |
|
|
|
|
<!-- <div class="col-sm-2">--> |
|
|
|
|
<!-- <label class="toggle-switch switch-solid">--> |
|
|
|
|
<!-- <input id="isTouch" th:field="*{isTouch}" class="form-control" type="checkbox">--> |
|
|
|
|
<!-- <span></span>--> |
|
|
|
|
<!-- </label>--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- <label class="col-sm-3 control-label">是否去过高风险地区:</label>--> |
|
|
|
|
<!-- <div class="col-sm-2">--> |
|
|
|
|
<!-- <label class="toggle-switch switch-solid" th:field="*{isHigh}" class="form-control" type="checkbox">--> |
|
|
|
|
<!-- <input type="checkbox" id="isHigh">--> |
|
|
|
|
<!-- <span></span>--> |
|
|
|
|
<!-- </label>--> |
|
|
|
|
<!-- </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="isDiagnosed" class="form-control" placeholder="目前诊断症状" type="text"> |
|
|
|
|
<input name="isDiagnosed" class="form-control" placeholder="目前诊断症状" type="text" maxlength="1"> |
|
|
|
|
<span class="input-group-addon"><i class="fa fa-hospital-o"></i></span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -85,7 +91,34 @@
|
|
|
|
|
<script th:inline="javascript"> |
|
|
|
|
var prefix = ctx + "patient/patientManage"; |
|
|
|
|
$("#form-patientManage-edit").validate({ |
|
|
|
|
focusCleanup: true |
|
|
|
|
onkeyup: false, |
|
|
|
|
rules:{ |
|
|
|
|
patientName:{ |
|
|
|
|
isName:true, |
|
|
|
|
}, |
|
|
|
|
temperature:{ |
|
|
|
|
isTemperature:true |
|
|
|
|
}, |
|
|
|
|
patientIdCard:{ |
|
|
|
|
isIdentity18:true, |
|
|
|
|
remote: { |
|
|
|
|
url: prefix + "/checkPatientIdCardUnique", |
|
|
|
|
type: "post", |
|
|
|
|
dataType: "json", |
|
|
|
|
data: { |
|
|
|
|
"patientIdCard": function () { |
|
|
|
|
return $.common.trim($("#patientIdCard").val()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
messages: { |
|
|
|
|
"patientIdCard":{ |
|
|
|
|
remote: "身份证号码已经存在" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
focusCleanup: true |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function submitHandler() { |
|
|
|
|