feat: enhance task status handling and validation in TableEmployee & fail comment

This commit is contained in:
puriphatt 2024-12-27 14:11:40 +07:00
parent cce1eccf8c
commit c64af9d992
3 changed files with 63 additions and 42 deletions

View file

@ -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;