|
@@ -196,7 +196,7 @@
|
|
},
|
|
},
|
|
//打印票据数据
|
|
//打印票据数据
|
|
receiptTest() {
|
|
receiptTest() {
|
|
- console.log(this.gridList)
|
|
|
|
|
|
+ console.log(this.gridList,this.gridList.weighingManagement)
|
|
var that = this;
|
|
var that = this;
|
|
var canvasWidth = that.canvasWidth
|
|
var canvasWidth = that.canvasWidth
|
|
var canvasHeight = that.canvasHeight
|
|
var canvasHeight = that.canvasHeight
|
|
@@ -242,17 +242,17 @@
|
|
//客户姓名
|
|
//客户姓名
|
|
command.setSelectJustification(0); //居左
|
|
command.setSelectJustification(0); //居左
|
|
command.setLeftMargin(30)
|
|
command.setLeftMargin(30)
|
|
- command.setText("客户姓名:" + that.gridList.customerName);
|
|
|
|
|
|
+ command.setText("客户姓名:" + that.gridList.customerName?that.gridList.customerName:'');
|
|
command.setPrint();
|
|
command.setPrint();
|
|
//客户身份证
|
|
//客户身份证
|
|
command.setSelectJustification(0); //居左
|
|
command.setSelectJustification(0); //居左
|
|
command.setLeftMargin(30)
|
|
command.setLeftMargin(30)
|
|
- command.setText("客户身份证:" + that.gridList.weighingManagement.customerNumberCard);
|
|
|
|
|
|
+ command.setText("客户身份证:" + (that.gridList.weighingManagement&&that.gridList.weighingManagement.customerNumberCard?that.gridList.weighingManagement.customerNumberCard:''));
|
|
command.setPrint();
|
|
command.setPrint();
|
|
//客户电话
|
|
//客户电话
|
|
command.setSelectJustification(0); //居左
|
|
command.setSelectJustification(0); //居左
|
|
command.setLeftMargin(30)
|
|
command.setLeftMargin(30)
|
|
- command.setText("客户电话:" + that.gridList.weighingManagement.customerPhone);
|
|
|
|
|
|
+ command.setText("客户电话:" + (that.gridList.weighingManagement&&that.gridList.weighingManagement.customerPhone?that.gridList.weighingManagement.customerPhone:''));
|
|
command.setPrint();
|
|
command.setPrint();
|
|
//车牌号
|
|
//车牌号
|
|
command.setSelectJustification(0); //居左
|
|
command.setSelectJustification(0); //居左
|
|
@@ -295,7 +295,7 @@
|
|
//收货单位
|
|
//收货单位
|
|
command.setSelectJustification(0); //居左
|
|
command.setSelectJustification(0); //居左
|
|
command.setLeftMargin(30)
|
|
command.setLeftMargin(30)
|
|
- command.setText("收货仓库:" + that.gridList.weighingManagement.warehouseName);
|
|
|
|
|
|
+ command.setText("收货仓库:" + (that.gridList.warehouseName?that.gridList.warehouseName:that.gridList.weighingManagement.warehouseName));
|
|
command.setPrint();
|
|
command.setPrint();
|
|
//联系人
|
|
//联系人
|
|
// command.setSelectJustification(0); //居左
|
|
// command.setSelectJustification(0); //居左
|