From 275b6c4986343c3e4230e1ad28ce9548b017d584 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 05 二月 2026 14:06:07 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/views/business/orders.vue |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/admin/src/views/business/orders.vue b/admin/src/views/business/orders.vue
index a41d8d1..c5f770d 100644
--- a/admin/src/views/business/orders.vue
+++ b/admin/src/views/business/orders.vue
@@ -84,23 +84,21 @@
             <span v-if="row.type==1">寤舵湡娆�</span>
           </template>
         </el-table-column>
-        <el-table-column prop="remark" label="璁㈠崟澶囨敞"  width="100px"  ></el-table-column>
+        <el-table-column prop="remark" label="璁㈠崟澶囨敞"  width="200px"  ></el-table-column>
         <el-table-column prop="userRealname" label="鏀舵浜哄鍚�"  width="100px"  ></el-table-column>
         <el-table-column prop="username" label="璐熻矗浜鸿处鍙�"  width="120px"  ></el-table-column>
         <el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="150px"></el-table-column>
         <el-table-column prop="payDate" label="浠樻鏃堕棿" min-width="150px"></el-table-column>
         <el-table-column prop="cancelDate" label="鍙栨秷鏃堕棿" min-width="150px"></el-table-column>
-<!--        <el-table-column
+  <el-table-column
           label="鎿嶄綔"
           align="center"
-          min-width="150"
-          fixed="right"
+          min-width="100"
         >
           <template slot-scope="{row}">
-            <el-button type="text" class="redstate" @click="cancelDo(row)" v-if="row.status!=5 && row.status!=4&& row.status!=99" icon="el-icon-delete" v-permissions="['business:orders:update']">鍙栨秷</el-button>
-            <el-button type="text" @click="openDetail( row)" icon="el-icon-info"  >璇︽儏</el-button>
+            <el-button type="text"   @click="payStatus(row)" icon="el-icon-refresh" v-permissions="['business:orders:update']">鍚屾鐘舵��</el-button>
           </template>
-        </el-table-column>-->
+        </el-table-column>
       </el-table>
       <pagination
         @size-change="handleSizeChange"
@@ -132,7 +130,7 @@
         status: null,
         type: null,
         starttime: null,
-        endTime: null,
+        endtime: null,
         username: null,
         userRealName: null,
         name: null,
@@ -169,6 +167,23 @@
               this.dealing = false
             })
         })
+    },
+    payStatus (row) {
+      this.$dialog.actionConfirm('鎮ㄧ‘璁ゃ�愬悓姝ャ�戣璁㈠崟鏈�鏂扮姸鎬佸悧锛�', '鎿嶄綔纭')
+        .then(() => {
+          this.dealing = true
+          this.api.updateByPayStatus({id:row.id})
+            .then(res => {
+              this.$tip.apiSuccess('鎿嶄綔鎴愬姛')
+              this.search()
+            })
+            .catch(e => {
+              this.$tip.apiFailed(e)
+            })
+            .finally(() => {
+              this.dealing = false
+            })
+        })
     }
   }
 }

--
Gitblit v1.9.3