|
@@ -66,7 +66,7 @@
|
|
onLoad() {
|
|
onLoad() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中',
|
|
title: '加载中',
|
|
- mask:true
|
|
|
|
|
|
+ mask: true
|
|
})
|
|
})
|
|
this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
|
|
this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
|
|
id: uni.getStorageSync('quality_print_id')
|
|
id: uni.getStorageSync('quality_print_id')
|
|
@@ -186,13 +186,18 @@
|
|
var command = esc.jpPrinter.createNew()
|
|
var command = esc.jpPrinter.createNew()
|
|
command.init()
|
|
command.init()
|
|
//编号
|
|
//编号
|
|
- command.bold(3); //加粗
|
|
|
|
- command.setFontSize(36); //字体大小
|
|
|
|
- command.setSelectJustification(1) //居中
|
|
|
|
- command.rowSpace(200);
|
|
|
|
// command.rowSpace(10);
|
|
// command.rowSpace(10);
|
|
|
|
+ if (that.gridList.qualityNo) {
|
|
|
|
+ command.bold(3); //加粗
|
|
|
|
+ command.setFontSize(36); //字体大小
|
|
|
|
+ command.setSelectJustification(1) //居中
|
|
|
|
+ command.rowSpace(200);
|
|
|
|
+ command.setText(that.gridList.qualityNo.substring(that.gridList.qualityNo.length - 3));
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast('编号错误!')
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
- command.setText(that.gridList.qualityNo.substring(that.gridList.qualityNo.length - 3));
|
|
|
|
command.setPrint();
|
|
command.setPrint();
|
|
command.rowSpace(60);
|
|
command.rowSpace(60);
|
|
command.bold(0); //取消加粗
|
|
command.bold(0); //取消加粗
|