From 7bea4880ad378d6a0ffef45f2bb15f92f7b80bd0 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 16 Jul 2024 10:15:38 +0800
Subject: [PATCH] 123

---
 src/views/capital/withdrawallist.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/views/capital/withdrawallist.vue b/src/views/capital/withdrawallist.vue
index 7522196..f9735f7 100644
--- a/src/views/capital/withdrawallist.vue
+++ b/src/views/capital/withdrawallist.vue
@@ -113,7 +113,7 @@
         </span>
 
         <template slot="action" slot-scope="text, record" v-if="record.withStatus == 0">
-          <a slot="action" href="javascript:;" @click="getEditorder(record.id)">审核</a>
+          <a slot="action" href="javascript:;" @click="getEditorder(record)">审核</a>
         </template>
       </a-table>
     </a-card>
@@ -302,7 +302,7 @@
       editOrderdialog: false,
       editOrderDialogloading: false,
       fields: ['withId', 'state'],
-
+      withId:'',
       agentqueryParam: {
         pageNum: 1,
         pageSize: 100,
@@ -320,9 +320,10 @@
     },
     // 点击修改提现状态
     getEditorder(val) {
+      this.withId = val.id
       this.editOrderdialog = true
       this.fields.forEach((v) => this.editOrderform.getFieldDecorator(v))
-      this.editOrderform.setFieldsValue(pick({ withId: val }, this.fields))
+      this.editOrderform.setFieldsValue(pick({ withId: val.withAmt }, this.fields))
     },
     // 开始更改提现状态
     OkeditOrderdialog(e) {
@@ -331,6 +332,7 @@
         if (!errors) {
           this.editOrderDialogloading = true
           values.state = e
+          values.withId = this.withId
           withdrawupdateState(values)
             .then((res) => {
               if (res.status == 0) {

--
Gitblit v1.9.3