|
@@ -493,6 +493,7 @@ function initFeeTable() {
|
|
|
formatter: function (value, row, index) {
|
|
|
var buttonCodes = localStorage.getItem("buttonCodes");
|
|
|
var str = '<button type="button" class="registration-no-color-foot-button" title="费用明细" onclick="chargeDetailModal(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo + ')"><i class="fa fa-plus"></i></button>';
|
|
|
+ str += '<button type="button" class="registration-no-color-foot-button" title="查询医保身份信息" onclick="insurSiReadCardTypeModel(\'' + row.patientId + '\',' + row.times + ')"><i class="fa fa-newspaper-o"></i></button>';
|
|
|
str += '<button type="button" class="registration-no-color-foot-button" title="诊断查询" onclick="diagnoseQuery(\'' + row.patientId + '\',' + row.times + ')"><i class="fa fa-search-minus"></i></button>';
|
|
|
var payMarkGroup = getIndex("pay_mark_group");
|
|
|
if (payMarkGroup == 0) {
|
|
@@ -3281,6 +3282,168 @@ function mztczfSiReadCardTypeModel(patientId,times) {
|
|
|
$("#mztczfSiReadCardModal").modal();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+var insurPatientId = null;
|
|
|
+var insurTimes = null;
|
|
|
+/**
|
|
|
+ * 打开医保身份信息读卡窗口
|
|
|
+ */
|
|
|
+function insurSiReadCardTypeModel(patientId,times){
|
|
|
+ insurPatientId = patientId;
|
|
|
+ insurTimes = times;
|
|
|
+ clearInsurData()
|
|
|
+ initAdvmPro("insuAdvmPro")
|
|
|
+ $("#insurDetailModal").modal();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+function initInsurDetail(){
|
|
|
+ let url = "http://localhost:8321/readcard/entry?param=";
|
|
|
+ let insuerReadCarrType = $("#insurfSiReadCardType").val()
|
|
|
+ let insurAdvmCity = $("#insurAdvmCity")
|
|
|
+ if(!stringNotBlank(insuerReadCarrType)){
|
|
|
+ errorMesageSimaple('请选择读卡类型')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!stringNotBlank(insurAdvmCity)){
|
|
|
+ errorMesageSimaple('请选择参保地')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (insuerReadCarrType == "03") {
|
|
|
+ url += 'sicard_01101';
|
|
|
+ } else if (insuerReadCarrType == "01") {
|
|
|
+ url += 'qrcode_01101';
|
|
|
+ } else if (insuerReadCarrType == "02") {
|
|
|
+ url += 'idcard_01101';
|
|
|
+ }else if (insuerReadCarrType == "04") {
|
|
|
+ url += 'face_01101';
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: url,
|
|
|
+ contentType: "application/json;charset=UTF-8",
|
|
|
+ dataType: "json",
|
|
|
+ headers: {
|
|
|
+ 'Accept': 'application/json',
|
|
|
+ 'Authorization': 'Bearer ' + localStorage.getItem("token")
|
|
|
+ },
|
|
|
+ success: function (insures) {
|
|
|
+ if (insures.code == 200) {
|
|
|
+ let insurreadCardResult = null;
|
|
|
+ if (insuerReadCarrType == "01") {
|
|
|
+ let data = JSON.parse(insures.data);
|
|
|
+ insurreadCardResult = JSON.stringify(data.data);
|
|
|
+ } else {
|
|
|
+ insurreadCardResult = insures.data ;
|
|
|
+ }
|
|
|
+ queryInsurDetail(insurPatientId,insurTimes,insuerReadCarrType,insurreadCardResult,insurAdvmCity)
|
|
|
+ } else {
|
|
|
+ warningMesageSimaple("读卡失败!")
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
+ warningMesageSimaple("读卡异常,可以稍后重试!")
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+function queryInsurDetail(patientId,times,readCardType,readCardResult,admdvs){
|
|
|
+ postAjaxJsonHttpRequst("/thmz/queryInsuinfoDetail",{patientId:patientId,times:times,readCardType:readCardType,readCardResult:readCardResult,admdvs:admdvs},true,function (res){
|
|
|
+ console.log('initInsurDetail',res.data)
|
|
|
+ if(res.code == 0){
|
|
|
+ $("#insurPsnName").val(res.data.psnName)
|
|
|
+ $("#insurPsnNo").val(res.data.psnNo)
|
|
|
+ $("#insurCertno").val(res.data.certno)
|
|
|
+ $("#insurGendName").val(res.data.gendName)
|
|
|
+ $("#insurBrdy").val(res.data.brdy)
|
|
|
+ $('#insur_detail_table').bootstrapTable('destroy');
|
|
|
+ // 初始化表格
|
|
|
+ $('#insur_detail_table').bootstrapTable({
|
|
|
+ data: res.data.insuinfo,
|
|
|
+ toolbar: '#toolbar', //工具按钮用哪个容器
|
|
|
+ striped: true,
|
|
|
+ cache: true, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
|
|
|
+ pagination: false, //是否显示分页(*)
|
|
|
+ sortable: true, //是否启用排序
|
|
|
+ sortOrder: "asc",
|
|
|
+ pageNumber: 1, //初始化加载第一页,默认第一页
|
|
|
+ pageSize: 5, //每页的记录行数(*)
|
|
|
+ pageList: [5, 10, 25, 50, 100], //可供选择的每页的行数(*)
|
|
|
+ search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
|
|
|
+ strictSearch: true,
|
|
|
+ showColumns: false, //是否显示所有的列
|
|
|
+ showRefresh: false, //是否显示刷新按钮
|
|
|
+ minimumCountColumns: 2, //最少允许的列数
|
|
|
+ clickToSelect: true, //是否启用点击选中行
|
|
|
+ uniqueId: "ID", //每一行的唯一标识,一般为主键列
|
|
|
+ showToggle: false, //是否显示详细视图和列表视图的切换按钮
|
|
|
+ cardView: false, //是否显示详细视图
|
|
|
+ detailView: false,
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ field: 'insutypeName',
|
|
|
+ title: '险种类型',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ }, {
|
|
|
+ field: 'psnTypeName',
|
|
|
+ title: '人员类别',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ }
|
|
|
+ , {
|
|
|
+ field: 'psnInsuStasName',
|
|
|
+ title: '参保状态',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'insuplcAdmdvsName',
|
|
|
+ title: '参保地',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'psnInsuDate',
|
|
|
+ title: '参保日期',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'pausInsuDate',
|
|
|
+ title: '暂停参保日期',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ },{
|
|
|
+ field: 'empName',
|
|
|
+ title: '单位',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ errorMesage(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+function clearInsurData(){
|
|
|
+ $("#insurPsnName").val(null)
|
|
|
+ $("#insurPsnNo").val(null)
|
|
|
+ $("#insurCertno").val(null)
|
|
|
+ $("#insurGendName").val(null)
|
|
|
+ $("#insurBrdy").val(null)
|
|
|
+ $('#insur_detail_table').bootstrapTable('destroy');
|
|
|
+}
|
|
|
+
|
|
|
+function closedInsurDetailModal(){
|
|
|
+ clearInsurData()
|
|
|
+ $("#insurDetailModal").modal('hide');
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 处方加锁
|
|
|
*/
|