From da1bd8069e4bbbf7c59e084278c5cfea393efac1 Mon Sep 17 00:00:00 2001 From: wx-jincw Date: Sun, 22 Mar 2026 14:04:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B4=BE=E5=8D=95=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repair/components/DispatchRecord.vue | 266 ++++++++++++++++++ app/pages/supply_chain/repair/index.vue | 46 ++- 2 files changed, 310 insertions(+), 2 deletions(-) create mode 100644 app/pages/supply_chain/repair/components/DispatchRecord.vue diff --git a/app/pages/supply_chain/repair/components/DispatchRecord.vue b/app/pages/supply_chain/repair/components/DispatchRecord.vue new file mode 100644 index 0000000..47d635a --- /dev/null +++ b/app/pages/supply_chain/repair/components/DispatchRecord.vue @@ -0,0 +1,266 @@ + + + + + \ No newline at end of file diff --git a/app/pages/supply_chain/repair/index.vue b/app/pages/supply_chain/repair/index.vue index d441480..f34dd7c 100644 --- a/app/pages/supply_chain/repair/index.vue +++ b/app/pages/supply_chain/repair/index.vue @@ -131,7 +131,10 @@ {{ item.reportTime || item.createTime || '' }} - 去撤销 + + 去撤销 + 查看派单 + @@ -222,6 +225,14 @@ + + + + @@ -230,8 +241,13 @@ import { createMaintenanceOrder, listMaintenanceOrder, listMaintenanceOrderDetail, listHouses, updateMaintenanceOrderStatus } from '@/api/property.js'; import request from '@/utils/request.js'; import { HTTP_ADMIN_URL } from '@/config/app'; +// 引入派单记录组件 +import DispatchRecord from './components/DispatchRecord.vue'; export default { + components: { + DispatchRecord + }, dicts: ['fault_type'], data() { return { @@ -260,7 +276,10 @@ export default { 2: 'status-done', 99: 'status-done', '__default__': 'status-pending' - } + }, + // 派单记录相关 + dispatchPopupVisible: false, + currentOrderId: '' }; }, computed: { @@ -566,6 +585,14 @@ export default { } } }); + }, + // 查看派单记录 + viewDispatchRecords(orderId) { + console.log('viewDispatchRecords called with orderId:', orderId); + this.currentOrderId = String(orderId); + console.log('currentOrderId:', this.currentOrderId); + this.dispatchPopupVisible = true; + console.log('dispatchPopupVisible:', this.dispatchPopupVisible); } } }; @@ -833,6 +860,11 @@ export default { margin-bottom: 8rpx; } + .btn-group { + display: flex; + gap: 12rpx; + } + .cancel-btn { font-size: 22rpx; color: #FF4D4F; @@ -840,6 +872,14 @@ export default { border-radius: 16rpx; background-color: #FFF1F0; } + + .dispatch-btn { + font-size: 22rpx; + color: #409EFF; + padding: 4rpx 12rpx; + border-radius: 16rpx; + background-color: #E6F7FF; + } } } @@ -972,6 +1012,8 @@ export default { color: #999; } } + + } } }