|
|
@@ -194,6 +194,7 @@ export default () => { |
|
|
|
WorkInfoAPI.Del(EnablejsonData).then((r) => { |
|
|
|
if (r.statusCode === 200) { |
|
|
|
message.success(r.statusCode === 200 ? '删除成功' : r.message); |
|
|
|
batchActionRef.current?.reload(); |
|
|
|
actionRef.current?.reload(); |
|
|
|
} |
|
|
|
}); |
|
|
@@ -347,6 +348,14 @@ export default () => { |
|
|
|
align: 'center', |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '工单个数', |
|
|
|
dataIndex: 'count', |
|
|
|
ellipsis: true, |
|
|
|
hideInSearch: true, |
|
|
|
align: 'center', |
|
|
|
width: 80 |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '批次状态', |
|
|
|
dataIndex: 'status', |
|
|
@@ -416,7 +425,7 @@ export default () => { |
|
|
|
> |
|
|
|
新增工单 |
|
|
|
</Button>, |
|
|
|
|
|
|
|
record.count>0? |
|
|
|
<Popconfirm |
|
|
|
key="workedit" |
|
|
|
title="确定要下发全部工单吗?" |
|
|
@@ -439,7 +448,7 @@ export default () => { |
|
|
|
cancelText="关闭" |
|
|
|
> |
|
|
|
<Button type="primary" ghost>批次下发</Button> |
|
|
|
</Popconfirm> |
|
|
|
</Popconfirm>:"" |
|
|
|
, |
|
|
|
<Popconfirm |
|
|
|
key="workdel" |
|
|
@@ -451,7 +460,7 @@ export default () => { |
|
|
|
WorkInfoAPI.DelBatch(EnablejsonData).then((r) => { |
|
|
|
if (r.statusCode === 200) { |
|
|
|
message.success(r.statusCode === 200 ? '删除成功' : r.message); |
|
|
|
actionRef.current?.reload(); |
|
|
|
batchActionRef.current?.reload(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}} |
|
|
@@ -514,7 +523,7 @@ export default () => { |
|
|
|
, |
|
|
|
<Popconfirm |
|
|
|
key="workdel" |
|
|
|
title="确定要删除此工单吗?" |
|
|
|
title="确定要删除此批次计划吗?" |
|
|
|
onConfirm={() => { |
|
|
|
const EnablejsonData: WorkInfoTypes.WorkInfoDelInput = { |
|
|
|
id: record.id, |
|
|
@@ -522,7 +531,7 @@ export default () => { |
|
|
|
WorkInfoAPI.DelBatch(EnablejsonData).then((r) => { |
|
|
|
if (r.statusCode === 200) { |
|
|
|
message.success(r.statusCode === 200 ? '删除成功' : r.message); |
|
|
|
actionRef.current?.reload(); |
|
|
|
batchActionRef.current?.reload(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}} |
|
|
@@ -570,7 +579,7 @@ const OnBatchSubmit= async (values:any)=>{ |
|
|
|
const response = await WorkInfoAPI.UpdateBatch(values); |
|
|
|
if (response.statusCode === 200) { |
|
|
|
message.success('修改成功'); |
|
|
|
actionRef.current?.reload(); |
|
|
|
batchActionRef.current?.reload(); |
|
|
|
setIsBatchModalOpen(false); |
|
|
|
} else { |
|
|
|
message.error(JSON.stringify(response.errors) || '修改失败'); |
|
|
@@ -580,7 +589,7 @@ const OnBatchSubmit= async (values:any)=>{ |
|
|
|
console.log('response', response); |
|
|
|
if (response.statusCode === 200) { |
|
|
|
message.success('添加成功'); |
|
|
|
actionRef.current?.reload(); |
|
|
|
batchActionRef.current?.reload(); |
|
|
|
setIsBatchModalOpen(false); |
|
|
|
} else { |
|
|
|
message.error(JSON.stringify(response.errors) || '添加失败'); |
|
|
@@ -608,6 +617,7 @@ const OnBatchSubmit= async (values:any)=>{ |
|
|
|
console.log('response', response); |
|
|
|
if (response.statusCode === 200) { |
|
|
|
message.success('添加成功'); |
|
|
|
batchActionRef.current?.reload(); |
|
|
|
actionRef.current?.reload(); |
|
|
|
setIsModalOpen(false); |
|
|
|
} else { |
|
|
@@ -682,6 +692,7 @@ const OnBatchSubmit= async (values:any)=>{ |
|
|
|
console.log('record',record); |
|
|
|
|
|
|
|
}}} |
|
|
|
|
|
|
|
columns={batchColumns} |
|
|
|
actionRef={batchActionRef} |
|
|
|
cardBordered |
|
|
|