fix: package properties

This commit is contained in:
puriphatt 2024-11-22 16:16:38 +07:00
parent 92e99dd9a4
commit da4842a4dd

View file

@ -4142,6 +4142,18 @@ watch(
"
@submit="
(v) => {
if (!workItems[currentWorkIndex].attributes.workflowId) {
workItems[currentWorkIndex].attributes.workflowId = v.id;
workItems[currentWorkIndex].attributes.workflowStep.forEach((s) => {
if (!s.hasOwnProperty('productId')) {
s.productsId = workItems[currentWorkIndex].product.map(
(p) => p.id,
);
}
});
return;
}
if (dialogService) {
workItems[currentWorkIndex].attributes.workflowId = v.id;
workItems[currentWorkIndex].attributes.workflowStep.forEach(