diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientController.java
index b8161a867..5e8958e3a 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientController.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientController.java
@@ -1,5 +1,6 @@
package com.ruoyi.system.fantang.controller;
+import cn.hutool.core.codec.Base64;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSONObject;
@@ -16,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import java.math.BigDecimal;
+import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
@@ -649,11 +651,13 @@ public class ClientController extends BaseController {
@PostMapping("qrcode")
public AjaxResult qrcode(@RequestBody JSONObject params) {
- Long staffId = params.getLong("staffId");
- Long orderId = params.getLong("orderId");
- System.out.println("staffId: " + staffId.toString());
- System.out.println("orderId: " + orderId.toString());
- return AjaxResult.success("二维码扫码成功");
+ String data = params.getString("data");
+ JSONObject jsonData = JSONObject.parseObject(Base64.decodeStr(data));
+ Long staffId = jsonData.getLong("staffId");
+ Long orderId = jsonData.getLong("orderId");
+ String tel = jsonData.getString("tel");
+ log.info("二维码:原始字串-{};员工id:{}; 订单id:{}", jsonData, staffId, orderId);
+ return AjaxResult.success(String.format("二维码:原始字串-%s;员工id:%d; 订单id:%d, 电话:%s", jsonData, staffId, orderId, tel));
}
}
diff --git a/ruoyi-ui/src/views/fantang/prepayment/index.vue b/ruoyi-ui/src/views/fantang/prepayment/index.vue
index b4178c7fa..52657bbba 100644
--- a/ruoyi-ui/src/views/fantang/prepayment/index.vue
+++ b/ruoyi-ui/src/views/fantang/prepayment/index.vue
@@ -94,7 +94,7 @@
@pagination="getList"
/>
-
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+ {{ item.departName }}
+
+ {{ item.bedId }}
+
+ {{ item.value }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -169,6 +226,8 @@ export default {
components: {},
data() {
return {
+ openChargeDialogTitle: null,
+ openChargeDialogFlag: false,
// 权限相关的参数
user: null,
roleGroup: null,
@@ -418,23 +477,23 @@ export default {
this.open = true;
this.title = "添加收费管理";
},
- /** 修改按钮操作 */
+ /** 收费按钮操作 */
handleUpdate(row) {
this.reset();
const prepaymentId = row.prepaymentId || this.ids
- this.open = true;
console.log('row:',row);
- getPrepayment(row.prepaymentId).then(response =>{
- console.log(response);
- this.formAddPrepayment.hospitalId = row.hospitalId;
- this.formAddPrepayment.name = row.name;
- this.formAddPrepayment.collectAt = response.data.prepayment = response.data.collectAt;
- this.formAddPrepayment.prepaid = response.data.prepaid;
- this.formAddPrepayment.row = row;
- });
+ this.formAddPrepayment.hospitalId = row.hospitalId;
+ this.formAddPrepayment.name = row.name;
+ this.formAddPrepayment.collectAt = new Date();
+ this.formAddPrepayment.prepaid = 700;
+ this.formAddPrepayment.row = row;
+ this.openChargeDialogFlag = true;
+ },
+ submitformChangePrepayment() {
},
+
/** 提交按钮 */
submitformAddPrepayment() {