接单员与财务管理
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
export default interface IDepositPayment {
|
||||
id?: number;
|
||||
payment_no?: string;
|
||||
deposit_id?: number;
|
||||
user_id?: number;
|
||||
payment_transaction_id?: number;
|
||||
amount?: number;
|
||||
pay_type?: string;
|
||||
status?: number;
|
||||
paid_at?: string;
|
||||
refund_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
export default interface IPaymentTransaction {
|
||||
id?: number;
|
||||
transaction_no?: string;
|
||||
out_trade_no?: string;
|
||||
pay_type?: string;
|
||||
amount?: number;
|
||||
status?: number;
|
||||
business_type?: string;
|
||||
business_id?: number;
|
||||
user_id?: number;
|
||||
openid?: string;
|
||||
raw_data?: Record<string, unknown>;
|
||||
paid_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
export default interface IRunnerApplication {
|
||||
id?: number;
|
||||
user_id?: number;
|
||||
real_name?: string;
|
||||
mobile?: string;
|
||||
resume?: string;
|
||||
id_card?: string;
|
||||
id_card_front?: string;
|
||||
id_card_back?: string;
|
||||
status?: number;
|
||||
review_remark?: string;
|
||||
reviewed_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
export default interface IRunnerComplaint {
|
||||
id?: number;
|
||||
complaint_no?: string;
|
||||
user_id?: number;
|
||||
worker_id?: number;
|
||||
order_id?: number;
|
||||
type?: string;
|
||||
content?: string;
|
||||
images?: string;
|
||||
status?: number;
|
||||
result?: string;
|
||||
result_remark?: string;
|
||||
handled_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
export default interface IRunnerComplaintAppeal {
|
||||
id?: number;
|
||||
complaint_id?: number;
|
||||
worker_id?: number;
|
||||
content?: string;
|
||||
images?: string;
|
||||
status?: number;
|
||||
reply?: string;
|
||||
reviewed_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
export default interface IRunnerCreditLog {
|
||||
id?: number;
|
||||
worker_id?: number;
|
||||
score?: number;
|
||||
score_after?: number;
|
||||
type?: string;
|
||||
description?: string;
|
||||
related_type?: string;
|
||||
related_id?: number;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
export default interface IRunnerDeposit {
|
||||
id?: number;
|
||||
deposit_no?: string;
|
||||
worker_id?: number;
|
||||
user_id?: number;
|
||||
amount?: number;
|
||||
status?: number;
|
||||
deduct_reason?: string;
|
||||
paid_at?: string;
|
||||
refund_at?: string;
|
||||
deducted_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
export default interface IRunnerWithdrawal {
|
||||
id?: number;
|
||||
withdraw_no?: string;
|
||||
user_id?: number;
|
||||
worker_id?: number;
|
||||
amount?: number;
|
||||
fee?: number;
|
||||
channel?: string;
|
||||
account_info?: string;
|
||||
status?: number;
|
||||
remark?: string;
|
||||
processed_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
export default interface IRunnerWorker {
|
||||
id?: number;
|
||||
user_id?: number;
|
||||
real_name?: string;
|
||||
mobile?: string;
|
||||
id_card?: string;
|
||||
total_income?: number;
|
||||
total_order?: number;
|
||||
cancel_order?: number;
|
||||
credit_score?: number;
|
||||
verified_at?: string;
|
||||
status?: number;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
export default interface ITaskBid {
|
||||
id?: number;
|
||||
task_id?: number;
|
||||
user_id?: number;
|
||||
price?: number;
|
||||
message?: string;
|
||||
status?: number;
|
||||
accepted_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
export default interface ITaskCategory {
|
||||
id?: number;
|
||||
name?: string;
|
||||
slug?: string;
|
||||
description?: string;
|
||||
icon?: string;
|
||||
form_schema?: string;
|
||||
sort?: number;
|
||||
status?: number;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
export default interface ITaskOrder {
|
||||
id?: number;
|
||||
order_no?: string;
|
||||
user_id?: number;
|
||||
runner_id?: number;
|
||||
category_id?: number;
|
||||
title?: string;
|
||||
description?: string;
|
||||
images?: string;
|
||||
extra?: string;
|
||||
price?: number;
|
||||
address?: string;
|
||||
contact_name?: string;
|
||||
contact_mobile?: string;
|
||||
deadline?: string;
|
||||
pay_type?: string;
|
||||
pay_status?: number;
|
||||
paid_at?: string;
|
||||
status?: number;
|
||||
cancel_reason?: string;
|
||||
remark?: string;
|
||||
accepted_at?: string;
|
||||
completed_at?: string;
|
||||
cancelled_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
deleted_at?: string;
|
||||
category_slug?: string;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
export default interface ITaskPayment {
|
||||
id?: number;
|
||||
payment_no?: string;
|
||||
order_id?: number;
|
||||
user_id?: number;
|
||||
payment_transaction_id?: number;
|
||||
amount?: number;
|
||||
pay_type?: string;
|
||||
status?: number;
|
||||
paid_at?: string;
|
||||
refund_at?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
export default {
|
||||
"finance.deposit_payment.page.title": "Deposit Payment Logs",
|
||||
"finance.deposit_payment.page.description": "View deposit payment records",
|
||||
"finance.deposit_payment.id": "ID",
|
||||
"finance.deposit_payment.payment_no": "Payment No",
|
||||
"finance.deposit_payment.deposit_id": "Deposit ID",
|
||||
"finance.deposit_payment.user_id": "User ID",
|
||||
"finance.deposit_payment.payment_transaction_id": "Transaction ID",
|
||||
"finance.deposit_payment.amount": "Amount",
|
||||
"finance.deposit_payment.pay_type": "Pay Method",
|
||||
"finance.deposit_payment.pay_type.0": "Balance",
|
||||
"finance.deposit_payment.pay_type.1": "WeChat Pay",
|
||||
"finance.deposit_payment.status": "Status",
|
||||
"finance.deposit_payment.status.0": "Unpaid",
|
||||
"finance.deposit_payment.status.1": "Paid",
|
||||
"finance.deposit_payment.status.2": "Refunded",
|
||||
"finance.deposit_payment.paid_at": "Paid At",
|
||||
"finance.deposit_payment.refund_at": "Refund At",
|
||||
"finance.deposit_payment.created_at": "Created At",
|
||||
"finance.deposit_payment.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"finance.deposit.page.title": "Deposit Management",
|
||||
"finance.deposit.page.description": "Manage runner security deposits",
|
||||
"finance.deposit.id": "ID",
|
||||
"finance.deposit.deposit_no": "Deposit No",
|
||||
"finance.deposit.worker_id": "Runner ID",
|
||||
"finance.deposit.user_id": "User ID",
|
||||
"finance.deposit.amount": "Amount",
|
||||
"finance.deposit.status": "Status",
|
||||
"finance.deposit.status.0": "Unpaid",
|
||||
"finance.deposit.status.1": "Paid",
|
||||
"finance.deposit.status.2": "Refunded",
|
||||
"finance.deposit.status.3": "Deducted",
|
||||
"finance.deposit.deduct_reason": "Deduction Reason",
|
||||
"finance.deposit.paid_at": "Paid At",
|
||||
"finance.deposit.refund_at": "Refund At",
|
||||
"finance.deposit.deducted_at": "Deducted At",
|
||||
"finance.deposit.created_at": "Created At",
|
||||
"finance.deposit.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
export default {
|
||||
"finance.task_payment.page.title": "Task Payment Logs",
|
||||
"finance.task_payment.page.description": "View task order payment records",
|
||||
"finance.task_payment.id": "ID",
|
||||
"finance.task_payment.payment_no": "Payment No",
|
||||
"finance.task_payment.order_id": "Order ID",
|
||||
"finance.task_payment.user_id": "User ID",
|
||||
"finance.task_payment.payment_transaction_id": "Transaction ID",
|
||||
"finance.task_payment.amount": "Amount",
|
||||
"finance.task_payment.pay_type": "Pay Method",
|
||||
"finance.task_payment.pay_type.0": "Balance",
|
||||
"finance.task_payment.pay_type.1": "WeChat Pay",
|
||||
"finance.task_payment.status": "Status",
|
||||
"finance.task_payment.status.0": "Unpaid",
|
||||
"finance.task_payment.status.1": "Paid",
|
||||
"finance.task_payment.status.2": "Refunded",
|
||||
"finance.task_payment.paid_at": "Paid At",
|
||||
"finance.task_payment.refund_at": "Refund At",
|
||||
"finance.task_payment.created_at": "Created At",
|
||||
"finance.task_payment.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
export default {
|
||||
"finance.transaction.page.title": "Payment Transactions",
|
||||
"finance.transaction.page.description": "Unified WeChat/Alipay payment transaction records across all business modules",
|
||||
"finance.transaction.id": "ID",
|
||||
"finance.transaction.transaction_no": "Transaction No",
|
||||
"finance.transaction.out_trade_no": "Out Trade No",
|
||||
"finance.transaction.pay_type": "Pay Method",
|
||||
"finance.transaction.pay_type.wechat": "WeChat Pay",
|
||||
"finance.transaction.pay_type.alipay": "Alipay",
|
||||
"finance.transaction.amount": "Amount",
|
||||
"finance.transaction.status": "Status",
|
||||
"finance.transaction.status.0": "Pending",
|
||||
"finance.transaction.status.1": "Success",
|
||||
"finance.transaction.status.2": "Failed",
|
||||
"finance.transaction.status.3": "Refunded",
|
||||
"finance.transaction.business_type": "Business Type",
|
||||
"finance.transaction.business_type.task": "Task Order",
|
||||
"finance.transaction.business_type.deposit": "Deposit",
|
||||
"finance.transaction.business_type.order": "Store Order",
|
||||
"finance.transaction.business_id": "Business ID",
|
||||
"finance.transaction.user_id": "User ID",
|
||||
"finance.transaction.openid": "WeChat OpenID",
|
||||
"finance.transaction.paid_at": "Paid At",
|
||||
"finance.transaction.created_at": "Created At",
|
||||
"finance.transaction.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
export default {
|
||||
"finance.withdrawal.page.title": "Runner Withdrawals",
|
||||
"finance.withdrawal.page.description": "Manage runner withdrawal requests",
|
||||
"finance.withdrawal.id": "ID",
|
||||
"finance.withdrawal.withdraw_no": "Withdrawal No",
|
||||
"finance.withdrawal.user_id": "User ID",
|
||||
"finance.withdrawal.worker_id": "Runner ID",
|
||||
"finance.withdrawal.amount": "Amount",
|
||||
"finance.withdrawal.fee": "Fee",
|
||||
"finance.withdrawal.channel": "Channel",
|
||||
"finance.withdrawal.channel.wechat": "WeChat",
|
||||
"finance.withdrawal.channel.alipay": "Alipay",
|
||||
"finance.withdrawal.channel.bank": "Bank",
|
||||
"finance.withdrawal.account_info": "Account Info",
|
||||
"finance.withdrawal.status": "Status",
|
||||
"finance.withdrawal.status.0": "Pending",
|
||||
"finance.withdrawal.status.1": "Approved",
|
||||
"finance.withdrawal.status.2": "Completed",
|
||||
"finance.withdrawal.status.3": "Rejected",
|
||||
"finance.withdrawal.remark": "Remark",
|
||||
"finance.withdrawal.processed_at": "Processed At",
|
||||
"finance.withdrawal.created_at": "Created At",
|
||||
"finance.withdrawal.updated_at": "Updated At",
|
||||
};
|
||||
@@ -38,6 +38,24 @@ import merchantProduct from "./merchant/product";
|
||||
import merchantPrinter from "./merchant/printer";
|
||||
import merchantPrintTask from "./merchant/print-task";
|
||||
|
||||
import taskCategory from "./task/category";
|
||||
import taskOrderErrand from "./task/order-errand";
|
||||
import taskOrderPickup from "./task/order-pickup";
|
||||
import taskOrderRental from "./task/order-rental";
|
||||
import taskBid from "./task/bid";
|
||||
|
||||
import runnerApplication from "./runner/application";
|
||||
import runnerWorker from "./runner/worker";
|
||||
import runnerCreditLog from "./runner/credit-log";
|
||||
import runnerComplaint from "./runner/complaint";
|
||||
import runnerComplaintAppeal from "./runner/complaint-appeal";
|
||||
|
||||
import financeTaskPayment from "./finance/task-payment";
|
||||
import financeDeposit from "./finance/deposit";
|
||||
import financeDepositPayment from "./finance/deposit-payment";
|
||||
import financeWithdrawal from "./finance/withdrawal";
|
||||
import financeTransaction from "./finance/transaction";
|
||||
|
||||
import userProfile from "./user/profile";
|
||||
|
||||
import xinForm from "./components/xin-form";
|
||||
@@ -80,6 +98,21 @@ export default {
|
||||
...merchantProduct,
|
||||
...merchantPrinter,
|
||||
...merchantPrintTask,
|
||||
...taskCategory,
|
||||
...taskOrderErrand,
|
||||
...taskOrderPickup,
|
||||
...taskOrderRental,
|
||||
...taskBid,
|
||||
...runnerApplication,
|
||||
...runnerWorker,
|
||||
...runnerCreditLog,
|
||||
...runnerComplaint,
|
||||
...runnerComplaintAppeal,
|
||||
...financeTaskPayment,
|
||||
...financeDeposit,
|
||||
...financeDepositPayment,
|
||||
...financeWithdrawal,
|
||||
...financeTransaction,
|
||||
...userProfile,
|
||||
...xinForm,
|
||||
...xinTable,
|
||||
|
||||
@@ -61,5 +61,24 @@ export default {
|
||||
"menu.merchant.product": "Products",
|
||||
"menu.merchant.printer": "Printers",
|
||||
"menu.merchant.print-task": "Print Tasks",
|
||||
"menu.task": "Campus Tasks",
|
||||
"menu.task.orders": "Task Orders",
|
||||
"menu.task.category": "Categories",
|
||||
"menu.task.order_errand": "Errand Orders",
|
||||
"menu.task.order_pickup": "Pickup Orders",
|
||||
"menu.task.order_rental": "Rental Orders",
|
||||
"menu.task.bid": "Bid Records",
|
||||
"menu.runner": "Runner Management",
|
||||
"menu.runner.application": "Applications",
|
||||
"menu.runner.worker": "Runner List",
|
||||
"menu.runner.credit_log": "Credit Logs",
|
||||
"menu.runner.complaint": "Complaints",
|
||||
"menu.runner.complaint_appeal": "Appeals",
|
||||
"menu.finance": "Finance",
|
||||
"menu.finance.task_payment": "Task Payments",
|
||||
"menu.finance.deposit": "Deposits",
|
||||
"menu.finance.deposit_payment": "Deposit Payments",
|
||||
"menu.finance.withdrawal": "Withdrawals",
|
||||
"menu.finance.transaction": "Transactions",
|
||||
"menu.xin-admin": "XinAdmin",
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"runner.application.page.title": "Runner Applications",
|
||||
"runner.application.page.description": "Review and manage runner registration applications",
|
||||
"runner.application.id": "ID",
|
||||
"runner.application.user_id": "User ID",
|
||||
"runner.application.real_name": "Real Name",
|
||||
"runner.application.mobile": "Phone",
|
||||
"runner.application.resume": "Resume",
|
||||
"runner.application.id_card": "ID Card",
|
||||
"runner.application.id_card_front": "ID Card Front",
|
||||
"runner.application.id_card_back": "ID Card Back",
|
||||
"runner.application.status": "Status",
|
||||
"runner.application.status.0": "Pending Review",
|
||||
"runner.application.status.1": "Approved",
|
||||
"runner.application.status.2": "Rejected",
|
||||
"runner.application.review_remark": "Review Remark",
|
||||
"runner.application.reviewed_at": "Reviewed At",
|
||||
"runner.application.created_at": "Applied At",
|
||||
"runner.application.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
export default {
|
||||
"runner.complaint_appeal.page.title": "Appeal Management",
|
||||
"runner.complaint_appeal.page.description": "Review runner complaint appeals",
|
||||
"runner.complaint_appeal.id": "ID",
|
||||
"runner.complaint_appeal.complaint_id": "Complaint ID",
|
||||
"runner.complaint_appeal.worker_id": "Runner ID",
|
||||
"runner.complaint_appeal.content": "Appeal Content",
|
||||
"runner.complaint_appeal.images": "Evidence Images",
|
||||
"runner.complaint_appeal.status": "Status",
|
||||
"runner.complaint_appeal.status.0": "Pending Review",
|
||||
"runner.complaint_appeal.status.1": "Approved",
|
||||
"runner.complaint_appeal.status.2": "Rejected",
|
||||
"runner.complaint_appeal.reply": "Reply",
|
||||
"runner.complaint_appeal.reviewed_at": "Reviewed At",
|
||||
"runner.complaint_appeal.created_at": "Created At",
|
||||
"runner.complaint_appeal.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
export default {
|
||||
"runner.complaint.page.title": "Complaint Management",
|
||||
"runner.complaint.page.description": "Manage user complaints against runners",
|
||||
"runner.complaint.id": "ID",
|
||||
"runner.complaint.complaint_no": "Complaint No",
|
||||
"runner.complaint.user_id": "Complainant ID",
|
||||
"runner.complaint.worker_id": "Runner ID",
|
||||
"runner.complaint.order_id": "Order ID",
|
||||
"runner.complaint.type": "Complaint Type",
|
||||
"runner.complaint.type.late": "Late/Timeout",
|
||||
"runner.complaint.type.attitude": "Poor Attitude",
|
||||
"runner.complaint.type.damage": "Item Damaged",
|
||||
"runner.complaint.type.lost": "Item Lost",
|
||||
"runner.complaint.type.other": "Other",
|
||||
"runner.complaint.content": "Content",
|
||||
"runner.complaint.images": "Evidence Images",
|
||||
"runner.complaint.status": "Status",
|
||||
"runner.complaint.status.0": "Pending",
|
||||
"runner.complaint.status.1": "Resolved",
|
||||
"runner.complaint.status.2": "Dismissed",
|
||||
"runner.complaint.result": "Result",
|
||||
"runner.complaint.result_remark": "Result Remark",
|
||||
"runner.complaint.handled_at": "Handled At",
|
||||
"runner.complaint.created_at": "Created At",
|
||||
"runner.complaint.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"runner.credit_log.page.title": "Credit Score Logs",
|
||||
"runner.credit_log.page.description": "View runner credit score change history",
|
||||
"runner.credit_log.id": "ID",
|
||||
"runner.credit_log.worker_id": "Runner ID",
|
||||
"runner.credit_log.score": "Score Change",
|
||||
"runner.credit_log.score_after": "Score After",
|
||||
"runner.credit_log.type": "Change Type",
|
||||
"runner.credit_log.type.order_complete": "Order Completed",
|
||||
"runner.credit_log.type.order_cancel": "Order Cancelled",
|
||||
"runner.credit_log.type.order_timeout": "Order Timeout",
|
||||
"runner.credit_log.type.complaint": "Complaint Received",
|
||||
"runner.credit_log.type.appeal_success": "Appeal Won",
|
||||
"runner.credit_log.type.manual": "Manual Adjust",
|
||||
"runner.credit_log.description": "Description",
|
||||
"runner.credit_log.related_type": "Related Type",
|
||||
"runner.credit_log.related_id": "Related ID",
|
||||
"runner.credit_log.created_at": "Created At",
|
||||
"runner.credit_log.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"runner.worker.page.title": "Runner List",
|
||||
"runner.worker.page.description": "Manage approved campus runners",
|
||||
"runner.worker.id": "ID",
|
||||
"runner.worker.user_id": "User ID",
|
||||
"runner.worker.real_name": "Real Name",
|
||||
"runner.worker.mobile": "Phone",
|
||||
"runner.worker.id_card": "ID Card",
|
||||
"runner.worker.total_income": "Total Income",
|
||||
"runner.worker.total_order": "Total Orders",
|
||||
"runner.worker.cancel_order": "Cancelled Orders",
|
||||
"runner.worker.credit_score": "Credit Score",
|
||||
"runner.worker.verified_at": "Verified At",
|
||||
"runner.worker.status": "Status",
|
||||
"runner.worker.status.0": "Banned",
|
||||
"runner.worker.status.1": "Active",
|
||||
"runner.worker.status.2": "Resting",
|
||||
"runner.worker.created_at": "Created At",
|
||||
"runner.worker.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
"task.bid.page.title": "Task Bids",
|
||||
"task.bid.page.description": "View task bid and acceptance records",
|
||||
"task.bid.id": "ID",
|
||||
"task.bid.task_id": "Task ID",
|
||||
"task.bid.user_id": "Bidder ID",
|
||||
"task.bid.price": "Bid Price",
|
||||
"task.bid.message": "Message",
|
||||
"task.bid.status": "Status",
|
||||
"task.bid.status.0": "Pending",
|
||||
"task.bid.status.1": "Accepted",
|
||||
"task.bid.status.2": "Rejected",
|
||||
"task.bid.accepted_at": "Accepted At",
|
||||
"task.bid.created_at": "Created At",
|
||||
"task.bid.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
"task.category.page.title": "Task Categories",
|
||||
"task.category.page.description": "Manage campus task categories including errand, pickup, and rental",
|
||||
"task.category.id": "ID",
|
||||
"task.category.name": "Name",
|
||||
"task.category.slug": "Slug",
|
||||
"task.category.description": "Description",
|
||||
"task.category.icon": "Icon",
|
||||
"task.category.form_schema": "Form Schema",
|
||||
"task.category.sort": "Sort",
|
||||
"task.category.status": "Status",
|
||||
"task.category.status.0": "Disabled",
|
||||
"task.category.status.1": "Active",
|
||||
"task.category.created_at": "Created At",
|
||||
"task.category.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
"task.order_errand.page.title": "Errand Orders",
|
||||
"task.order_errand.page.description": "Manage errand/delivery task orders",
|
||||
"task.order_errand.id": "ID",
|
||||
"task.order_errand.order_no": "Order No",
|
||||
"task.order_errand.user_id": "User ID",
|
||||
"task.order_errand.runner_id": "Runner ID",
|
||||
"task.order_errand.title": "Title",
|
||||
"task.order_errand.price": "Price",
|
||||
"task.order_errand.contact_name": "Contact",
|
||||
"task.order_errand.contact_mobile": "Phone",
|
||||
"task.order_errand.deadline": "Deadline",
|
||||
"task.order_errand.pay_type": "Pay Method",
|
||||
"task.order_errand.pay_type.0": "Balance",
|
||||
"task.order_errand.pay_type.1": "WeChat Pay",
|
||||
"task.order_errand.pay_status": "Pay Status",
|
||||
"task.order_errand.pay_status.0": "Unpaid",
|
||||
"task.order_errand.pay_status.1": "Paid",
|
||||
"task.order_errand.pay_status.2": "Refunding",
|
||||
"task.order_errand.pay_status.3": "Refunded",
|
||||
"task.order_errand.status": "Order Status",
|
||||
"task.order_errand.status.0": "Pending",
|
||||
"task.order_errand.status.1": "Accepted",
|
||||
"task.order_errand.status.2": "In Progress",
|
||||
"task.order_errand.status.3": "Completed",
|
||||
"task.order_errand.status.4": "Cancelled",
|
||||
"task.order_errand.created_at": "Created At",
|
||||
"task.order_errand.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
"task.order_pickup.page.title": "Pickup Orders",
|
||||
"task.order_pickup.page.description": "Manage proxy pickup task orders",
|
||||
"task.order_pickup.id": "ID",
|
||||
"task.order_pickup.order_no": "Order No",
|
||||
"task.order_pickup.user_id": "User ID",
|
||||
"task.order_pickup.runner_id": "Runner ID",
|
||||
"task.order_pickup.title": "Title",
|
||||
"task.order_pickup.price": "Price",
|
||||
"task.order_pickup.contact_name": "Contact",
|
||||
"task.order_pickup.contact_mobile": "Phone",
|
||||
"task.order_pickup.deadline": "Deadline",
|
||||
"task.order_pickup.pay_type": "Pay Method",
|
||||
"task.order_pickup.pay_type.0": "Balance",
|
||||
"task.order_pickup.pay_type.1": "WeChat Pay",
|
||||
"task.order_pickup.pay_status": "Pay Status",
|
||||
"task.order_pickup.pay_status.0": "Unpaid",
|
||||
"task.order_pickup.pay_status.1": "Paid",
|
||||
"task.order_pickup.pay_status.2": "Refunding",
|
||||
"task.order_pickup.pay_status.3": "Refunded",
|
||||
"task.order_pickup.status": "Order Status",
|
||||
"task.order_pickup.status.0": "Pending",
|
||||
"task.order_pickup.status.1": "Accepted",
|
||||
"task.order_pickup.status.2": "In Progress",
|
||||
"task.order_pickup.status.3": "Completed",
|
||||
"task.order_pickup.status.4": "Cancelled",
|
||||
"task.order_pickup.created_at": "Created At",
|
||||
"task.order_pickup.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
"task.order_rental.page.title": "Rental Orders",
|
||||
"task.order_rental.page.description": "Manage item rental task orders",
|
||||
"task.order_rental.id": "ID",
|
||||
"task.order_rental.order_no": "Order No",
|
||||
"task.order_rental.user_id": "User ID",
|
||||
"task.order_rental.runner_id": "Runner ID",
|
||||
"task.order_rental.title": "Title",
|
||||
"task.order_rental.price": "Price",
|
||||
"task.order_rental.contact_name": "Contact",
|
||||
"task.order_rental.contact_mobile": "Phone",
|
||||
"task.order_rental.deadline": "Deadline",
|
||||
"task.order_rental.pay_type": "Pay Method",
|
||||
"task.order_rental.pay_type.0": "Balance",
|
||||
"task.order_rental.pay_type.1": "WeChat Pay",
|
||||
"task.order_rental.pay_status": "Pay Status",
|
||||
"task.order_rental.pay_status.0": "Unpaid",
|
||||
"task.order_rental.pay_status.1": "Paid",
|
||||
"task.order_rental.pay_status.2": "Refunding",
|
||||
"task.order_rental.pay_status.3": "Refunded",
|
||||
"task.order_rental.status": "Order Status",
|
||||
"task.order_rental.status.0": "Pending",
|
||||
"task.order_rental.status.1": "Accepted",
|
||||
"task.order_rental.status.2": "In Progress",
|
||||
"task.order_rental.status.3": "Completed",
|
||||
"task.order_rental.status.4": "Cancelled",
|
||||
"task.order_rental.created_at": "Created At",
|
||||
"task.order_rental.updated_at": "Updated At",
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
export default {
|
||||
"finance.deposit_payment.page.title": "保证金支付",
|
||||
"finance.deposit_payment.page.description": "查看保证金的支付记录",
|
||||
"finance.deposit_payment.id": "ID",
|
||||
"finance.deposit_payment.payment_no": "支付单号",
|
||||
"finance.deposit_payment.deposit_id": "保证金ID",
|
||||
"finance.deposit_payment.user_id": "用户ID",
|
||||
"finance.deposit_payment.payment_transaction_id": "交易ID",
|
||||
"finance.deposit_payment.amount": "金额",
|
||||
"finance.deposit_payment.pay_type": "支付方式",
|
||||
"finance.deposit_payment.pay_type.0": "余额支付",
|
||||
"finance.deposit_payment.pay_type.1": "微信支付",
|
||||
"finance.deposit_payment.status": "状态",
|
||||
"finance.deposit_payment.status.0": "未支付",
|
||||
"finance.deposit_payment.status.1": "已支付",
|
||||
"finance.deposit_payment.status.2": "已退款",
|
||||
"finance.deposit_payment.paid_at": "支付时间",
|
||||
"finance.deposit_payment.refund_at": "退款时间",
|
||||
"finance.deposit_payment.created_at": "创建时间",
|
||||
"finance.deposit_payment.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"finance.deposit.page.title": "保证金管理",
|
||||
"finance.deposit.page.description": "管理接单员的保证金",
|
||||
"finance.deposit.id": "ID",
|
||||
"finance.deposit.deposit_no": "保证金编号",
|
||||
"finance.deposit.worker_id": "接单员ID",
|
||||
"finance.deposit.user_id": "用户ID",
|
||||
"finance.deposit.amount": "金额",
|
||||
"finance.deposit.status": "状态",
|
||||
"finance.deposit.status.0": "未支付",
|
||||
"finance.deposit.status.1": "已支付",
|
||||
"finance.deposit.status.2": "已退款",
|
||||
"finance.deposit.status.3": "已扣除",
|
||||
"finance.deposit.deduct_reason": "扣除原因",
|
||||
"finance.deposit.paid_at": "支付时间",
|
||||
"finance.deposit.refund_at": "退款时间",
|
||||
"finance.deposit.deducted_at": "扣除时间",
|
||||
"finance.deposit.created_at": "创建时间",
|
||||
"finance.deposit.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
export default {
|
||||
"finance.task_payment.page.title": "任务支付",
|
||||
"finance.task_payment.page.description": "查看任务的支付记录",
|
||||
"finance.task_payment.id": "ID",
|
||||
"finance.task_payment.payment_no": "支付单号",
|
||||
"finance.task_payment.order_id": "订单ID",
|
||||
"finance.task_payment.user_id": "用户ID",
|
||||
"finance.task_payment.payment_transaction_id": "交易ID",
|
||||
"finance.task_payment.amount": "金额",
|
||||
"finance.task_payment.pay_type": "支付方式",
|
||||
"finance.task_payment.pay_type.0": "余额支付",
|
||||
"finance.task_payment.pay_type.1": "微信支付",
|
||||
"finance.task_payment.status": "状态",
|
||||
"finance.task_payment.status.0": "未支付",
|
||||
"finance.task_payment.status.1": "已支付",
|
||||
"finance.task_payment.status.2": "已退款",
|
||||
"finance.task_payment.paid_at": "支付时间",
|
||||
"finance.task_payment.refund_at": "退款时间",
|
||||
"finance.task_payment.created_at": "创建时间",
|
||||
"finance.task_payment.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
export default {
|
||||
"finance.transaction.page.title": "三方支付流水",
|
||||
"finance.transaction.page.description": "全系统统一微信/支付宝支付流水记录,包含任务、保证金、商城等所有业务的三方支付回调数据",
|
||||
"finance.transaction.id": "ID",
|
||||
"finance.transaction.transaction_no": "第三方交易号",
|
||||
"finance.transaction.out_trade_no": "商户订单号",
|
||||
"finance.transaction.pay_type": "支付方式",
|
||||
"finance.transaction.pay_type.wechat": "微信支付",
|
||||
"finance.transaction.pay_type.alipay": "支付宝",
|
||||
"finance.transaction.amount": "支付金额",
|
||||
"finance.transaction.status": "支付状态",
|
||||
"finance.transaction.status.0": "待支付",
|
||||
"finance.transaction.status.1": "支付成功",
|
||||
"finance.transaction.status.2": "支付失败",
|
||||
"finance.transaction.status.3": "已退款",
|
||||
"finance.transaction.business_type": "业务类型",
|
||||
"finance.transaction.business_type.task": "任务订单",
|
||||
"finance.transaction.business_type.deposit": "保证金",
|
||||
"finance.transaction.business_type.order": "商城订单",
|
||||
"finance.transaction.business_id": "业务ID",
|
||||
"finance.transaction.user_id": "用户ID",
|
||||
"finance.transaction.openid": "微信OpenID",
|
||||
"finance.transaction.paid_at": "支付时间",
|
||||
"finance.transaction.created_at": "创建时间",
|
||||
"finance.transaction.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
export default {
|
||||
"finance.withdrawal.page.title": "提现管理",
|
||||
"finance.withdrawal.page.description": "管理接单员的提现申请",
|
||||
"finance.withdrawal.id": "ID",
|
||||
"finance.withdrawal.withdraw_no": "提现单号",
|
||||
"finance.withdrawal.user_id": "用户ID",
|
||||
"finance.withdrawal.worker_id": "接单员ID",
|
||||
"finance.withdrawal.amount": "提现金额",
|
||||
"finance.withdrawal.fee": "手续费",
|
||||
"finance.withdrawal.channel": "提现渠道",
|
||||
"finance.withdrawal.channel.wechat": "微信",
|
||||
"finance.withdrawal.channel.alipay": "支付宝",
|
||||
"finance.withdrawal.channel.bank": "银行卡",
|
||||
"finance.withdrawal.account_info": "账户信息",
|
||||
"finance.withdrawal.status": "状态",
|
||||
"finance.withdrawal.status.0": "待审核",
|
||||
"finance.withdrawal.status.1": "已通过",
|
||||
"finance.withdrawal.status.2": "已拒绝",
|
||||
"finance.withdrawal.status.3": "已拒绝",
|
||||
"finance.withdrawal.remark": "备注",
|
||||
"finance.withdrawal.processed_at": "处理时间",
|
||||
"finance.withdrawal.created_at": "创建时间",
|
||||
"finance.withdrawal.updated_at": "更新时间",
|
||||
};
|
||||
@@ -38,6 +38,24 @@ import merchantProduct from "./merchant/product";
|
||||
import merchantPrinter from "./merchant/printer";
|
||||
import merchantPrintTask from "./merchant/print-task";
|
||||
|
||||
import taskCategory from "./task/category";
|
||||
import taskOrderErrand from "./task/order-errand";
|
||||
import taskOrderPickup from "./task/order-pickup";
|
||||
import taskOrderRental from "./task/order-rental";
|
||||
import taskBid from "./task/bid";
|
||||
|
||||
import runnerApplication from "./runner/application";
|
||||
import runnerWorker from "./runner/worker";
|
||||
import runnerCreditLog from "./runner/credit-log";
|
||||
import runnerComplaint from "./runner/complaint";
|
||||
import runnerComplaintAppeal from "./runner/complaint-appeal";
|
||||
|
||||
import financeTaskPayment from "./finance/task-payment";
|
||||
import financeDeposit from "./finance/deposit";
|
||||
import financeDepositPayment from "./finance/deposit-payment";
|
||||
import financeWithdrawal from "./finance/withdrawal";
|
||||
import financeTransaction from "./finance/transaction";
|
||||
|
||||
import userProfile from "./user/profile";
|
||||
|
||||
import xinForm from "./components/xin-form";
|
||||
@@ -80,6 +98,21 @@ export default {
|
||||
...merchantProduct,
|
||||
...merchantPrinter,
|
||||
...merchantPrintTask,
|
||||
...taskCategory,
|
||||
...taskOrderErrand,
|
||||
...taskOrderPickup,
|
||||
...taskOrderRental,
|
||||
...taskBid,
|
||||
...runnerApplication,
|
||||
...runnerWorker,
|
||||
...runnerCreditLog,
|
||||
...runnerComplaint,
|
||||
...runnerComplaintAppeal,
|
||||
...financeTaskPayment,
|
||||
...financeDeposit,
|
||||
...financeDepositPayment,
|
||||
...financeWithdrawal,
|
||||
...financeTransaction,
|
||||
...userProfile,
|
||||
...xinForm,
|
||||
...xinTable,
|
||||
|
||||
@@ -61,5 +61,24 @@ export default {
|
||||
"menu.merchant.product": "商品管理",
|
||||
"menu.merchant.printer": "打印机管理",
|
||||
"menu.merchant.print-task": "打印任务",
|
||||
"menu.task": "校园任务",
|
||||
"menu.task.category": "任务分类",
|
||||
"menu.task.order_errand": "跑腿订单",
|
||||
"menu.task.order_pickup": "代取订单",
|
||||
"menu.task.order_rental": "租借订单",
|
||||
"menu.task.bid": "接单记录",
|
||||
"menu.task.orders": "兼职订单",
|
||||
"menu.runner": "接单员管理",
|
||||
"menu.runner.application": "接单员申请",
|
||||
"menu.runner.worker": "接单员列表",
|
||||
"menu.runner.credit_log": "信誉分记录",
|
||||
"menu.runner.complaint": "投诉管理",
|
||||
"menu.runner.complaint_appeal": "申诉管理",
|
||||
"menu.finance": "财务管理",
|
||||
"menu.finance.task_payment": "任务支付日志",
|
||||
"menu.finance.deposit": "保证金管理",
|
||||
"menu.finance.deposit_payment": "保证金支付日志",
|
||||
"menu.finance.withdrawal": "接单员提现",
|
||||
"menu.finance.transaction": "三方支付流水",
|
||||
"menu.xin-admin": "XinAdmin",
|
||||
};
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"runner.application.page.title": "接单申请",
|
||||
"runner.application.page.description": "审核用户申请成为接单员的请求",
|
||||
"runner.application.id": "ID",
|
||||
"runner.application.user_id": "用户ID",
|
||||
"runner.application.real_name": "真实姓名",
|
||||
"runner.application.mobile": "手机号",
|
||||
"runner.application.resume": "简历",
|
||||
"runner.application.id_card": "身份证号",
|
||||
"runner.application.id_card_front": "身份证正面",
|
||||
"runner.application.id_card_back": "身份证反面",
|
||||
"runner.application.status": "状态",
|
||||
"runner.application.status.0": "待审核",
|
||||
"runner.application.status.1": "通过",
|
||||
"runner.application.status.2": "拒绝",
|
||||
"runner.application.review_remark": "审核备注",
|
||||
"runner.application.reviewed_at": "审核时间",
|
||||
"runner.application.created_at": "创建时间",
|
||||
"runner.application.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
export default {
|
||||
"runner.complaint_appeal.page.title": "申诉管理",
|
||||
"runner.complaint_appeal.page.description": "管理接单员的投诉申诉",
|
||||
"runner.complaint_appeal.id": "ID",
|
||||
"runner.complaint_appeal.complaint_id": "投诉ID",
|
||||
"runner.complaint_appeal.worker_id": "接单员ID",
|
||||
"runner.complaint_appeal.content": "申诉内容",
|
||||
"runner.complaint_appeal.images": "图片",
|
||||
"runner.complaint_appeal.status": "状态",
|
||||
"runner.complaint_appeal.status.0": "待审核",
|
||||
"runner.complaint_appeal.status.1": "通过",
|
||||
"runner.complaint_appeal.status.2": "驳回",
|
||||
"runner.complaint_appeal.reply": "回复",
|
||||
"runner.complaint_appeal.reviewed_at": "审核时间",
|
||||
"runner.complaint_appeal.created_at": "创建时间",
|
||||
"runner.complaint_appeal.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
export default {
|
||||
"runner.complaint.page.title": "投诉管理",
|
||||
"runner.complaint.page.description": "管理用户对接单员的投诉",
|
||||
"runner.complaint.id": "ID",
|
||||
"runner.complaint.complaint_no": "投诉编号",
|
||||
"runner.complaint.user_id": "投诉人ID",
|
||||
"runner.complaint.worker_id": "被投诉人ID",
|
||||
"runner.complaint.order_id": "订单ID",
|
||||
"runner.complaint.type": "投诉类型",
|
||||
"runner.complaint.type.late": "迟到/超时",
|
||||
"runner.complaint.type.attitude": "服务态度",
|
||||
"runner.complaint.type.damage": "物品损坏",
|
||||
"runner.complaint.type.lost": "物品丢失",
|
||||
"runner.complaint.type.other": "其他",
|
||||
"runner.complaint.content": "投诉内容",
|
||||
"runner.complaint.images": "图片",
|
||||
"runner.complaint.status": "状态",
|
||||
"runner.complaint.status.0": "待处理",
|
||||
"runner.complaint.status.1": "已处理",
|
||||
"runner.complaint.status.2": "已驳回",
|
||||
"runner.complaint.result": "处理结果",
|
||||
"runner.complaint.result_remark": "处理备注",
|
||||
"runner.complaint.handled_at": "处理时间",
|
||||
"runner.complaint.created_at": "创建时间",
|
||||
"runner.complaint.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"runner.credit_log.page.title": "信用记录",
|
||||
"runner.credit_log.page.description": "查看接单员的信用分变动记录",
|
||||
"runner.credit_log.id": "ID",
|
||||
"runner.credit_log.worker_id": "接单员ID",
|
||||
"runner.credit_log.score": "变动分值",
|
||||
"runner.credit_log.score_after": "变动后分值",
|
||||
"runner.credit_log.type": "类型",
|
||||
"runner.credit_log.type.order_complete": "完成订单",
|
||||
"runner.credit_log.type.order_cancel": "取消订单",
|
||||
"runner.credit_log.type.order_timeout": "超时",
|
||||
"runner.credit_log.type.complaint": "被投诉",
|
||||
"runner.credit_log.type.appeal_success": "申诉成功",
|
||||
"runner.credit_log.type.manual": "管理员调整",
|
||||
"runner.credit_log.description": "描述",
|
||||
"runner.credit_log.related_type": "关联类型",
|
||||
"runner.credit_log.related_id": "关联ID",
|
||||
"runner.credit_log.created_at": "创建时间",
|
||||
"runner.credit_log.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
"runner.worker.page.title": "接单员列表",
|
||||
"runner.worker.page.description": "管理已审核通过的接单员",
|
||||
"runner.worker.id": "ID",
|
||||
"runner.worker.user_id": "用户ID",
|
||||
"runner.worker.real_name": "真实姓名",
|
||||
"runner.worker.mobile": "手机号",
|
||||
"runner.worker.id_card": "身份证号",
|
||||
"runner.worker.total_income": "总收入",
|
||||
"runner.worker.total_order": "总订单",
|
||||
"runner.worker.cancel_order": "取消订单",
|
||||
"runner.worker.credit_score": "信用分",
|
||||
"runner.worker.verified_at": "认证时间",
|
||||
"runner.worker.status": "状态",
|
||||
"runner.worker.status.0": "禁用",
|
||||
"runner.worker.status.1": "正常",
|
||||
"runner.worker.status.2": "休息中",
|
||||
"runner.worker.created_at": "创建时间",
|
||||
"runner.worker.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
"task.bid.page.title": "接单记录",
|
||||
"task.bid.page.description": "查看任务的接单记录",
|
||||
"task.bid.id": "ID",
|
||||
"task.bid.task_id": "任务ID",
|
||||
"task.bid.user_id": "接单人ID",
|
||||
"task.bid.price": "报价",
|
||||
"task.bid.message": "留言",
|
||||
"task.bid.status": "状态",
|
||||
"task.bid.status.0": "待确认",
|
||||
"task.bid.status.1": "已接受",
|
||||
"task.bid.status.2": "已拒绝",
|
||||
"task.bid.accepted_at": "接单时间",
|
||||
"task.bid.created_at": "创建时间",
|
||||
"task.bid.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
export default {
|
||||
"task.category.page.title": "任务分类",
|
||||
"task.category.page.description": "管理校园任务分类",
|
||||
"task.category.id": "ID",
|
||||
"task.category.name": "分类名称",
|
||||
"task.category.name.required": "分类名称不能为空",
|
||||
"task.category.slug": "标识",
|
||||
"task.category.slug.required": "分类标识不能为空",
|
||||
"task.category.description": "描述",
|
||||
"task.category.icon": "图标",
|
||||
"task.category.form_schema": "表单配置",
|
||||
"task.category.sort": "排序",
|
||||
"task.category.status": "状态",
|
||||
"task.category.status.0": "禁用",
|
||||
"task.category.status.1": "正常",
|
||||
"task.category.created_at": "创建时间",
|
||||
"task.category.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
"task.order_errand.page.title": "跑腿订单",
|
||||
"task.order_errand.page.description": "管理跑腿类任务订单",
|
||||
"task.order_errand.id": "ID",
|
||||
"task.order_errand.order_no": "订单号",
|
||||
"task.order_errand.user_id": "用户ID",
|
||||
"task.order_errand.runner_id": "接单员ID",
|
||||
"task.order_errand.title": "标题",
|
||||
"task.order_errand.price": "价格",
|
||||
"task.order_errand.contact_name": "联系人",
|
||||
"task.order_errand.contact_mobile": "联系电话",
|
||||
"task.order_errand.deadline": "截止时间",
|
||||
"task.order_errand.pay_type": "支付方式",
|
||||
"task.order_errand.pay_type.0": "余额支付",
|
||||
"task.order_errand.pay_type.1": "微信支付",
|
||||
"task.order_errand.pay_status": "支付状态",
|
||||
"task.order_errand.pay_status.0": "未支付",
|
||||
"task.order_errand.pay_status.1": "已支付",
|
||||
"task.order_errand.pay_status.2": "退款中",
|
||||
"task.order_errand.pay_status.3": "已退款",
|
||||
"task.order_errand.status": "状态",
|
||||
"task.order_errand.status.0": "待接单",
|
||||
"task.order_errand.status.1": "已接单",
|
||||
"task.order_errand.status.2": "进行中",
|
||||
"task.order_errand.status.3": "已完成",
|
||||
"task.order_errand.status.4": "已取消",
|
||||
"task.order_errand.created_at": "创建时间",
|
||||
"task.order_errand.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
"task.order_pickup.page.title": "代取订单",
|
||||
"task.order_pickup.page.description": "管理代取类任务订单",
|
||||
"task.order_pickup.id": "ID",
|
||||
"task.order_pickup.order_no": "订单号",
|
||||
"task.order_pickup.user_id": "用户ID",
|
||||
"task.order_pickup.runner_id": "接单员ID",
|
||||
"task.order_pickup.title": "标题",
|
||||
"task.order_pickup.price": "价格",
|
||||
"task.order_pickup.contact_name": "联系人",
|
||||
"task.order_pickup.contact_mobile": "联系电话",
|
||||
"task.order_pickup.deadline": "截止时间",
|
||||
"task.order_pickup.pay_type": "支付方式",
|
||||
"task.order_pickup.pay_type.0": "余额支付",
|
||||
"task.order_pickup.pay_type.1": "微信支付",
|
||||
"task.order_pickup.pay_status": "支付状态",
|
||||
"task.order_pickup.pay_status.0": "未支付",
|
||||
"task.order_pickup.pay_status.1": "已支付",
|
||||
"task.order_pickup.pay_status.2": "退款中",
|
||||
"task.order_pickup.pay_status.3": "已退款",
|
||||
"task.order_pickup.status": "状态",
|
||||
"task.order_pickup.status.0": "待接单",
|
||||
"task.order_pickup.status.1": "已接单",
|
||||
"task.order_pickup.status.2": "进行中",
|
||||
"task.order_pickup.status.3": "已完成",
|
||||
"task.order_pickup.status.4": "已取消",
|
||||
"task.order_pickup.created_at": "创建时间",
|
||||
"task.order_pickup.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
"task.order_rental.page.title": "租借订单",
|
||||
"task.order_rental.page.description": "管理租借类任务订单",
|
||||
"task.order_rental.id": "ID",
|
||||
"task.order_rental.order_no": "订单号",
|
||||
"task.order_rental.user_id": "用户ID",
|
||||
"task.order_rental.runner_id": "接单员ID",
|
||||
"task.order_rental.title": "标题",
|
||||
"task.order_rental.price": "价格",
|
||||
"task.order_rental.contact_name": "联系人",
|
||||
"task.order_rental.contact_mobile": "联系电话",
|
||||
"task.order_rental.deadline": "截止时间",
|
||||
"task.order_rental.pay_type": "支付方式",
|
||||
"task.order_rental.pay_type.0": "余额支付",
|
||||
"task.order_rental.pay_type.1": "微信支付",
|
||||
"task.order_rental.pay_status": "支付状态",
|
||||
"task.order_rental.pay_status.0": "未支付",
|
||||
"task.order_rental.pay_status.1": "已支付",
|
||||
"task.order_rental.pay_status.2": "退款中",
|
||||
"task.order_rental.pay_status.3": "已退款",
|
||||
"task.order_rental.status": "状态",
|
||||
"task.order_rental.status.0": "待接单",
|
||||
"task.order_rental.status.1": "已接单",
|
||||
"task.order_rental.status.2": "进行中",
|
||||
"task.order_rental.status.3": "已完成",
|
||||
"task.order_rental.status.4": "已取消",
|
||||
"task.order_rental.created_at": "创建时间",
|
||||
"task.order_rental.updated_at": "更新时间",
|
||||
};
|
||||
@@ -0,0 +1,155 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IDepositPayment from '@/domain/iDepositPayment';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IDepositPayment>[] = [
|
||||
{
|
||||
title: t('finance.deposit_payment.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.payment_no'),
|
||||
dataIndex: 'payment_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.deposit_id'),
|
||||
dataIndex: 'deposit_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.payment_transaction_id'),
|
||||
dataIndex: 'payment_transaction_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.amount'),
|
||||
dataIndex: 'amount',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.pay_type'),
|
||||
dataIndex: 'pay_type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('finance.deposit_payment.status.0') },
|
||||
{ value: 1, label: t('finance.deposit_payment.status.1') },
|
||||
{ value: 2, label: t('finance.deposit_payment.status.2') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
if (value === 1) return <Tag color="success">{t('finance.deposit_payment.status.1')}</Tag>;
|
||||
if (value === 2) return <Tag color="warning">{t('finance.deposit_payment.status.2')}</Tag>;
|
||||
return <Tag color="default">{t('finance.deposit_payment.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('finance.deposit_payment.status.0'), value: 0 },
|
||||
{ text: t('finance.deposit_payment.status.1'), value: 1 },
|
||||
{ text: t('finance.deposit_payment.status.2'), value: 2 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.paid_at'),
|
||||
dataIndex: 'paid_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.refund_at'),
|
||||
dataIndex: 'refund_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit_payment.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IDepositPayment> = {
|
||||
api: '/runner/deposit-payment',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.deposit_payment',
|
||||
addShow: false,
|
||||
editShow: false,
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('finance.deposit_payment.page.title')}</Title>
|
||||
<Text type="secondary">{t('finance.deposit_payment.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IDepositPayment> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,158 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IRunnerDeposit from '@/domain/iRunnerDeposit';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IRunnerDeposit>[] = [
|
||||
{
|
||||
title: t('finance.deposit.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.deposit_no'),
|
||||
dataIndex: 'deposit_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.worker_id'),
|
||||
dataIndex: 'worker_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.amount'),
|
||||
dataIndex: 'amount',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('finance.deposit.status.0') },
|
||||
{ value: 1, label: t('finance.deposit.status.1') },
|
||||
{ value: 2, label: t('finance.deposit.status.2') },
|
||||
{ value: 3, label: t('finance.deposit.status.3') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
if (value === 1) return <Tag color="success">{t('finance.deposit.status.1')}</Tag>;
|
||||
if (value === 2) return <Tag color="warning">{t('finance.deposit.status.2')}</Tag>;
|
||||
if (value === 3) return <Tag color="error">{t('finance.deposit.status.3')}</Tag>;
|
||||
return <Tag color="default">{t('finance.deposit.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('finance.deposit.status.0'), value: 0 },
|
||||
{ text: t('finance.deposit.status.1'), value: 1 },
|
||||
{ text: t('finance.deposit.status.2'), value: 2 },
|
||||
{ text: t('finance.deposit.status.3'), value: 3 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.deduct_reason'),
|
||||
dataIndex: 'deduct_reason',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.paid_at'),
|
||||
dataIndex: 'paid_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.refund_at'),
|
||||
dataIndex: 'refund_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.deducted_at'),
|
||||
dataIndex: 'deducted_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.deposit.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IRunnerDeposit> = {
|
||||
api: '/runner/deposit',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.deposit',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('finance.deposit.page.title')}</Title>
|
||||
<Text type="secondary">{t('finance.deposit.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IRunnerDeposit> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,155 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type ITaskPayment from '@/domain/iTaskPayment';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<ITaskPayment>[] = [
|
||||
{
|
||||
title: t('finance.task_payment.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.payment_no'),
|
||||
dataIndex: 'payment_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.order_id'),
|
||||
dataIndex: 'order_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.payment_transaction_id'),
|
||||
dataIndex: 'payment_transaction_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.amount'),
|
||||
dataIndex: 'amount',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.pay_type'),
|
||||
dataIndex: 'pay_type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('finance.task_payment.status.0') },
|
||||
{ value: 1, label: t('finance.task_payment.status.1') },
|
||||
{ value: 2, label: t('finance.task_payment.status.2') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
if (value === 1) return <Tag color="success">{t('finance.task_payment.status.1')}</Tag>;
|
||||
if (value === 2) return <Tag color="warning">{t('finance.task_payment.status.2')}</Tag>;
|
||||
return <Tag color="default">{t('finance.task_payment.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('finance.task_payment.status.0'), value: 0 },
|
||||
{ text: t('finance.task_payment.status.1'), value: 1 },
|
||||
{ text: t('finance.task_payment.status.2'), value: 2 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.paid_at'),
|
||||
dataIndex: 'paid_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.refund_at'),
|
||||
dataIndex: 'refund_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.task_payment.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<ITaskPayment> = {
|
||||
api: '/task/payment',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'task.payment',
|
||||
addShow: false,
|
||||
editShow: false,
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('finance.task_payment.page.title')}</Title>
|
||||
<Text type="secondary">{t('finance.task_payment.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<ITaskPayment> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,197 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IPaymentTransaction from '@/domain/iPaymentTransaction';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const statusMap: Record<number, { color: string; text: string }> = {
|
||||
0: { color: 'processing', text: '待支付' },
|
||||
1: { color: 'success', text: '支付成功' },
|
||||
2: { color: 'error', text: '支付失败' },
|
||||
3: { color: 'warning', text: '已退款' },
|
||||
};
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IPaymentTransaction>[] = [
|
||||
{
|
||||
title: t('finance.transaction.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.transaction_no'),
|
||||
dataIndex: 'transaction_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
width: 220,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.out_trade_no'),
|
||||
dataIndex: 'out_trade_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.pay_type'),
|
||||
dataIndex: 'pay_type',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 'wechat', label: t('finance.transaction.pay_type.wechat') },
|
||||
{ value: 'alipay', label: t('finance.transaction.pay_type.alipay') },
|
||||
],
|
||||
},
|
||||
render: (value: string) => (
|
||||
<Tag>{value === 'wechat' ? t('finance.transaction.pay_type.wechat') : t('finance.transaction.pay_type.alipay')}</Tag>
|
||||
),
|
||||
filters: [
|
||||
{ text: t('finance.transaction.pay_type.wechat'), value: 'wechat' },
|
||||
{ text: t('finance.transaction.pay_type.alipay'), value: 'alipay' },
|
||||
],
|
||||
align: 'center',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.amount'),
|
||||
dataIndex: 'amount',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
width: 120,
|
||||
render: (value: string) => `¥${value || '0.00'}`,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: '待支付' },
|
||||
{ value: 1, label: '支付成功' },
|
||||
{ value: 2, label: '支付失败' },
|
||||
{ value: 3, label: '已退款' },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
const item = statusMap[value] || { color: 'default', text: '未知' };
|
||||
return <Tag color={item.color}>{item.text}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: '待支付', value: 0 },
|
||||
{ text: '支付成功', value: 1 },
|
||||
{ text: '支付失败', value: 2 },
|
||||
{ text: '已退款', value: 3 },
|
||||
],
|
||||
align: 'center',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.business_type'),
|
||||
dataIndex: 'business_type',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 'task', label: t('finance.transaction.business_type.task') },
|
||||
{ value: 'deposit', label: t('finance.transaction.business_type.deposit') },
|
||||
{ value: 'order', label: t('finance.transaction.business_type.order') },
|
||||
],
|
||||
},
|
||||
render: (value: string) => {
|
||||
const labels: Record<string, string> = {
|
||||
task: t('finance.transaction.business_type.task'),
|
||||
deposit: t('finance.transaction.business_type.deposit'),
|
||||
order: t('finance.transaction.business_type.order'),
|
||||
};
|
||||
return <Tag>{labels[value] || value}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('finance.transaction.business_type.task'), value: 'task' },
|
||||
{ text: t('finance.transaction.business_type.deposit'), value: 'deposit' },
|
||||
{ text: t('finance.transaction.business_type.order'), value: 'order' },
|
||||
],
|
||||
align: 'center',
|
||||
width: 110,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.business_id'),
|
||||
dataIndex: 'business_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
width: 90,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
width: 90,
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.paid_at'),
|
||||
dataIndex: 'paid_at',
|
||||
valueType: 'date',
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
width: 180,
|
||||
render: (value: string) => (value ? dayjs(value).format('YYYY-MM-DD HH:mm:ss') : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.transaction.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
width: 160,
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IPaymentTransaction> = {
|
||||
api: '/finance/payment-transaction',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'finance.transaction',
|
||||
addShow: false,
|
||||
editShow: false,
|
||||
scroll: { x: 1500 },
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('finance.transaction.page.title')}</Title>
|
||||
<Text type="secondary">{t('finance.transaction.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IPaymentTransaction> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,158 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IRunnerWithdrawal from '@/domain/iRunnerWithdrawal';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IRunnerWithdrawal>[] = [
|
||||
{
|
||||
title: t('finance.withdrawal.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.withdraw_no'),
|
||||
dataIndex: 'withdraw_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.worker_id'),
|
||||
dataIndex: 'worker_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.amount'),
|
||||
dataIndex: 'amount',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.fee'),
|
||||
dataIndex: 'fee',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.channel'),
|
||||
dataIndex: 'channel',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.account_info'),
|
||||
dataIndex: 'account_info',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('finance.withdrawal.status.0') },
|
||||
{ value: 1, label: t('finance.withdrawal.status.1') },
|
||||
{ value: 2, label: t('finance.withdrawal.status.2') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
if (value === 1) return <Tag color="success">{t('finance.withdrawal.status.1')}</Tag>;
|
||||
if (value === 2) return <Tag color="error">{t('finance.withdrawal.status.2')}</Tag>;
|
||||
return <Tag color="processing">{t('finance.withdrawal.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('finance.withdrawal.status.0'), value: 0 },
|
||||
{ text: t('finance.withdrawal.status.1'), value: 1 },
|
||||
{ text: t('finance.withdrawal.status.2'), value: 2 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.remark'),
|
||||
dataIndex: 'remark',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.processed_at'),
|
||||
dataIndex: 'processed_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('finance.withdrawal.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IRunnerWithdrawal> = {
|
||||
api: '/runner/withdrawal',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.withdrawal',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('finance.withdrawal.page.title')}</Title>
|
||||
<Text type="secondary">{t('finance.withdrawal.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IRunnerWithdrawal> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,161 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IRunnerApplication from '@/domain/iRunnerApplication';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IRunnerApplication>[] = [
|
||||
{
|
||||
title: t('runner.application.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('runner.application.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.application.real_name'),
|
||||
dataIndex: 'real_name',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.application.mobile'),
|
||||
dataIndex: 'mobile',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.application.resume'),
|
||||
dataIndex: 'resume',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.application.id_card'),
|
||||
dataIndex: 'id_card',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.application.id_card_front'),
|
||||
dataIndex: 'id_card_front',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.application.id_card_back'),
|
||||
dataIndex: 'id_card_back',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.application.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('runner.application.status.0') },
|
||||
{ value: 1, label: t('runner.application.status.1') },
|
||||
{ value: 2, label: t('runner.application.status.2') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
if (value === 1) return <Tag color="success">{t('runner.application.status.1')}</Tag>;
|
||||
if (value === 2) return <Tag color="error">{t('runner.application.status.2')}</Tag>;
|
||||
return <Tag color="warning">{t('runner.application.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('runner.application.status.0'), value: 0 },
|
||||
{ text: t('runner.application.status.1'), value: 1 },
|
||||
{ text: t('runner.application.status.2'), value: 2 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.application.review_remark'),
|
||||
dataIndex: 'review_remark',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.application.reviewed_at'),
|
||||
dataIndex: 'reviewed_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.application.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.application.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IRunnerApplication> = {
|
||||
api: '/runner/application',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.application',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('runner.application.page.title')}</Title>
|
||||
<Text type="secondary">{t('runner.application.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IRunnerApplication> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,141 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IRunnerComplaintAppeal from '@/domain/iRunnerComplaintAppeal';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IRunnerComplaintAppeal>[] = [
|
||||
{
|
||||
title: t('runner.complaint_appeal.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.complaint_id'),
|
||||
dataIndex: 'complaint_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.worker_id'),
|
||||
dataIndex: 'worker_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.content'),
|
||||
dataIndex: 'content',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.images'),
|
||||
dataIndex: 'images',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('runner.complaint_appeal.status.0') },
|
||||
{ value: 1, label: t('runner.complaint_appeal.status.1') },
|
||||
{ value: 2, label: t('runner.complaint_appeal.status.2') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
if (value === 1) return <Tag color="success">{t('runner.complaint_appeal.status.1')}</Tag>;
|
||||
if (value === 2) return <Tag color="error">{t('runner.complaint_appeal.status.2')}</Tag>;
|
||||
return <Tag color="warning">{t('runner.complaint_appeal.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('runner.complaint_appeal.status.0'), value: 0 },
|
||||
{ text: t('runner.complaint_appeal.status.1'), value: 1 },
|
||||
{ text: t('runner.complaint_appeal.status.2'), value: 2 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.reply'),
|
||||
dataIndex: 'reply',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.reviewed_at'),
|
||||
dataIndex: 'reviewed_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint_appeal.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IRunnerComplaintAppeal> = {
|
||||
api: '/runner/complaint-appeal',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.complaint_appeal',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('runner.complaint_appeal.page.title')}</Title>
|
||||
<Text type="secondary">{t('runner.complaint_appeal.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IRunnerComplaintAppeal> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,164 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IRunnerComplaint from '@/domain/iRunnerComplaint';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IRunnerComplaint>[] = [
|
||||
{
|
||||
title: t('runner.complaint.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.complaint_no'),
|
||||
dataIndex: 'complaint_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.worker_id'),
|
||||
dataIndex: 'worker_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.order_id'),
|
||||
dataIndex: 'order_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.type'),
|
||||
dataIndex: 'type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.content'),
|
||||
dataIndex: 'content',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.images'),
|
||||
dataIndex: 'images',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('runner.complaint.status.0') },
|
||||
{ value: 1, label: t('runner.complaint.status.1') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
return value === 1
|
||||
? <Tag color="success">{t('runner.complaint.status.1')}</Tag>
|
||||
: <Tag color="warning">{t('runner.complaint.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('runner.complaint.status.0'), value: 0 },
|
||||
{ text: t('runner.complaint.status.1'), value: 1 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.result'),
|
||||
dataIndex: 'result',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.result_remark'),
|
||||
dataIndex: 'result_remark',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.handled_at'),
|
||||
dataIndex: 'handled_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.complaint.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IRunnerComplaint> = {
|
||||
api: '/runner/complaint',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.complaint',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('runner.complaint.page.title')}</Title>
|
||||
<Text type="secondary">{t('runner.complaint.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IRunnerComplaint> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,124 @@
|
||||
import { Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IRunnerCreditLog from '@/domain/iRunnerCreditLog';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IRunnerCreditLog>[] = [
|
||||
{
|
||||
title: t('runner.credit_log.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.worker_id'),
|
||||
dataIndex: 'worker_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.score'),
|
||||
dataIndex: 'score',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.score_after'),
|
||||
dataIndex: 'score_after',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.type'),
|
||||
dataIndex: 'type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.description'),
|
||||
dataIndex: 'description',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.related_type'),
|
||||
dataIndex: 'related_type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.related_id'),
|
||||
dataIndex: 'related_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.credit_log.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IRunnerCreditLog> = {
|
||||
api: '/runner/credit-log',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.credit_log',
|
||||
addShow: false,
|
||||
editShow: false,
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('runner.credit_log.page.title')}</Title>
|
||||
<Text type="secondary">{t('runner.credit_log.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IRunnerCreditLog> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,159 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type IRunnerWorker from '@/domain/iRunnerWorker';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<IRunnerWorker>[] = [
|
||||
{
|
||||
title: t('runner.worker.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.real_name'),
|
||||
dataIndex: 'real_name',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.mobile'),
|
||||
dataIndex: 'mobile',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.id_card'),
|
||||
dataIndex: 'id_card',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.total_income'),
|
||||
dataIndex: 'total_income',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.total_order'),
|
||||
dataIndex: 'total_order',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.cancel_order'),
|
||||
dataIndex: 'cancel_order',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.credit_score'),
|
||||
dataIndex: 'credit_score',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.verified_at'),
|
||||
dataIndex: 'verified_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('runner.worker.status.0') },
|
||||
{ value: 1, label: t('runner.worker.status.1') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
return value === 1
|
||||
? <Tag color="success">{t('runner.worker.status.1')}</Tag>
|
||||
: <Tag color="error">{t('runner.worker.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('runner.worker.status.0'), value: 0 },
|
||||
{ text: t('runner.worker.status.1'), value: 1 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('runner.worker.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<IRunnerWorker> = {
|
||||
api: '/runner/worker',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'runner.worker',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('runner.worker.page.title')}</Title>
|
||||
<Text type="secondary">{t('runner.worker.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<IRunnerWorker> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,116 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type ITaskBid from '@/domain/iTaskBid';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<ITaskBid>[] = [
|
||||
{
|
||||
title: t('task.bid.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('task.bid.task_id'),
|
||||
dataIndex: 'task_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.bid.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.bid.price'),
|
||||
dataIndex: 'price',
|
||||
hideInForm: true,
|
||||
align: 'center',
|
||||
render: (value: string) => `¥${value || '0.00'}`,
|
||||
},
|
||||
{
|
||||
title: t('task.bid.message'),
|
||||
dataIndex: 'message',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.bid.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.bid.accepted_at'),
|
||||
dataIndex: 'accepted_at',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('task.bid.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('task.bid.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<ITaskBid> = {
|
||||
api: '/task/bid',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'task.bid',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('task.bid.page.title')}</Title>
|
||||
<Text type="secondary">{t('task.bid.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<ITaskBid> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,142 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type ITaskCategory from '@/domain/iTaskCategory';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<ITaskCategory>[] = [
|
||||
{
|
||||
title: t('task.category.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('task.category.name'),
|
||||
dataIndex: 'name',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
required: true,
|
||||
rules: [{ required: true, message: t('task.category.name.required') }],
|
||||
},
|
||||
{
|
||||
title: t('task.category.slug'),
|
||||
dataIndex: 'slug',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
required: true,
|
||||
rules: [{ required: true, message: t('task.category.slug.required') }],
|
||||
},
|
||||
{
|
||||
title: t('task.category.description'),
|
||||
dataIndex: 'description',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('task.category.icon'),
|
||||
dataIndex: 'icon',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('task.category.form_schema'),
|
||||
dataIndex: 'form_schema',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('task.category.sort'),
|
||||
dataIndex: 'sort',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: t('task.category.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('task.category.status.0') },
|
||||
{ value: 1, label: t('task.category.status.1') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
return value === 1
|
||||
? <Tag color="success">{t('task.category.status.1')}</Tag>
|
||||
: <Tag color="error">{t('task.category.status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('task.category.status.0'), value: 0 },
|
||||
{ text: t('task.category.status.1'), value: 1 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.category.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('task.category.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<ITaskCategory> = {
|
||||
api: '/task/category',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'task.category',
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 600,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('task.category.page.title')}</Title>
|
||||
<Text type="secondary">{t('task.category.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<ITaskCategory> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,161 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type ITaskOrder from '@/domain/iTaskOrder';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<ITaskOrder>[] = [
|
||||
{
|
||||
title: t('task.order_errand.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.order_no'),
|
||||
dataIndex: 'order_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.runner_id'),
|
||||
dataIndex: 'runner_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.title'),
|
||||
dataIndex: 'title',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.price'),
|
||||
dataIndex: 'price',
|
||||
hideInForm: true,
|
||||
align: 'center',
|
||||
render: (value: string) => `¥${value || '0.00'}`,
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.contact_name'),
|
||||
dataIndex: 'contact_name',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.contact_mobile'),
|
||||
dataIndex: 'contact_mobile',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.deadline'),
|
||||
dataIndex: 'deadline',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.pay_type'),
|
||||
dataIndex: 'pay_type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.pay_status'),
|
||||
dataIndex: 'pay_status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('task.order_errand.pay_status.0') },
|
||||
{ value: 1, label: t('task.order_errand.pay_status.1') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
return value === 1
|
||||
? <Tag color="success">{t('task.order_errand.pay_status.1')}</Tag>
|
||||
: <Tag color="error">{t('task.order_errand.pay_status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('task.order_errand.pay_status.0'), value: 0 },
|
||||
{ text: t('task.order_errand.pay_status.1'), value: 1 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('task.order_errand.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<ITaskOrder> = {
|
||||
api: '/task/order',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'task.order',
|
||||
requestParams: { category_slug: 'errand' },
|
||||
scroll: { x: 1400 },
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('task.order_errand.page.title')}</Title>
|
||||
<Text type="secondary">{t('task.order_errand.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<ITaskOrder> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,161 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type ITaskOrder from '@/domain/iTaskOrder';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<ITaskOrder>[] = [
|
||||
{
|
||||
title: t('task.order_pickup.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.order_no'),
|
||||
dataIndex: 'order_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.runner_id'),
|
||||
dataIndex: 'runner_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.title'),
|
||||
dataIndex: 'title',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.price'),
|
||||
dataIndex: 'price',
|
||||
hideInForm: true,
|
||||
align: 'center',
|
||||
render: (value: string) => `¥${value || '0.00'}`,
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.contact_name'),
|
||||
dataIndex: 'contact_name',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.contact_mobile'),
|
||||
dataIndex: 'contact_mobile',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.deadline'),
|
||||
dataIndex: 'deadline',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.pay_type'),
|
||||
dataIndex: 'pay_type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.pay_status'),
|
||||
dataIndex: 'pay_status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('task.order_pickup.pay_status.0') },
|
||||
{ value: 1, label: t('task.order_pickup.pay_status.1') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
return value === 1
|
||||
? <Tag color="success">{t('task.order_pickup.pay_status.1')}</Tag>
|
||||
: <Tag color="error">{t('task.order_pickup.pay_status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('task.order_pickup.pay_status.0'), value: 0 },
|
||||
{ text: t('task.order_pickup.pay_status.1'), value: 1 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('task.order_pickup.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<ITaskOrder> = {
|
||||
api: '/task/order',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'task.order',
|
||||
requestParams: { category_slug: 'pickup' },
|
||||
scroll: { x: 1400 },
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('task.order_pickup.page.title')}</Title>
|
||||
<Text type="secondary">{t('task.order_pickup.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<ITaskOrder> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
@@ -0,0 +1,161 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import React from 'react';
|
||||
import XinTable from '@/components/XinTable';
|
||||
import type { XinTableColumn, XinTableProps } from '@/components/XinTable/typings';
|
||||
import type ITaskOrder from '@/domain/iTaskOrder';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
const Table: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const columns: XinTableColumn<ITaskOrder>[] = [
|
||||
{
|
||||
title: t('task.order_rental.id'),
|
||||
dataIndex: 'id',
|
||||
hideInForm: true,
|
||||
sorter: true,
|
||||
align: 'center',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.order_no'),
|
||||
dataIndex: 'order_no',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.user_id'),
|
||||
dataIndex: 'user_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.runner_id'),
|
||||
dataIndex: 'runner_id',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.title'),
|
||||
dataIndex: 'title',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.price'),
|
||||
dataIndex: 'price',
|
||||
hideInForm: true,
|
||||
align: 'center',
|
||||
render: (value: string) => `¥${value || '0.00'}`,
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.contact_name'),
|
||||
dataIndex: 'contact_name',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.contact_mobile'),
|
||||
dataIndex: 'contact_mobile',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.deadline'),
|
||||
dataIndex: 'deadline',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.pay_type'),
|
||||
dataIndex: 'pay_type',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.pay_status'),
|
||||
dataIndex: 'pay_status',
|
||||
valueType: 'radioButton',
|
||||
fieldProps: {
|
||||
options: [
|
||||
{ value: 0, label: t('task.order_rental.pay_status.0') },
|
||||
{ value: 1, label: t('task.order_rental.pay_status.1') },
|
||||
],
|
||||
},
|
||||
render: (value: number) => {
|
||||
return value === 1
|
||||
? <Tag color="success">{t('task.order_rental.pay_status.1')}</Tag>
|
||||
: <Tag color="error">{t('task.order_rental.pay_status.0')}</Tag>;
|
||||
},
|
||||
filters: [
|
||||
{ text: t('task.order_rental.pay_status.0'), value: 0 },
|
||||
{ text: t('task.order_rental.pay_status.1'), value: 1 },
|
||||
],
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.status'),
|
||||
dataIndex: 'status',
|
||||
valueType: 'text',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.created_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'created_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
{
|
||||
title: t('task.order_rental.updated_at'),
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
dataIndex: 'updated_at',
|
||||
align: 'center',
|
||||
render: (value: string) => (value ? dayjs(value).fromNow() : '-'),
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: XinTableProps<ITaskOrder> = {
|
||||
api: '/task/order',
|
||||
columns,
|
||||
rowKey: 'id',
|
||||
accessName: 'task.order',
|
||||
requestParams: { category_slug: 'rental' },
|
||||
scroll: { x: 1400 },
|
||||
formProps: {
|
||||
grid: true,
|
||||
colProps: { span: 12 },
|
||||
rowProps: { gutter: [30, 0] },
|
||||
layout: 'vertical',
|
||||
},
|
||||
modalProps: {
|
||||
width: 800,
|
||||
},
|
||||
cardProps: {
|
||||
variant: 'borderless',
|
||||
},
|
||||
pagination: {
|
||||
size: 'small',
|
||||
style: { marginBottom: 0 },
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-5">
|
||||
<Title level={3}>{t('task.order_rental.page.title')}</Title>
|
||||
<Text type="secondary">{t('task.order_rental.page.description')}</Text>
|
||||
</div>
|
||||
<XinTable<ITaskOrder> {...tableProps} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Table;
|
||||
Reference in New Issue
Block a user