diff --git a/config/api.js b/config/api.js
index c2211ff..3a5b033 100644
--- a/config/api.js
+++ b/config/api.js
@@ -98,6 +98,38 @@ export const getCardType = (params) => http.get('system/dict/cardType', {params}
export const getSignContract = (data) => http.post('business/contract/signContract', data)
// 查询学员合同签署状态
export const getContractStatus = (params) => http.get('business/contract/getContractStatus', {params})
+// 1获得模拟预约点
+export const simulationPoint = (params) => http.get('business/booking/simulation-point/page', {params})
+// 2获得模拟器排课
+export const simulationClass = (params) => http.get('business/booking/simulation-class/get', {params})
+// 3获得模拟器
+export const simulationDevices = (params) => http.get('business/booking/simulation-devices/list', {params})
+// 1新增实操预约记录
+export const masterCreate = (data) => http.post('business/booking/master/create', data)
+// 1获得考场
+export const examSitePage = (params) => http.get('business/exam-site/list', {params})
+// 2获得车辆
+export const examCarPage = (params) => http.get('business/exam-car/page', {params})
+// 3 获得考场模拟排课
+export const examSimulationClass = (params) => http.get('business/exam-simulation-class/get', {params})
+// 4 创建预约
+export const examSimulationCreate = (data) => http.post('business/exam-simulation-record/create', data)
+// 5查看考场模拟记录
+export const examSimulationRecord = (params) => http.get('business/exam-simulation-record/page', {params})
+// 6 考场模拟详情
+export const examSimulationGet = (params) => http.get('business/exam-simulation-record/get', {params})
+// 7取消预约
+export const cancelSimulation = (data) => http.put(`business/exam-simulation-record/cancelSimulation`, data)
+// 1获得实操预约排课
+export const scheduleClass = (params) => http.get('business/booking/schedule-class/get', {params})
+
+
+
+
+
+
+
+
diff --git a/manifest.json b/manifest.json
index e015b22..14a763a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -94,7 +94,7 @@
"proxy" : {
"/api" : {
// "target" : "http://192.168.1.26:48080/",
- "target" : "http://192.168.1.36:48080/",
+ "target" : "http://192.168.1.39:48080/",
"changeOrigin" : true,
"secure" : true,
"pathRewrite" : {
diff --git a/pages/carEntry/examineAppointment/comp/pickDate.vue b/pages/carEntry/examineAppointment/comp/pickDate.vue
new file mode 100644
index 0000000..9808dea
--- /dev/null
+++ b/pages/carEntry/examineAppointment/comp/pickDate.vue
@@ -0,0 +1,379 @@
+
+
+
+
+
+ {{ currentMonth }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.week }}
+ {{ item.num }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 上午
+
+
+
+ {{ item.appointmentAlreadyCount ||0 }} / {{ item.appointmentSum}}
+
+
+
+
+ {{ statusTxt[item.status] }}
+ {{ item.classTime }}
+
+
+ 下午
+
+
+
+ {{ item.appointmentAlreadyCount ||0 }} / {{ item.appointmentSum}}
+
+
+
+
+ {{ statusTxt[item.status] }}
+ {{ item.classTime }}
+
+
+
+
+
+
+ 暂无预约排课
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/carEntry/examineAppointment/comp/step1.vue b/pages/carEntry/examineAppointment/comp/step1.vue
index 318e431..6534d83 100644
--- a/pages/carEntry/examineAppointment/comp/step1.vue
+++ b/pages/carEntry/examineAppointment/comp/step1.vue
@@ -1,13 +1,13 @@
-
+
- 某某模拟驾驶馆
- 江西省江西市江西区尚坤丁兰国际1190
+ {{ item.name}}
+ {{ item.address }}
-
-
+
+
@@ -20,9 +20,14 @@
diff --git a/pages/carEntry/examineAppointment/comp/step4.vue b/pages/carEntry/examineAppointment/comp/step4.vue
deleted file mode 100644
index 0c25941..0000000
--- a/pages/carEntry/examineAppointment/comp/step4.vue
+++ /dev/null
@@ -1,168 +0,0 @@
-
-
-
-
-
-
- 返回上一步
- 确认预约
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/carEntry/examineAppointment/examineAppointment.vue b/pages/carEntry/examineAppointment/examineAppointment.vue
index 7581ea1..f0fa3ff 100644
--- a/pages/carEntry/examineAppointment/examineAppointment.vue
+++ b/pages/carEntry/examineAppointment/examineAppointment.vue
@@ -33,9 +33,9 @@
-
-
-
+
+
+
@@ -46,16 +46,76 @@
import step1 from './comp/step1'
import step2 from './comp/step2'
import step3 from './comp/step3'
- import step4 from './comp/step4'
+ import { examSitePage, examSimulationClass, examCarPage, } from '@/config/api'
// import step5 from './comp/step5'
export default {
- components: { step1, step2, step3, step4,},
+ components: { step1, step2, step3,},
data() {
return {
- currentStep: 1
+ currentStep: 1,
+ siteParams: {
+ siteType: '2',
+ carType: 'C1',
+ longitude: '',
+ latitude: ''
+ },
+ carParams: { "pageNo": 1, "pageSize": 10, "carType": 'C1',},
+ FormData: {
+ examSiteId: '',
+ carId: '',
+ subject: 2,
+ classDate: '',
+ classTime: '',
+ licnum: '',
+ siteName: '',
+ trainType: 'C1'
+ },
+ siteList: [],
+ carList: [],
+ carTotal: 20
}
},
+ onLoad(options) {
+ if(options.subject) this.FormData.subject = options.subject
+ this.FormData.trainType = this.vuex_userInfo.trainType
+ // this.carType =
+ let vuex_cityInfo = this.$store.state.user.vuex_cityInfo
+ if(!vuex_cityInfo.lat) {
+ this.$store.dispatch('getCity')
+ }else {
+ this.siteParams.latitude = vuex_cityInfo.lat
+ this.siteParams.longitude = vuex_cityInfo.lng
+ }
+ this.examSitePageFn()
+ },
methods: {
+ // 选择车型
+ chooseCar(item) {
+ this.FormData.carId = item.id
+ this.FormData.carId = item.id
+ this.FormData.licnum = item.licnum
+ console.log(this.FormData.carId)
+ },
+ // 选择考场
+ chooseSite(item) {
+ this.FormData.examSiteId = item.id
+ this.FormData.siteName = item.name
+ this.examCarPageFn()
+ },
+ // 获得考场
+ async examSitePageFn() {
+ const {data: res} = await examSitePage(this.siteParams)
+ this.siteList = res
+ },
+ // 获得车辆
+ async examCarPageFn() {
+ this.carParams.examId = this.FormData.examSiteId
+ const {data: res} = await examCarPage(this.carParams)
+ this.carParams.pageNo++
+ this.carList.push(...res.list)
+ this.carTotal = res.total
+ },
+
changeStep(num) {
this.currentStep = num
}
diff --git a/pages/carEntry/operaAppointment/operaAppointment.vue b/pages/carEntry/operaAppointment/operaAppointment.vue
index 0c769ec..9617a55 100644
--- a/pages/carEntry/operaAppointment/operaAppointment.vue
+++ b/pages/carEntry/operaAppointment/operaAppointment.vue
@@ -33,6 +33,7 @@
import step2 from './comp/step2'
import step3 from './comp/step3'
import step4 from './comp/step4'
+ import { scheduleClass } from '@/config/api.js'
export default {
components: { coachInfo, step2, step3, step4 },
data() {
@@ -51,10 +52,15 @@
this.title = '实操训练科目三预约'
this.currentStep = 2
}
+ this.scheduleClassFn()
},
methods: {
changeStep(num) {
this.currentStep = num
+ },
+ async scheduleClassFn() {
+ let obj = { "coachId": this.vuex_userInfo.coachId, "subject": 2, "classDate": "2023-10-30", "studentId": this.userId}
+ const {data: res} = await scheduleClass(obj)
}
}
}
diff --git a/pages/carEntry/simulateAppointment/comp/step1.vue b/pages/carEntry/simulateAppointment/comp/step1.vue
index 8f7061a..af094c4 100644
--- a/pages/carEntry/simulateAppointment/comp/step1.vue
+++ b/pages/carEntry/simulateAppointment/comp/step1.vue
@@ -1,162 +1,69 @@
-
-
-
-
- 下一步
+
+
+
+ 某某模拟驾驶馆
+ 江西省江西市江西区尚坤丁兰国际1190
+
+
+
+
+
+
+
+
+
+ 下一步
+
+
\ No newline at end of file
diff --git a/pages/carEntry/simulateAppointment/simulateAppointment.vue b/pages/carEntry/simulateAppointment/simulateAppointment.vue
index 64de228..a253bcc 100644
--- a/pages/carEntry/simulateAppointment/simulateAppointment.vue
+++ b/pages/carEntry/simulateAppointment/simulateAppointment.vue
@@ -17,8 +17,8 @@
- 预约时间
选择模拟驾驶馆
+ 预约时间
选择模拟器
@@ -34,6 +34,7 @@
import step1 from './comp/step1'
import step2 from './comp/step2'
import step3 from './comp/step3'
+ import { simulationDevices, simulationPoint } from '@/config/api.js'
export default {
components: { step1, step2, step3 },
data() {
@@ -41,9 +42,19 @@
currentStep: 1
}
},
+ created() {
+ this.simulationPointFn()
+ },
methods: {
changeStep(num) {
this.currentStep = num
+ },
+ // 模拟点
+ async simulationPointFn() {
+ const {data: res} = await simulationPoint({schoolId: this.vuex_userInfo.schoolId,lat: this.vuex_cityInfo.lat,lng: this.vuex_cityInfo.lng})
+ },
+ async simulationDevicesFn() {
+ const {data: res} = await simulationDevices()
}
}
}
diff --git a/pages/mineEntry/myAppointment/comp/examin.vue b/pages/mineEntry/myAppointment/comp/examin.vue
index e421106..084149a 100644
--- a/pages/mineEntry/myAppointment/comp/examin.vue
+++ b/pages/mineEntry/myAppointment/comp/examin.vue
@@ -3,11 +3,11 @@
- 科目三考场模拟
- xx考场
+ 科目二考场模拟
+ 科目三考场模拟
- 待处理
+ {{item.writtenoffStatus==0?'待处理': '已完成'}}
@@ -19,9 +19,9 @@
- 所选车型
+ 所选考场
- C1
+ {{ item.examSiteName}}
@@ -30,20 +30,25 @@
预约时间
- 2023/08/08 10:00:00
+ {{item.classTime}}
- 完成时间:2022-01-04
+
+
+ 取消时间:{{ item.cancelTime }}
- 去评价
+ 去评价