|
|
@@ -45,24 +45,24 @@
|
|
|
verify
|
|
|
can-be-empty
|
|
|
label="顾客姓名"
|
|
|
- prop="guestName">
|
|
|
+ prop="buyerName">
|
|
|
<el-input
|
|
|
- v-model="form.guestName"></el-input>
|
|
|
+ v-model="form.buyerName"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
can-be-empty
|
|
|
:verify="verifyPhone"
|
|
|
label="顾客电话"
|
|
|
- prop="guestPhone">
|
|
|
+ prop="buyerPhone">
|
|
|
<el-input
|
|
|
- v-model="form.guestPhone"></el-input>
|
|
|
+ v-model="form.buyerPhone"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label="证件类型"
|
|
|
- prop="guestIdentifyType">
|
|
|
+ prop="buyerIdentifyType">
|
|
|
<el-select
|
|
|
:disabled="identifyLockCheckStyle"
|
|
|
- v-model="form.guestIdentifyType"
|
|
|
+ v-model="form.buyerIdentifyType"
|
|
|
placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="(item, idx) in papersType"
|
|
|
@@ -77,24 +77,24 @@
|
|
|
锁定
|
|
|
</el-checkbox>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
+ <!-- <el-form-item
|
|
|
key="id1"
|
|
|
- :verify="form.guestIdentifyType === 0 ? verifyId : ''"
|
|
|
+ :verify="form.buyerIdentifyType === 0 ? verifyId : ''"
|
|
|
can-be-empty
|
|
|
- v-if="form.guestIdentifyType === 0 || form.guestIdentifyType === 'YONGJIUJULIU'"
|
|
|
+ v-if="form.buyerIdentifyType === 0"
|
|
|
label="证件号码"
|
|
|
- prop="guestIdentify">
|
|
|
+ prop="buyerIdentify">
|
|
|
<ReaderInput
|
|
|
type="ID"
|
|
|
- @change="form.guestName = $event.Name,Certificate=$event"
|
|
|
- v-model="form.guestIdentify"></ReaderInput>
|
|
|
- </el-form-item>
|
|
|
+ @change="form.buyerName = $event.Name,Certificate=$event"
|
|
|
+ @input="form.buyerIdentify = $event"
|
|
|
+ v-model="form.buyerIdentify"></ReaderInput>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item
|
|
|
- v-else
|
|
|
key="id2"
|
|
|
label="证件号码"
|
|
|
- prop="guestIdentify">
|
|
|
- <el-input v-model="form.guestIdentify"></el-input>
|
|
|
+ prop="buyerIdentify">
|
|
|
+ <el-input v-model="form.buyerIdentify"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
v-if="Certificate.Nation"
|
|
|
@@ -225,7 +225,7 @@ import { verifyId, verifyPhone } from '@/utils/validate'
|
|
|
import { checkWayList } from '@/assets/staticData'
|
|
|
import { setTourist } from '@/pages/common'
|
|
|
import TouristList from '../common/TouristList'
|
|
|
-import ReaderInput from '@/components/ReaderInput'
|
|
|
+// import ReaderInput from '@/components/ReaderInput'
|
|
|
import moment from 'moment'
|
|
|
import { IDENTIFY_TYPES } from '@/const'
|
|
|
import { getTeamList } from '@/api/checker'
|
|
|
@@ -242,8 +242,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- TouristList,
|
|
|
- ReaderInput
|
|
|
+ TouristList
|
|
|
+ // ReaderInput
|
|
|
},
|
|
|
computed: {
|
|
|
category () {
|
|
|
@@ -295,10 +295,10 @@ export default {
|
|
|
lock: false // 是否可编辑
|
|
|
}],
|
|
|
form: {
|
|
|
- guestIdentify: '',
|
|
|
- guestName: '',
|
|
|
- guestIdentifyType: 0,
|
|
|
- guestPhone: '',
|
|
|
+ buyerIdentify: '',
|
|
|
+ buyerName: '',
|
|
|
+ buyerIdentifyType: 0,
|
|
|
+ buyerPhone: '',
|
|
|
groupIndividual: 1,
|
|
|
count: this.$localStore.get('initNum') === '空' ? undefined : 1,
|
|
|
payChannel: '现金',
|
|
|
@@ -324,7 +324,6 @@ export default {
|
|
|
created () {
|
|
|
if (this.isTeam) {
|
|
|
getTeamList({ pageSize: -1, pageNum: 1 }).then(res => {
|
|
|
- console.log(res)
|
|
|
this.teamList = res.data.records || []
|
|
|
})
|
|
|
}
|
|
|
@@ -420,11 +419,8 @@ export default {
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.syncTouristList()
|
|
|
-
|
|
|
- const { guestName, guestIdentify, guestIdentifyType, guestPhone, playDateBegin, playDateEnd } = this.form
|
|
|
-
|
|
|
+ const { playDateBegin, playDateEnd } = this.form
|
|
|
const { id, name, checkCount, selectBatch, isUseDateLimit } = this.currentTicket
|
|
|
-
|
|
|
const price = this.currentPrice
|
|
|
|
|
|
if (this.isTeam) {
|
|
|
@@ -461,13 +457,10 @@ export default {
|
|
|
|
|
|
let tickets = this.touristList.map(item => {
|
|
|
return {
|
|
|
+ ...item,
|
|
|
ticketTypeId: id,
|
|
|
checkNum: checkCount,
|
|
|
price: this.currentPrice,
|
|
|
- guestName,
|
|
|
- guestPhone,
|
|
|
- guestIdentify,
|
|
|
- guestIdentifyType,
|
|
|
ticketNo: item.ticketNo,
|
|
|
batchConfigId: selectBatch?.id || '',
|
|
|
face: item.face,
|
|
|
@@ -490,11 +483,13 @@ export default {
|
|
|
})
|
|
|
|
|
|
if (existItem) {
|
|
|
+ Object.assign(existItem, this.form)
|
|
|
existItem.tickets = existItem.tickets.concat(tickets)
|
|
|
existItem.count = existItem.tickets.length
|
|
|
existItem.total = this.$NP.plus(existItem.total, this.totalPrice)
|
|
|
} else {
|
|
|
this.orderItems.push({
|
|
|
+ ...this.form,
|
|
|
keyId: randomString(), // 唯一标识
|
|
|
id, // 票种Id
|
|
|
ticketName: name,
|