|
@@ -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()
|