|
@@ -954,10 +954,18 @@ function remoteCarriers(code, newCarrier, row) {
|
|
|
if (code == "") {
|
|
|
return;
|
|
|
}
|
|
|
+ let hasAddCarrierIds = []
|
|
|
+ console.log(form.value.details)
|
|
|
+ form.value.details.forEach((item) => {
|
|
|
+ item.carriers.forEach(v=>{
|
|
|
+ hasAddCarrierIds.push(v.value)
|
|
|
+ })
|
|
|
+ });
|
|
|
carrierForOutsource({
|
|
|
categoryId: categoryId,
|
|
|
code: code,
|
|
|
dayworkId: row.dayworkId,
|
|
|
+ hasAddCarrierIds:hasAddCarrierIds
|
|
|
}).then((res) => {
|
|
|
if (res.code === 200) {
|
|
|
carriers.value = res.rows.map((v) => ({ value: v.id, label: v.code }));
|