From 33ce398c984111413ea72f30f194369d547e0c15 Mon Sep 17 00:00:00 2001
From: unknown <331404948@qq.com>
Date: Wed, 1 Nov 2023 19:39:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=93=8D=E9=A2=84=E7=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/api.js | 2 +
manifest.json | 2 +-
.../carEntry/examineAppointment/comp/pickDate.vue | 8 +-
pages/carEntry/operaAppointment/comp/pickDate.vue | 380 +++++++++++++++++++++
pages/carEntry/operaAppointment/comp/searchBox.vue | 9 +-
pages/carEntry/operaAppointment/comp/step1.vue | 131 ++++---
pages/carEntry/operaAppointment/comp/step2.vue | 87 +++--
pages/carEntry/operaAppointment/comp/step3.vue | 188 ++++++----
.../carEntry/operaAppointment/operaAppointment.vue | 168 +++++----
pages/carEntry/simulateAppointment/comp/step3.vue | 10 +-
pages/mineEntry/myAppointment/comp/examin.vue | 7 +-
pages/mineEntry/myAppointment/myAppointment.vue | 35 +-
12 files changed, 814 insertions(+), 213 deletions(-)
create mode 100644 pages/carEntry/operaAppointment/comp/pickDate.vue
diff --git a/config/api.js b/config/api.js
index e24717c..209afc4 100644
--- a/config/api.js
+++ b/config/api.js
@@ -106,6 +106,8 @@ export const simulationClass = (params) => http.get('business/booking/simulation
export const simulationDevices = (params) => http.get('business/booking/simulation-devices/list', {params})
// 4创建模拟预约
export const simulationCreate = (data) => http.post('business/booking/simulation-record/create', data)
+// 5获得模拟预约记录
+export const simulationPage = (params) => http.get('business/booking/simulation-record/page', {params})
// 1新增实操预约记录
export const masterCreate = (data) => http.post('business/booking/master/create', data)
// 1获得考场
diff --git a/manifest.json b/manifest.json
index 14a763a..e015b22 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.39:48080/",
+ "target" : "http://192.168.1.36:48080/",
"changeOrigin" : true,
"secure" : true,
"pathRewrite" : {
diff --git a/pages/carEntry/examineAppointment/comp/pickDate.vue b/pages/carEntry/examineAppointment/comp/pickDate.vue
index 03823f8..0dbbf45 100644
--- a/pages/carEntry/examineAppointment/comp/pickDate.vue
+++ b/pages/carEntry/examineAppointment/comp/pickDate.vue
@@ -57,11 +57,12 @@
+
+ 暂无预约排课
+
-
- 暂无预约排课
-
+
diff --git a/pages/carEntry/operaAppointment/comp/pickDate.vue b/pages/carEntry/operaAppointment/comp/pickDate.vue
new file mode 100644
index 0000000..87b4482
--- /dev/null
+++ b/pages/carEntry/operaAppointment/comp/pickDate.vue
@@ -0,0 +1,380 @@
+
+
+
+
+
+ {{ 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/operaAppointment/comp/searchBox.vue b/pages/carEntry/operaAppointment/comp/searchBox.vue
index a439fdb..4b2c559 100644
--- a/pages/carEntry/operaAppointment/comp/searchBox.vue
+++ b/pages/carEntry/operaAppointment/comp/searchBox.vue
@@ -5,8 +5,8 @@
-
+
@@ -19,6 +19,11 @@
return {
keywords: ''
}
+ },
+ methods: {
+ searchFn() {
+ this.$emit('searchFn', this.keywords)
+ }
}
}
diff --git a/pages/carEntry/operaAppointment/comp/step1.vue b/pages/carEntry/operaAppointment/comp/step1.vue
index d6817b9..07e307a 100644
--- a/pages/carEntry/operaAppointment/comp/step1.vue
+++ b/pages/carEntry/operaAppointment/comp/step1.vue
@@ -1,72 +1,117 @@
+
+ 预约时间
+
+ 教练车
-
-
- {{ item.text }}
+
+ 赣A98299学
+
+
+ 训练场地
+
+
+
+ 某某场地
+ 江西省江西市江西区尚坤丁兰国际1190
+
+
+
+
+
+
+
+
+
+ 下一步
- 下一步
\ No newline at end of file
diff --git a/pages/carEntry/operaAppointment/comp/step2.vue b/pages/carEntry/operaAppointment/comp/step2.vue
index 976100d..01179b7 100644
--- a/pages/carEntry/operaAppointment/comp/step2.vue
+++ b/pages/carEntry/operaAppointment/comp/step2.vue
@@ -1,20 +1,19 @@
-
-
-
- 某某模拟驾驶馆
- 江西省江西市江西区尚坤丁兰国际1190
-
+
+
-
-
+
+
+
+
+ {{item.name}} {{item.mobile}}
返回上一步
- 下一步
+ 下一步
@@ -22,11 +21,52 @@
\ No newline at end of file
diff --git a/pages/carEntry/simulateAppointment/comp/step3.vue b/pages/carEntry/simulateAppointment/comp/step3.vue
index 8a23573..1aebbd0 100644
--- a/pages/carEntry/simulateAppointment/comp/step3.vue
+++ b/pages/carEntry/simulateAppointment/comp/step3.vue
@@ -82,8 +82,14 @@
"classId": this.FormData.courseIds,
"deviceNum": this.FormData.deviceNum
}
- const {data: res} = await simulationCreate(obj)
- console.log(res)
+ const res = await simulationCreate(obj)
+ if(res.code==0) {
+ this.show = false
+ this.$u.toast('预约成功')
+ setTimeout(()=>{
+ this.$goPage('/pages/mineEntry/myAppointment/myAppointment?currentTab=1')
+ },1500)
+ }
}
}
}
diff --git a/pages/mineEntry/myAppointment/comp/examin.vue b/pages/mineEntry/myAppointment/comp/examin.vue
index c128621..b40e6e3 100644
--- a/pages/mineEntry/myAppointment/comp/examin.vue
+++ b/pages/mineEntry/myAppointment/comp/examin.vue
@@ -49,7 +49,12 @@
diff --git a/pages/mineEntry/myAppointment/myAppointment.vue b/pages/mineEntry/myAppointment/myAppointment.vue
index f34cef2..44adee0 100644
--- a/pages/mineEntry/myAppointment/myAppointment.vue
+++ b/pages/mineEntry/myAppointment/myAppointment.vue
@@ -11,17 +11,17 @@
{{ item.text }}
- {{total}}条记录
+ {{total}}条记录
-
-
+
+
-
+
@@ -40,7 +40,7 @@
import imitate from './comp/imitate'
import opera from './comp/opera'
import examin from './comp/examin'
- import { examSimulationRecord } from '@/config/api.js'
+ import { examSimulationRecord, simulationPage } from '@/config/api.js'
export default {
components: { imitate, opera, examin},
data() {
@@ -60,18 +60,29 @@
// 0:未签到,1:已签到,2:已签退,3:旷课,9:已取消
currentTab: 3,
currentNav: 0,
- examParams: { "pageNo": 1, "pageSize": 10, "keyWord": "", "status": '',},
+ examParams: { "pageNo": 1, "pageSize": 10, "keyWord": "", "status": '0',studentId: ''},
examList: [],
total: 20
}
},
onLoad(options) {
if(options.currentTab) this.currentTab = options.currentTab
- this.examSimulationRecordFn()
+ this.examParams.studentId = this.userId
+ this.inintList()
},
methods: {
+ inintList() {
+ this.examParams.pageNo = 1
+ this.examList = []
+ if(this.currentTab==3) {
+ this.examSimulationRecordFn()
+ }else if(this.currentTab==1) {
+ this.simulationPageFn()
+ }
+ },
changeTab(item) {
this.currentTab = item.id
+ this.inintList()
},
changeNav(item) {
this.currentNav = item.id
@@ -90,6 +101,13 @@
this.examParams.pageNo ++
this.examList.push(...res.list)
this.total = res.total
+ },
+ // 模拟器预约记录
+ async simulationPageFn() {
+ const {data: res} = await simulationPage(this.examParams)
+ this.examParams.pageNo ++
+ this.examList.push(...res.list)
+ this.total = res.total
}
}
}
@@ -154,4 +172,7 @@
padding: 0rpx 0 28rpx 0;
text-align: right;
}
+ .pad {
+ padding-bottom: 40rpx;
+ }
\ No newline at end of file