feat: enhance task status handling and validation in TableEmployee & fail comment
This commit is contained in:
parent
cce1eccf8c
commit
c64af9d992
3 changed files with 63 additions and 42 deletions
|
|
@ -619,17 +619,17 @@ watch([currentFormData.value.taskStatus], () => {
|
|||
:status="subProps.row.taskStatus"
|
||||
@click-failed="
|
||||
() => {
|
||||
const task = fullTaskOrder?.taskList.find(
|
||||
(t) => t.requestWorkId === subProps.row.id,
|
||||
);
|
||||
taskStatusRecords = [
|
||||
{
|
||||
code: `${subProps.row.productService.product.code}-${subProps.row.request.code}`,
|
||||
requestWorkId: subProps.row.id || '',
|
||||
step: subProps.row._template?.step || 0,
|
||||
failedComment:
|
||||
fullTaskOrder?.taskList[subProps.rowIndex]
|
||||
.failedComment || '',
|
||||
failedType:
|
||||
fullTaskOrder?.taskList[subProps.rowIndex]
|
||||
.failedType || '',
|
||||
(task && task.failedComment) || '',
|
||||
failedType: (task && task.failedType) || '',
|
||||
},
|
||||
];
|
||||
failedDialog = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue