|
@@ -44,12 +44,12 @@
|
|
clearable
|
|
clearable
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
- <el-option
|
|
|
|
- v-for="dict in statusMapList"
|
|
|
|
- :key="dict.value"
|
|
|
|
- :label="dict.name"
|
|
|
|
- :value="dict.value"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in dict.type.order_status_type"
|
|
|
|
+ :key="dict.value"
|
|
|
|
+ :label="dict.label"
|
|
|
|
+ :value="dict.value"
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="购票渠道">
|
|
<el-form-item label="购票渠道">
|
|
@@ -148,7 +148,7 @@
|
|
<el-table-column label="剧目名称" align="center" prop="performName" />
|
|
<el-table-column label="剧目名称" align="center" prop="performName" />
|
|
<el-table-column label="票务名称" align="center" prop="goodsName" />
|
|
<el-table-column label="票务名称" align="center" prop="goodsName" />
|
|
<el-table-column label="票务类型" align="center" prop="seatTypeName" />
|
|
<el-table-column label="票务类型" align="center" prop="seatTypeName" />
|
|
- <el-table-column label="购票渠道" align="center" prop="type">
|
|
|
|
|
|
+ <el-table-column label="购票渠道" align="center" prop="source">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<!-- <span>{{ sourceList[scope.row.source] }}</span> -->
|
|
<!-- <span>{{ sourceList[scope.row.source] }}</span> -->
|
|
<dict-tag :options="dict.type.order_form_type" :value="scope.row.source"/>
|
|
<dict-tag :options="dict.type.order_form_type" :value="scope.row.source"/>
|
|
@@ -164,9 +164,9 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- <el-table-column label="优惠信息" align="center" prop="refundReason" />-->
|
|
<!-- <el-table-column label="优惠信息" align="center" prop="refundReason" />-->
|
|
- <el-table-column label="支付方式" align="center" prop="type">
|
|
|
|
|
|
+ <el-table-column label="支付方式" align="center" prop="payWay">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{ payWayList[scope.row.payWay] }}</span>
|
|
|
|
|
|
+ <dict-tag :options="dict.type.pay_way_type" :value="scope.row.payWay"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
@@ -175,12 +175,12 @@
|
|
<span>{{ parseTime(scope.row.payTime) }}</span>
|
|
<span>{{ parseTime(scope.row.payTime) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="订单状态" align="center" prop="type">
|
|
|
|
|
|
+ <el-table-column label="订单状态" align="center" prop="status">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{statusList[scope.row.status]}}</span>
|
|
|
|
|
|
+ <dict-tag :options="dict.type.order_status_type" :value="scope.row.status"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="已核销票数" align="center" prop="type">
|
|
|
|
|
|
+ <el-table-column label="已核销票数" align="center" prop="usedTotal">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.usedTotal }}</span>
|
|
<span>{{ scope.row.usedTotal }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -193,6 +193,12 @@
|
|
@click="openDetails(scope.row)"
|
|
@click="openDetails(scope.row)"
|
|
v-hasPermi="['orderMr:orderMr:details']"
|
|
v-hasPermi="['orderMr:orderMr:details']"
|
|
>详情</el-button>
|
|
>详情</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="print([scope.row])"
|
|
|
|
+ v-hasPermi="['orderMr:orderMr:print']"
|
|
|
|
+ >打印小票</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -213,13 +219,13 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
-import { pageList,downOrderListXls } from '@/api/order/orderMr'
|
|
|
|
-import detailsDia from "./dialog/details.vue";
|
|
|
|
|
|
+import { pageList,downOrderListXls, printApi } from '@/api/order/orderMr'
|
|
|
|
+import detailsDia from "./dialog/details";
|
|
import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
|
|
import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
|
|
import { exportExcel } from '@/utils/exportexcel'
|
|
import { exportExcel } from '@/utils/exportexcel'
|
|
export default {
|
|
export default {
|
|
name: "agreement",
|
|
name: "agreement",
|
|
- dicts: ['order_form_type'],
|
|
|
|
|
|
+ dicts: ['order_form_type','order_status_type','pay_way_type'],
|
|
components: { detailsDia },
|
|
components: { detailsDia },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -249,42 +255,6 @@ export default {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
},
|
|
},
|
|
- statusList: {
|
|
|
|
- 0: '待支付',
|
|
|
|
- 2: '超时取消',
|
|
|
|
- 3: '待使用',
|
|
|
|
- 4: '退款中',
|
|
|
|
- 5: '己退款',
|
|
|
|
- 6: '退款失败',
|
|
|
|
- 7: '己使用',
|
|
|
|
- 8: '己超期',
|
|
|
|
- 9: '关闭',
|
|
|
|
- },
|
|
|
|
- statusMapList: [
|
|
|
|
- {id: 1, name: '待支付', value: 0},
|
|
|
|
- {id: 2, name: '超时取消', value: 2},
|
|
|
|
- {id: 3, name: '待使用', value: 3},
|
|
|
|
- {id: 4, name: '退款中', value: 4},
|
|
|
|
- {id: 5, name: '己退款', value: 5},
|
|
|
|
- {id: 6, name: '退款失败', value: 6},
|
|
|
|
- {id: 7, name: '己使用', value: 7},
|
|
|
|
- {id: 8, name: '己超期', value: 8},
|
|
|
|
- {id: 9, name: '关闭', value: 9},
|
|
|
|
- ],
|
|
|
|
- payList: {
|
|
|
|
- 0: '未支付',
|
|
|
|
- 1: '已支付',
|
|
|
|
- 2: '支付中',
|
|
|
|
- 3: '支付失败',
|
|
|
|
- 4: '支付退款',
|
|
|
|
- },
|
|
|
|
- payWayList: {
|
|
|
|
- 'cahsh': '现金',
|
|
|
|
- 'wecaht.applet': '微信小程序支付',
|
|
|
|
- 'alipay': '支付宝OTA',
|
|
|
|
- 'wecaht.h5': '微信公众号支付',
|
|
|
|
- 'meituan': '美团支付',
|
|
|
|
- },
|
|
|
|
visibleStatus: false,
|
|
visibleStatus: false,
|
|
newObj: {},
|
|
newObj: {},
|
|
visibleType: '',
|
|
visibleType: '',
|
|
@@ -401,6 +371,26 @@ export default {
|
|
this.$message.info('您已取消导出!');
|
|
this.$message.info('您已取消导出!');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 打印
|
|
|
|
+ async print(list = []){
|
|
|
|
+ if(!list||list.length==0) return
|
|
|
|
+ let idList = []
|
|
|
|
+ list.forEach((item,index)=>{
|
|
|
|
+ idList.push(item.id)
|
|
|
|
+ })
|
|
|
|
+ console.log("isList===",idList)
|
|
|
|
+ return
|
|
|
|
+ try {
|
|
|
|
+ let res = await printApi({viewerList:idList})
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
+
|
|
|
|
+ }else {
|
|
|
|
+ throw new Error(res)
|
|
|
|
+ }
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.error("error=====",error)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|