支持代练中更新订单资料
This commit is contained in:
@@ -344,7 +344,7 @@ export default function WorkOrdersPanel() {
|
||||
values.fields || {},
|
||||
materialScreenshots,
|
||||
),
|
||||
'订单资料已保存',
|
||||
materialOrder.status === 'in_progress' ? '订单资料已更新' : '订单资料已保存',
|
||||
)
|
||||
if (!succeeded) return
|
||||
setMaterialOrder(null)
|
||||
@@ -685,12 +685,12 @@ export default function WorkOrdersPanel() {
|
||||
取消指派
|
||||
</Button>
|
||||
) : null}
|
||||
{row.status === 'pending_material' ? (
|
||||
{['pending_material', 'in_progress'].includes(row.status) ? (
|
||||
<Button
|
||||
icon={<FormOutlined />}
|
||||
onClick={() => openMaterialModal(row)}
|
||||
>
|
||||
补资料
|
||||
{row.status === 'in_progress' ? '更新资料' : '补资料'}
|
||||
</Button>
|
||||
) : null}
|
||||
{row.status === 'unassigned' ? (
|
||||
@@ -1228,7 +1228,7 @@ export default function WorkOrdersPanel() {
|
||||
</Modal>
|
||||
|
||||
<Modal
|
||||
title="人工补充资料"
|
||||
title={materialOrder?.status === 'in_progress' ? '更新订单资料' : '人工补充资料'}
|
||||
open={Boolean(materialOrder)}
|
||||
onCancel={() => {
|
||||
setMaterialOrder(null)
|
||||
|
||||
Reference in New Issue
Block a user