|
@@ -1977,6 +1977,11 @@ function queryInsuinfo(patientId) {
|
|
|
if (res.code == 0) {
|
|
|
$("#zgmztczfDiv").removeClass("hide").addClass("in");
|
|
|
$("#mztczfSiReadCard").removeClass("hide").addClass("in");
|
|
|
+ var ybCode = localStorage.getItem("ybCode");
|
|
|
+ if (ybCode != null && ybCode != "" && ybCode.length > 0) {
|
|
|
+ $("#zgmztczf").selectpicker('val', 1);
|
|
|
+ $("#zgmztczf").selectpicker('refresh');
|
|
|
+ }
|
|
|
if (res.balc != null) {
|
|
|
var balc = Number(res.balc);
|
|
|
if (balc > 0) {
|
|
@@ -7921,6 +7926,9 @@ function getParamsForpPrescription(type) {
|
|
|
* 保存处方
|
|
|
*/
|
|
|
function savePrescription() {
|
|
|
+ if(!verifyInsuranceInfo()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
//关闭帮助框
|
|
|
$("#treeButton").webuiPopover('hide');
|
|
|
$("#western_medicine_name").webuiPopover('hide');
|
|
@@ -11022,29 +11030,30 @@ function initEmployee() {
|
|
|
*/
|
|
|
function verifyInsuranceInfo() {
|
|
|
var zgmztczf = $("#zgmztczf").val();
|
|
|
- if (zgmztczf != null && zgmztczf == 1 || zgmztczf == "1") {
|
|
|
+ if (zgmztczf != null && (zgmztczf == 1 || zgmztczf == "1")) {
|
|
|
var diagnoseValue = $("#diagnoseValue").val();
|
|
|
if (diagnoseValue == null || diagnoseValue == "" || diagnoseValue.length == 0) {
|
|
|
- errorMesageSimaple("门诊统筹就诊必须使用标准的医保诊断,请修改诊断");
|
|
|
- $("#zgmztczf").selectpicker('val', null);
|
|
|
- $("#zgmztczf").selectpicker('refresh');
|
|
|
- return;
|
|
|
+ errorMesageSimaple("门诊统筹就诊必须使用标准的医保诊断,请修改诊断或者消门诊统筹选项");
|
|
|
+ // $("#zgmztczf").selectpicker('val', null);
|
|
|
+ // $("#zgmztczf").selectpicker('refresh');
|
|
|
+ return false;
|
|
|
}
|
|
|
diagnoseValue = diagnoseValue.replace(/,/g, "");
|
|
|
if (diagnoseValue == null || diagnoseValue == "" || diagnoseValue.length == 0) {
|
|
|
- errorMesageSimaple("门诊统筹就诊必须使用标准的医保诊断,请修改诊断");
|
|
|
- $("#zgmztczf").selectpicker('val', null);
|
|
|
- $("#zgmztczf").selectpicker('refresh');
|
|
|
- return;
|
|
|
+ errorMesageSimaple("门诊统筹就诊必须使用标准的医保诊断,请修改诊断或者消门诊统筹选项");
|
|
|
+ // $("#zgmztczf").selectpicker('val', null);
|
|
|
+ // $("#zgmztczf").selectpicker('refresh');
|
|
|
+ return false;
|
|
|
}
|
|
|
var ybCode = localStorage.getItem("ybCode");
|
|
|
if (ybCode == null || ybCode == "" || ybCode.length == 0) {
|
|
|
- errorMesageSimaple("您还没有医保赋码,无法进行门诊统筹接诊");
|
|
|
- $("#zgmztczf").selectpicker('val', null);
|
|
|
- $("#zgmztczf").selectpicker('refresh');
|
|
|
- return;
|
|
|
+ errorMesageSimaple("您还没有医保赋码,无法进行门诊统筹接诊,请取消门诊统筹选项");
|
|
|
+ // $("#zgmztczf").selectpicker('val', null);
|
|
|
+ // $("#zgmztczf").selectpicker('refresh');
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
|