From 552238172036acf08ccf36134282a06b5e21b936 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期五, 22 五月 2026 18:07:49 +0800
Subject: [PATCH] 代码生成

---
 admin/src/views/business/orderManagement.vue |   71 +++++++++++++++++++++++++++--------
 1 files changed, 54 insertions(+), 17 deletions(-)

diff --git a/admin/src/views/business/orderManagement.vue b/admin/src/views/business/orderManagement.vue
index 0f6b8ed..af4b106 100644
--- a/admin/src/views/business/orderManagement.vue
+++ b/admin/src/views/business/orderManagement.vue
@@ -20,7 +20,7 @@
       <el-form-item label="绫诲瀷" prop="type">
         <el-select v-model="searchForm.type" clearable placeholder="璇烽�夋嫨绫诲瀷" @change="search">
           <el-option label="灏卞湴瀛樺彇" :value="0"></el-option>
-          <el-option label="寮傚湴瀛樺彇" :value="1"></el-option>
+          <el-option label="鍚屽煄瀵勯��" :value="1"></el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="璁㈠崟鐘舵��" prop="status">
@@ -32,11 +32,7 @@
           <el-option label="宸叉帴鍗�" :value="3"></el-option>
           <el-option label="娲鹃�佷腑" :value="4"></el-option>
           <el-option label="宸插埌搴�/宸查�佽揪" :value="5"></el-option>
-          <el-option label="瀛樺湪閫炬湡" :value="6"></el-option>
           <el-option label="宸插畬鎴�" :value="7"></el-option>
-          <el-option label="璁㈠崟鍏抽棴锛堥��娆撅級" :value="96"></el-option>
-          <el-option label="鍙栨秷閫炬湡" :value="97"></el-option>
-          <el-option label="鍙栨秷涓�" :value="98"></el-option>
           <el-option label="宸插彇娑�" :value="99"></el-option>
         </el-select>
       </el-form-item>
@@ -61,18 +57,25 @@
       >
         <el-table-column prop="code" label="璁㈠崟缂栧彿" min-width="160px">
           <template slot-scope="{row}">
