更新代码
This commit is contained in:
parent
94c0bf5d96
commit
d69eef5ee9
@ -133,8 +133,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tenantCode:"lighting",
|
// tenantCode:"lighting",
|
||||||
// tenantCode:"lanan",
|
tenantCode:"lanan",
|
||||||
codeUrl: "",
|
codeUrl: "",
|
||||||
//是否开启图形验证码
|
//是否开启图形验证码
|
||||||
captchaEnable: false,
|
captchaEnable: false,
|
||||||
|
@ -92,6 +92,14 @@
|
|||||||
</template>
|
</template>
|
||||||
<el-input v-model="selectCar.newMaintenanceMileage"/>
|
<el-input v-model="selectCar.newMaintenanceMileage"/>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item>
|
||||||
|
<template slot="label">
|
||||||
|
预约订单选择
|
||||||
|
</template>
|
||||||
|
<el-select v-model="formData.bookingId" size="small">
|
||||||
|
<el-option v-for="item in bookingList" :key="item.id" :value="item.id" :label="item.bookingTime" />
|
||||||
|
</el-select>
|
||||||
|
</el-descriptions-item>
|
||||||
<!-- <el-descriptions-item :span="3">-->
|
<!-- <el-descriptions-item :span="3">-->
|
||||||
<!-- <template slot="label">-->
|
<!-- <template slot="label">-->
|
||||||
<!-- 备注-->
|
<!-- 备注-->
|
||||||
@ -218,6 +226,7 @@ import {createTickets, getTicketsById} from "@/api/repair/tickets/Tickets";
|
|||||||
import RepairAdvice from "@/views/repair/tickets/form/RepairAdvice.vue";
|
import RepairAdvice from "@/views/repair/tickets/form/RepairAdvice.vue";
|
||||||
import QualityExplain from "@/views/repair/tickets/form/QualityExplain.vue";
|
import QualityExplain from "@/views/repair/tickets/form/QualityExplain.vue";
|
||||||
import TicketChoose from "@/views/repair/tickets/Components/TicketChoose.vue";
|
import TicketChoose from "@/views/repair/tickets/Components/TicketChoose.vue";
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "UserInfo",
|
name: "UserInfo",
|
||||||
@ -232,6 +241,8 @@ export default {
|
|||||||
selectUser(val) {
|
selectUser(val) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
this.selectUser = {}
|
this.selectUser = {}
|
||||||
|
}else {
|
||||||
|
this.getBooking(val.userId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectCar(val) {
|
selectCar(val) {
|
||||||
@ -278,13 +289,15 @@ export default {
|
|||||||
ticketType: "01",
|
ticketType: "01",
|
||||||
itemList: [],
|
itemList: [],
|
||||||
ticketsStatus: "01",
|
ticketsStatus: "01",
|
||||||
|
bookingId: null,
|
||||||
},
|
},
|
||||||
selectUser: {},
|
selectUser: {},
|
||||||
selectCar: {},
|
selectCar: {},
|
||||||
selectStaff: {},
|
selectStaff: {},
|
||||||
projectList: [],
|
projectList: [],
|
||||||
partList: [],
|
partList: [],
|
||||||
otherList: []
|
otherList: [],
|
||||||
|
bookingList: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -410,6 +423,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增基础信息init
|
// 新增基础信息init
|
||||||
createInit() {
|
createInit() {
|
||||||
|
this.formData.bookingId = this.formData?.bookingId.toString() || null
|
||||||
// 生成工单号
|
// 生成工单号
|
||||||
this.formData.ticketNo = this.formData.ticketNo || createUniqueCodeByHead("GD")
|
this.formData.ticketNo = this.formData.ticketNo || createUniqueCodeByHead("GD")
|
||||||
// 质保说明
|
// 质保说明
|
||||||
@ -508,6 +522,14 @@ export default {
|
|||||||
handlePaid() {
|
handlePaid() {
|
||||||
this.formData.ticketsStatus = '02'
|
this.formData.ticketsStatus = '02'
|
||||||
this.handleSave()
|
this.handleSave()
|
||||||
|
},
|
||||||
|
// 查看用户的预约记录
|
||||||
|
async getBooking(userId){
|
||||||
|
const res = await request({
|
||||||
|
url: "/repair/booking/list?userId=" + userId,
|
||||||
|
method: "get"
|
||||||
|
})
|
||||||
|
this.bookingList = res.data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user