feat: work length not match
This commit is contained in:
parent
68a3e7dffd
commit
9a67e3a6e9
1 changed files with 4 additions and 1 deletions
|
|
@ -252,7 +252,10 @@ export class QuotationController extends Controller {
|
|||
product: body.productServiceList
|
||||
.map((v) => v.productId)
|
||||
.filter((v, i, a) => a.findIndex((c) => c === v) === i),
|
||||
work: body.productServiceList.map((v) => v.workId || []).flat(),
|
||||
work: body.productServiceList
|
||||
.map((v) => v.workId || [])
|
||||
.filter((v, i, a) => a.findIndex((c) => c === v) === i)
|
||||
.flat(),
|
||||
service: body.productServiceList.map((v) => v.serviceId || []).flat(),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue