1935 lines
83 KiB
JavaScript
1935 lines
83 KiB
JavaScript
import { x as ElFormItem, y as ElInput, aq as ElSelect, ar as ElOption, h as ElButton, w as ElForm, U as ElRow, V as ElCol, m as ElDropdown, n as ElDropdownMenu, o as ElDropdownItem, N as check_default, a8 as circle_close_default, l as ElTooltip, ax as ElPopover, F as ElScrollbar, aC as ElCheckbox, al as ElTable, am as ElTableColumn, q as ElTag, u as ElEmpty, ao as vLoading, a9 as question_filled_default, T as ElCard, a3 as ElDescriptions, a4 as ElDescriptionsItem, P as ElRadioGroup, Q as ElRadio, v as ElDialog, D as ElMessageBox, E as ElMessage } from "./element-plus.CkEW9frc.js";
|
||
import { _ as __unplugin_components_19 } from "./index.fgd49PES.js";
|
||
import { J as defineComponent, t as onMounted, aP as resolveDirective, S as openBlock, _ as createElementBlock, a6 as withDirectives, ab as vShow, a1 as createBaseVNode, $ as createVNode, a0 as withCtx, T as createBlock, a9 as createTextVNode, aw as withModifiers, o as unref, H as Fragment, ay as renderList, a8 as createCommentVNode, aa as toDisplayString, r as ref, ak as reactive } from "./.pnpm.BW3P1y8f.js";
|
||
import { l as httpRequest, j as useDictStore, R as ResultEnum } from "./index.CMd5bD1r.js";
|
||
import { _ as _sfc_main$1 } from "./ImportModal.vue_vue_type_script_setup_true_lang.DYvH1hkB.js";
|
||
import { _ as _sfc_main$2 } from "./ExportModal.vue_vue_type_script_setup_true_lang.Bok1HJuH.js";
|
||
import { _ as _export_sfc } from "./_plugin-vue_export-helper.1tPrXgE0.js";
|
||
import "./codemirror.CvJAcn2d.js";
|
||
import "./exceljs.CkFT-P7Q.js";
|
||
const API_PATH = "/yifan/yifan_wx_pay";
|
||
const YifanWxPayOrderAPI = {
|
||
// 列表查询
|
||
listYifanWxPayOrder(query) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/admin/list`,
|
||
method: "get",
|
||
params: query
|
||
});
|
||
},
|
||
// 详情查询
|
||
detailYifanWxPayOrder(id) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/detail/${id}`,
|
||
method: "get"
|
||
});
|
||
},
|
||
// 新增
|
||
createYifanWxPayOrder(body) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/create`,
|
||
method: "post",
|
||
data: body
|
||
});
|
||
},
|
||
// 修改(带主键)
|
||
updateYifanWxPayOrder(id, body) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/update/${id}`,
|
||
method: "put",
|
||
data: body
|
||
});
|
||
},
|
||
// 删除(支持批量)
|
||
deleteYifanWxPayOrder(ids) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/delete`,
|
||
method: "delete",
|
||
data: ids
|
||
});
|
||
},
|
||
// 批量启用/停用
|
||
batchYifanWxPayOrder(body) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/available/setting`,
|
||
method: "patch",
|
||
data: body
|
||
});
|
||
},
|
||
// 导出
|
||
exportYifanWxPayOrder(query) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/export`,
|
||
method: "post",
|
||
data: query,
|
||
responseType: "blob"
|
||
});
|
||
},
|
||
// 下载导入模板
|
||
downloadTemplateYifanWxPayOrder() {
|
||
return httpRequest({
|
||
url: `${API_PATH}/download/template`,
|
||
method: "post",
|
||
responseType: "blob"
|
||
});
|
||
},
|
||
// 导入
|
||
importYifanWxPayOrder(body) {
|
||
return httpRequest({
|
||
url: `${API_PATH}/import`,
|
||
method: "post",
|
||
data: body,
|
||
headers: { "Content-Type": "multipart/form-data" }
|
||
});
|
||
}
|
||
};
|
||
const _hoisted_1 = { class: "app-container" };
|
||
const _hoisted_2 = { class: "search-container" };
|
||
const _hoisted_3 = { class: "card-header" };
|
||
const _hoisted_4 = { class: "data-table__toolbar" };
|
||
const _hoisted_5 = { class: "data-table__toolbar--left" };
|
||
const _hoisted_6 = { class: "data-table__toolbar--right" };
|
||
const _hoisted_7 = { class: "dialog-footer" };
|
||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||
...{
|
||
name: "YifanWxPayOrder",
|
||
inheritAttrs: false
|
||
},
|
||
__name: "index",
|
||
setup(__props) {
|
||
const visible = ref(true);
|
||
const queryFormRef = ref();
|
||
const dataFormRef = ref();
|
||
const total = ref(0);
|
||
const selectIds = ref([]);
|
||
const selectionRows = ref([]);
|
||
const loading = ref(false);
|
||
const dictStore = useDictStore();
|
||
const dictTypes = [];
|
||
const tradeStateTextMap = {
|
||
NOTPAY: "待支付",
|
||
SUCCESS: "已支付",
|
||
REFUND: "已退款",
|
||
CLOSED: "已关闭"
|
||
};
|
||
const pageTableData = ref([]);
|
||
const tableColumns = ref([
|
||
{ prop: "selection", label: "选择框", show: true },
|
||
{ prop: "index", label: "序号", show: true },
|
||
{ prop: "created_time", label: "创建", show: true },
|
||
{ prop: "updated_time", label: "更新", show: false },
|
||
{ prop: "created_id", label: "创建人", show: false },
|
||
{ prop: "updated_id", label: "更新人", show: false },
|
||
{ prop: "is_deleted", label: "是否删除(0否 1是)", show: false },
|
||
{ prop: "status", label: "状态(0禁用 1启用)", show: false },
|
||
{ prop: "order_no", label: "订单号", show: true },
|
||
{ prop: "out_trade_no", label: "商户单号", show: true },
|
||
{ prop: "transaction_id", label: "微信支付订单号", show: false },
|
||
{ prop: "user_id", label: "用户ID", show: true },
|
||
{ prop: "user_name", label: "用户", show: true },
|
||
{ prop: "inviter_name", label: "邀请人", show: true },
|
||
{ prop: "inviter_mobile", label: "邀请手机", show: true },
|
||
{ prop: "openid", label: "用户openid", show: false },
|
||
{ prop: "pay_channel", label: "支付渠道(wechat/alipay/balance)", show: false },
|
||
{ prop: "description", label: "商品", show: true },
|
||
{ prop: "total_amount", label: "金额(分)", show: true },
|
||
{ prop: "pay_amount", label: "实付金额(分)", show: false },
|
||
{ prop: "business_type", label: "业务类型(naming_report等)", show: false },
|
||
{ prop: "business_id", label: "业务ID", show: false },
|
||
{ prop: "order_status", label: "订单状态(0待支付 1已支付 2已取消 3已退款 4已关闭)", show: false },
|
||
{ prop: "trade_state", label: "支付状态", show: true },
|
||
{ prop: "trade_state_desc", label: "支付状态描述", show: false },
|
||
{ prop: "pay_time", label: "支付时间", show: false },
|
||
{ prop: "expire_time", label: "订单过期时间", show: false },
|
||
{ prop: "refund_amount", label: "退款金额(分)", show: false },
|
||
{ prop: "refund_time", label: "退款时间", show: false },
|
||
{ prop: "remark", label: "备注", show: false },
|
||
{ prop: "success_time", label: "支付成功时间", show: true },
|
||
{ prop: "operation", label: "操作", show: true }
|
||
]);
|
||
const exportColumns = [
|
||
{ prop: "created_time", label: "创建时间" },
|
||
{ prop: "updated_time", label: "更新时间" },
|
||
{ prop: "created_id", label: "创建人ID" },
|
||
{ prop: "updated_id", label: "更新人ID" },
|
||
{ prop: "is_deleted", label: "是否删除(0否 1是)" },
|
||
{ prop: "status", label: "状态(0禁用 1启用)" },
|
||
{ prop: "order_no", label: "订单号" },
|
||
{ prop: "out_trade_no", label: "商户订单号(微信支付用)" },
|
||
{ prop: "transaction_id", label: "微信支付订单号" },
|
||
{ prop: "user_id", label: "用户ID" },
|
||
{ prop: "user_name", label: "用户昵称" },
|
||
{ prop: "inviter_name", label: "邀请人昵称" },
|
||
{ prop: "inviter_mobile", label: "邀请人手机号" },
|
||
{ prop: "openid", label: "用户openid" },
|
||
{ prop: "pay_channel", label: "支付渠道(wechat/alipay/balance)" },
|
||
{ prop: "description", label: "商品描述" },
|
||
{ prop: "total_amount", label: "订单金额(分)" },
|
||
{ prop: "pay_amount", label: "实付金额(分)" },
|
||
{ prop: "business_type", label: "业务类型(naming_report等)" },
|
||
{ prop: "business_id", label: "业务ID" },
|
||
{ prop: "order_status", label: "订单状态(0待支付 1已支付 2已取消 3已退款 4已关闭)" },
|
||
{ prop: "trade_state", label: "支付状态(NOTPAY/SUCCESS/REFUND/CLOSED)" },
|
||
{ prop: "trade_state_desc", label: "支付状态描述" },
|
||
{ prop: "pay_time", label: "支付时间" },
|
||
{ prop: "expire_time", label: "订单过期时间" },
|
||
{ prop: "refund_amount", label: "退款金额(分)" },
|
||
{ prop: "refund_time", label: "退款时间" },
|
||
{ prop: "remark", label: "备注" },
|
||
{ prop: "success_time", label: "支付成功时间" }
|
||
];
|
||
const curdContentConfig = {
|
||
permPrefix: "module_yifan:yifan_wx_pay_order",
|
||
cols: exportColumns,
|
||
importTemplate: () => YifanWxPayOrderAPI.downloadTemplateYifanWxPayOrder(),
|
||
exportsAction: async (params) => {
|
||
var _a, _b, _c, _d;
|
||
const query = { ...params };
|
||
query.status = "0";
|
||
query.page_no = 1;
|
||
query.page_size = 9999;
|
||
const all = [];
|
||
while (true) {
|
||
const res = await YifanWxPayOrderAPI.listYifanWxPayOrder(query);
|
||
const items = ((_b = (_a = res.data) == null ? void 0 : _a.data) == null ? void 0 : _b.items) || [];
|
||
const total2 = ((_d = (_c = res.data) == null ? void 0 : _c.data) == null ? void 0 : _d.total) || 0;
|
||
all.push(...items);
|
||
if (all.length >= total2 || items.length === 0) break;
|
||
query.page_no += 1;
|
||
}
|
||
return all;
|
||
}
|
||
};
|
||
const detailFormData = ref({});
|
||
const createdDateRange = ref([]);
|
||
const updatedDateRange = ref([]);
|
||
const queryFormData = reactive({
|
||
page_no: 1,
|
||
page_size: 10,
|
||
created_time: void 0,
|
||
updated_time: void 0,
|
||
created_id: void 0,
|
||
updated_id: void 0,
|
||
is_deleted: void 0,
|
||
status: void 0,
|
||
order_no: void 0,
|
||
out_trade_no: void 0,
|
||
transaction_id: void 0,
|
||
user_id: void 0,
|
||
user_name: void 0,
|
||
user_mobile: void 0,
|
||
openid: void 0,
|
||
pay_channel: void 0,
|
||
total_amount: void 0,
|
||
pay_amount: void 0,
|
||
business_type: void 0,
|
||
business_id: void 0,
|
||
order_status: void 0,
|
||
trade_state: void 0,
|
||
trade_state_desc: void 0,
|
||
pay_time: void 0,
|
||
expire_time: void 0,
|
||
refund_amount: void 0,
|
||
refund_time: void 0,
|
||
remark: void 0,
|
||
success_time: void 0
|
||
});
|
||
const formData = reactive({
|
||
id: void 0,
|
||
is_deleted: void 0,
|
||
status: void 0,
|
||
order_no: void 0,
|
||
out_trade_no: void 0,
|
||
transaction_id: void 0,
|
||
user_id: void 0,
|
||
openid: void 0,
|
||
pay_channel: void 0,
|
||
description: void 0,
|
||
total_amount: void 0,
|
||
pay_amount: void 0,
|
||
business_type: void 0,
|
||
business_id: void 0,
|
||
order_status: void 0,
|
||
trade_state: void 0,
|
||
trade_state_desc: void 0,
|
||
pay_time: void 0,
|
||
expire_time: void 0,
|
||
refund_amount: void 0,
|
||
refund_time: void 0,
|
||
remark: void 0,
|
||
success_time: void 0
|
||
});
|
||
const dialogVisible = reactive({
|
||
title: "",
|
||
visible: false,
|
||
type: "create"
|
||
});
|
||
const rules = reactive({
|
||
id: [
|
||
{ required: false, message: "请输入主键ID", trigger: "blur" }
|
||
],
|
||
created_time: [
|
||
{ required: true, message: "请输入创建时间", trigger: "blur" }
|
||
],
|
||
updated_time: [
|
||
{ required: true, message: "请输入更新时间", trigger: "blur" }
|
||
],
|
||
created_id: [
|
||
{ required: false, message: "请输入创建人ID", trigger: "blur" }
|
||
],
|
||
updated_id: [
|
||
{ required: false, message: "请输入更新人ID", trigger: "blur" }
|
||
],
|
||
is_deleted: [
|
||
{ required: true, message: "请输入是否删除(0否 1是)", trigger: "blur" }
|
||
],
|
||
status: [
|
||
{ required: true, message: "请输入状态(0禁用 1启用)", trigger: "blur" }
|
||
],
|
||
order_no: [
|
||
{ required: true, message: "请输入订单号", trigger: "blur" }
|
||
],
|
||
out_trade_no: [
|
||
{ required: false, message: "请输入商户订单号(微信支付用)", trigger: "blur" }
|
||
],
|
||
transaction_id: [
|
||
{ required: false, message: "请输入微信支付订单号", trigger: "blur" }
|
||
],
|
||
user_id: [
|
||
{ required: true, message: "请输入用户ID", trigger: "blur" }
|
||
],
|
||
openid: [
|
||
{ required: false, message: "请输入用户openid", trigger: "blur" }
|
||
],
|
||
pay_channel: [
|
||
{ required: true, message: "请输入支付渠道(wechat/alipay/balance)", trigger: "blur" }
|
||
],
|
||
description: [
|
||
{ required: true, message: "请输入商品描述", trigger: "blur" }
|
||
],
|
||
total_amount: [
|
||
{ required: true, message: "请输入订单金额(分)", trigger: "blur" }
|
||
],
|
||
pay_amount: [
|
||
{ required: false, message: "请输入实付金额(分)", trigger: "blur" }
|
||
],
|
||
business_type: [
|
||
{ required: true, message: "请输入业务类型(naming_report等)", trigger: "blur" }
|
||
],
|
||
business_id: [
|
||
{ required: false, message: "请输入业务ID", trigger: "blur" }
|
||
],
|
||
order_status: [
|
||
{ required: true, message: "请输入订单状态(0待支付 1已支付 2已取消 3已退款 4已关闭)", trigger: "blur" }
|
||
],
|
||
trade_state: [
|
||
{ required: false, message: "请输入支付状态(NOTPAY/SUCCESS/REFUND/CLOSED)", trigger: "blur" }
|
||
],
|
||
trade_state_desc: [
|
||
{ required: false, message: "请输入支付状态描述", trigger: "blur" }
|
||
],
|
||
pay_time: [
|
||
{ required: false, message: "请输入支付时间", trigger: "blur" }
|
||
],
|
||
expire_time: [
|
||
{ required: false, message: "请输入订单过期时间", trigger: "blur" }
|
||
],
|
||
refund_amount: [
|
||
{ required: false, message: "请输入退款金额(分)", trigger: "blur" }
|
||
],
|
||
refund_time: [
|
||
{ required: false, message: "请输入退款时间", trigger: "blur" }
|
||
],
|
||
remark: [
|
||
{ required: false, message: "请输入备注", trigger: "blur" }
|
||
],
|
||
success_time: [
|
||
{ required: false, message: "请输入支付成功时间", trigger: "blur" }
|
||
],
|
||
uuid: [
|
||
{ required: true, message: "请输入UUID全局唯一标识", trigger: "blur" }
|
||
]
|
||
});
|
||
const importDialogVisible = ref(false);
|
||
const exportsDialogVisible = ref(false);
|
||
function handleOpenImportDialog() {
|
||
importDialogVisible.value = true;
|
||
}
|
||
function handleOpenExportsModal() {
|
||
exportsDialogVisible.value = true;
|
||
}
|
||
async function handleRefresh() {
|
||
await loadingData();
|
||
}
|
||
async function loadingData() {
|
||
loading.value = true;
|
||
try {
|
||
const response = await YifanWxPayOrderAPI.listYifanWxPayOrder(queryFormData);
|
||
pageTableData.value = response.data.data.items;
|
||
total.value = response.data.data.total;
|
||
} catch (error) {
|
||
console.error(error);
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}
|
||
async function handleQuery() {
|
||
queryFormData.page_no = 1;
|
||
loadingData();
|
||
}
|
||
async function handleResetQuery() {
|
||
queryFormRef.value.resetFields();
|
||
queryFormData.page_no = 1;
|
||
createdDateRange.value = [];
|
||
updatedDateRange.value = [];
|
||
queryFormData.created_time = void 0;
|
||
queryFormData.updated_time = void 0;
|
||
loadingData();
|
||
}
|
||
const initialFormData = {
|
||
id: void 0,
|
||
is_deleted: void 0,
|
||
status: void 0,
|
||
order_no: void 0,
|
||
out_trade_no: void 0,
|
||
transaction_id: void 0,
|
||
user_id: void 0,
|
||
openid: void 0,
|
||
pay_channel: void 0,
|
||
description: void 0,
|
||
total_amount: void 0,
|
||
pay_amount: void 0,
|
||
business_type: void 0,
|
||
business_id: void 0,
|
||
order_status: void 0,
|
||
trade_state: void 0,
|
||
trade_state_desc: void 0,
|
||
pay_time: void 0,
|
||
expire_time: void 0,
|
||
refund_amount: void 0,
|
||
refund_time: void 0,
|
||
remark: void 0,
|
||
success_time: void 0
|
||
};
|
||
async function resetForm() {
|
||
if (dataFormRef.value) {
|
||
dataFormRef.value.resetFields();
|
||
dataFormRef.value.clearValidate();
|
||
}
|
||
Object.assign(formData, initialFormData);
|
||
}
|
||
async function handleSelectionChange(selection) {
|
||
selectIds.value = selection.map((item) => item.id);
|
||
selectionRows.value = selection;
|
||
}
|
||
async function handleCloseDialog() {
|
||
dialogVisible.visible = false;
|
||
resetForm();
|
||
}
|
||
async function handleOpenDialog(type, id) {
|
||
dialogVisible.type = type;
|
||
if (id) {
|
||
const response = await YifanWxPayOrderAPI.detailYifanWxPayOrder(id);
|
||
if (type === "detail") {
|
||
dialogVisible.title = "详情";
|
||
Object.assign(detailFormData.value, response.data.data);
|
||
} else if (type === "update") {
|
||
dialogVisible.title = "修改";
|
||
Object.assign(formData, response.data.data);
|
||
}
|
||
} else {
|
||
dialogVisible.title = "新增YifanWxPayOrder";
|
||
formData.id = void 0;
|
||
formData.is_deleted = void 0;
|
||
formData.status = void 0;
|
||
formData.order_no = void 0;
|
||
formData.out_trade_no = void 0;
|
||
formData.transaction_id = void 0;
|
||
formData.user_id = void 0;
|
||
formData.openid = void 0;
|
||
formData.pay_channel = void 0;
|
||
formData.description = void 0;
|
||
formData.total_amount = void 0;
|
||
formData.pay_amount = void 0;
|
||
formData.business_type = void 0;
|
||
formData.business_id = void 0;
|
||
formData.order_status = void 0;
|
||
formData.trade_state = void 0;
|
||
formData.trade_state_desc = void 0;
|
||
formData.pay_time = void 0;
|
||
formData.expire_time = void 0;
|
||
formData.refund_amount = void 0;
|
||
formData.refund_time = void 0;
|
||
formData.remark = void 0;
|
||
formData.success_time = void 0;
|
||
}
|
||
dialogVisible.visible = true;
|
||
}
|
||
async function handleSubmit() {
|
||
dataFormRef.value.validate(async (valid) => {
|
||
if (valid) {
|
||
loading.value = true;
|
||
const id = formData.id;
|
||
if (id) {
|
||
try {
|
||
await YifanWxPayOrderAPI.updateYifanWxPayOrder(id, { id, ...formData });
|
||
dialogVisible.visible = false;
|
||
resetForm();
|
||
handleCloseDialog();
|
||
handleResetQuery();
|
||
} catch (error) {
|
||
console.error(error);
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
} else {
|
||
try {
|
||
await YifanWxPayOrderAPI.createYifanWxPayOrder(formData);
|
||
dialogVisible.visible = false;
|
||
resetForm();
|
||
handleCloseDialog();
|
||
handleResetQuery();
|
||
} catch (error) {
|
||
console.error(error);
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
async function handleDelete(ids) {
|
||
ElMessageBox.confirm("确认删除该项数据?", "警告", {
|
||
confirmButtonText: "确定",
|
||
cancelButtonText: "取消",
|
||
type: "warning"
|
||
}).then(async () => {
|
||
try {
|
||
loading.value = true;
|
||
await YifanWxPayOrderAPI.deleteYifanWxPayOrder(ids);
|
||
handleResetQuery();
|
||
} catch (error) {
|
||
console.error(error);
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}).catch(() => {
|
||
ElMessageBox.close();
|
||
});
|
||
}
|
||
async function handleMoreClick(status) {
|
||
if (selectIds.value.length) {
|
||
ElMessageBox.confirm(`确认${status === "0" ? "启用" : "停用"}该项数据?`, "警告", {
|
||
confirmButtonText: "确定",
|
||
cancelButtonText: "取消",
|
||
type: "warning"
|
||
}).then(async () => {
|
||
try {
|
||
loading.value = true;
|
||
await YifanWxPayOrderAPI.batchYifanWxPayOrder({ ids: selectIds.value, status });
|
||
handleResetQuery();
|
||
} catch (error) {
|
||
console.error(error);
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}).catch(() => {
|
||
ElMessageBox.close();
|
||
});
|
||
}
|
||
}
|
||
const handleUpload = async (formData2) => {
|
||
try {
|
||
const response = await YifanWxPayOrderAPI.importYifanWxPayOrder(formData2);
|
||
if (response.data.code === ResultEnum.SUCCESS) {
|
||
ElMessage.success(`${response.data.msg},${response.data.data}`);
|
||
importDialogVisible.value = false;
|
||
await handleQuery();
|
||
}
|
||
} catch (error) {
|
||
console.error(error);
|
||
}
|
||
};
|
||
onMounted(async () => {
|
||
if (dictTypes.length > 0) {
|
||
await dictStore.getDict(dictTypes);
|
||
}
|
||
loadingData();
|
||
});
|
||
return (_ctx, _cache) => {
|
||
const _component_el_input = ElInput;
|
||
const _component_el_form_item = ElFormItem;
|
||
const _component_el_option = ElOption;
|
||
const _component_el_select = ElSelect;
|
||
const _component_el_button = ElButton;
|
||
const _component_el_form = ElForm;
|
||
const _component_el_tooltip = ElTooltip;
|
||
const _component_el_col = ElCol;
|
||
const _component_el_dropdown_item = ElDropdownItem;
|
||
const _component_el_dropdown_menu = ElDropdownMenu;
|
||
const _component_el_dropdown = ElDropdown;
|
||
const _component_el_row = ElRow;
|
||
const _component_el_checkbox = ElCheckbox;
|
||
const _component_el_scrollbar = ElScrollbar;
|
||
const _component_el_popover = ElPopover;
|
||
const _component_el_empty = ElEmpty;
|
||
const _component_el_table_column = ElTableColumn;
|
||
const _component_el_tag = ElTag;
|
||
const _component_el_table = ElTable;
|
||
const _component_pagination = __unplugin_components_19;
|
||
const _component_el_card = ElCard;
|
||
const _component_el_descriptions_item = ElDescriptionsItem;
|
||
const _component_el_descriptions = ElDescriptions;
|
||
const _component_el_radio = ElRadio;
|
||
const _component_el_radio_group = ElRadioGroup;
|
||
const _component_el_dialog = ElDialog;
|
||
const _directive_hasPerm = resolveDirective("hasPerm");
|
||
const _directive_loading = vLoading;
|
||
return openBlock(), createElementBlock("div", _hoisted_1, [
|
||
withDirectives(createBaseVNode("div", _hoisted_2, [
|
||
createVNode(_component_el_form, {
|
||
ref_key: "queryFormRef",
|
||
ref: queryFormRef,
|
||
model: queryFormData,
|
||
"label-suffix": ":",
|
||
inline: true,
|
||
onSubmit: withModifiers(handleQuery, ["prevent"])
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_form_item, {
|
||
label: "用户名字",
|
||
prop: "user_name"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: queryFormData.user_name,
|
||
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => queryFormData.user_name = $event),
|
||
placeholder: "请输入用户名字",
|
||
clearable: ""
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "用户手机号",
|
||
prop: "user_mobile"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: queryFormData.user_mobile,
|
||
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => queryFormData.user_mobile = $event),
|
||
placeholder: "请输入用户手机号",
|
||
clearable: ""
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "支付状态",
|
||
prop: "trade_state"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_select, {
|
||
modelValue: queryFormData.trade_state,
|
||
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => queryFormData.trade_state = $event),
|
||
placeholder: "请选择支付状态",
|
||
style: { "width": "170px" },
|
||
clearable: ""
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_option, {
|
||
value: "NOTPAY",
|
||
label: "待支付"
|
||
}),
|
||
createVNode(_component_el_option, {
|
||
value: "SUCCESS",
|
||
label: "已支付"
|
||
}),
|
||
createVNode(_component_el_option, {
|
||
value: "REFUND",
|
||
label: "已退款"
|
||
}),
|
||
createVNode(_component_el_option, {
|
||
value: "CLOSED",
|
||
label: "已关闭"
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, null, {
|
||
default: withCtx(() => [
|
||
withDirectives((openBlock(), createBlock(_component_el_button, {
|
||
type: "primary",
|
||
icon: "search",
|
||
onClick: handleQuery
|
||
}, {
|
||
default: withCtx(() => [..._cache[36] || (_cache[36] = [
|
||
createTextVNode(" 查询 ", -1)
|
||
])]),
|
||
_: 1
|
||
})), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:query"]]
|
||
]),
|
||
withDirectives((openBlock(), createBlock(_component_el_button, {
|
||
icon: "refresh",
|
||
onClick: handleResetQuery
|
||
}, {
|
||
default: withCtx(() => [..._cache[37] || (_cache[37] = [
|
||
createTextVNode(" 重置 ", -1)
|
||
])]),
|
||
_: 1
|
||
})), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:query"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 512), [
|
||
[vShow, visible.value]
|
||
]),
|
||
createVNode(_component_el_card, { class: "data-table" }, {
|
||
header: withCtx(() => [
|
||
createBaseVNode("div", _hoisted_3, [
|
||
createBaseVNode("span", null, [
|
||
_cache[38] || (_cache[38] = createTextVNode(" 微信支付订单列表 ", -1)),
|
||
createVNode(_component_el_tooltip, { content: "微信支付订单列表" }, {
|
||
default: withCtx(() => [
|
||
createVNode(unref(question_filled_default), { class: "w-4 h-4 mx-1" })
|
||
]),
|
||
_: 1
|
||
})
|
||
])
|
||
])
|
||
]),
|
||
footer: withCtx(() => [
|
||
createVNode(_component_pagination, {
|
||
total: total.value,
|
||
"onUpdate:total": _cache[8] || (_cache[8] = ($event) => total.value = $event),
|
||
page: queryFormData.page_no,
|
||
"onUpdate:page": _cache[9] || (_cache[9] = ($event) => queryFormData.page_no = $event),
|
||
limit: queryFormData.page_size,
|
||
"onUpdate:limit": _cache[10] || (_cache[10] = ($event) => queryFormData.page_size = $event),
|
||
onPagination: loadingData
|
||
}, null, 8, ["total", "page", "limit"])
|
||
]),
|
||
default: withCtx(() => [
|
||
createBaseVNode("div", _hoisted_4, [
|
||
createBaseVNode("div", _hoisted_5, [
|
||
createVNode(_component_el_row, { gutter: 10 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
withDirectives((openBlock(), createBlock(_component_el_button, {
|
||
type: "success",
|
||
icon: "plus",
|
||
onClick: _cache[3] || (_cache[3] = ($event) => handleOpenDialog("create"))
|
||
}, {
|
||
default: withCtx(() => [..._cache[39] || (_cache[39] = [
|
||
createTextVNode(" 新增 ", -1)
|
||
])]),
|
||
_: 1
|
||
})), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:create"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
withDirectives((openBlock(), createBlock(_component_el_button, {
|
||
type: "danger",
|
||
icon: "delete",
|
||
disabled: selectIds.value.length === 0,
|
||
onClick: _cache[4] || (_cache[4] = ($event) => handleDelete(selectIds.value))
|
||
}, {
|
||
default: withCtx(() => [..._cache[40] || (_cache[40] = [
|
||
createTextVNode(" 批量删除 ", -1)
|
||
])]),
|
||
_: 1
|
||
}, 8, ["disabled"])), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:delete"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
withDirectives((openBlock(), createBlock(_component_el_dropdown, { trigger: "click" }, {
|
||
dropdown: withCtx(() => [
|
||
createVNode(_component_el_dropdown_menu, null, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_dropdown_item, {
|
||
icon: unref(check_default),
|
||
onClick: _cache[5] || (_cache[5] = ($event) => handleMoreClick("0"))
|
||
}, {
|
||
default: withCtx(() => [..._cache[42] || (_cache[42] = [
|
||
createTextVNode(" 批量启用 ", -1)
|
||
])]),
|
||
_: 1
|
||
}, 8, ["icon"]),
|
||
createVNode(_component_el_dropdown_item, {
|
||
icon: unref(circle_close_default),
|
||
onClick: _cache[6] || (_cache[6] = ($event) => handleMoreClick("1"))
|
||
}, {
|
||
default: withCtx(() => [..._cache[43] || (_cache[43] = [
|
||
createTextVNode(" 批量停用 ", -1)
|
||
])]),
|
||
_: 1
|
||
}, 8, ["icon"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_button, {
|
||
type: "default",
|
||
disabled: selectIds.value.length === 0,
|
||
icon: "ArrowDown"
|
||
}, {
|
||
default: withCtx(() => [..._cache[41] || (_cache[41] = [
|
||
createTextVNode(" 更多 ", -1)
|
||
])]),
|
||
_: 1
|
||
}, 8, ["disabled"])
|
||
]),
|
||
_: 1
|
||
})), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:batch"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createBaseVNode("div", _hoisted_6, [
|
||
createVNode(_component_el_row, { gutter: 10 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_tooltip, { content: "导入" }, {
|
||
default: withCtx(() => [
|
||
withDirectives(createVNode(_component_el_button, {
|
||
type: "success",
|
||
icon: "upload",
|
||
circle: "",
|
||
onClick: handleOpenImportDialog
|
||
}, null, 512), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:import"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_tooltip, { content: "导出" }, {
|
||
default: withCtx(() => [
|
||
withDirectives(createVNode(_component_el_button, {
|
||
type: "warning",
|
||
icon: "download",
|
||
circle: "",
|
||
onClick: handleOpenExportsModal
|
||
}, null, 512), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:export"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_tooltip, { content: "搜索显示/隐藏" }, {
|
||
default: withCtx(() => [
|
||
withDirectives(createVNode(_component_el_button, {
|
||
type: "info",
|
||
icon: "search",
|
||
circle: "",
|
||
onClick: _cache[7] || (_cache[7] = ($event) => visible.value = !visible.value)
|
||
}, null, 512), [
|
||
[_directive_hasPerm, ["*:*:*"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_tooltip, { content: "刷新" }, {
|
||
default: withCtx(() => [
|
||
withDirectives(createVNode(_component_el_button, {
|
||
type: "primary",
|
||
icon: "refresh",
|
||
circle: "",
|
||
onClick: handleRefresh
|
||
}, null, 512), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:query"]]
|
||
])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_col, { span: 1.5 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_popover, {
|
||
placement: "bottom",
|
||
trigger: "click"
|
||
}, {
|
||
reference: withCtx(() => [
|
||
createVNode(_component_el_button, {
|
||
type: "danger",
|
||
icon: "operation",
|
||
circle: ""
|
||
})
|
||
]),
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_scrollbar, { "max-height": "350px" }, {
|
||
default: withCtx(() => [
|
||
(openBlock(true), createElementBlock(Fragment, null, renderList(tableColumns.value, (column) => {
|
||
return openBlock(), createElementBlock(Fragment, {
|
||
key: column.prop
|
||
}, [
|
||
column.prop ? (openBlock(), createBlock(_component_el_checkbox, {
|
||
key: 0,
|
||
modelValue: column.show,
|
||
"onUpdate:modelValue": ($event) => column.show = $event,
|
||
label: column.label
|
||
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"])) : createCommentVNode("", true)
|
||
], 64);
|
||
}), 128))
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
])
|
||
]),
|
||
withDirectives((openBlock(), createBlock(_component_el_table, {
|
||
ref: "tableRef",
|
||
data: pageTableData.value,
|
||
"highlight-current-row": "",
|
||
class: "data-table__content",
|
||
height: 450,
|
||
border: "",
|
||
stripe: "",
|
||
onSelectionChange: handleSelectionChange
|
||
}, {
|
||
empty: withCtx(() => [
|
||
createVNode(_component_el_empty, {
|
||
"image-size": 80,
|
||
description: "暂无数据"
|
||
})
|
||
]),
|
||
default: withCtx(() => {
|
||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
|
||
return [
|
||
((_a = tableColumns.value.find((col) => col.prop === "selection")) == null ? void 0 : _a.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 0,
|
||
type: "selection",
|
||
"min-width": "55",
|
||
align: "center"
|
||
})) : createCommentVNode("", true),
|
||
((_b = tableColumns.value.find((col) => col.prop === "index")) == null ? void 0 : _b.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 1,
|
||
fixed: "",
|
||
label: "序号",
|
||
"min-width": "60"
|
||
}, {
|
||
default: withCtx((scope) => [
|
||
createTextVNode(toDisplayString((queryFormData.page_no - 1) * queryFormData.page_size + scope.$index + 1), 1)
|
||
]),
|
||
_: 1
|
||
})) : createCommentVNode("", true),
|
||
((_c = tableColumns.value.find((col) => col.prop === "created_time")) == null ? void 0 : _c.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 2,
|
||
label: "创建",
|
||
prop: "created_time",
|
||
"min-width": "95"
|
||
})) : createCommentVNode("", true),
|
||
((_d = tableColumns.value.find((col) => col.prop === "updated_time")) == null ? void 0 : _d.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 3,
|
||
label: "更新",
|
||
prop: "updated_time",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_e = tableColumns.value.find((col) => col.prop === "created_id")) == null ? void 0 : _e.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 4,
|
||
label: "创建人",
|
||
prop: "created_id",
|
||
"min-width": "140"
|
||
}, {
|
||
default: withCtx((scope) => [
|
||
createVNode(_component_el_tag, null, {
|
||
default: withCtx(() => {
|
||
var _a2;
|
||
return [
|
||
createTextVNode(toDisplayString((_a2 = scope.row.created_by) == null ? void 0 : _a2.name), 1)
|
||
];
|
||
}),
|
||
_: 2
|
||
}, 1024)
|
||
]),
|
||
_: 1
|
||
})) : createCommentVNode("", true),
|
||
((_f = tableColumns.value.find((col) => col.prop === "updated_id")) == null ? void 0 : _f.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 5,
|
||
label: "更新人",
|
||
prop: "updated_id",
|
||
"min-width": "140"
|
||
}, {
|
||
default: withCtx((scope) => [
|
||
createVNode(_component_el_tag, null, {
|
||
default: withCtx(() => {
|
||
var _a2;
|
||
return [
|
||
createTextVNode(toDisplayString((_a2 = scope.row.updated_by) == null ? void 0 : _a2.name), 1)
|
||
];
|
||
}),
|
||
_: 2
|
||
}, 1024)
|
||
]),
|
||
_: 1
|
||
})) : createCommentVNode("", true),
|
||
((_g = tableColumns.value.find((col) => col.prop === "is_deleted")) == null ? void 0 : _g.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 6,
|
||
label: "是否删除(0否 1是)",
|
||
prop: "is_deleted",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_h = tableColumns.value.find((col) => col.prop === "status")) == null ? void 0 : _h.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 7,
|
||
label: "状态(0禁用 1启用)",
|
||
prop: "status",
|
||
"min-width": "140"
|
||
}, {
|
||
default: withCtx((scope) => [
|
||
createVNode(_component_el_tag, {
|
||
type: scope.row.status == "0" ? "success" : "info"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(scope.row.status == "0" ? "启用" : "停用"), 1)
|
||
]),
|
||
_: 2
|
||
}, 1032, ["type"])
|
||
]),
|
||
_: 1
|
||
})) : createCommentVNode("", true),
|
||
((_i = tableColumns.value.find((col) => col.prop === "order_no")) == null ? void 0 : _i.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 8,
|
||
label: "订单号",
|
||
prop: "order_no",
|
||
"min-width": "120"
|
||
})) : createCommentVNode("", true),
|
||
((_j = tableColumns.value.find((col) => col.prop === "out_trade_no")) == null ? void 0 : _j.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 9,
|
||
label: "商户单号",
|
||
prop: "out_trade_no",
|
||
"min-width": "120"
|
||
})) : createCommentVNode("", true),
|
||
((_k = tableColumns.value.find((col) => col.prop === "transaction_id")) == null ? void 0 : _k.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 10,
|
||
label: "微信支付订单号",
|
||
prop: "transaction_id",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_l = tableColumns.value.find((col) => col.prop === "user_id")) == null ? void 0 : _l.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 11,
|
||
label: "用户ID",
|
||
prop: "user_id",
|
||
"min-width": "70"
|
||
})) : createCommentVNode("", true),
|
||
((_m = tableColumns.value.find((col) => col.prop === "user_name")) == null ? void 0 : _m.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 12,
|
||
label: "用户",
|
||
prop: "user_name",
|
||
"min-width": "80"
|
||
})) : createCommentVNode("", true),
|
||
((_n = tableColumns.value.find((col) => col.prop === "inviter_name")) == null ? void 0 : _n.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 13,
|
||
label: "邀请人",
|
||
prop: "inviter_name",
|
||
"min-width": "80"
|
||
})) : createCommentVNode("", true),
|
||
((_o = tableColumns.value.find((col) => col.prop === "inviter_mobile")) == null ? void 0 : _o.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 14,
|
||
label: "邀请手机",
|
||
prop: "inviter_mobile",
|
||
"min-width": "100"
|
||
})) : createCommentVNode("", true),
|
||
((_p = tableColumns.value.find((col) => col.prop === "openid")) == null ? void 0 : _p.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 15,
|
||
label: "用户openid",
|
||
prop: "openid",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_q = tableColumns.value.find((col) => col.prop === "pay_channel")) == null ? void 0 : _q.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 16,
|
||
label: "支付渠道(wechat/alipay/balance)",
|
||
prop: "pay_channel",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_r = tableColumns.value.find((col) => col.prop === "description")) == null ? void 0 : _r.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 17,
|
||
label: "商品",
|
||
prop: "description",
|
||
"min-width": "120"
|
||
})) : createCommentVNode("", true),
|
||
((_s = tableColumns.value.find((col) => col.prop === "total_amount")) == null ? void 0 : _s.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 18,
|
||
label: "金额",
|
||
prop: "total_amount",
|
||
"min-width": "80"
|
||
})) : createCommentVNode("", true),
|
||
((_t = tableColumns.value.find((col) => col.prop === "pay_amount")) == null ? void 0 : _t.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 19,
|
||
label: "实付金额(分)",
|
||
prop: "pay_amount",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_u = tableColumns.value.find((col) => col.prop === "business_type")) == null ? void 0 : _u.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 20,
|
||
label: "业务类型(naming_report等)",
|
||
prop: "business_type",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_v = tableColumns.value.find((col) => col.prop === "business_id")) == null ? void 0 : _v.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 21,
|
||
label: "业务ID",
|
||
prop: "business_id",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_w = tableColumns.value.find((col) => col.prop === "order_status")) == null ? void 0 : _w.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 22,
|
||
label: "订单状态(0待支付 1已支付 2已取消 3已退款 4已关闭)",
|
||
prop: "order_status",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_x = tableColumns.value.find((col) => col.prop === "trade_state")) == null ? void 0 : _x.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 23,
|
||
label: "支付状态",
|
||
prop: "trade_state",
|
||
"min-width": "85"
|
||
}, {
|
||
default: withCtx((scope) => [
|
||
createVNode(_component_el_tag, {
|
||
type: scope.row.trade_state === "SUCCESS" ? "success" : scope.row.trade_state === "NOTPAY" ? "warning" : scope.row.trade_state === "REFUND" ? "info" : scope.row.trade_state === "CLOSED" ? "danger" : "info"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(tradeStateTextMap[scope.row.trade_state] ?? scope.row.trade_state), 1)
|
||
]),
|
||
_: 2
|
||
}, 1032, ["type"])
|
||
]),
|
||
_: 1
|
||
})) : createCommentVNode("", true),
|
||
((_y = tableColumns.value.find((col) => col.prop === "trade_state_desc")) == null ? void 0 : _y.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 24,
|
||
label: "支付状态描述",
|
||
prop: "trade_state_desc",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_z = tableColumns.value.find((col) => col.prop === "pay_time")) == null ? void 0 : _z.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 25,
|
||
label: "支付时间",
|
||
prop: "pay_time",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_A = tableColumns.value.find((col) => col.prop === "expire_time")) == null ? void 0 : _A.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 26,
|
||
label: "订单过期时间",
|
||
prop: "expire_time",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_B = tableColumns.value.find((col) => col.prop === "refund_amount")) == null ? void 0 : _B.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 27,
|
||
label: "退款金额(分)",
|
||
prop: "refund_amount",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_C = tableColumns.value.find((col) => col.prop === "refund_time")) == null ? void 0 : _C.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 28,
|
||
label: "退款时间",
|
||
prop: "refund_time",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_D = tableColumns.value.find((col) => col.prop === "remark")) == null ? void 0 : _D.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 29,
|
||
label: "备注",
|
||
prop: "remark",
|
||
"min-width": "140"
|
||
})) : createCommentVNode("", true),
|
||
((_E = tableColumns.value.find((col) => col.prop === "success_time")) == null ? void 0 : _E.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 30,
|
||
label: "支付成功时间",
|
||
prop: "success_time",
|
||
"min-width": "95"
|
||
})) : createCommentVNode("", true),
|
||
((_F = tableColumns.value.find((col) => col.prop === "operation")) == null ? void 0 : _F.show) ? (openBlock(), createBlock(_component_el_table_column, {
|
||
key: 31,
|
||
fixed: "right",
|
||
label: "操作",
|
||
align: "center",
|
||
"min-width": "80"
|
||
}, {
|
||
default: withCtx((scope) => [
|
||
createVNode(_component_el_dropdown, { trigger: "click" }, {
|
||
dropdown: withCtx(() => [
|
||
createVNode(_component_el_dropdown_menu, null, {
|
||
default: withCtx(() => [
|
||
withDirectives((openBlock(), createBlock(_component_el_dropdown_item, {
|
||
onClick: ($event) => handleOpenDialog("detail", scope.row.id)
|
||
}, {
|
||
default: withCtx(() => [..._cache[45] || (_cache[45] = [
|
||
createTextVNode(" 详情 ", -1)
|
||
])]),
|
||
_: 1
|
||
}, 8, ["onClick"])), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:detail"]]
|
||
]),
|
||
withDirectives((openBlock(), createBlock(_component_el_dropdown_item, {
|
||
onClick: ($event) => handleOpenDialog("update", scope.row.id)
|
||
}, {
|
||
default: withCtx(() => [..._cache[46] || (_cache[46] = [
|
||
createTextVNode(" 编辑 ", -1)
|
||
])]),
|
||
_: 1
|
||
}, 8, ["onClick"])), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:update"]]
|
||
]),
|
||
withDirectives((openBlock(), createBlock(_component_el_dropdown_item, {
|
||
onClick: ($event) => handleDelete([scope.row.id])
|
||
}, {
|
||
default: withCtx(() => [..._cache[47] || (_cache[47] = [
|
||
createTextVNode(" 删除 ", -1)
|
||
])]),
|
||
_: 1
|
||
}, 8, ["onClick"])), [
|
||
[_directive_hasPerm, ["module_yifan:yifan_wx_pay_order:delete"]]
|
||
])
|
||
]),
|
||
_: 2
|
||
}, 1024)
|
||
]),
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_button, {
|
||
type: "primary",
|
||
size: "small",
|
||
link: ""
|
||
}, {
|
||
default: withCtx(() => [..._cache[44] || (_cache[44] = [
|
||
createTextVNode(" 更多 ", -1)
|
||
])]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 2
|
||
}, 1024)
|
||
]),
|
||
_: 1
|
||
})) : createCommentVNode("", true)
|
||
];
|
||
}),
|
||
_: 1
|
||
}, 8, ["data"])), [
|
||
[_directive_loading, loading.value]
|
||
])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_dialog, {
|
||
modelValue: dialogVisible.visible,
|
||
"onUpdate:modelValue": _cache[33] || (_cache[33] = ($event) => dialogVisible.visible = $event),
|
||
title: dialogVisible.title,
|
||
onClose: handleCloseDialog
|
||
}, {
|
||
footer: withCtx(() => [
|
||
createBaseVNode("div", _hoisted_7, [
|
||
createVNode(_component_el_button, { onClick: handleCloseDialog }, {
|
||
default: withCtx(() => [..._cache[50] || (_cache[50] = [
|
||
createTextVNode("取消", -1)
|
||
])]),
|
||
_: 1
|
||
}),
|
||
dialogVisible.type !== "detail" ? (openBlock(), createBlock(_component_el_button, {
|
||
key: 0,
|
||
type: "primary",
|
||
onClick: handleSubmit
|
||
}, {
|
||
default: withCtx(() => [..._cache[51] || (_cache[51] = [
|
||
createTextVNode(" 确定 ", -1)
|
||
])]),
|
||
_: 1
|
||
})) : (openBlock(), createBlock(_component_el_button, {
|
||
key: 1,
|
||
type: "primary",
|
||
onClick: handleCloseDialog
|
||
}, {
|
||
default: withCtx(() => [..._cache[52] || (_cache[52] = [
|
||
createTextVNode("确定", -1)
|
||
])]),
|
||
_: 1
|
||
}))
|
||
])
|
||
]),
|
||
default: withCtx(() => [
|
||
dialogVisible.type === "detail" ? (openBlock(), createBlock(_component_el_descriptions, {
|
||
key: 0,
|
||
column: 4,
|
||
border: ""
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "主键ID",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.id), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "创建时间",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.created_time), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "更新时间",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.updated_time), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "创建人",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => {
|
||
var _a;
|
||
return [
|
||
createTextVNode(toDisplayString((_a = detailFormData.value.created_by) == null ? void 0 : _a.name), 1)
|
||
];
|
||
}),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "更新人",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => {
|
||
var _a;
|
||
return [
|
||
createTextVNode(toDisplayString((_a = detailFormData.value.updated_by) == null ? void 0 : _a.name), 1)
|
||
];
|
||
}),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "是否删除(0否 1是)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.is_deleted), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "状态",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_tag, {
|
||
type: detailFormData.value.status == "0" ? "success" : "danger"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.status == "0" ? "启用" : "停用"), 1)
|
||
]),
|
||
_: 1
|
||
}, 8, ["type"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "订单号",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.order_no), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "商户订单号(微信支付用)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.out_trade_no), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "微信支付订单号",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.transaction_id), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "用户ID",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.user_id), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "用户openid",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.openid), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "支付渠道(wechat/alipay/balance)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.pay_channel), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "商品描述",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.description), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "订单金额(分)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.total_amount), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "实付金额(分)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.pay_amount), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "业务类型(naming_report等)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.business_type), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "业务ID",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.business_id), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "订单状态(0待支付 1已支付 2已取消 3已退款 4已关闭)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.order_status), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "支付状态(NOTPAY/SUCCESS/REFUND/CLOSED)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.trade_state), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "支付状态描述",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.trade_state_desc), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "支付时间",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.pay_time), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "订单过期时间",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.expire_time), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "退款金额(分)",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.refund_amount), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "退款时间",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.refund_time), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "备注",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.remark), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "支付成功时间",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.success_time), 1)
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_descriptions_item, {
|
||
label: "UUID全局唯一标识",
|
||
span: 2
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode(toDisplayString(detailFormData.value.uuid), 1)
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})) : (openBlock(), createBlock(_component_el_form, {
|
||
key: 1,
|
||
ref_key: "dataFormRef",
|
||
ref: dataFormRef,
|
||
model: formData,
|
||
rules,
|
||
"label-suffix": ":",
|
||
"label-width": "auto",
|
||
"label-position": "right"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_form_item, {
|
||
label: "是否删除(0否 1是)",
|
||
prop: "is_deleted",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.is_deleted,
|
||
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => formData.is_deleted = $event),
|
||
placeholder: "请输入是否删除(0否 1是)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "状态",
|
||
prop: "status",
|
||
required: true
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_radio_group, {
|
||
modelValue: formData.status,
|
||
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => formData.status = $event)
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_radio, { value: "0" }, {
|
||
default: withCtx(() => [..._cache[48] || (_cache[48] = [
|
||
createTextVNode("启用", -1)
|
||
])]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_radio, { value: "1" }, {
|
||
default: withCtx(() => [..._cache[49] || (_cache[49] = [
|
||
createTextVNode("停用", -1)
|
||
])]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "订单号",
|
||
prop: "order_no",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.order_no,
|
||
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => formData.order_no = $event),
|
||
placeholder: "请输入订单号"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "商户订单号(微信支付用)",
|
||
prop: "out_trade_no",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.out_trade_no,
|
||
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => formData.out_trade_no = $event),
|
||
placeholder: "请输入商户订单号(微信支付用)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "微信支付订单号",
|
||
prop: "transaction_id",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.transaction_id,
|
||
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => formData.transaction_id = $event),
|
||
placeholder: "请输入微信支付订单号"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "用户ID",
|
||
prop: "user_id",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.user_id,
|
||
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => formData.user_id = $event),
|
||
placeholder: "请输入用户ID"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "用户openid",
|
||
prop: "openid",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.openid,
|
||
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => formData.openid = $event),
|
||
placeholder: "请输入用户openid"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "支付渠道(wechat/alipay/balance)",
|
||
prop: "pay_channel",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.pay_channel,
|
||
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => formData.pay_channel = $event),
|
||
placeholder: "请输入支付渠道(wechat/alipay/balance)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "描述",
|
||
prop: "description"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.description,
|
||
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => formData.description = $event),
|
||
rows: 4,
|
||
maxlength: 100,
|
||
"show-word-limit": "",
|
||
type: "textarea",
|
||
placeholder: "请输入描述"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "订单金额(分)",
|
||
prop: "total_amount",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.total_amount,
|
||
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => formData.total_amount = $event),
|
||
placeholder: "请输入订单金额(分)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "实付金额(分)",
|
||
prop: "pay_amount",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.pay_amount,
|
||
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => formData.pay_amount = $event),
|
||
placeholder: "请输入实付金额(分)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "业务类型(naming_report等)",
|
||
prop: "business_type",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.business_type,
|
||
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => formData.business_type = $event),
|
||
placeholder: "请输入业务类型(naming_report等)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "业务ID",
|
||
prop: "business_id",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.business_id,
|
||
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => formData.business_id = $event),
|
||
placeholder: "请输入业务ID"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "订单状态(0待支付 1已支付 2已取消 3已退款 4已关闭)",
|
||
prop: "order_status",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.order_status,
|
||
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => formData.order_status = $event),
|
||
placeholder: "请输入订单状态(0待支付 1已支付 2已取消 3已退款 4已关闭)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "支付状态(NOTPAY/SUCCESS/REFUND/CLOSED)",
|
||
prop: "trade_state",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.trade_state,
|
||
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => formData.trade_state = $event),
|
||
placeholder: "请输入支付状态(NOTPAY/SUCCESS/REFUND/CLOSED)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "支付状态描述",
|
||
prop: "trade_state_desc",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.trade_state_desc,
|
||
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => formData.trade_state_desc = $event),
|
||
placeholder: "请输入支付状态描述"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "支付时间",
|
||
prop: "pay_time",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.pay_time,
|
||
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => formData.pay_time = $event),
|
||
placeholder: "请输入支付时间"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "订单过期时间",
|
||
prop: "expire_time",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.expire_time,
|
||
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => formData.expire_time = $event),
|
||
placeholder: "请输入订单过期时间"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "退款金额(分)",
|
||
prop: "refund_amount",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.refund_amount,
|
||
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => formData.refund_amount = $event),
|
||
placeholder: "请输入退款金额(分)"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "退款时间",
|
||
prop: "refund_time",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.refund_time,
|
||
"onUpdate:modelValue": _cache[30] || (_cache[30] = ($event) => formData.refund_time = $event),
|
||
placeholder: "请输入退款时间"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "备注",
|
||
prop: "remark",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.remark,
|
||
"onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => formData.remark = $event),
|
||
placeholder: "请输入备注"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_el_form_item, {
|
||
label: "支付成功时间",
|
||
prop: "success_time",
|
||
required: false
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_input, {
|
||
modelValue: formData.success_time,
|
||
"onUpdate:modelValue": _cache[32] || (_cache[32] = ($event) => formData.success_time = $event),
|
||
placeholder: "请输入支付成功时间"
|
||
}, null, 8, ["modelValue"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["model", "rules"]))
|
||
]),
|
||
_: 1
|
||
}, 8, ["modelValue", "title"]),
|
||
createVNode(_sfc_main$1, {
|
||
modelValue: importDialogVisible.value,
|
||
"onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => importDialogVisible.value = $event),
|
||
"content-config": curdContentConfig,
|
||
onUpload: handleUpload
|
||
}, null, 8, ["modelValue"]),
|
||
createVNode(_sfc_main$2, {
|
||
modelValue: exportsDialogVisible.value,
|
||
"onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => exportsDialogVisible.value = $event),
|
||
"content-config": curdContentConfig,
|
||
"query-params": queryFormData,
|
||
"page-data": pageTableData.value,
|
||
"selection-data": selectionRows.value
|
||
}, null, 8, ["modelValue", "query-params", "page-data", "selection-data"])
|
||
]);
|
||
};
|
||
}
|
||
});
|
||
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1da6f23f"]]);
|
||
export {
|
||
index as default
|
||
};
|