feat:寄卖增加对接客服,db脚本迁移修复
This commit is contained in:
@@ -182,9 +182,7 @@ export default function ConsignmentInventoryPanel() {
|
||||
queryFn: () => fetchAdminConsignmentContacts(),
|
||||
})
|
||||
const contactSupporterOptions = (contactsQuery.data?.data.items || []).map((item) => ({
|
||||
label: `${item.name}${item.enabled ? '' : '(已禁用)'}${
|
||||
item.phone ? ` · ${item.phone}` : item.wechat ? ` · ${item.wechat}` : ''
|
||||
}`,
|
||||
label: `${item.name}${item.enabled ? '' : '(已禁用)'}`,
|
||||
value: item.id,
|
||||
}))
|
||||
|
||||
@@ -475,17 +473,11 @@ export default function ConsignmentInventoryPanel() {
|
||||
title: '对接客服',
|
||||
key: 'contactSupporter',
|
||||
width: 150,
|
||||
render: (_, record) => {
|
||||
const contact = formatConsignmentContactSupporter(record)
|
||||
return (
|
||||
<div style={{ fontSize: 12 }}>
|
||||
<div style={{ fontWeight: 600 }}>{contact.name || contact.text}</div>
|
||||
{contact.contact ? (
|
||||
<div style={{ color: '#8c8c8c', marginTop: 2 }}>{contact.contact}</div>
|
||||
) : null}
|
||||
</div>
|
||||
)
|
||||
},
|
||||
render: (_, record) => (
|
||||
<div style={{ fontSize: 12, fontWeight: 600 }}>
|
||||
{formatConsignmentContactSupporter(record).text}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '凭证',
|
||||
@@ -1132,21 +1124,7 @@ export default function ConsignmentInventoryPanel() {
|
||||
)}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="对接客服">
|
||||
{(() => {
|
||||
const contact = formatConsignmentContactSupporter(viewingItem)
|
||||
return contact.name ? (
|
||||
<Space direction="vertical" size={2}>
|
||||
<Text strong>{contact.name}</Text>
|
||||
{contact.contact ? (
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
{contact.contact}
|
||||
</Text>
|
||||
) : null}
|
||||
</Space>
|
||||
) : (
|
||||
<Text type="secondary">未指定</Text>
|
||||
)
|
||||
})()}
|
||||
<Text>{formatConsignmentContactSupporter(viewingItem).text}</Text>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="履约押金要求">
|
||||
{viewingItem.depositAmountFen ? (
|
||||
|
||||
@@ -276,17 +276,11 @@ export default function ConsignmentSubmissionsPanel() {
|
||||
title: '对接客服',
|
||||
key: 'contactSupporter',
|
||||
width: 150,
|
||||
render: (_, record) => {
|
||||
const contact = formatConsignmentContactSupporter(record)
|
||||
return (
|
||||
<div style={{ fontSize: 12 }}>
|
||||
<div style={{ fontWeight: 600 }}>{contact.name || contact.text}</div>
|
||||
{contact.contact ? (
|
||||
<div style={{ color: '#8c8c8c', marginTop: 2 }}>{contact.contact}</div>
|
||||
) : null}
|
||||
</div>
|
||||
)
|
||||
},
|
||||
render: (_, record) => (
|
||||
<div style={{ fontSize: 12, fontWeight: 600 }}>
|
||||
{formatConsignmentContactSupporter(record).text}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '提报凭证(游戏主页截图)',
|
||||
@@ -874,21 +868,7 @@ export default function ConsignmentSubmissionsPanel() {
|
||||
)}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="对接客服">
|
||||
{(() => {
|
||||
const contact = formatConsignmentContactSupporter(viewingSubmission)
|
||||
return contact.name ? (
|
||||
<Space direction="vertical" size={2}>
|
||||
<Text strong>{contact.name}</Text>
|
||||
{contact.contact ? (
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
{contact.contact}
|
||||
</Text>
|
||||
) : null}
|
||||
</Space>
|
||||
) : (
|
||||
<Text type="secondary">未指定</Text>
|
||||
)
|
||||
})()}
|
||||
<Text>{formatConsignmentContactSupporter(viewingSubmission).text}</Text>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="履约押金要求">
|
||||
{viewingSubmission.depositAmountFen ? (
|
||||
|
||||
Reference in New Issue
Block a user