:{{printEquipmentAccountInfo.machineId}}
diff --git a/public/pages/property/printEquipmentAccountLabel/printEquipmentAccountLabel.js b/public/pages/property/printEquipmentAccountLabel/printEquipmentAccountLabel.js
index ca80113d8..958be576c 100644
--- a/public/pages/property/printEquipmentAccountLabel/printEquipmentAccountLabel.js
+++ b/public/pages/property/printEquipmentAccountLabel/printEquipmentAccountLabel.js
@@ -29,6 +29,7 @@
chargeUseName: "",
remark: '',
yqName: '',
+ url:''
},
printFlag:'0',
nowTime: ''
@@ -56,14 +57,14 @@
}
};
//发送get请求
- vc.http.apiGet('equipmentAccount.listEquipmentAccount',
+ vc.http.apiGet('/equipmentAccount.listEquipmentAccount',
param,
function (json, res) {
var _repairDetailInfo = JSON.parse(json);
vc.copyObject(_repairDetailInfo.data[0], $that.printEquipmentAccountInfo);
document.getElementById("qrcode").innerHTML = "";
let qrcode = new QRCode(document.getElementById("qrcode"), {
- text: $that.printEquipmentAccountInfo.machineId, //你想要填写的文本
+ text: $that.printEquipmentAccountInfo.url, //你想要填写的文本
width: 200, //生成的二维码的宽度
height: 200, //生成的二维码的高度
colorDark: "#000000", // 生成的二维码的深色部分
@@ -82,7 +83,6 @@
_printPurchaseApplyDiv: function () {
$that.printFlag = '1';
- console.log('console.log($that.printFlag);',$that.printFlag);
document.getElementById("print-btn").style.display="none";//隐藏
window.print();
diff --git a/public/pages/property/printEquipmentAccountLabels/printEquipmentAccountLabels.js b/public/pages/property/printEquipmentAccountLabels/printEquipmentAccountLabels.js
index 26c64d221..704bc7ac4 100644
--- a/public/pages/property/printEquipmentAccountLabels/printEquipmentAccountLabels.js
+++ b/public/pages/property/printEquipmentAccountLabels/printEquipmentAccountLabels.js
@@ -32,7 +32,7 @@
}
};
//发送get请求
- vc.http.apiGet('equipmentAccount.listEquipmentAccount',
+ vc.http.apiGet('/equipmentAccount.listEquipmentAccount',
param,
function (json, res) {
var _equipmentAccountManageInfo = JSON.parse(json);
@@ -49,7 +49,7 @@
_generatorQrCode:function(){
$that.equipmentInfo.equipmentAccounts.forEach(item => {
let qrcode = new QRCode('a'+item.machineId, {
- text: item.machineId, //你想要填写的文本
+ text: item.url, //你想要填写的文本
width: 200, //生成的二维码的宽度
height: 200, //生成的二维码的高度
colorDark: "#000000", // 生成的二维码的深色部分