feat:二维码核销

This commit is contained in:
dzc committed 2025-01-09 20:51:24 +08:00
1 parent dbe572a155
commit 28447c4a6c
9 files changed
+521 -220

No files matched your search

+37 -9
View File
@@ -8,6 +8,16 @@
<select-user v-model="state.queryForm.userIds" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item class="w100" label="商户" prop="mchIds">
<select-mch v-model="state.queryForm.mchIds" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="w100" label="创建时间" prop="payTimeList">
<el-date-picker v-model="state.queryForm.payTimeList" value-format="YYYY-MM-DD" type="daterange" />
</el-form-item>
</el-col>
<el-form-item>
<el-button icon="Search" type="primary" @click="getDataList">{{ $t('common.queryBtn')
}}</el-button>
@@ -78,7 +88,7 @@
</div>
</template>
</el-table-column>
<el-table-column width="200px" label="订单信息">
<el-table-column width="200px" label="付款信息">
<template #default="{ row }">
<div class="status">
<span>商品总价</span>
@@ -100,15 +110,35 @@
</div>
</template>
</el-table-column>
<el-table-column width="270px" label="退款信息">
<template #default="{ row }">
<div class="status">
<span>退款金额</span>
<span class="color-success">
{{ displayPrice(row.refundPrice) }}
</span>
</div>
<div class="status">
<span>退款状态</span>
<span class="color-success">
<dict-tag :options="hard_refund_status" :value="row.refundStatus" />
</span>
</div>
<div class="status">
<span>退款时间</span>
<span>
{{ row.refundTime }}
</span>
</div>
</template>
</el-table-column>
<el-table-column label="支付时间" align="center" prop="payTime" width="180px" />
<el-table-column label="操作" width="200">
<template #default="{ row }">
<el-button icon="ShoppingCartFull" text type="primary"
@click="shopCarDialogRef.openDialog(row.id)">购物车</el-button>
<el-button icon="WalletFilled"
v-if="!row.payRefundId && row.orderType != 3 && row.orderType != 4 && ['5', '10'].includes(row.orderStatus)"
link type="primary" @click="doRefund(row)">
退款
<el-button icon="InfoFilled" link type="primary" @click="doRefund(row)">
详情
</el-button>
<el-button v-if="false" icon="edit-pen" text type="primary" v-auth="'hard_hardwareOrder_edit'"
@click="formDialogRef.openDialog(row.id)">编辑</el-button>
@@ -119,11 +149,9 @@
</el-table>
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
</div>
<!-- 编辑、新增 -->
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
<shop-car ref="shopCarDialogRef" />
</div>
</template>
@@ -142,7 +170,7 @@ const { push } = useRouter()
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
const ShopCar = defineAsyncComponent(() => import('../components/shop-car.vue'));
// 定义查询字典
const { hard_pay_type, hard_order_type, hard_order_status, hard_type } = useDict("hard_pay_type", "hard_order_type", "hard_order_status", "hard_type")
const { hard_pay_type, hard_order_type, hard_order_status, hard_type, hard_refund_status } = useDict("hard_pay_type", "hard_order_type", "hard_order_status", "hard_type", "hard_refund_status")
// 定义变量内容
const formDialogRef = ref()
const shopCarDialogRef = ref()
@@ -191,7 +219,7 @@ const handleClick = (e: any) => {
}
const doRefund = (row: any) => {
push({ path: '/hard/hard-after-sale/order-refund', query: { id: row.id } })
push({ path: '/hard/hard-after-sale/order-refund', query: { id: row.id, type: "view" } })
}
// 导出excel