|
@@ -61,10 +61,10 @@ 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 + ')"><i class="fa fa-reply"></i></button>';
|
|
|
}
|
|
|
}
|
|
|
- ,{
|
|
|
+ , {
|
|
|
field: 'patientId',
|
|
|
title: '门诊号',
|
|
|
align: "center",
|
|
@@ -109,7 +109,7 @@ function initRepealRefundListByPatient() {
|
|
|
}
|
|
|
],
|
|
|
onClickRow: function (row) {
|
|
|
- fitfymx(row.patientId, row.times, row.receiptNo,row.orderNo,row.groupNo);
|
|
|
+ fitfymx(row.patientId, row.times, row.receiptNo, row.orderNo, row.groupNo);
|
|
|
},
|
|
|
responseHandler: function (res) {
|
|
|
if (res == '401' || res == 401) {
|
|
@@ -160,13 +160,13 @@ function queryParams(params) {
|
|
|
* @param receiptNo
|
|
|
* @param realNo
|
|
|
*/
|
|
|
-function repealRefund(patientId,times,receiptNo,realNo) {
|
|
|
+function repealRefund(patientId, times, receiptNo, realNo) {
|
|
|
$.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}),
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
success: function (res) {
|
|
|
if (res == '401' || res == 401) {
|
|
@@ -174,7 +174,8 @@ function repealRefund(patientId,times,receiptNo,realNo) {
|
|
|
return;
|
|
|
}
|
|
|
if (res.code == 0) {
|
|
|
- successMesage(res);
|
|
|
+ successMesage(res);
|
|
|
+ $('#tb_table').bootstrapTable('refresh');
|
|
|
} else {
|
|
|
errorMesage(res);
|
|
|
}
|
|
@@ -183,7 +184,6 @@ function repealRefund(patientId,times,receiptNo,realNo) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 设置病人id
|
|
|
*/
|
|
@@ -206,7 +206,7 @@ function setPatientId() {
|
|
|
} else {
|
|
|
$("#patientId").val(patientId_or_cardNo);
|
|
|
}
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
$("#patientId").val(null);
|
|
|
}
|
|
|
}
|
|
@@ -227,8 +227,6 @@ function getRePortRangeArr() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 清空查询条件
|
|
|
*/
|
|
@@ -245,17 +243,18 @@ function cleanParams() {
|
|
|
* 设置病人药品明细
|
|
|
*/
|
|
|
var $table;
|
|
|
-function fitfymx(patientId,times,receiptNo,orderNo,groupNoOut) {
|
|
|
+
|
|
|
+function fitfymx(patientId, times, receiptNo, orderNo, groupNoOut) {
|
|
|
var temp = {
|
|
|
patientId: patientId,
|
|
|
times: times,
|
|
|
- receiptNo:receiptNo,
|
|
|
- orderNo:orderNo,
|
|
|
- groupNoOut:groupNoOut
|
|
|
+ receiptNo: receiptNo,
|
|
|
+ orderNo: orderNo,
|
|
|
+ groupNoOut: groupNoOut
|
|
|
};
|
|
|
|
|
|
$('#tb_table_right').bootstrapTable("destroy");
|
|
|
- $table= $('#tb_table_right').bootstrapTable({
|
|
|
+ $table = $('#tb_table_right').bootstrapTable({
|
|
|
url: '/thmz/getRefundMedicineDetail', //请求后台的URL(*)
|
|
|
method: 'post', //请求方式(*)
|
|
|
toolbar: '#toolbar', //工具按钮用哪个容器
|
|
@@ -294,7 +293,7 @@ function fitfymx(patientId,times,receiptNo,orderNo,groupNoOut) {
|
|
|
valign: 'middle',
|
|
|
formatter: function (value, row, index) {
|
|
|
if (value != null && value != "") {
|
|
|
- return value.replace("()","");
|
|
|
+ return value.replace("()", "");
|
|
|
}
|
|
|
return "";
|
|
|
}
|