|
@@ -74,12 +74,18 @@ function getNowCarriers(data, index) {
|
|
|
if (res.code == 200) {
|
|
|
form.value.batches[index].carriers =
|
|
|
res.data.dayworkCarrierList && res.data.dayworkCarrierList.length > 0
|
|
|
- ? res.data.dayworkCarrierList.map((v) => ({
|
|
|
+ ? res.data.dayworkCarrierList.filter(v => v.processInspectionId == "0").map((v) => ({
|
|
|
id: v.carrierId,
|
|
|
code: v.carrierCode,
|
|
|
}))
|
|
|
: [];
|
|
|
- form.value.batches[index].carrierIds = res.data.carrierIds;
|
|
|
+ const carriers = res.data.dayworkCarrierList && res.data.dayworkCarrierList.length > 0
|
|
|
+ ? res.data.dayworkCarrierList.filter(v => v.processInspectionId == "0").map((v) => ({
|
|
|
+ id: v.carrierId,
|
|
|
+ code: v.carrierCode,
|
|
|
+ }))
|
|
|
+ : []
|
|
|
+ form.value.batches[index].carrierIds = res.data.carrierIds.filter(v => carriers.some(e => e.id == v));
|
|
|
}
|
|
|
});
|
|
|
}
|