create:支付方式交易记录
This commit is contained in:
1 parent
796714a377
commit
39bfeb1fde
2 files changed
+10
-10
No files matched your search
@@ -14,7 +14,7 @@
|
|||||||
<template #default>
|
<template #default>
|
||||||
<el-form ref="queryRef" :inline="true" :model="state.queryForm" @keyup.enter="getDataList">
|
<el-form ref="queryRef" :inline="true" :model="state.queryForm" @keyup.enter="getDataList">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form-item style="width: 200px" label="用餐时间段" prop="hourType">
|
<el-form-item style="width: 200px" label="用餐时间段" prop="hourType" v-if="false">
|
||||||
<dict-select v-model="state.queryForm.hourType" dict-code="daily_menu" />
|
<dict-select v-model="state.queryForm.hourType" dict-code="daily_menu" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="width: 450px" label="创建时间" prop="payTimeList">
|
<el-form-item style="width: 450px" label="创建时间" prop="payTimeList">
|
||||||
@@ -54,10 +54,7 @@
|
|||||||
<el-table-column type="index" label="#" width="50" />
|
<el-table-column type="index" label="#" width="50" />
|
||||||
<el-table-column label="支付方式" align="center">
|
<el-table-column label="支付方式" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div class="flex flex-row items-center justify-center">
|
<dict-tag :options="hard_pay_type" :value="row.payType" />
|
||||||
<div class="mr-2">{{ row.hardName }}</div>
|
|
||||||
<dict-tag :options="hard_type" :value="row.hardType" />
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="流水金额" align="center" prop="totalPayPrice">
|
<el-table-column label="流水金额" align="center" prop="totalPayPrice">
|
||||||
@@ -70,7 +67,7 @@
|
|||||||
<el-table-column label="流水次数" align="center" prop="totalPayCount">
|
<el-table-column label="流水次数" align="center" prop="totalPayCount">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span class="color-primary">
|
<span class="color-primary">
|
||||||
{{ row.totalPayCount }}
|
{{ row.totalPayCount || 0 }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -84,7 +81,7 @@
|
|||||||
<el-table-column label="退款次数" align="center" prop="totalRefundCount">
|
<el-table-column label="退款次数" align="center" prop="totalRefundCount">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span class="color-danger">
|
<span class="color-danger">
|
||||||
{{ row.totalRefundCount }}
|
{{ row.totalRefundCount || 0 }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -98,7 +95,7 @@
|
|||||||
<el-table-column label="实际消费次数" align="center" prop="totalProfitCount">
|
<el-table-column label="实际消费次数" align="center" prop="totalProfitCount">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span class="color-success">
|
<span class="color-success">
|
||||||
{{ row.totalProfitCount }}
|
{{ row.totalProfitCount || 0 }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -125,7 +122,7 @@ const multiple = ref(true)
|
|||||||
const draggableDepTreeRef = ref() // 树组件ref引用
|
const draggableDepTreeRef = ref() // 树组件ref引用
|
||||||
|
|
||||||
// 定义查询字典
|
// 定义查询字典
|
||||||
const { hard_type } = useDict("hard_type")
|
const { hard_pay_type } = useDict("hard_pay_type")
|
||||||
|
|
||||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||||
isPage: false,
|
isPage: false,
|
||||||
|
|||||||
@@ -143,12 +143,15 @@ const resetQuery = () => {
|
|||||||
const refreshQrcode = async (row: any) => {
|
const refreshQrcode = async (row: any) => {
|
||||||
try {
|
try {
|
||||||
await useMessageBox().confirm("是否重新生成正元二维码")
|
await useMessageBox().confirm("是否重新生成正元二维码")
|
||||||
|
} catch (e) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
await mchManangeApi.refreshQrcode({ mchId: row.id })
|
await mchManangeApi.refreshQrcode({ mchId: row.id })
|
||||||
getDataList()
|
getDataList()
|
||||||
useMessage().success("生成成功")
|
useMessage().success("生成成功")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
useMessage().error("生成失败")
|
useMessage().error("生成失败")
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user