|
@@ -46,13 +46,13 @@
|
|
<input name="age1" placeholder="年龄" id="age1" readonly class="styled-input" type="text" th:value="${age}">
|
|
<input name="age1" placeholder="年龄" id="age1" readonly class="styled-input" type="text" th:value="${age}">
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
- <label>医院:</label>
|
|
|
|
|
|
+ <label class="is-required">医院:</label>
|
|
<select id="hospital-select" name="hospital" class="styled-input select2-multiple" placeholder="请选择或输入搜索">
|
|
<select id="hospital-select" name="hospital" class="styled-input select2-multiple" placeholder="请选择或输入搜索">
|
|
<option value="">请选择医院</option>
|
|
<option value="">请选择医院</option>
|
|
</select>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
- <label>处方医生:</label>
|
|
|
|
|
|
+ <label class="is-required">处方医生:</label>
|
|
<input name="prescribingDoctor" id="prescribingDoctor" placeholder="处方医生" class="styled-input" type="text">
|
|
<input name="prescribingDoctor" id="prescribingDoctor" placeholder="处方医生" class="styled-input" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
@@ -64,7 +64,7 @@
|
|
<input name="prescriptionDiagnosis" id="prescriptionDiagnosis" placeholder="处方诊断" class="styled-input" type="text">
|
|
<input name="prescriptionDiagnosis" id="prescriptionDiagnosis" placeholder="处方诊断" class="styled-input" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
- <label class="is-required">主管医生:</label>
|
|
|
|
|
|
+ <label>主管医生:</label>
|
|
<input name="attendingDoctor" id="attendingDoctor" placeholder="主管医生" class="styled-input" type="text">
|
|
<input name="attendingDoctor" id="attendingDoctor" placeholder="主管医生" class="styled-input" type="text">
|
|
</div>
|
|
</div>
|
|
<!-- <div class="customize-form-group">-->
|
|
<!-- <div class="customize-form-group">-->
|
|
@@ -76,7 +76,7 @@
|
|
<input name="prescriptionImageUrl" id="prescriptionImageUrl" placeholder="处方图片" class="styled-input" type="text">
|
|
<input name="prescriptionImageUrl" id="prescriptionImageUrl" placeholder="处方图片" class="styled-input" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group select-time">
|
|
<div class="customize-form-group select-time">
|
|
- <label>处方开具日期:</label>
|
|
|
|
|
|
+ <label class="is-required">处方开具日期:</label>
|
|
<input name="prescriptionIssueDate" id="prescriptionIssueDate" placeholder="处方开具日期" class="time-input time-input2" type="text">
|
|
<input name="prescriptionIssueDate" id="prescriptionIssueDate" placeholder="处方开具日期" class="time-input time-input2" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
@@ -90,11 +90,11 @@
|
|
|
|
|
|
|
|
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
- <label class="is-required">登记药师姓名:</label>
|
|
|
|
|
|
+ <label>登记药师姓名:</label>
|
|
<input name="registerPharmacistName" id="registerPharmacistName" placeholder="登记药师姓名" class="styled-input" type="text">
|
|
<input name="registerPharmacistName" id="registerPharmacistName" placeholder="登记药师姓名" class="styled-input" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
- <label class="is-required">登记人:</label>
|
|
|
|
|
|
+ <label>登记人:</label>
|
|
<input name="registrant" id="registrant" placeholder="登记人" class="styled-input" type="text">
|
|
<input name="registrant" id="registrant" placeholder="登记人" class="styled-input" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
@@ -515,7 +515,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- var reviewingName = $('#reviewingName').val().trim();
|
|
|
|
|
|
+ var reviewingName = $('#reviewingName').val();
|
|
if($.common.isNotEmpty(reviewingName)){
|
|
if($.common.isNotEmpty(reviewingName)){
|
|
reviewFlag=true;
|
|
reviewFlag=true;
|
|
$('#openCheckYSSid').hide();
|
|
$('#openCheckYSSid').hide();
|
|
@@ -537,11 +537,11 @@
|
|
debugger;
|
|
debugger;
|
|
console.log("valuegender1====="+value);
|
|
console.log("valuegender1====="+value);
|
|
switch (value) {
|
|
switch (value) {
|
|
- case '0':
|
|
|
|
- $('#gender1').val('男');
|
|
|
|
|
|
+ case 0:
|
|
|
|
+ $('#gender1').val(value);
|
|
break;
|
|
break;
|
|
- case '1':
|
|
|
|
- $('#gender1').val('女');
|
|
|
|
|
|
+ case 1:
|
|
|
|
+ $('#gender1').val(value);
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
$('#gender1').val('未知');
|
|
$('#gender1').val('未知');
|
|
@@ -568,6 +568,7 @@
|
|
console.log("操作失败");
|
|
console.log("操作失败");
|
|
},
|
|
},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
|
|
+ debugger;
|
|
console.log("检查患者是否存在data====="+data);
|
|
console.log("检查患者是否存在data====="+data);
|
|
if(data.code==0){
|
|
if(data.code==0){
|
|
patientFlag = true;
|
|
patientFlag = true;
|
|
@@ -578,6 +579,7 @@
|
|
//性别格式化
|
|
//性别格式化
|
|
console.log("gender====="+gender);
|
|
console.log("gender====="+gender);
|
|
formatGender(gender);
|
|
formatGender(gender);
|
|
|
|
+ $('#gender1').val(data.data.gender);
|
|
$('#age1').val(data.data.age);
|
|
$('#age1').val(data.data.age);
|
|
$('#patientPhone').val(data.data.phoneNumber);
|
|
$('#patientPhone').val(data.data.phoneNumber);
|
|
$('#patientName').val(data.data.name);
|
|
$('#patientName').val(data.data.name);
|
|
@@ -722,20 +724,29 @@
|
|
// 快速建档
|
|
// 快速建档
|
|
bookbuilding();
|
|
bookbuilding();
|
|
});
|
|
});
|
|
-
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
// 创建一个 FormData 对象用于提交表单数据
|
|
// 创建一个 FormData 对象用于提交表单数据
|
|
var formData = new FormData();
|
|
var formData = new FormData();
|
|
- var prescribingDoctor = $('#prescribingDoctor').val();
|
|
|
|
- if (prescribingDoctor == '' || prescribingDoctor == null || prescribingDoctor == undefined) {
|
|
|
|
- $.modal.alertError("请输入处方医生");
|
|
|
|
- return;
|
|
|
|
|
|
+ var hospital = $("#dtp-form-newcfxx").serializeArray().find(item => item.name === 'hospital');
|
|
|
|
+ if (hospital.value === '') {
|
|
|
|
+ $.modal.alertWarning("请选择请选择医院!");
|
|
|
|
+ return null;
|
|
}
|
|
}
|
|
- var prescriptionIssueDate = $('#prescriptionIssueDate').val();
|
|
|
|
- if (prescriptionIssueDate == '' || prescriptionIssueDate == null || prescriptionIssueDate == undefined) {
|
|
|
|
- $.modal.alertError("处方开具日期");
|
|
|
|
- return;
|
|
|
|
|
|
+ var prescribingDoctor = $("#dtp-form-newcfxx").serializeArray().find(item => item.name === 'prescribingDoctor');
|
|
|
|
+ if (prescribingDoctor.value === '') {
|
|
|
|
+ $.modal.alertWarning("请输入处方医生!");
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+ var prescriptionDiagnosis = $("#dtp-form-newcfxx").serializeArray().find(item => item.name === 'prescriptionDiagnosis');
|
|
|
|
+ if (prescriptionDiagnosis.value === '') {
|
|
|
|
+ $.modal.alertWarning("请填写处方诊断!");
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+ var prescriptionIssueDate = $("#dtp-form-newcfxx").serializeArray().find(item => item.name === 'prescriptionIssueDate');
|
|
|
|
+ if (prescriptionIssueDate.value === '') {
|
|
|
|
+ $.modal.alertWarning("请选择处方开具日期!");
|
|
|
|
+ return null;
|
|
}
|
|
}
|
|
// 收集表单中的其他字段,并将其添加到 FormData 中
|
|
// 收集表单中的其他字段,并将其添加到 FormData 中
|
|
$('#dtp-form-newcfxx').find(':input').each(function () {
|
|
$('#dtp-form-newcfxx').find(':input').each(function () {
|
|
@@ -786,17 +797,17 @@
|
|
$('#drugInfoTable tbody tr').each(function (index, row) {
|
|
$('#drugInfoTable tbody tr').each(function (index, row) {
|
|
var rowData = {
|
|
var rowData = {
|
|
productId: $(row).data('product-id'),
|
|
productId: $(row).data('product-id'),
|
|
- mdmCode: $(row).find('td:eq(1)').text().trim(),
|
|
|
|
- productName: $(row).find('td:eq(2)').text().trim(),
|
|
|
|
- genericName: $(row).find('td:eq(3)').text().trim(),
|
|
|
|
- specification: $(row).find('td:eq(4)').text().trim(),
|
|
|
|
- manufacturerShortName: $(row).find('td:eq(5)').text().trim(),
|
|
|
|
- administrationMethod: $(row).find('td:eq(6)').text().trim(),
|
|
|
|
- followUpItem: $(row).find('td:eq(7)').text().trim(),
|
|
|
|
- coldChainItem: $(row).find('td:eq(8)').text().trim(),
|
|
|
|
- registeredItem: $(row).find('td:eq(9)').text().trim(),
|
|
|
|
- charityAidItem: $(row).find('td:eq(10)').text().trim(),
|
|
|
|
- packaging: $(row).find('td:eq(11)').text().trim(),
|
|
|
|
|
|
+ mdmCode: $(row).find('td:eq(1)').text(),
|
|
|
|
+ productName: $(row).find('td:eq(2)').text(),
|
|
|
|
+ genericName: $(row).find('td:eq(3)').text(),
|
|
|
|
+ specification: $(row).find('td:eq(4)').text(),
|
|
|
|
+ manufacturerShortName: $(row).find('td:eq(5)').text(),
|
|
|
|
+ administrationMethod: $(row).find('td:eq(6)').text(),
|
|
|
|
+ followUpItem: $(row).find('td:eq(7)').text(),
|
|
|
|
+ coldChainItem: $(row).find('td:eq(8)').text(),
|
|
|
|
+ registeredItem: $(row).find('td:eq(9)').text(),
|
|
|
|
+ charityAidItem: $(row).find('td:eq(10)').text(),
|
|
|
|
+ packaging: $(row).find('td:eq(11)').text(),
|
|
packageQuantity: $(row).find('input[name="packageQuantity"]').val(),
|
|
packageQuantity: $(row).find('input[name="packageQuantity"]').val(),
|
|
singleDoseValue: $(row).find('input[name="singleDoseValue"]').val(),
|
|
singleDoseValue: $(row).find('input[name="singleDoseValue"]').val(),
|
|
singleDoseUnit: $(row).find('select[name="singleDoseUnit"]').val(),
|
|
singleDoseUnit: $(row).find('select[name="singleDoseUnit"]').val(),
|
|
@@ -869,10 +880,10 @@
|
|
$.modal.alertError("请添加药品");
|
|
$.modal.alertError("请添加药品");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- var id = $('#id').val().trim();
|
|
|
|
- var prescriptionNumber = $('#prescriptionNumber').val().trim();
|
|
|
|
- var drugsLinkId = $('#drugsLinkId').val().trim();
|
|
|
|
- var status = $('#status').val().trim();
|
|
|
|
|
|
+ var id = $('#id').val();
|
|
|
|
+ var prescriptionNumber = $('#prescriptionNumber').val();
|
|
|
|
+ var drugsLinkId = $('#drugsLinkId').val();
|
|
|
|
+ var status = $('#status').val();
|
|
if (id != '') {
|
|
if (id != '') {
|
|
formData.append('id', id);
|
|
formData.append('id', id);
|
|
formData.append('status', status);
|
|
formData.append('status', status);
|
|
@@ -882,7 +893,7 @@
|
|
$.modal.alertError("请联系管理员!");
|
|
$.modal.alertError("请联系管理员!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- var reviewingNameInput = $('#reviewingName').val().trim();
|
|
|
|
|
|
+ var reviewingNameInput = $('#reviewingName').val();
|
|
if($.common.isEmpty(reviewingNameInput) && !reviewFlag){
|
|
if($.common.isEmpty(reviewingNameInput) && !reviewFlag){
|
|
reviewFlag=false;
|
|
reviewFlag=false;
|
|
$.modal.alertError("请完成药师审核或选择不开启审核");
|
|
$.modal.alertError("请完成药师审核或选择不开启审核");
|
|
@@ -895,8 +906,8 @@
|
|
formData.append('reviewFormData', reviewFormData);
|
|
formData.append('reviewFormData', reviewFormData);
|
|
|
|
|
|
}
|
|
}
|
|
- formData.append('age', $('#age1').val().trim());
|
|
|
|
- formData.append('gender', $('#gender1').val().trim());
|
|
|
|
|
|
+ formData.append('age', $('#age1').val());
|
|
|
|
+ formData.append('gender', $('#gender1').val());
|
|
$.ajax({
|
|
$.ajax({
|
|
cache: false, // 设置为 false 防止缓存
|
|
cache: false, // 设置为 false 防止缓存
|
|
type: "POST",
|
|
type: "POST",
|
|
@@ -1250,7 +1261,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function search_hz() {
|
|
function search_hz() {
|
|
- var query = $('#query').val().trim();
|
|
|
|
|
|
+ var query = $('#query').val();
|
|
// 如果输入为空,清空 dValueId 输入框并停止进一步操作
|
|
// 如果输入为空,清空 dValueId 输入框并停止进一步操作
|
|
if (!query) {
|
|
if (!query) {
|
|
$('#query').val('');
|
|
$('#query').val('');
|
|
@@ -1326,7 +1337,7 @@
|
|
|
|
|
|
/* 这里是去查询 使用药的信息*/
|
|
/* 这里是去查询 使用药的信息*/
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
- var id = $('#id').val().trim();
|
|
|
|
|
|
+ var id = $('#id').val();
|
|
var datas = [];
|
|
var datas = [];
|
|
var data = {
|
|
var data = {
|
|
"id": id,
|
|
"id": id,
|
|
@@ -1452,7 +1463,7 @@
|
|
<option value="5">每周2次</option>-->
|
|
<option value="5">每周2次</option>-->
|
|
</select>
|
|
</select>
|
|
</td>
|
|
</td>
|
|
- <td> <input name="dosageFrequencyDays" id="dosageFrequencyDays${columnsData.productId}" placeholder="购药包装单位" class="styled-input" style="width: 100px;" type="number"><span id="ycode${columnsData.productId}"></span></td>
|
|
|
|
|
|
+ <td> <input name="dosageFrequencyDays" value="${columnsData.packingValue}" id="dosageFrequencyDays${columnsData.productId}" placeholder="购药包装单位" class="styled-input" style="width: 100px;" type="number"><span id="ycode${columnsData.productId}"></span></td>
|
|
<td> <input name="dvalueDays" id="dvalueDays${columnsData.productId}" placeholder="系统自动计算" class="styled-input" disabled="" style="width: 80px;" type="number"><span id="defaultNum${columnsData.productId}" style="color: red"></span></td>
|
|
<td> <input name="dvalueDays" id="dvalueDays${columnsData.productId}" placeholder="系统自动计算" class="styled-input" disabled="" style="width: 80px;" type="number"><span id="defaultNum${columnsData.productId}" style="color: red"></span></td>
|
|
</tr>
|
|
</tr>
|
|
`;
|
|
`;
|
|
@@ -1615,9 +1626,9 @@
|
|
// 示例使用
|
|
// 示例使用
|
|
function submitArchives() {
|
|
function submitArchives() {
|
|
debugger
|
|
debugger
|
|
- var documentType= $("#documentType").val()
|
|
|
|
|
|
+ var documentType= $("#documentType").val();
|
|
if(documentType=="居民身份证") {
|
|
if(documentType=="居民身份证") {
|
|
- var IDCard= $("#documentNumber").val()
|
|
|
|
|
|
+ var IDCard= $("#documentNumber").val();
|
|
if (IDCard == null || IDCard == "" || IDCard == undefined){
|
|
if (IDCard == null || IDCard == "" || IDCard == undefined){
|
|
$.modal.alert("请输入身份证号码")
|
|
$.modal.alert("请输入身份证号码")
|
|
return false
|
|
return false
|
|
@@ -1632,7 +1643,7 @@
|
|
$.modal.alert("请选择性别")
|
|
$.modal.alert("请选择性别")
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- var timeFirstDiagnosis= $("#timeFirstDiagnosis").val()
|
|
|
|
|
|
+ var timeFirstDiagnosis= $("#timeFirstDiagnosis").val();
|
|
if (timeFirstDiagnosis==null || timeFirstDiagnosis=="" || timeFirstDiagnosis==undefined) {
|
|
if (timeFirstDiagnosis==null || timeFirstDiagnosis=="" || timeFirstDiagnosis==undefined) {
|
|
$.modal.alert("请选择首次确诊时间")
|
|
$.modal.alert("请选择首次确诊时间")
|
|
return false
|
|
return false
|