From 22caa5c771651299c59db1bc400f65fc6b1c0e6f Mon Sep 17 00:00:00 2001 From: czx <28353131@qq.com> Date: Tue, 9 Feb 2021 15:00:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=B8=B8=E6=94=B6?= =?UTF-8?q?=E8=B4=B9=E7=BF=BB=E9=A1=B5=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/FtSettleDaoController.java | 2 +- .../src/views/fantang/preSettle/index.vue | 52 ++++++++++++++++--- 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java index 28d1a38b0..2a53a85fd 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java @@ -88,7 +88,7 @@ public class FtSettleDaoController extends BaseController { } @GetMapping("/showAllMealsWithNoPay") - public AjaxResult showAllMealsWithNoPay(@RequestParam("patientId") Long patientId, @RequestParam("pageNum") Integer pageNum,@RequestParam("pageSize") Integer pageSize) { + public AjaxResult showAllMealsWithNoPay(@RequestParam("patientId") Long patientId, @RequestParam("pageNum") Integer pageNum,@RequestParam("pageSize") Integer pageSize) { // 查找该病人所有已用餐未结算记录 QueryWrapper wrapper = new QueryWrapper<>(); diff --git a/ruoyi-ui/src/views/fantang/preSettle/index.vue b/ruoyi-ui/src/views/fantang/preSettle/index.vue index 81c607ab1..7cfac3499 100644 --- a/ruoyi-ui/src/views/fantang/preSettle/index.vue +++ b/ruoyi-ui/src/views/fantang/preSettle/index.vue @@ -89,7 +89,7 @@ size="mini" type="text" icon="el-icon-edit" - @click="clickAddLeaveSettlement(scope.row)" + @click="clickListLeaveSettlement(scope.row)" v-hasPermi="['fantang:settle:AddLeaveSettlement']" >查看详情 @@ -219,7 +219,7 @@ - + @@ -283,6 +283,8 @@ 报餐总价:{{ sumTotalPrice }} + + @@ -435,6 +445,12 @@ export default { // 表单参数 form: {}, leaveForm: {}, + queryLeaveForm: { + patientId: null, + pageNum: 1, + pageSize: 7, + total: 0 + }, // 表单校验 rules: { list: [ @@ -476,6 +492,27 @@ export default { this.getList(); }, methods: { + pagechangeLeaveForm() { + showAllMealsWithNoPay(this.queryLeaveForm).then(response => { + console.log(response); + this.mealsList = response.data.reportMealsList.records; + this.queryLeaveForm.total = response.data.reportMealsList.total; + + if (response.data.reportMealsPrice == null) { + this.dinnerTotalPrice = 0; + this.nutritionTotalPrice = 0; + this.sumTotalPrice = 0; + } + + if (response.data.reportMealsPrice != null) { + this.dinnerTotalPrice = response.data.reportMealsPrice.dinnerTotalPrice; + this.nutritionTotalPrice = response.data.reportMealsPrice.nutritionTotalPrice; + this.sumTotalPrice = response.data.reportMealsPrice.sumTotalPrice; + this.formAddNewSettlement.netPeceipt = this.sumTotalPrice; + } + }) + + }, // 变更结算日期计算 changeBillingDate(value) { var dateSpan, iDays; @@ -571,9 +608,8 @@ export default { }); }, - // 出院伙食费结算按钮 - clickAddLeaveSettlement(row) { - + // 查看详情按钮,显示基本信息外,还列表显示所有记录 + clickListLeaveSettlement(row) { // 清空数据 this.mealsList = null; this.sumTotalPrice = 0; @@ -597,9 +633,11 @@ export default { this.leaveForm.prepayment = response.prepayment.prepaid; } - showAllMealsWithNoPay(row.patientId).then(response => { + this.queryLeaveForm.patientId = row.patientId; + showAllMealsWithNoPay(this.queryLeaveForm).then(response => { console.log(response); - this.mealsList = response.data.reportMealsList; + this.mealsList = response.data.reportMealsList.records; + this.queryLeaveForm.total = response.data.reportMealsList.total; if (response.data.reportMealsPrice == null) { this.dinnerTotalPrice = 0;