-            <span class="order-no" @click="handleOrderDetail(row)">{{ row.code }}</span>
+            <span class="order-no" @click="handleOrderDetail(row.id)">{{ row.code }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="code" label="鍏宠仈寮傚父璁㈠崟" min-width="160px">
+          <template slot-scope="{row}">
+            <span class="order-no" style="color: red;" @click="handleOrderDetail(row.relationOrderId)">{{ row.relationOrderCode }}</span>
           </template>
         </el-table-column>
         <el-table-column prop="goodsInfo" label="鐗╁搧淇℃伅" min-width="120px"></el-table-column>
         <el-table-column label="绫诲瀷" min-width="80px">
           <template slot-scope="{row}">
             <span v-if="row.type === 0">灏卞湴瀛樺彇</span>
-            <span v-else-if="row.type === 1">寮傚湴瀛樺彇</span>
+            <span v-else-if="row.type === 1">鍚屽煄瀵勯��</span>
             <span v-else>-</span>
           </template>
         </el-table-column>
-        <el-table-column prop="orderLevel" label="璁㈠崟绾у埆" min-width="80px"></el-table-column>
+        <el-table-column prop="isUrgent" label="璁㈠崟绾у埆" min-width="80px">
+          <template slot-scope="{row}"><span v-if="row.type ===1">{{ row.isUrgent === 1?'鏋侀�熻揪':'鏍囬�熻揪' }}</span></template>
+        </el-table-column>
         <el-table-column label="鐗╁搧淇濊垂锛堝厓锛�" min-width="120px">
           <template slot-scope="{row}">楼{{ (row.declaredFee / 100).toFixed(2) }}</template>
         </el-table-column>
@@ -85,6 +88,9 @@
         <el-table-column label="瀹炰粯鐜伴噾锛堝厓锛�" min-width="120px">
           <template slot-scope="{row}">楼{{ (row.payAmount / 100).toFixed(2) }}</template>
         </el-table-column>
+        <el-table-column label="鍔犳�ヨ垂锛堝厓锛�" min-width="120px">
+          <template slot-scope="{row}"><span v-if="row.type ===1 ">楼{{ (row.platformRewardAmount / 100).toFixed(2) }}</span></template>
+        </el-table-column>
         <el-table-column label="閫�娆鹃噾棰濓紙鍏冿級" min-width="120px">
           <template slot-scope="{row}">楼{{ (row.refundAmount / 100).toFixed(2) }}</template>
         </el-table-column>
@@ -92,18 +98,35 @@
           <template slot-scope="{row}">楼{{ (row.overdueAmount / 100).toFixed(2) }}</template>
         </el-table-column>
         <el-table-column label="寮傚父閲戦" min-width="100px">
-          <template slot-scope="{row}">楼{{ (row.exceptionAmount / 100).toFixed(2) }}</template>
+          <template slot-scope="{row}">楼{{ ((row.exceptionFee || 0) / 100).toFixed(2) }}</template>
         </el-table-column>
-        <el-table-column label="缁撶畻鐘舵��" min-width="100px">
+        <el-table-column label="浼樻儬鍗锋姷鎵�" min-width="100px">
+          <template slot-scope="{row}">楼{{ ((row.deductionAmount || 0) / 100).toFixed(2) }}</template>
+        </el-table-column>
+        <el-table-column label="闂ㄥ簵淇濈琛ヨ创" min-width="100px">
+          <template slot-scope="{row}">楼{{ ((row.shopCompensationAmount || 0) / 100).toFixed(2) }}</template>
+        </el-table-column>
+        <el-table-column  prop="statusDesc"  label="璁㈠崟鐘舵��" min-width="100px">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.status <7 ? '#e6a23c' :  (row.status ===7 ? '#67c23a' : 'grey' )}">
+              {{ row.statusDesc }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column  label="缁撶畻鐘舵��" min-width="100px">
           <template slot-scope="{row}">
             <span :style="{ color: row.settlementStatus === 1 ? '#67c23a' : '#e6a23c' }">
               {{ row.settlementStatus === 1 ? '宸茬粨绠�' : '鏈粨绠�' }}
             </span>
           </template>
         </el-table-column>
-        <el-table-column label="鎿嶄綔" min-width="120" fixed="right">
+        <el-table-column prop="payTime" label="鏀粯鏃堕棿" min-width="150px"> </el-table-column>
+        <el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="150px"> </el-table-column>
+        <el-table-column label="鎿嶄綔" min-width="180" fixed="right">
           <template slot-scope="{row}">
-            <el-button type="text" @click="handleDispatch(row)">鎵嬪姩娲惧崟</el-button>
+            <el-button type="text" v-if="row.status === 2" @click="handleDispatch(row)">鎵嬪姩娲惧崟</el-button>
+            <el-button type="text" v-if="row.status === 7 && row.exceptionStatus !== 1" @click="handleManualRefund(row)">鎵嬪姩閫�娆�</el-button>
+            <el-button type="text" v-if="row.status === 4 && !row.takeShopId && row.exceptionStatus !== 1" @click="handleAbnormal(row)">寮傚父娲惧崟</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -113,8 +136,10 @@
         :pagination="tableData.pagination"
       ></pagination>
     </template>
-    <OperaDispatch ref="operaDispatch" />
-    <OperaOrderDetail ref="operaOrderDetail" />
+    <OperaDispatch ref="operaDispatch" @success="handlePageChange" />
+    <OperaOrderDetail ref="operaOrderDetail"  @success="handlePageChange"  />
+    <OperaManualRefund ref="operaManualRefund" @success="handlePageChange" />
+    <OperaAbnormal ref="operaAbnormal" @success="handlePageChange" />
   </TableLayout>
 </template>
 
@@ -124,10 +149,12 @@
 import Pagination from '@/components/common/Pagination'
 import OperaDispatch from '@/components/business/OperaDispatch'
 import OperaOrderDetail from '@/components/business/OperaOrderDetail'
+import OperaManualRefund from '@/components/business/OperaManualRefund'
+import OperaAbnormal from '@/components/business/OperaAbnormal'
 export default {
   name: 'OrderManagement',
   extends: BaseTable,
-  components: { TableLayout, Pagination, OperaDispatch, OperaOrderDetail },
+  components: { TableLayout, Pagination, OperaDispatch, OperaOrderDetail, OperaManualRefund, OperaAbnormal }, 
   data () {
     return {
       searchForm: {
@@ -152,6 +179,9 @@
     this.search()
   },
   methods: {
+    handleAbnormal (row) {
+      this.$refs.operaAbnormal.open('寮傚父娲惧崟', row)
+    },
     handleDateChange (val) {
       this.searchForm.createStartTime = val ? val[0] : ''
       this.searchForm.createEndTime = val ? val[1] : ''
@@ -175,8 +205,15 @@
     handleDispatch (row) {
       this.$refs.operaDispatch.open(row)
     },
-    handleOrderDetail (row) {
-      this.$refs.operaOrderDetail.open(row)
+    handleManualRefund (row) {
+      this.$refs.operaManualRefund.open(row)
+    },
+    handleExceptionDispatch (row) {
+      // 寮傚父娲惧崟閫昏緫
+      this.$message.info('寮傚父娲惧崟鍔熻兘寰呭疄鐜�')
+    },
+    handleOrderDetail (id) {
+      this.$refs.operaOrderDetail.open(id)
     }
   }
 }

--
Gitblit v1.9.3