|
@@ -99,7 +99,7 @@ function sendRefundButtonChange(object, realIndex) {
|
|
|
$("#confirmFlagSearch").append("<option value='1'>已发药</option>");
|
|
|
$("#confirmFlagSearch").selectpicker('refresh');
|
|
|
$("#tb_table_right_ty").css("display", "none");
|
|
|
- $("#ty_total_amount").css("display", "none");
|
|
|
+ $("#return_total_amount").css("display", "none");
|
|
|
$("#btn_ty").addClass("hidden");
|
|
|
} else {
|
|
|
$("#confirmFlagSearch").empty();
|
|
@@ -207,7 +207,7 @@ function initTbTable() {
|
|
|
visible: visible,
|
|
|
formatter: function (value, row, index) {
|
|
|
if (index == 0 && sendRefundGroup == 1) {
|
|
|
- $("#ty_total_amount").css("display", "");
|
|
|
+ $("#return_total_amount").css("display", "");
|
|
|
fitfymx(row.patientId, row.times, row.receiptNo, row.orderNo, row.groupNo);
|
|
|
return {
|
|
|
checked: true//设置选中
|
|
@@ -750,6 +750,13 @@ function prescriptionDetail(realNo, groupNo, orderNo, receiptNo, times, patientI
|
|
|
"rows": ress.data //数据
|
|
|
};
|
|
|
},
|
|
|
+ onLoadSuccess: function (res) { //加载成功时执行
|
|
|
+ var sendTotalAmount = 0;
|
|
|
+ for (var i=0;i<res.rows.length;i++) {
|
|
|
+ sendTotalAmount +=parseFloat(res.rows[i].quantity*res.rows[i].unitPrice);
|
|
|
+ }
|
|
|
+ $('#sendTotalAmount').html(sendTotalAmount.toFixed(2));//toFixed(2),保留2位小数,避免js中小数相加小数点后面多出很多位
|
|
|
+ },
|
|
|
});
|
|
|
$("#cfxxModal").modal();
|
|
|
}
|
|
@@ -862,11 +869,11 @@ function fitfymx(patientId, times, receiptNo, orderNo, groupNoOut) {
|
|
|
};
|
|
|
},
|
|
|
onLoadSuccess: function (res) { //加载成功时执行
|
|
|
- var totalAmount = 0;
|
|
|
+ var returnTotalAmount = 0;
|
|
|
for (var i=0;i<res.rows.length;i++) {
|
|
|
- totalAmount +=parseFloat(res.rows[i].quantity*res.rows[i].unit_price);
|
|
|
+ returnTotalAmount +=parseFloat(res.rows[i].quantity*res.rows[i].unit_price);
|
|
|
}
|
|
|
- $('#totalAmount').html(totalAmount.toFixed(2));//toFixed(2),保留2位小数,避免js中小数相加小数点后面多出很多位
|
|
|
+ $('#returnTotalAmount').html(returnTotalAmount.toFixed(2));//toFixed(2),保留2位小数,避免js中小数相加小数点后面多出很多位
|
|
|
},
|
|
|
});
|
|
|
}
|