|
@@ -47,6 +47,7 @@ $(function () {
|
|
|
initGenderSelect();
|
|
|
iniAdmissStatus();
|
|
|
initListDeptSelect();
|
|
|
+ initRelationSelect();
|
|
|
//initTryResultSelect();
|
|
|
initResponceTypeSelect();
|
|
|
initTemplateTypeSelect("templateType");
|
|
@@ -3906,7 +3907,13 @@ function editPrescription(jsonData, type) {
|
|
|
$('#conditionCode').selectpicker('refresh');
|
|
|
$("#routeOfAdmission").selectpicker('val', mzZyReq.routeOfAdmission);
|
|
|
$('#routeOfAdmission').selectpicker('refresh');
|
|
|
+ $("#contacterName").val(mzZyReq.contacterName);
|
|
|
+ $("#contacterRelationship").selectpicker('val', mzZyReq.contacterRelationship);
|
|
|
+ $('#contacterRelationship').selectpicker('refresh');
|
|
|
+ $("#contacterPhone").val(mzZyReq.contacterPhone);
|
|
|
+ $("#contacterAddress").val(mzZyReq.contacterAddress);
|
|
|
$("#deposit").val(mzZyReq.deposit);
|
|
|
+
|
|
|
setTimeout(function () {
|
|
|
$("#smallWardBeHospitalized").selectpicker('val', mzZyReq.smallDept);
|
|
|
$('#smallWardBeHospitalized').selectpicker('refresh');
|
|
@@ -4449,6 +4456,32 @@ function initListDeptSelect() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 关系列表初始化
|
|
|
+ */
|
|
|
+function initRelationSelect() {
|
|
|
+ //医生列表
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: '/thmz/getRelation',
|
|
|
+ dataType: "json",
|
|
|
+ headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
+ success: function (res) {
|
|
|
+ if (res == '401' || res == 401) {
|
|
|
+ window.location.href = '/thmz/login/view'
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var html = '';
|
|
|
+ $.each(res.data, function (commentIndex, comment) {
|
|
|
+ html += '<option value="' + comment.code + '">' + comment.name + '</option>';
|
|
|
+ });
|
|
|
+ $('#contacterRelationship').empty();
|
|
|
+ $('#contacterRelationship').html(html);
|
|
|
+ $('#contacterRelationship').selectpicker('destroy').selectpicker('refresh');
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 小科室列表
|
|
@@ -6161,6 +6194,14 @@ function saveZyReq(messageFlag) {
|
|
|
var conditionCode = $("#conditionCode").val();
|
|
|
//入院途径代码
|
|
|
var routeOfAdmission = $("#routeOfAdmission").val();
|
|
|
+ //联系人姓名
|
|
|
+ var contacterName = $("#contacterName").val();
|
|
|
+ //联系人关系
|
|
|
+ var contacterRelationship = $("#contacterRelationship").val();
|
|
|
+ //联系人电话
|
|
|
+ var contacterPhone = $("#contacterPhone").val();
|
|
|
+ //联系人地址
|
|
|
+ var contacterAddress = $("#contacterAddress").val();
|
|
|
//押金
|
|
|
var deposit = $("#deposit").val();
|
|
|
|
|
@@ -6230,6 +6271,10 @@ function saveZyReq(messageFlag) {
|
|
|
html += '<input type="hidden" class="temporary_items_admiss_status" value="' + admissStatus + '"/>';
|
|
|
html += '<input type="hidden" class="temporary_items_condition_code" value="' + conditionCode + '"/>';
|
|
|
html += '<input type="hidden" class="temporary_items_route_of_admission" value="' + routeOfAdmission + '"/>';
|
|
|
+ html += '<input type="hidden" class="temporary_items_contacter_name" value="' + contacterName + '"/>';
|
|
|
+ html += '<input type="hidden" class="temporary_items_contacter_relationship" value="' + contacterRelationship + '"/>';
|
|
|
+ html += '<input type="hidden" class="temporary_items_contacter_phone" value="' + contacterPhone + '"/>';
|
|
|
+ html += '<input type="hidden" class="temporary_items_contacter_address" value="' + contacterAddress + '"/>';
|
|
|
html += '<input type="hidden" class="temporary_items_deposit" value="' + deposit + '"/>';
|
|
|
html += '</div>';
|
|
|
$(tableId).find("div:eq(0)").html(html);
|
|
@@ -6851,6 +6896,11 @@ function clearZyReq() {
|
|
|
$("#totalBedNum").val(null);
|
|
|
$("#freeBedNum").val(null);
|
|
|
$("#occupationBedNum").val(null);
|
|
|
+ $("#contacterName").val(null);
|
|
|
+ $("#contacterRelationship").selectpicker('val', null);
|
|
|
+ $('#contacterRelationship').selectpicker('refresh');
|
|
|
+ $("#contacterPhone").val(null);
|
|
|
+ $("#contacterAddress").val(null);
|
|
|
$("#deposit").val(null);
|
|
|
initSmallDeptByDept();
|
|
|
}
|
|
@@ -10221,7 +10271,7 @@ function getParamsForpPrescription(type) {
|
|
|
'"rxDruginfoList": [],' +
|
|
|
'"wxmallPackagePurchasedItemList": [],' +
|
|
|
'"mzYjReqList": [],' +
|
|
|
- '"mzZyReq": {"reqDept": "","smallDept": "","admissStatus": "","conditionCode": "","routeOfAdmission": "","deposit":null},' +
|
|
|
+ '"mzZyReq": {"reqDept": "","smallDept": "","admissStatus": "","conditionCode": "","routeOfAdmission": "", "contacterName":null , "contacterRelationship": "", "contacterPhone":null , "contacterAddress":null , "deposit":null },' +
|
|
|
'"opRecordList": [],' +
|
|
|
'"patientAllergenInfoList": [],' +
|
|
|
'"zgmztczf":"",' +
|
|
@@ -10500,7 +10550,11 @@ function getParamsForpPrescription(type) {
|
|
|
jsonData.mzZyReq.admissStatus = $(zyReqTabContents[0]).find("input.temporary_items_admiss_status").val();
|
|
|
jsonData.mzZyReq.conditionCode = $(zyReqTabContents[0]).find("input.temporary_items_condition_code").val();
|
|
|
jsonData.mzZyReq.routeOfAdmission = $(zyReqTabContents[0]).find("input.temporary_items_route_of_admission").val();
|
|
|
- jsonData.mzZyReq.deposit = $(zyReqTabContents[0]).find("input.temporary_deposit").val();
|
|
|
+ jsonData.mzZyReq.contacterName = $(zyReqTabContents[0]).find("input.temporary_items_contacter_name").val();
|
|
|
+ jsonData.mzZyReq.contacterRelationship = $(zyReqTabContents[0]).find("input.temporary_items_contacter_relationship").val();
|
|
|
+ jsonData.mzZyReq.contacterPhone = $(zyReqTabContents[0]).find("input.temporary_items_contacter_phone").val();
|
|
|
+ jsonData.mzZyReq.contacterAddress = $(zyReqTabContents[0]).find("input.temporary_items_contacter_address").val();
|
|
|
+ jsonData.mzZyReq.deposit = $(zyReqTabContents[0]).find("input.temporary_items_deposit").val();
|
|
|
}
|
|
|
//门诊手术
|
|
|
var opRecordTabContents = $("#opRecordTabContent").find("div.form-group");
|
|
@@ -10544,6 +10598,7 @@ function getParamsForpPrescription(type) {
|
|
|
*/
|
|
|
function savePrescription() {
|
|
|
var jsonData = getParamsForpPrescription(1);
|
|
|
+ console.log("savePrescription",jsonData)
|
|
|
let wpMedicineFlag = jsonData.rxDruginfoList ==null || jsonData.rxDruginfoList.length ==0 ? false : true;
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
@@ -15181,6 +15236,4 @@ function initCopy() {
|
|
|
}
|
|
|
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
}
|