fix: package properties
This commit is contained in:
parent
92e99dd9a4
commit
da4842a4dd
1 changed files with 12 additions and 0 deletions
|
|
@ -4142,6 +4142,18 @@ watch(
|
||||||
"
|
"
|
||||||
@submit="
|
@submit="
|
||||||
(v) => {
|
(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) {
|
if (dialogService) {
|
||||||
workItems[currentWorkIndex].attributes.workflowId = v.id;
|
workItems[currentWorkIndex].attributes.workflowId = v.id;
|
||||||
workItems[currentWorkIndex].attributes.workflowStep.forEach(
|
workItems[currentWorkIndex].attributes.workflowStep.forEach(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue