|
|
|
@ -154,10 +154,10 @@ |
|
|
|
this.purchase = JSON.parse(options.purchase) |
|
|
|
this.goodsList = JSON.parse(options.purchaseDetails) |
|
|
|
|
|
|
|
console.log("新增入库打印"); |
|
|
|
console.log(this.goodsList); |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
console.log("普通批量打印"); |
|
|
|
|
|
|
|
this.type = uni.getStorageSync('type') |
|
|
|
this.getGategoryList() |
|
|
|
} |
|
|
|
@ -258,7 +258,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.carList) |
|
|
|
|
|
|
|
}, |
|
|
|
//选中商品 |
|
|
|
checkboxChange(item) { |
|
|
|
@ -279,7 +279,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.carList) |
|
|
|
|
|
|
|
}, |
|
|
|
//点击批量打印按钮 |
|
|
|
clickPrint() { |
|
|
|
@ -319,7 +319,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.multipleList); |
|
|
|
|
|
|
|
}, |
|
|
|
//点击打印按钮 |
|
|
|
goPrint(){ |
|
|
|
@ -330,19 +330,19 @@ |
|
|
|
let strCmd = blesdk.CreatCPCLPage(440, 320, 1, 0); |
|
|
|
strCmd += blesdk.addCPCLText('0', '30', '24', '0', 0, '商品名:'+item.productName) |
|
|
|
if(this.multipleList.indexOf('货号') != -1){ |
|
|
|
console.log(this.multipleList.indexOf('货号')) |
|
|
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', '80', '24', '0', 0, '货 号:'+item.productSn) |
|
|
|
} |
|
|
|
if(this.multipleList.indexOf('供应商') != -1){ |
|
|
|
console.log(this.multipleList.indexOf('供应商')) |
|
|
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', '130', '24', '0', 0, '供应商:'+(this.purchase !=''?this.purchase.supplierName:item.supplierName)) |
|
|
|
} |
|
|
|
if(this.multipleList.indexOf('批发价') != -1){ |
|
|
|
console.log(this.multipleList.indexOf('批发价')) |
|
|
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', '180', '24', '0', 0, '批发价:'+item.wholesalePrice) |
|
|
|
} |
|
|
|
if(this.multipleList.indexOf('零售价') != -1){ |
|
|
|
console.log(this.multipleList.indexOf('零售价')) |
|
|
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', '230', '24', '0', 0, '零售价:'+(item.lsprice || item.price)) |
|
|
|
} |
|
|
|
strCmd += blesdk.addCPCLQRCode(200, 140, 'H', '1', 6, [this.purchase!=''?item.productId:item.id,this.shopId]) //二维码 |
|
|
|
|