优化工单资料与审核展示
This commit is contained in:
@@ -82,12 +82,12 @@ export default function CancelRequestsPanel() {
|
||||
|
||||
const columns: TableColumnsType<WorkerCancelRequest> = [
|
||||
{
|
||||
title: '订单',
|
||||
title: '订单号 / 店铺',
|
||||
width: 260,
|
||||
render: (_, request) => (
|
||||
<div className="cell-stack">
|
||||
<Typography.Text strong>{request.productName || '-'}</Typography.Text>
|
||||
<Typography.Text type="secondary">{request.workOrderNo || '-'}</Typography.Text>
|
||||
<Typography.Text strong>{request.platformOrderId || '-'}</Typography.Text>
|
||||
<Typography.Text type="secondary">{request.shopName || '-'}</Typography.Text>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
||||
@@ -68,6 +68,7 @@ export default function FeedbacksPanel() {
|
||||
<div className="cell-stack">
|
||||
<Typography.Text strong>{feedback.productName || '-'}</Typography.Text>
|
||||
<Typography.Text type="secondary">{feedback.workOrderNo || '-'}</Typography.Text>
|
||||
<Typography.Text type="secondary">{feedback.shopName || '-'}</Typography.Text>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
||||
@@ -919,7 +919,7 @@ export default function WorkOrdersPanel() {
|
||||
) : null}
|
||||
{row.capabilities?.canUpdateMaterial ? (
|
||||
<Button icon={<FormOutlined />} onClick={() => openMaterialModal(row)}>
|
||||
{row.status === 'in_progress' ? '更新资料' : '补资料'}
|
||||
{['open', 'in_progress'].includes(row.status) ? '更新资料' : '补资料'}
|
||||
</Button>
|
||||
) : null}
|
||||
{row.capabilities?.canPublish ? (
|
||||
@@ -1571,7 +1571,11 @@ export default function WorkOrdersPanel() {
|
||||
</Modal>
|
||||
|
||||
<Modal
|
||||
title={materialOrder?.status === 'in_progress' ? '更新订单资料' : '人工补充资料'}
|
||||
title={
|
||||
['open', 'in_progress'].includes(materialOrder?.status || '')
|
||||
? '更新订单资料'
|
||||
: '人工补充资料'
|
||||
}
|
||||
open={Boolean(materialOrder)}
|
||||
onCancel={() => {
|
||||
setMaterialOrder(null)
|
||||
|
||||
@@ -107,8 +107,8 @@ export type WorkerCancelRequest = {
|
||||
workOrderId: number
|
||||
shareId: number | null
|
||||
workerId: number
|
||||
workOrderNo: string
|
||||
productName: string
|
||||
platformOrderId: string
|
||||
shopName: string
|
||||
workerName: string
|
||||
shareQuantity: number | null
|
||||
reason: string
|
||||
@@ -134,6 +134,7 @@ export type WorkerOrderFeedback = {
|
||||
workerId: number
|
||||
workOrderNo: string
|
||||
productName: string
|
||||
shopName: string
|
||||
workerName: string
|
||||
shareQuantity: number | null
|
||||
content: string
|
||||
|
||||
Reference in New Issue
Block a user