|
@@ -61,7 +61,7 @@ function initRepealRefundListByPatient() {
|
|
|
valign: 'middle',
|
|
|
// sortable: true,
|
|
|
formatter: function (value, row, index) {
|
|
|
- return '<button type="button" class="registration-no-color-foot-button" title="取消退药申请" onclick="repealRefund(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo + ',' + row.realNo + ')"><i class="fa fa-reply"></i></button>';
|
|
|
+ return '<button type="button" class="registration-no-color-foot-button" title="取消退药申请" onclick="repealRefund(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo + ',' + row.realNo + ','+row.orderNo+')"><i class="fa fa-reply"></i></button>';
|
|
|
}
|
|
|
}
|
|
|
, {
|
|
@@ -146,7 +146,7 @@ function queryParams(params) {
|
|
|
beginDate: rePortRangeArr[0],
|
|
|
endDate: rePortRangeArr[1],
|
|
|
name: $("#name").val(),
|
|
|
- patientId: $("#patientId").val(),
|
|
|
+ patientId: $("#patientId_or_cardNo").val(),
|
|
|
serialNo: $("#serialNo").val()
|
|
|
};
|
|
|
return temp;
|
|
@@ -159,14 +159,15 @@ function queryParams(params) {
|
|
|
* @param times
|
|
|
* @param receiptNo
|
|
|
* @param realNo
|
|
|
+ * @param orderNo
|
|
|
*/
|
|
|
-function repealRefund(patientId, times, receiptNo, realNo) {
|
|
|
+function repealRefund(patientId, times, receiptNo, realNo,orderNo) {
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
url: '/thmz/repealRefund',
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
- data: JSON.stringify({"patientId": patientId, "times": times, "receiptNo": receiptNo, "realNo": realNo}),
|
|
|
+ data: JSON.stringify({"patientId": patientId, "times": times, "receiptNo": receiptNo, "realNo": realNo,"orderNo":orderNo}),
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
success: function (res) {
|
|
|
if (res == '401' || res == 401) {
|
|
@@ -183,35 +184,35 @@ function repealRefund(patientId, times, receiptNo, realNo) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-/**
|
|
|
- * 设置病人id
|
|
|
- */
|
|
|
-function setPatientId() {
|
|
|
- var patientId_or_cardNo = $("#patientId_or_cardNo").val();
|
|
|
- $.ajax({
|
|
|
- type: "GET",
|
|
|
- url: '/thmz/getByIcCardNo?icCardNo=' + patientId_or_cardNo,
|
|
|
- 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;
|
|
|
- }
|
|
|
- if (res.code == 0) {
|
|
|
- if (res.data != null) {
|
|
|
- $("#patientId").val(res.data.patientId);
|
|
|
- } else {
|
|
|
- $("#patientId").val(patientId_or_cardNo);
|
|
|
- }
|
|
|
- } else {
|
|
|
- $("#patientId").val(null);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 设置病人id
|
|
|
+// */
|
|
|
+// function setPatientId() {
|
|
|
+// var patientId_or_cardNo = $("#patientId_or_cardNo").val();
|
|
|
+// $.ajax({
|
|
|
+// type: "GET",
|
|
|
+// url: '/thmz/getByIcCardNo?icCardNo=' + patientId_or_cardNo,
|
|
|
+// 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;
|
|
|
+// }
|
|
|
+// if (res.code == 0) {
|
|
|
+// if (res.data != null) {
|
|
|
+// $("#patientId").val(res.data.patientId);
|
|
|
+// } else {
|
|
|
+// $("#patientId").val(patientId_or_cardNo);
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// $("#patientId").val(null);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// });
|
|
|
+// }
|
|
|
|
|
|
|
|
|
/**
|