|
|
@@ -858,25 +858,22 @@
|
|
|
copyLogisticNumber(){
|
|
|
let text="";
|
|
|
this.checkData.forEach((code,i)=>{
|
|
|
- if (this.picktotraceidMap[code] && this.picktotraceidMap[code].length>1){console.log(1);
|
|
|
+ if(this.picktotraceidMap[code] && this.picktotraceidMap[code].length>1){
|
|
|
this.picktotraceidMap[code].forEach((number,j)=>{
|
|
|
- text += number;
|
|
|
- if (i!==this.checkData.length-1 && j!==this.picktotraceidMap[code].length-1){
|
|
|
- text += ",";
|
|
|
- }
|
|
|
+ text += number+"\r\n";
|
|
|
});
|
|
|
- }else{
|
|
|
+ }else {
|
|
|
this.orders.some(order=>{
|
|
|
if (order.orderno == code){
|
|
|
if (order.soreference5) {
|
|
|
- text += order.soreference5;
|
|
|
- if(i!==this.checkData.length-1)text += "\r\n";
|
|
|
+ text += order.soreference5+"\r\n";
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ text.substring(0,text.lastIndexOf("\r\n",text));
|
|
|
if (!text)text = " ";
|
|
|
this.copyText(text)
|
|
|
},
|