|
@@ -72,7 +72,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="人员类别"
|
|
|
- width="130">
|
|
|
+ width="140">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span v-if="actionIndex != scope.row.id">{{
|
|
@@ -127,8 +127,9 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="success"
|
|
|
+ :loading="factorAuthLoading"
|
|
|
v-if="actionIndex == scope.row.id"
|
|
|
- @click="handleSeva(scope.$index, scope.row)">保存</el-button>
|
|
|
+ @click="handleSeva(scope.$index, scope.row)">{{ factorAuthLoading ? '保存中....' : '保存' }}</el-button>
|
|
|
<el-button
|
|
|
:disabled="!!actionIndex"
|
|
|
size="mini"
|
|
@@ -154,16 +155,22 @@
|
|
|
size="mini"
|
|
|
>
|
|
|
|
|
|
- <el-form-item label="用户来源 :" prop="source">
|
|
|
- <el-radio-group v-model="ruleForm.source">
|
|
|
- <el-radio label="7">窗口</el-radio>
|
|
|
- <el-radio label="10">美团</el-radio>
|
|
|
- <el-radio label="11">携程</el-radio>
|
|
|
- <el-radio label="13">抖音</el-radio>
|
|
|
- <el-radio label="14">猫眼</el-radio>
|
|
|
- <el-radio label="15">去哪儿</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
+ <div style="display: flex;">
|
|
|
+ <el-form-item label="用户来源 :" prop="source">
|
|
|
+ <el-radio-group v-model="ruleForm.source">
|
|
|
+ <el-radio label="7">窗口</el-radio>
|
|
|
+ <el-radio label="10">美团</el-radio>
|
|
|
+ <el-radio label="11">携程</el-radio>
|
|
|
+ <el-radio label="13">抖音</el-radio>
|
|
|
+ <el-radio label="14">猫眼</el-radio>
|
|
|
+ <el-radio label="15">去哪儿</el-radio>
|
|
|
+ <el-radio label="16">其他</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label-width="60px" v-if="ruleForm.source && ruleForm.source == 16" label="备注 :" prop="sourceRemark">
|
|
|
+ <el-input style="width: 200px;" v-model="ruleForm.sourceRemark"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
<el-form-item v-if="ruleForm.source && ruleForm.source != 7" label="核销码/订单码" prop="orderIdOrQrCode">
|
|
|
<el-input style="width: 400px;" v-model="ruleForm.orderIdOrQrCode"></el-input>
|
|
|
</el-form-item>
|
|
@@ -182,6 +189,9 @@
|
|
|
<el-form-item label="找零金额 :" v-if="ruleForm.paymentType == 2">
|
|
|
¥{{ ruleForm.small }}元
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="订单备注 :" prop="remark">
|
|
|
+ <el-input style="width: 400px;" type="textarea" :rows="2" maxlength="200" v-model="ruleForm.remark" show-word-limit></el-input>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<!-- 支付过程 控制 -->
|
|
@@ -237,16 +247,13 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
|
- querySeatList,
|
|
|
- merchantPerformTimeList,
|
|
|
orderInfoSubmit,
|
|
|
gotoMicroPay,
|
|
|
gotoCashPay,
|
|
|
payQuery,
|
|
|
selectRegion,
|
|
|
orderInfoCancel,
|
|
|
- lockOrUnLock,
|
|
|
- merchantTheatreAuditoriumList
|
|
|
+ factorAuth
|
|
|
} from '@/api/windowTicketSales/ticketingSales'
|
|
|
import { pageList as getPrintListApi } from "@/api/device/pda";
|
|
|
import { printApi } from '@/api/windowTicketSales/ticketingCollection'
|
|
@@ -301,6 +308,9 @@ import {
|
|
|
realPrice: [
|
|
|
{ required: true, message: '请输入实付金额', trigger: ['blur','change']},
|
|
|
],
|
|
|
+ sourceRemark: [
|
|
|
+ { required: true, message: '请输入备注', trigger: ['blur','change']},
|
|
|
+ ],
|
|
|
},
|
|
|
moneyAll: '',
|
|
|
payment: '',
|
|
@@ -323,6 +333,8 @@ import {
|
|
|
printListId: null,
|
|
|
printList: [],
|
|
|
|
|
|
+ // 身份证校验 loading
|
|
|
+ factorAuthLoading: false,
|
|
|
};
|
|
|
|
|
|
},
|
|
@@ -345,6 +357,8 @@ import {
|
|
|
paymentType: '', // 支付方式
|
|
|
small: '',// 实付金额
|
|
|
realPrice: '', // 实付金额
|
|
|
+ remark: '', // 订单备注
|
|
|
+ sourceRemark: '', // 来源备注
|
|
|
}
|
|
|
this.payStatus = null
|
|
|
this.orderId = null
|
|
@@ -496,6 +510,7 @@ import {
|
|
|
})
|
|
|
.catch(_ => {});
|
|
|
},
|
|
|
+ /** 保存个人信息 */
|
|
|
handleSeva(index, row) {
|
|
|
if(!this.tableForm.name){
|
|
|
this.$message.error('请输入姓名!!!');
|
|
@@ -511,9 +526,36 @@ import {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- this.$set(this.viewerList,index,JSON.parse(JSON.stringify(this.tableForm)))
|
|
|
- this.actionIndex = null
|
|
|
- this.setMoneyAll()
|
|
|
+ this.factorAuthFun(index,this.tableForm)
|
|
|
+ // this.$set(this.viewerList,index,JSON.parse(JSON.stringify(this.tableForm)))
|
|
|
+ // this.actionIndex = null
|
|
|
+ // this.setMoneyAll()
|
|
|
+ },
|
|
|
+ /** 校验 身份证 */
|
|
|
+ async factorAuthFun(index, obj){
|
|
|
+ try {
|
|
|
+ this.factorAuthLoading = true
|
|
|
+ let res = await factorAuth({
|
|
|
+ "name": obj.name,
|
|
|
+ "idcard": obj.idcard
|
|
|
+ })
|
|
|
+ if(res.code == 200){
|
|
|
+ this.factorAuthLoading = false
|
|
|
+ if(res.data.status != 1) {
|
|
|
+ this.$message.error(res.data.errReason);
|
|
|
+ }else {
|
|
|
+ this.$set(this.viewerList,index,JSON.parse(JSON.stringify(this.tableForm)))
|
|
|
+ this.actionIndex = null
|
|
|
+ this.setMoneyAll()
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ this.factorAuthLoading = false
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ this.$message.error(error);
|
|
|
+ this.factorAuthLoading = false
|
|
|
+ }
|
|
|
},
|
|
|
handleEdit(index, row) {
|
|
|
this.actionIndex = row.id
|
|
@@ -728,14 +770,14 @@ import {
|
|
|
clearInterval(this.payTime)
|
|
|
}
|
|
|
if(this.ruleForm.paymentType == 2){
|
|
|
- this.$message.error('"订单入库成功"');
|
|
|
+ this.$message('订单入库成功');
|
|
|
this.loading = false
|
|
|
// this.payStatus = 8
|
|
|
// this.getPrintListApi()
|
|
|
this.goTicketingCollections()
|
|
|
|
|
|
}else {
|
|
|
- this.$message('用户已支付!!!');
|
|
|
+ this.$message('用户已支付成功,请打印门票');
|
|
|
// 开始 打印
|
|
|
this.loading = false
|
|
|
// this.payStatus = 8
|
|
@@ -959,6 +1001,7 @@ import {
|
|
|
// this.loading = false
|
|
|
// })
|
|
|
},
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|