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