shaogen1995 9 月之前
父节点
当前提交
3f2d74002c
共有 2 个文件被更改,包括 11 次插入3 次删除
  1. 1 1
      src/views/ExhibitionService/BookingTime.vue
  2. 10 2
      src/views/ExhibitionService/bookInputInfo.vue

+ 1 - 1
src/views/ExhibitionService/BookingTime.vue

@@ -51,7 +51,7 @@ const noticeText = ref('' as any)
 const getBookingTime = async () => {
   const res: any = await sceneBookingApi.getBookingTimeAPI(selectDate.value.slice(0, 10))
   if (res.code == 0) {
-    bookingTimeList.value = res.data.time.map(v=>({
+    bookingTimeList.value = res.data.time.map((v:any)=>({
       ...v,
       lastTime:v.time.split('-')[1]
     }))

+ 10 - 2
src/views/ExhibitionService/bookInputInfo.vue

@@ -9,6 +9,9 @@ const personList = ref([
   {
     bookDate: store.selectDate,
     bookId:store.selectId,
+    // name: 'xxxx',
+    // num: '421083199504071212',
+    // phone: '18702025050',
     name: '',
     num: '',
     phone: '',
@@ -29,6 +32,9 @@ const addPerson = () => {
   personList.value.push({
     bookDate: store.selectDate,
     bookId:'',
+    // name: 'xxxx',
+    // num: '421083199504071212',
+    // phone: '18702025050',
     name: '',
     num: '',
     phone: '',
@@ -52,6 +58,9 @@ const submit = async() => {
 
   data.forEach((v:any)=>{
     
+    console.log('ppp',v.bookDate.split(' '));
+    
+
     if(v.bookDate) v.bookDate=v.bookDate.split(' ')[0]
 
     const {name,phone,num}=v
@@ -71,9 +80,8 @@ const submit = async() => {
   if(flag2) return showToast('参观人电话格式错误')
   if(flag3) return showToast('身份证或社保卡格式错误')
   
- 
 
-  const res:any =await sceneBookingApi.submitBookingAPI(personList.value)
+  const res:any =await sceneBookingApi.submitBookingAPI(data)
   if(res.code === 0){
     showToast('预约成功')
     router.back()