feat:结账商户完成
This commit is contained in:
1 parent
284d5a7b9c
commit
e71b344afb
6 files changed
+110
-57
No files matched your search
@@ -101,6 +101,15 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="120">
|
||||
<template #default="{ row }">
|
||||
<el-tooltip class="box-item" effect="dark" content="只有合作商家能结账" placement="top">
|
||||
<el-button icon="Tickets" text :disabled="row.merchantType != 2" type="primary" @click="doCheckout(row)">
|
||||
商户结账
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
</DraggableDepTree>
|
||||
@@ -113,6 +122,8 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import * as hardTotalApi from "/@/api/hard/hard-total"
|
||||
|
||||
const { push } = useRouter()
|
||||
|
||||
// 搜索变量
|
||||
const queryRef = ref()
|
||||
const showSearch = ref(true)
|
||||
@@ -136,6 +147,10 @@ const exportExcel = () => {
|
||||
postDownBlobFile("/hard/hard-total/export-cs", Object.assign(state.queryForm), "商户交易记录.xlsx")
|
||||
}
|
||||
|
||||
const doCheckout = (row: any) => {
|
||||
push({ path: "/mch/mch-checkout/index", query: { mchId: row.merchantId } })
|
||||
}
|
||||
|
||||
const getSummaries = (param: any) => {
|
||||
const { columns, data } = param
|
||||
const totalColumns = ["totalPayPrice", "totalPayCount", "totalRefundPrice", "totalRefundCount", "totalProfitPrice", "totalProfitCount"]
|
||||
|
||||
Reference in new issue
Block a user