|
@@ -462,7 +462,7 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
//选择框打开
|
|
|
- if ($("#" + webuiID).hasClass("in")) {
|
|
|
+ if ($("#" + webuiID).hasClass("in") || $("#" + webuiID).css("display") == "block") {
|
|
|
var arr = $("#tb_table_western_medicine").find("tbody").find("tr.trhover");
|
|
|
if (arr != undefined && arr != null && arr.length > 0) {
|
|
|
var dataIndex = $(arr).attr("data-index");
|
|
@@ -492,7 +492,7 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
//选择框打开
|
|
|
- if ($("#" + webuiID).hasClass("in")) {
|
|
|
+ if ($("#" + webuiID).hasClass("in") || $("#" + webuiID).css("display") == "block") {
|
|
|
var arr = $("#tb_table_chinese_medicine").find("tbody").find("tr.trhover");
|
|
|
if (arr != undefined && arr != null && arr.length > 0) {
|
|
|
var dataIndex = $(arr).attr("data-index");
|
|
@@ -522,7 +522,7 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
//选择框打开
|
|
|
- if ($("#" + webuiID).hasClass("in")) {
|
|
|
+ if ($("#" + webuiID).hasClass("in") || $("#" + webuiID).css("display") == "block") {
|
|
|
var arr = $("#tb_table_jc_jy_item").find("tbody").find("tr.trhover");
|
|
|
if (arr != undefined && arr != null && arr.length > 0) {
|
|
|
var dataIndex = $(arr).attr("data-index");
|
|
@@ -586,7 +586,7 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
//选择框打开
|
|
|
- if ($("#" + webuiID).hasClass("in")) {
|
|
|
+ if ($("#" + webuiID).hasClass("in") || $("#" + webuiID).css("display") == "block") {
|
|
|
var arr = $("#tb_table_zl_item").find("tbody").find("tr.trhover");
|
|
|
if (arr != undefined && arr != null && arr.length > 0) {
|
|
|
var dataIndex = $(arr).attr("data-index");
|
|
@@ -671,7 +671,7 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
//选择框打开
|
|
|
- if ($("#" + webuiID).hasClass("in")) {
|
|
|
+ if ($("#" + webuiID).hasClass("in") || $("#" + webuiID).css("display") == "block") {
|
|
|
var arr = $("#" + tableId).find("tbody").find("tr.trhover");
|
|
|
var prev = $(arr).prev();
|
|
|
if (arr != undefined && arr != null && arr.length > 0) {
|
|
@@ -725,7 +725,7 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
//选择框打开
|
|
|
- if ($("#" + webuiID).hasClass("in")) {
|
|
|
+ if ($("#" + webuiID).hasClass("in") || $("#" + webuiID).css("display") == "block") {
|
|
|
var arr = $("#" + tableId).find("tbody").find("tr.trhover");
|
|
|
var next = $(arr).next();
|
|
|
if (arr != undefined && arr != null && arr.length > 0) {
|
|
@@ -4045,7 +4045,7 @@ function clearZyReq() {
|
|
|
*/
|
|
|
function calculateTotalAmount() {
|
|
|
//调用后去除所有的验证提示
|
|
|
- $("div.alert ").each(function (index,obj) {
|
|
|
+ $("div.alert ").each(function (index, obj) {
|
|
|
$(obj).remove();
|
|
|
});
|
|
|
var jsonData = getParamsForpPrescription();
|
|
@@ -4134,14 +4134,14 @@ function calculateTotalAmount() {
|
|
|
* @param data
|
|
|
*/
|
|
|
function editUserModal(patientId) {
|
|
|
- if(patientId==null){
|
|
|
+ if (patientId == null) {
|
|
|
//医生工作台发起
|
|
|
- patientId=$("#patientId").text();
|
|
|
- }else {
|
|
|
+ patientId = $("#patientId").text();
|
|
|
+ } else {
|
|
|
//快速接诊界面发起
|
|
|
clearRapidAccepts();
|
|
|
}
|
|
|
- if(patientId==null || patientId=="null" || patientId==""){
|
|
|
+ if (patientId == null || patientId == "null" || patientId == "") {
|
|
|
errorMesageSimaple("请输入需要编辑的患者信息");
|
|
|
return;
|
|
|
}
|
|
@@ -5015,6 +5015,7 @@ function loadYpList(index, event) {
|
|
|
// if (!$("#" + medicinePopoverContent).parent().parent().parent().hasClass("in")) {
|
|
|
// return;
|
|
|
// }
|
|
|
+ $('#' + MedicineName).webuiPopover('show');
|
|
|
$('#' + tableMedicine).bootstrapTable('refresh');
|
|
|
$('#' + tableMedicine).bootstrapTable({
|
|
|
url: '/thmz/getYpListByCommonParams', //请求后台的URL(*)
|
|
@@ -5341,6 +5342,7 @@ function loadjcJyItemList(event) {
|
|
|
// if (!$("#jcJyItemPopoverContent").parent().parent().parent().hasClass("in")) {
|
|
|
// return;
|
|
|
// }
|
|
|
+ $('#jcJyItem').webuiPopover('show');
|
|
|
$('#tb_table_jc_jy_item').bootstrapTable('refresh');
|
|
|
$('#tb_table_jc_jy_item').bootstrapTable({
|
|
|
url: '/thmz/getJcJyItemByCommonParams', //请求后台的URL(*)
|
|
@@ -5477,6 +5479,7 @@ function loadZlItemList(event) {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ $('#zlItem').webuiPopover('show');
|
|
|
$('#tb_table_zl_item').bootstrapTable('refresh');
|
|
|
$('#tb_table_zl_item').bootstrapTable({
|
|
|
url: '/thmz/getZlItemByCommonParams', //请求后台的URL(*)
|
|
@@ -6372,8 +6375,8 @@ function modifyPatient() {
|
|
|
}
|
|
|
if (res.code == 0) {
|
|
|
$('#editUserModal').modal('hide');
|
|
|
- var patientId=$("#patientId").text();
|
|
|
- if(patientId!=null && patientId!='null' && patientId!=""){
|
|
|
+ var patientId = $("#patientId").text();
|
|
|
+ if (patientId != null && patientId != 'null' && patientId != "") {
|
|
|
realClinicalReception(patientId, $("#mzfzSerialNoInClick").val());
|
|
|
}
|
|
|
clearPlusPatinet();
|