-
-
-
- 新 增
-
-
- 删除
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("common.queryBtn") }}
+
+ {{ $t("common.resetBtn") }}
+
+
+
-
+
-
+
+
+
+
+
+
+ 外部订单号:
+ {{ row.thirdOrderNo }}
+ 未授权
+
+
+ 内部订单号:
+ {{ row.outOrderNo }}
+ 未授权
+
+
+ 授权id:
+ {{ row.authId }}
+ 未授权
+
+
+ 流程id:
+ {{ row.flowId }}
+ 未授权
+
-
-
-
-
-
-
@@ -49,19 +80,70 @@
-
-
-
+
-
- 同步
-
-
- 支付
-
-
- 取消
-
+
+ 押金:
+
+ {{ displayPrice(row.depositPrice, "元", 2) }}
+
+
+
+ 订单金额:
+
+ {{ displayPrice(row.orderPrice, "元", 2) }}
+
+
+
+ 支付金额:
+
+ {{ displayPrice(row.payPrice, "元", 2) }}
+
+
+
+
+
+
+
+ 设备名
+
+ {{ row.hardName }}
+
+
+
+ 设备类型
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 同步
+
+
+ 支付
+
+
+ 退款
+
+
+ 取消
+
+
@@ -79,11 +161,12 @@ import { BasicTableProps, useTable } from "/@/hooks/table";
import * as thirdMiOrderApi from '/@/api/hard/hard-third-mi-order'
import { useMessage, useMessageBox } from "/@/hooks/message";
import { useDict } from '/@/hooks/dict';
+import { displayPrice } from "/@/utils/formatMoney"
// 引入组件
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
// 定义查询字典
-const { mi_type } = useDict("mi_type")
+const { hard_third_mi_type, hard_third_mi_status, hard_type } = useDict("hard_third_mi_type", "hard_third_mi_status", "hard_type")
// 定义变量内容
const formDialogRef = ref()
// 搜索变量
@@ -141,12 +224,35 @@ const refreshOrder = async (row: any) => {
// 支付
const payOrder = async (row: any) => {
+ try {
+ await useMessage().delConfirm("是否直接支付?")
+ } finally {
+ //
+ }
try {
await thirdMiOrderApi.payOrder({ id: row.id });
getDataList();
useMessage().success('支付成功');
} catch (err: any) {
- useMessage().error(err.msg);
+ console.log("|支付|意外的错误:", err);
+ useMessage().error("支付失败");
+ }
+}
+
+// 退款
+const refund = async (row: any) => {
+ try {
+ await useMessage().delConfirm("是否全额退款?")
+ } finally {
+ //
+ }
+ try {
+ await thirdMiOrderApi.refundOrder({ id: row.id });
+ getDataList();
+ useMessage().success('退款成功');
+ } catch (err: any) {
+ console.log("|退款|意外的错误:", err);
+ useMessage().error("退款失败");
}
}
@@ -172,15 +278,16 @@ const handleDelete = async (ids: string[]) => {
.status {
display: flex;
align-items: center;
- margin-bottom: 2px;
+ font-size: 12px;
+ line-height: 20px;
span {
display: inline-block;
}
span:nth-child(1) {
- min-width: 60px;
- max-width: 100px;
+ min-width: 80px;
+ max-width: 80px;
text-align: left;
}
@@ -190,6 +297,7 @@ const handleDelete = async (ids: string[]) => {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
+ text-align: left;
}
}
\ No newline at end of file