From d10c7c728234b5a9098b7bd5bb7a914a14e33c20 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 29 十二月 2023 18:37:28 +0800
Subject: [PATCH] su

---
 src/views/system/refund/index.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/views/system/refund/index.vue b/src/views/system/refund/index.vue
index eb99686..f188827 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="handle" />
             </el-form-item>
           </el-col>
           <el-col :span="5">
@@ -185,9 +185,9 @@
       numberList: [],
       // 琛ㄥ崟鍙傛暟
       form: {
-        tjNum: "",
-        tjName: "",
-        tjPhone: "",
+        tjNum: null,
+        tjName: null,
+        tjPhone: null,
       },
     };
   },
@@ -205,7 +205,8 @@
     handle() {
       this.loading = true;
       getTjRefundList(this.form).then((response) => {
-        this.customerList = response.data;
+        if( response.data){
+          this.customerList = response.data;
         this.customerList.forEach((item1) => {
           this.tjnumber = item1.tjNumber;
         });
@@ -233,6 +234,8 @@
         });
         this.total = response.total;
         this.loading = false;
+        }
+       
       });
     },
 
@@ -268,7 +271,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 +284,7 @@
 
     // 閫�璐�
     handleRefund() {
+      console.log(this.form)
       this.customerList.forEach((item) => {
         (this.orderIds = item.tjFlowingWater.orderId),
           (this.copewith = item.totalAmount);
@@ -322,7 +326,8 @@
         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;

--
Gitblit v1.8.0