feat: 剪辑视频添加参数
This commit is contained in:
@@ -17,6 +17,9 @@ export interface CtripOrderItem {
|
||||
updateTime?: string;
|
||||
remark?: string;
|
||||
tenantId?: string;
|
||||
contactName?: string;
|
||||
contactMobile?: string;
|
||||
contactEmail?: string;
|
||||
}
|
||||
|
||||
// 格式化金额
|
||||
@@ -32,6 +35,8 @@ export const buildCtripOrderColumns = (): ProColumns<CtripOrderItem>[] => [
|
||||
{ title: '携程订单号', dataIndex: 'otaOrderId', width: 200, copyable: true, ellipsis: true },
|
||||
{ title: '关联订单号', dataIndex: 'orderNo', width: 180, copyable: true, ellipsis: true },
|
||||
{ title: '供应商订单号', dataIndex: 'supplierOrderId', width: 180, copyable: true, ellipsis: true },
|
||||
{ title: '联系人', dataIndex: 'contactName', width: 100 },
|
||||
{ title: '联系电话', dataIndex: 'contactMobile', width: 130, copyable: true },
|
||||
{ title: '订单金额', dataIndex: 'totalAmount', width: 120, render: (v, record) => <span>{record.currency || 'CNY'} {formatAmount(v)}</span> },
|
||||
{ title: '状态', dataIndex: 'status', width: 100, render: (v) => <CtripOrderStatusTag value={v as number} /> },
|
||||
{
|
||||
|
||||
@@ -30,6 +30,8 @@ const CtripOrderPage: React.FC = () => {
|
||||
<ProFormText name="otaOrderId" label="携程订单号" placeholder="请输入携程订单号" />
|
||||
<ProFormText name="orderNo" label="关联订单号" placeholder="请输入关联订单号" />
|
||||
<ProFormSelect name="status" label="订单状态" options={CTRIP_ORDER_STATUS_OPTIONS} allowClear />
|
||||
<ProFormText name="contactName" label="联系人" placeholder="请输入联系人姓名" />
|
||||
<ProFormText name="contactMobile" label="联系电话" placeholder="请输入联系电话" />
|
||||
</SearchBarPlus>
|
||||
|
||||
<GlassCard>
|
||||
@@ -47,7 +49,7 @@ const CtripOrderPage: React.FC = () => {
|
||||
columns={columns}
|
||||
search={false}
|
||||
pagination={{ showSizeChanger: true, showQuickJumper: true, defaultPageSize: 20 }}
|
||||
scroll={{ x: 1800 }}
|
||||
scroll={{ x: 2000 }}
|
||||
/>
|
||||
</GlassCard>
|
||||
</PageContainer>
|
||||
|
||||
@@ -41,8 +41,10 @@ const ResourcesActionCell: React.FC<{ record: OrderItem; onReload?: () => void;
|
||||
const isRefundResolved = record.orderStatus === ORDER_STATUS.REFUND_SUCCESS || record.orderStatus === ORDER_STATUS.REFUND_FAILED || record.orderStatus === ORDER_STATUS.REFUND_PART;
|
||||
// 判断是否为第三方支付(不支持退款)
|
||||
const isThirdPartyPay = record.payType === PAY_TYPE.THIRD_PARTY;
|
||||
// 是否可以创建退款(任务完成 且 非第三方支付)
|
||||
const canCreateRefund = isTaskComplete && !isThirdPartyPay;
|
||||
// 判断是否为优惠券支付(携程不支持退款接口)
|
||||
const isCouponPay = record.payType === PAY_TYPE.COUPON;
|
||||
// 是否可以创建退款(任务完成 且 非第三方支付 且 非优惠券支付)
|
||||
const canCreateRefund = isTaskComplete && !isThirdPartyPay && !isCouponPay;
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -54,6 +56,10 @@ const ResourcesActionCell: React.FC<{ record: OrderItem; onReload?: () => void;
|
||||
<Tooltip title="第三方支付订单不支持退款">
|
||||
<span style={{ color: '#999', cursor: 'not-allowed' }}>创建退款</span>
|
||||
</Tooltip>
|
||||
) : isCouponPay ? (
|
||||
<Tooltip title="优惠券支付订单不支持退款">
|
||||
<span style={{ color: '#999', cursor: 'not-allowed' }}>创建退款</span>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<Link onClick={() => setCreateRefundModalVisible(true)}>创建退款</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user