|
|
@@ -154,7 +154,8 @@ export default {
|
|
|
let data = []
|
|
|
if(ele.name && !that.$util.isEmpty(ele.name)){
|
|
|
let num = parseFloat(ele.num)
|
|
|
- let label = that.createLable(ele.name,ele.goodsSn,num)
|
|
|
+ let price = parseFloat(ele.salePrice)
|
|
|
+ let label = that.createLable(ele.name,ele.goodsSn,num,price)
|
|
|
data.push(label)
|
|
|
}
|
|
|
//说明地址 https://ext.dcloud.net.cn/plugin?id=462
|
|
|
@@ -240,7 +241,7 @@ export default {
|
|
|
|
|
|
return data;
|
|
|
},
|
|
|
- createLable(itemName,itemId,num){
|
|
|
+ createLable(itemName,itemId,num,price){
|
|
|
//制作条码格式,
|
|
|
var data=[]; //定义一个数组
|
|
|
var line={}; //每添加一个,代表一行字
|
|
|
@@ -263,6 +264,15 @@ export default {
|
|
|
line.yscal=2;
|
|
|
data.push(line); //每添加一个,代表一行字
|
|
|
|
|
|
+ line={};
|
|
|
+ line.text= price+'元';
|
|
|
+ line.rotation=0;
|
|
|
+ line.x=390;
|
|
|
+ line.y=180;
|
|
|
+ line.xscal=1;
|
|
|
+ line.yscal=1;
|
|
|
+ data.push(line); //每添加一个,代表一行字
|
|
|
+
|
|
|
//添加条型码
|
|
|
line={};
|
|
|
line.barcode=itemId;
|