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) => {
|
res.work.forEach((item) => {
|
||||||
prevService.value.work.push({
|
prevService.value.work.push({
|
||||||
|
id: item.id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
attributes: item.attributes,
|
attributes: item.attributes,
|
||||||
product: item.productOnWork.map((productOnWorkItem) => ({
|
product: item.productOnWork.map((productOnWorkItem) => ({
|
||||||
|
|
@ -1059,6 +1060,7 @@ function assignFormDataProductServiceCreate() {
|
||||||
|
|
||||||
workItems.value.forEach((item) => {
|
workItems.value.forEach((item) => {
|
||||||
formDataProductService.value.work.push({
|
formDataProductService.value.work.push({
|
||||||
|
id: item.id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
attributes: item.attributes,
|
attributes: item.attributes,
|
||||||
product: item.product.map((productItem) => ({
|
product: item.product.map((productItem) => ({
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ export interface ServiceCreate {
|
||||||
id?: string;
|
id?: string;
|
||||||
installments?: number;
|
installments?: number;
|
||||||
work: {
|
work: {
|
||||||
|
id?: string;
|
||||||
attributes: Attributes;
|
attributes: Attributes;
|
||||||
product: {
|
product: {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue