|
|
@@ -74,6 +74,9 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="getList">搜索</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="reportExport">导出</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
|
@@ -166,10 +169,10 @@
|
|
|
prop="batchConfigName"
|
|
|
label="场次名称"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
prop="marketPrice"
|
|
|
label="市场价"
|
|
|
- ></el-table-column>
|
|
|
+ ></el-table-column> -->
|
|
|
<el-table-column
|
|
|
prop="mtPrice"
|
|
|
label="美团价"
|
|
|
@@ -232,6 +235,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="产品ID"
|
|
|
+ width="150"
|
|
|
prop="id">
|
|
|
<template
|
|
|
slot="header">
|
|
|
@@ -254,7 +258,7 @@
|
|
|
<el-table-column
|
|
|
width="80"
|
|
|
prop="salePrice"
|
|
|
- label="价格">
|
|
|
+ label="售卖价">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
width="80"
|
|
|
@@ -287,12 +291,22 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
width="170"
|
|
|
- label="游玩日期"
|
|
|
+ label="使用日期"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.useDateStart | formatDate }} 至 {{ scope.row.useDateEnd | formatDate }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="soledNums"
|
|
|
+ width="80"
|
|
|
+ label="已售">
|
|
|
+ <template
|
|
|
+ slot="header">
|
|
|
+ 已售
|
|
|
+ <Tip msg="不包含退票"></Tip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="totalStock"
|
|
|
label="总库存">
|
|
|
@@ -302,11 +316,19 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="xcRealNameType"
|
|
|
+ width="150"
|
|
|
label="携程出行人模板">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.xcRealNameType | formatXCProductName }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="realNameType"
|
|
|
+ label="实名制购票">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.realNameType === 0 ? '不限' : scope.row.realNameType === 1 ? '一证一人' : '一证多人' }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
width="110"
|
|
|
label="状态">
|
|
|
@@ -611,6 +633,43 @@ export default {
|
|
|
const batch = this.batchConfigList.find(v => v.id === id)
|
|
|
return batch ? batch.name : ''
|
|
|
}
|
|
|
+ },
|
|
|
+ reportExport () {
|
|
|
+ this.$confirm(`是否要导出明细数据`, '确认提示', {
|
|
|
+ confirmButtonText: '是',
|
|
|
+ cancelButtonText: '否',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.handelExport({
|
|
|
+ ...this.form,
|
|
|
+ export: true,
|
|
|
+ exportDetail: true
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.handelExport({
|
|
|
+ ...this.form,
|
|
|
+ export: true,
|
|
|
+ exportDetail: false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handelExport (params) {
|
|
|
+ this.form.export = true
|
|
|
+ getOTATicketSaleList(params).then(res => {
|
|
|
+ this.$confirm('导出成功,是否去下载页', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.push('/queryReport/reportExport')
|
|
|
+ }).catch(() => {})
|
|
|
+ }, () => {
|
|
|
+ this.$notify.error({
|
|
|
+ title: '提示',
|
|
|
+ message: '导出失败'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.form.export = false
|
|
|
}
|
|
|
}
|
|
|
}
|