|
@@ -109,14 +109,15 @@ function getCompanyLists() {
|
|
|
|
|
|
// 添加次数
|
|
|
function addPrint() {
|
|
|
-
|
|
|
- let ids = detailData.map(item => {
|
|
|
-
|
|
|
+ let ids =[]
|
|
|
+ detailData.map(item => {
|
|
|
+ console.log(detailData,'3223');
|
|
|
if (item.invoicePickBeans && item.invoicePickBeans.length) {
|
|
|
for (let index = 0; index < item.invoicePickBeans.length; index++) {
|
|
|
const element = item.invoicePickBeans[index];
|
|
|
- // console.log(element.id ,'element.id ');
|
|
|
- return element.id
|
|
|
+ console.log(element.id ,'element.id ');
|
|
|
+ // return element.id
|
|
|
+ ids.push(element.id )
|
|
|
}
|
|
|
} else {
|
|
|
// console.log(item.invoiceOrderId ,'item.invoiceOrderId ');
|
|
@@ -124,7 +125,7 @@ function addPrint() {
|
|
|
}
|
|
|
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
// console.log(document.execCommand('print'),'4545');
|
|
|
addPrints({ ids: ids.join(',') }).then(res => {
|
|
|
console.log('chenggong ');
|