From 1d7a460b0fbc460ffcf3dd94864f2f3adf4369b2 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期四, 21 八月 2025 14:21:00 +0800
Subject: [PATCH] 富文本

---
 src/views/system/refund/index.vue |   48 +++++++++++++++++++++++++++++++-----------------
 1 files changed, 31 insertions(+), 17 deletions(-)

diff --git a/src/views/system/refund/index.vue b/src/views/system/refund/index.vue
index eb99686..7a0de96 100644
--- a/src/views/system/refund/index.vue
+++ b/src/views/system/refund/index.vue
@@ -6,7 +6,7 @@
         <el-row>
           <el-col :span="6">
             <el-form-item label="浣撴鍙�" prop="tjNum" style="display: flex;">
-              <el-input ref="inputName" v-model="form.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" />
+              <el-input ref="inputName" v-model="form.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="handle"  @blur="hb" />
             </el-form-item>
           </el-col>
           <el-col :span="5">
@@ -120,7 +120,7 @@
 </template>
 
 <script>
-import { getTjRefundList, getTjList, getTjRefund } from "@/api/hosp/customer";
+import { getTjRefundList, getTjList, getTjRefund,getTjRefundList2,getTjList2,getTjRefund2 } from "@/api/hosp/customer";
 
 export default {
   dicts: [
@@ -185,9 +185,9 @@
       numberList: [],
       // 琛ㄥ崟鍙傛暟
       form: {
-        tjNum: "",
-        tjName: "",
-        tjPhone: "",
+        tjNum: null,
+        tjName: null,
+        tjPhone: null,
       },
     };
   },
@@ -200,11 +200,18 @@
         this.$refs.inputName.focus();
       });
     },
-
+    hb(){
+      console.log(this.form.tjNum);
+       if (this.form.tjNum != null) {
+        this.handle();
+      }
+    },
     /** 鎼滅储鎿嶄綔 */
-    handle() {
-      this.loading = true;
-      getTjRefundList(this.form).then((response) => {
+   handle() {
+  this.loading = true;
+  getTjRefundList2(this.form)
+    .then((response) => {
+      if (response.data) {
         this.customerList = response.data;
         this.customerList.forEach((item1) => {
           this.tjnumber = item1.tjNumber;
@@ -233,8 +240,13 @@
         });
         this.total = response.total;
         this.loading = false;
-      });
-    },
+      }
+    })
+    .catch((error) => {
+      console.error("閿欒:", error);
+      this.loading = false;
+    });
+},
 
     //閲嶇疆鎸夐挳
     resetQuery() {
@@ -257,7 +269,7 @@
       let data = {
         orderId: this.tjOrderId,
       };
-      getTjList(data).then((res) => {
+      getTjList2(data).then((res) => {
         this.numberList = res.data;
         this.loading = false;
       });
@@ -268,7 +280,7 @@
       this.multipleSelection = val;
       this.refundPros = [];
       this.refundPros = this.multipleSelection;
-      this.formInline.price = "";
+      this.formInline.price = 0;
       this.multipleSelection.forEach((item) => {
         this.tollCollectorName = item.tollCollector;
         if (this.formInline.price) {
@@ -281,6 +293,7 @@
 
     // 閫�璐�
     handleRefund() {
+      console.log(this.form)
       this.customerList.forEach((item) => {
         (this.orderIds = item.tjFlowingWater.orderId),
           (this.copewith = item.totalAmount);
@@ -317,12 +330,13 @@
         });
         return;
       }
-      getTjRefund(data).then((res) => {
+      getTjRefund2(data).then((res) => {
         this.tjnumber = res.data.waterId;
         this.mobanId = res.data.mobanId;
         if (res.code === 200) {
           this.$modal.msgSuccess("閫�璐规垚鍔�");
-          // this.handle();
+          this.form.tjNum = res.data.waterId
+          this.handle();
           // this.$forceUpdate();
           this.idList = res.data;
           const tjnumber = this.tjnumber;
@@ -337,7 +351,7 @@
 </script>
 
 <style>
-#sig .el-table__header-wrapper .el-checkbox {
+/* #sig .el-table__header-wrapper .el-checkbox {
   display: none;
-}
+} */
 </style>
\ No newline at end of file

--
Gitblit v1.8.0