fix: edit service work id

This commit is contained in:
puriphatt 2024-11-25 15:56:27 +07:00
parent 8ae7e88659
commit 80f45501e4
2 changed files with 3 additions and 0 deletions

View file

@ -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) => ({

View file

@ -53,6 +53,7 @@ export interface ServiceCreate {
id?: string;
installments?: number;
work: {
id?: string;
attributes: Attributes;
product: {
id: string;