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 caa0359..6fa3a88 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 || '' }}
- 去撤销
+
+ 去撤销
+ 查看派单
+
@@ -242,6 +245,14 @@
+
+
+
+
@@ -250,8 +261,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 {
@@ -280,7 +296,10 @@ export default {
2: 'status-done',
99: 'status-done',
'__default__': 'status-pending'
- }
+ },
+ // 派单记录相关
+ dispatchPopupVisible: false,
+ currentOrderId: ''
};
},
computed: {
@@ -575,6 +594,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);
}
}
};
@@ -842,6 +869,11 @@ export default {
margin-bottom: 8rpx;
}
+ .btn-group {
+ display: flex;
+ gap: 12rpx;
+ }
+
.cancel-btn {
font-size: 22rpx;
color: #FF4D4F;
@@ -849,6 +881,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;
+ }
}
}
@@ -991,6 +1031,8 @@ export default {
color: #999;
}
}
+
+
}
}
}