md
This commit is contained in:
parent
06a85a0e45
commit
6652a3df77
@ -30,6 +30,7 @@
|
|||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="目的国" prop="reciever.country">
|
<el-form-item label="目的国" prop="reciever.country">
|
||||||
<CountryPicker0 v-model="form.reciever.country"></CountryPicker0>
|
<CountryPicker0 v-model="form.reciever.country"></CountryPicker0>
|
||||||
@ -1068,11 +1069,20 @@ methods: {
|
|||||||
let selPrinterName=this.tanexPrinter.getDefaultPrinter();
|
let selPrinterName=this.tanexPrinter.getDefaultPrinter();
|
||||||
let selTplName="探路速运-主单联(通用)";
|
let selTplName="探路速运-主单联(通用)";
|
||||||
this.tanexPrinter.batchPrint(selTplName,selPrinterName,orderList)
|
this.tanexPrinter.batchPrint(selTplName,selPrinterName,orderList)
|
||||||
// 打印子单
|
|
||||||
orderList=this.form.subBillCode.split(',');
|
|
||||||
|
|
||||||
|
|
||||||
|
// 打印子单
|
||||||
selTplName="探路速运-子单联(通用)";
|
selTplName="探路速运-子单联(通用)";
|
||||||
this.tanexPrinter.batchPrint(selTplName,selPrinterName,orderList)
|
|
||||||
|
let childOrderList=[]
|
||||||
|
orderList=this.form.billCodeSub.split(',');
|
||||||
|
orderList.forEach(item=>{
|
||||||
|
if(item!=null && item!=''){
|
||||||
|
childOrderList.push(item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.tanexPrinter.batchPrint(selTplName,selPrinterName,childOrderList)
|
||||||
|
|
||||||
|
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
}
|
}
|
||||||
@ -1086,14 +1096,15 @@ methods: {
|
|||||||
let selTplName="探路速运-主单联(通用)";
|
let selTplName="探路速运-主单联(通用)";
|
||||||
let url=this.tanexPrinter.getPdfUrl(this.form.billCode,selTplName,selPrinterName);
|
let url=this.tanexPrinter.getPdfUrl(this.form.billCode,selTplName,selPrinterName);
|
||||||
pdfUrlList.push(url)
|
pdfUrlList.push(url)
|
||||||
|
|
||||||
// 子单url
|
// 子单url
|
||||||
if(this.form.subBillCode){
|
if(this.form.billCodeSub){
|
||||||
orderList=this.form.subBillCode.split(',');
|
|
||||||
selTplName="探路速运-子单联(通用)";
|
selTplName="探路速运-子单联(通用)";
|
||||||
this.orderList.forEach(item=>{
|
let orderList=this.form.billCodeSub.split(',');
|
||||||
let url=this.tanexPrinter.getPdfUrl(item,selTplName,selPrinterName);
|
orderList.forEach(item=>{
|
||||||
pdfUrlList.push(url)
|
if(item!=null && item!=''){
|
||||||
|
let url=this.tanexPrinter.getPdfUrl(item,selTplName,selPrinterName);
|
||||||
|
pdfUrlList.push(url)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
let pdfUtils=new PdfUtils({});
|
let pdfUtils=new PdfUtils({});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user