md
This commit is contained in:
parent
b2ad1883f6
commit
f1bc7f4c44
@ -393,7 +393,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.pageCount=this.cacheFileList.length;
|
this.pageCount=this.cacheFileList.length;
|
||||||
const thisPage=this.cacheFileList[0];
|
const thisPage=this.cacheFileList[page-1];
|
||||||
|
|
||||||
const pdfBase64 = thisPage.pdfBase64;
|
const pdfBase64 = thisPage.pdfBase64;
|
||||||
|
|
||||||
|
|||||||
@ -335,6 +335,13 @@
|
|||||||
text: '正在生成预览...'
|
text: '正在生成预览...'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let orderSeqMap = new Map();
|
||||||
|
let newOrderList=printDataList.orderList.split(",");
|
||||||
|
for(let i=0; i<newOrderList.length; i++){
|
||||||
|
let billCodeItem=newOrderList[i];
|
||||||
|
orderSeqMap[billCodeItem]=i+1;
|
||||||
|
}
|
||||||
|
|
||||||
that.pdfList=[];
|
that.pdfList=[];
|
||||||
that.showCounter=0;
|
that.showCounter=0;
|
||||||
this.tanexPrinter.batchGetPDFAdv(printDataList,billCount,this.printManCode,async function(code,msg,data){
|
this.tanexPrinter.batchGetPDFAdv(printDataList,billCount,this.printManCode,async function(code,msg,data){
|
||||||
@ -349,7 +356,8 @@
|
|||||||
let pdfInfo={
|
let pdfInfo={
|
||||||
"billCode":pdfData.ydSn,
|
"billCode":pdfData.ydSn,
|
||||||
"pdfUrl":null,
|
"pdfUrl":null,
|
||||||
"pdfBase64":pdfData.file
|
"pdfBase64":pdfData.file,
|
||||||
|
"seqNo":orderSeqMap[pdfData.ydSn]
|
||||||
}
|
}
|
||||||
|
|
||||||
that.pdfList.push(pdfInfo);
|
that.pdfList.push(pdfInfo);
|
||||||
@ -437,6 +445,12 @@
|
|||||||
|
|
||||||
this.printOrderList=newOrderList;
|
this.printOrderList=newOrderList;
|
||||||
|
|
||||||
|
let orderSeqMap = new Map();
|
||||||
|
for(let i=0; i<newOrderList.length; i++){
|
||||||
|
let billCodeItem=newOrderList[i];
|
||||||
|
orderSeqMap[billCodeItem]=i+1;
|
||||||
|
}
|
||||||
|
|
||||||
that.pdfList=[];
|
that.pdfList=[];
|
||||||
that.showCounter=0;
|
that.showCounter=0;
|
||||||
this.tanexPrinter.batchGetPDF(this.selTplCode,this.selPrinterName,newOrderList,this.printManCode,async function(code,msg,data){
|
this.tanexPrinter.batchGetPDF(this.selTplCode,this.selPrinterName,newOrderList,this.printManCode,async function(code,msg,data){
|
||||||
@ -453,7 +467,8 @@
|
|||||||
let pdfInfo={
|
let pdfInfo={
|
||||||
"billCode":pdfData.ydSn,
|
"billCode":pdfData.ydSn,
|
||||||
"pdfUrl":null,
|
"pdfUrl":null,
|
||||||
"pdfBase64":pdfData.file
|
"pdfBase64":pdfData.file,
|
||||||
|
"seqNo":orderSeqMap[pdfData.ydSn]
|
||||||
}
|
}
|
||||||
|
|
||||||
that.pdfList.push(pdfInfo);
|
that.pdfList.push(pdfInfo);
|
||||||
@ -529,6 +544,13 @@
|
|||||||
const loadingInstance = this.$loading({
|
const loadingInstance = this.$loading({
|
||||||
text: '正在下载...'
|
text: '正在下载...'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let orderSeqMap = new Map();
|
||||||
|
for(let i=0; i<newOrderList.length; i++){
|
||||||
|
let billCodeItem=newOrderList[i];
|
||||||
|
orderSeqMap[billCodeItem]=i+1;
|
||||||
|
}
|
||||||
|
|
||||||
// 清空以前的数据
|
// 清空以前的数据
|
||||||
this.pdfList=[];
|
this.pdfList=[];
|
||||||
this.tanexPrinter.batchGetPDF(this.selTplCode,this.selPrinterName,newOrderList,this.printManCode,function(code,msg,data){
|
this.tanexPrinter.batchGetPDF(this.selTplCode,this.selPrinterName,newOrderList,this.printManCode,function(code,msg,data){
|
||||||
@ -544,7 +566,8 @@
|
|||||||
let pdfInfo={
|
let pdfInfo={
|
||||||
"billCode":pdfData.ydSn,
|
"billCode":pdfData.ydSn,
|
||||||
"pdfUrl":null,
|
"pdfUrl":null,
|
||||||
"pdfBase64":pdfData.file
|
"pdfBase64":pdfData.file,
|
||||||
|
"seqNo":orderSeqMap[pdfData.ydSn]
|
||||||
}
|
}
|
||||||
that.pdfList.push(pdfInfo);
|
that.pdfList.push(pdfInfo);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user