作者 xudada

修复体积导入赋不上值的BUG

... ... @@ -2168,7 +2168,7 @@ Handling Information
quantity_density:'',
quantity_picecs:'',
//体积
quantity_volume:'0',
quantity_volume:'0.0',
quantity_volume_code:'MC',
quantity_weight:'',
quantity_weight_code:'K',
... ... @@ -2987,7 +2987,7 @@ Handling Information
if (totalVolume>0){
totalVolume = Math.floor(totalVolume * 100) / 100;
}
this.form.bill.quantity_volume=totalVolume;
return {
converted: output.trim(),
totalVolume: totalVolume
... ... @@ -3110,7 +3110,7 @@ Handling Information
this.form.cer.cer_signature=this.fileContent.O34;
this.form.isu.isu_signature=this.fileContent.AF38;
this.dimension_textarea=this.fileContent.AF23;
this.convertAndCalculateVolume();
//this.convertAndCalculateVolume();
this.form.isu.isu_day_mounth_year=this.formattedDate();
}else{
... ... @@ -3144,7 +3144,7 @@ Handling Information
X38: X38,
AF38: cleanString(AF38),
};
this.convertAndCalculateVolume();
//this.convertAndCalculateVolume();
this.form.bill.waybillNum=this.fileContent.AF1;
this.form.cvd.cvd_currency_code=this.fileContent.S16;
this.form.rtg.destinationAirport=this.fileContent.A16;
... ... @@ -3165,7 +3165,6 @@ Handling Information
this.dimension_textarea=this.fileContent.AF23;
this.form.isu.isu_day_mounth_year=this.formattedDate();
}
} else {
... ... @@ -3173,6 +3172,7 @@ Handling Information
}
};
reader.readAsArrayBuffer(files);
this.convertAndCalculateVolume();
},
formattedDate() {
// 格式化日期为 yyyy-MM-dd
... ...
... ... @@ -2194,17 +2194,17 @@ Handling Information
},
flt:{
cariier:"HQ",
day:'13',
day:'04',
flightNumber:'405',
cariier2:"HQ",
day2:'13',
day2:'04',
flightNumber2:'4055',
cariier3:"",
day3:'',
flightNumber3:'',
},
isu:{
isu_day_mounth_year:'2024-11-11',
isu_day_mounth_year:'2024-12-03',
isu_place_or_airport_code:'ZHENGZHOU',
isu_signature:'CHINA',
},
... ... @@ -2404,9 +2404,9 @@ Handling Information
cvd_value_for_carriage:'NVD',
cvd_value_for_customs:'NCV',
cvd_amount_of_insurance:'XXX',
cvd_charge_prepaid:'PP',
cvd_charge_prepaid:'CC',
cvd_charge_code:'',
cvd_currency_code:'USD',
cvd_currency_code:'CNY',
},
hbs:{
hbs_origin:'CGO',
... ... @@ -2987,7 +2987,7 @@ Handling Information
if (totalVolume>0){
totalVolume = Math.floor(totalVolume * 100) / 100;
}
this.form.bill.quantity_volume=totalVolume;
return {
converted: output.trim(),
totalVolume: totalVolume
... ...