fix: edit service work id
This commit is contained in:
parent
8ae7e88659
commit
80f45501e4
2 changed files with 3 additions and 0 deletions
|
|
@ -908,6 +908,7 @@ async function assignFormDataProductService(id: string) {
|
|||
|
||||
res.work.forEach((item) => {
|
||||
prevService.value.work.push({
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
attributes: item.attributes,
|
||||
product: item.productOnWork.map((productOnWorkItem) => ({
|
||||
|
|
@ -1059,6 +1060,7 @@ function assignFormDataProductServiceCreate() {
|
|||
|
||||
workItems.value.forEach((item) => {
|
||||
formDataProductService.value.work.push({
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
attributes: item.attributes,
|
||||
product: item.product.map((productItem) => ({
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ export interface ServiceCreate {
|
|||
id?: string;
|
||||
installments?: number;
|
||||
work: {
|
||||
id?: string;
|
||||
attributes: Attributes;
|
||||
product: {
|
||||
id: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue