|
@@ -714,6 +714,12 @@ $(function () {
|
|
|
$('#btn_print_setup').click(function () {
|
|
|
printJyJcReport(2);
|
|
|
});
|
|
|
+ /**
|
|
|
+ * 医保电子凭证读卡
|
|
|
+ */
|
|
|
+ $("#siReadCard").on("click", function (t) {
|
|
|
+ siReadCard();
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
|
|
@@ -1131,6 +1137,8 @@ function clearRapidAcceptsModal() {
|
|
|
$("#rapidAcceptsUserGender").selectpicker('val', 0);
|
|
|
$("#rapidAcceptsUserGender").selectpicker('refresh');
|
|
|
$("#rapidAcceptsUserPhoneNum").val(null);
|
|
|
+ $('#rapidAcceptsUserCertificateType').selectpicker('val', '01');
|
|
|
+ $('#rapidAcceptsUserCertificateType').selectpicker('refresh');
|
|
|
$("#rapidAcceptsUserIdCard").val(null);
|
|
|
$("#rapidAcceptsUserIdCard").attr("title", null);
|
|
|
$("#rapidAcceptsUserPhoneNum").attr("title", null);
|
|
@@ -4164,6 +4172,8 @@ function queryUserInfoByCardNo() {
|
|
|
$("#rapidAcceptsUserGender").selectpicker('refresh');
|
|
|
$("#rapidAcceptsUserPhoneNum").val(res.data.phoneNo);
|
|
|
$("#rapidAcceptsUserIdCard").val(res.data.socialNo);
|
|
|
+ $('#rapidAcceptsUserCertificateType').selectpicker('val', '01');
|
|
|
+ $('#rapidAcceptsUserCertificateType').selectpicker('refresh');
|
|
|
$("#rapidAcceptsUserIdCard").attr("title", res.data.socialNo);
|
|
|
$("#rapidAcceptsUserPhoneNum").attr("title", res.data.phoneNo);
|
|
|
//查询分诊号
|
|
@@ -9057,9 +9067,10 @@ function initCertificateTypeSelect() {
|
|
|
if (res.code == 0) {
|
|
|
res.data.forEach(function (item, index) {
|
|
|
var html = '<option value="' + item.code + '">' + item.name + '</option>';
|
|
|
- $('#certificateType').append(html);
|
|
|
+ $('#rapidAcceptsUserCertificateType').append(html);
|
|
|
$('#editUserCertificateType').append(html);
|
|
|
});
|
|
|
+ $('#rapidAcceptsUserCertificateType').selectpicker('refresh');
|
|
|
$('#editUserCertificateType').selectpicker('refresh');
|
|
|
} else {
|
|
|
errorMesage(res);
|
|
@@ -9479,3 +9490,34 @@ function setOtherEmrProcess() {
|
|
|
$("#editMzBlRecordModal").modal();
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * 医保电子凭证读卡
|
|
|
+ */
|
|
|
+function siReadCard() {
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: 'http://localhost:8321/readcard/entry?param=qrcode_01101',
|
|
|
+ contentType: "application/json;charset=UTF-8",
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ //console.log(res);
|
|
|
+ if (res.code == 200) {
|
|
|
+ var data = JSON.parse(res.data);
|
|
|
+ queryUserInfoBySocialNoNotFillPatient('rapidAcceptsUserCardNo',""+data.data.idNo+"",queryUserInfoByCardNo,'rapidAcceptsModal');
|
|
|
+ } else {
|
|
|
+ errorMesage(res);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // window.open('ReadCard://'+prm, '_self')
|
|
|
+}
|