From d69eef5ee94405d95b7236ace37abadfa2fa4b58 Mon Sep 17 00:00:00 2001
From: xiao-fajia <1665375861@qq.com>
Date: Tue, 24 Sep 2024 20:53:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/login.vue | 4 ++--
.../repair/tickets/Components/UserInfo.vue | 24 ++++++++++++++++++-
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index ec3bb64..37cdab7 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -133,8 +133,8 @@ export default {
},
data() {
return {
- tenantCode:"lighting",
- // tenantCode:"lanan",
+ // tenantCode:"lighting",
+ tenantCode:"lanan",
codeUrl: "",
//是否开启图形验证码
captchaEnable: false,
diff --git a/src/views/repair/tickets/Components/UserInfo.vue b/src/views/repair/tickets/Components/UserInfo.vue
index 697bd35..79e2710 100644
--- a/src/views/repair/tickets/Components/UserInfo.vue
+++ b/src/views/repair/tickets/Components/UserInfo.vue
@@ -92,6 +92,14 @@
+
+
+ 预约订单选择
+
+
+
+
+
@@ -218,6 +226,7 @@ import {createTickets, getTicketsById} from "@/api/repair/tickets/Tickets";
import RepairAdvice from "@/views/repair/tickets/form/RepairAdvice.vue";
import QualityExplain from "@/views/repair/tickets/form/QualityExplain.vue";
import TicketChoose from "@/views/repair/tickets/Components/TicketChoose.vue";
+import request from "@/utils/request";
export default {
name: "UserInfo",
@@ -232,6 +241,8 @@ export default {
selectUser(val) {
if (!val) {
this.selectUser = {}
+ }else {
+ this.getBooking(val.userId)
}
},
selectCar(val) {
@@ -278,13 +289,15 @@ export default {
ticketType: "01",
itemList: [],
ticketsStatus: "01",
+ bookingId: null,
},
selectUser: {},
selectCar: {},
selectStaff: {},
projectList: [],
partList: [],
- otherList: []
+ otherList: [],
+ bookingList: [],
}
},
methods: {
@@ -410,6 +423,7 @@ export default {
},
// 新增基础信息init
createInit() {
+ this.formData.bookingId = this.formData?.bookingId.toString() || null
// 生成工单号
this.formData.ticketNo = this.formData.ticketNo || createUniqueCodeByHead("GD")
// 质保说明
@@ -508,6 +522,14 @@ export default {
handlePaid() {
this.formData.ticketsStatus = '02'
this.handleSave()
+ },
+ // 查看用户的预约记录
+ async getBooking(userId){
+ const res = await request({
+ url: "/repair/booking/list?userId=" + userId,
+ method: "get"
+ })
+ this.bookingList = res.data
}
}
}