From f3cec0341563c2c0dd4f5df609d0689c6c450bfc Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期六, 21 三月 2026 17:11:12 +0800
Subject: [PATCH] feat(采购退货): 增加退货详情查看功能并完善退货流程

---
 src/views/salesManagement/orderManagement/index.vue |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/src/views/salesManagement/orderManagement/index.vue b/src/views/salesManagement/orderManagement/index.vue
index aac840f..f44c53f 100644
--- a/src/views/salesManagement/orderManagement/index.vue
+++ b/src/views/salesManagement/orderManagement/index.vue
@@ -69,7 +69,7 @@
         </el-table-column>
         <el-table-column label="鎿嶄綔" width="250" fixed="right" align="center">
           <template #default="scope">
-            <el-button link type="primary" @click="handleView(scope.row)">鏌ョ湅</el-button>
+            <el-button link type="primary" @click="handleView(scope.row)" style="color: #67C23A">鏌ョ湅</el-button>
             <el-button link type="primary" @click="handleEdit(scope.row)" v-if="scope.row.status === '寰呭鏍�'">缂栬緫</el-button>
             <el-button link type="primary" @click="handleReview(scope.row)" v-if="scope.row.status === '寰呭鏍�'">瀹℃牳</el-button>
             <el-button link type="primary" @click="handleTransfer(scope.row)" v-if="scope.row.status === '宸插鏍�'">杞崟</el-button>
@@ -89,7 +89,7 @@
     </el-card>
 
     <!-- 鏂板/缂栬緫瀵硅瘽妗� -->
-    <el-dialog v-model="dialogVisible" :title="dialogTitle" width="700px">
+    <FormDialog v-model="dialogVisible" :title="dialogTitle" :width="'700px'" @close="dialogVisible = false" @confirm="handleSubmit" @cancel="dialogVisible = false">
       <el-form :model="form" :rules="rules" ref="formRef" label-width="100px">
         <el-row :gutter="20">
           <el-col :span="12">
@@ -166,10 +166,10 @@
           <el-button type="primary" @click="handleSubmit">纭� 瀹�</el-button>
         </div>
       </template>
-    </el-dialog>
+    </FormDialog>
 
     <!-- 璁㈠崟瀹℃牳瀵硅瘽妗� -->
-    <el-dialog v-model="reviewDialogVisible" title="璁㈠崟瀹℃牳" width="500px">
+    <FormDialog v-model="reviewDialogVisible" title="璁㈠崟瀹℃牳" :width="'500px'" @close="reviewDialogVisible = false" @confirm="saveReview" @cancel="reviewDialogVisible = false">
       <el-form label-width="100px">
         <el-form-item label="璁㈠崟鍙�">
           <span>{{ currentOrder.orderNo }}</span>
@@ -196,10 +196,10 @@
           <el-button type="primary" @click="saveReview">纭� 瀹�</el-button>
         </div>
       </template>
-    </el-dialog>
+    </FormDialog>
 
     <!-- 璁㈠崟杞崟瀵硅瘽妗� -->
-    <el-dialog v-model="transferDialogVisible" title="璁㈠崟杞崟" width="500px">
+    <FormDialog v-model="transferDialogVisible" title="璁㈠崟杞崟" :width="'500px'" @close="transferDialogVisible = false" @confirm="saveTransfer" @cancel="transferDialogVisible = false">
       <el-form label-width="100px">
         <el-form-item label="璁㈠崟鍙�">
           <span>{{ currentOrder.orderNo }}</span>
@@ -218,13 +218,7 @@
           <el-input type="textarea" v-model="transferReason" rows="3" placeholder="璇疯緭鍏ヨ浆鍗曞師鍥�"></el-input>
         </el-form-item>
       </el-form>
-      <template #footer>
-        <div class="dialog-footer">
-          <el-button @click="transferDialogVisible = false">鍙� 娑�</el-button>
-          <el-button type="primary" @click="saveTransfer">纭� 瀹�</el-button>
-        </div>
-      </template>
-    </el-dialog>
+    </FormDialog>
   </div>
 </template>
 
@@ -233,6 +227,7 @@
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { Plus, Search } from '@element-plus/icons-vue'
 import Pagination from '@/components/PIMTable/Pagination.vue'
+import FormDialog from '@/components/Dialog/FormDialog.vue'
 
 // 鍝嶅簲寮忔暟鎹�
 const loading = ref(false)

--
Gitblit v1.9.3