|
@@ -11,6 +11,13 @@ var readPatientId ='';
|
|
|
var readTimes = null
|
|
|
var fpVsesionNo = 0;
|
|
|
var hospitalName ='沭阳铭和医院'
|
|
|
+//缴费信息
|
|
|
+
|
|
|
+var refNo = "";
|
|
|
+var transDate = "";
|
|
|
+var payChannel = "";
|
|
|
+var qrCodeParam = "";
|
|
|
+var traceNo = "";
|
|
|
$(function () {
|
|
|
$("#dzfpDownModal1").modal();
|
|
|
// prn1PrintAndQRCode("1522962-4",12,"4691714",1);
|
|
@@ -43,6 +50,7 @@ $(function () {
|
|
|
// });
|
|
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 增加收款方式按钮事件
|
|
|
*/
|
|
@@ -1797,6 +1805,7 @@ function queryCodePay() {
|
|
|
}
|
|
|
|
|
|
function codePay() {
|
|
|
+//$("#paymentCode").attr("disabled", true);
|
|
|
const moneyValues = [];
|
|
|
|
|
|
$('.pay-item').each(function() {
|
|
@@ -1828,14 +1837,19 @@ function codePay() {
|
|
|
if (res.code === 9000) {
|
|
|
if(res.data && (res.data.state === 2 || res.data.orderState === 2)) {
|
|
|
alert("付款成功");
|
|
|
+ $("#paymentCode").attr("disabled", true);
|
|
|
+ refNo = res.data.channelOrderNo;
|
|
|
+ traceNo = res.data.mchOrderNo;
|
|
|
+ outTraceNo = res.data.payOrderId;
|
|
|
+ transDate = new Date();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
-$('#paymentCode').on('input', debounce(codePay, 500));*/
|
|
|
+
|
|
|
+$('#paymentCode').on('input', debounce(codePay, 500));
|
|
|
|
|
|
/**
|
|
|
* 提交缴费申请
|
|
@@ -1867,11 +1881,12 @@ function saveConfirmFee() {
|
|
|
}
|
|
|
var tempJson = JSON.parse('{"chequeType":"","amount":"","contractId":"","psordnum":"","agtordnum":"","parChannel":"","transDate":"","traceNo":"","dyTgNo":""}');
|
|
|
tempJson.chequeType = $(arr[i]).find("select").val();
|
|
|
- tempJson.psordnum = $(arr[i]).find("input.refNo").val();
|
|
|
- tempJson.agtordnum = $(arr[i]).find("input.qrCodeParam").val();
|
|
|
- tempJson.parChannel = $(arr[i]).find("input.payChannel").val();
|
|
|
- tempJson.transDate = $(arr[i]).find("input.transDate").val();
|
|
|
- tempJson.traceNo = $(arr[i]).find("input.traceNo").val();
|
|
|
+ tempJson.psordnum = refNo;
|
|
|
+ tempJson.agtordnum = $("#paymentCode").val();
|
|
|
+ tempJson.parChannel = "1";
|
|
|
+ tempJson.transDate = transDate;
|
|
|
+ tempJson.traceNo = traceNo;
|
|
|
+ tempJson.chequeType = "1";
|
|
|
//现金有可能会多收,比入实收37,对方给了100,需要找零63. 所以必须减去找零金额,才是实收金额
|
|
|
if (tempJson.chequeType == "1") {
|
|
|
temp = temp - $("#changeAmount").val();
|
|
@@ -1911,6 +1926,13 @@ function saveConfirmFee() {
|
|
|
closeConfirmFeeModal();
|
|
|
//缴费成功后清空全局参数
|
|
|
patientIdFullForNucleicAcid = null;
|
|
|
+ transDate = '';
|
|
|
+ refNo = '';
|
|
|
+ payChannel = '';
|
|
|
+ qrCodeParam = '';
|
|
|
+ traceNo = '';
|
|
|
+ $("#paymentCode").val(null)
|
|
|
+ $("#paymentCode").attr("disabled", false);
|
|
|
initFeeTable();
|
|
|
//默认光标在卡号输入框
|
|
|
$("#cardNo").focus();
|