mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
088b89df43
commit
bee4b118ec
@ -1,33 +1,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<!-- <div class="row">
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<span><span><vc:i18n name="报修单号" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.repairId}}</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<span><span><vc:i18n name="报修类型" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.repairTypeName}}</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<span><span><vc:i18n name="预约时间" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.appointmentTime}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<span><span><vc:i18n name="报修人" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.repairName}}</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<span><span><vc:i18n name="联系电话" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.tel}}</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<span><span><vc:i18n name="位置" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.repairObjName}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<span><span><vc:i18n name="预约内容" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.context}}</span>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<span><span><vc:i18n name="设备ID" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.machineId}}</span>
|
<span><span><vc:i18n name="设备ID" namespace="printEquipmentAccount"></vc:i18n></span>:{{printEquipmentAccountInfo.machineId}}</span>
|
||||||
|
|||||||
@ -29,6 +29,7 @@
|
|||||||
chargeUseName: "",
|
chargeUseName: "",
|
||||||
remark: '',
|
remark: '',
|
||||||
yqName: '',
|
yqName: '',
|
||||||
|
url:''
|
||||||
},
|
},
|
||||||
printFlag:'0',
|
printFlag:'0',
|
||||||
nowTime: ''
|
nowTime: ''
|
||||||
@ -56,14 +57,14 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.apiGet('equipmentAccount.listEquipmentAccount',
|
vc.http.apiGet('/equipmentAccount.listEquipmentAccount',
|
||||||
param,
|
param,
|
||||||
function (json, res) {
|
function (json, res) {
|
||||||
var _repairDetailInfo = JSON.parse(json);
|
var _repairDetailInfo = JSON.parse(json);
|
||||||
vc.copyObject(_repairDetailInfo.data[0], $that.printEquipmentAccountInfo);
|
vc.copyObject(_repairDetailInfo.data[0], $that.printEquipmentAccountInfo);
|
||||||
document.getElementById("qrcode").innerHTML = "";
|
document.getElementById("qrcode").innerHTML = "";
|
||||||
let qrcode = new QRCode(document.getElementById("qrcode"), {
|
let qrcode = new QRCode(document.getElementById("qrcode"), {
|
||||||
text: $that.printEquipmentAccountInfo.machineId, //你想要填写的文本
|
text: $that.printEquipmentAccountInfo.url, //你想要填写的文本
|
||||||
width: 200, //生成的二维码的宽度
|
width: 200, //生成的二维码的宽度
|
||||||
height: 200, //生成的二维码的高度
|
height: 200, //生成的二维码的高度
|
||||||
colorDark: "#000000", // 生成的二维码的深色部分
|
colorDark: "#000000", // 生成的二维码的深色部分
|
||||||
@ -82,7 +83,6 @@
|
|||||||
_printPurchaseApplyDiv: function () {
|
_printPurchaseApplyDiv: function () {
|
||||||
|
|
||||||
$that.printFlag = '1';
|
$that.printFlag = '1';
|
||||||
console.log('console.log($that.printFlag);',$that.printFlag);
|
|
||||||
document.getElementById("print-btn").style.display="none";//隐藏
|
document.getElementById("print-btn").style.display="none";//隐藏
|
||||||
|
|
||||||
window.print();
|
window.print();
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.apiGet('equipmentAccount.listEquipmentAccount',
|
vc.http.apiGet('/equipmentAccount.listEquipmentAccount',
|
||||||
param,
|
param,
|
||||||
function (json, res) {
|
function (json, res) {
|
||||||
var _equipmentAccountManageInfo = JSON.parse(json);
|
var _equipmentAccountManageInfo = JSON.parse(json);
|
||||||
@ -49,7 +49,7 @@
|
|||||||
_generatorQrCode:function(){
|
_generatorQrCode:function(){
|
||||||
$that.equipmentInfo.equipmentAccounts.forEach(item => {
|
$that.equipmentInfo.equipmentAccounts.forEach(item => {
|
||||||
let qrcode = new QRCode('a'+item.machineId, {
|
let qrcode = new QRCode('a'+item.machineId, {
|
||||||
text: item.machineId, //你想要填写的文本
|
text: item.url, //你想要填写的文本
|
||||||
width: 200, //生成的二维码的宽度
|
width: 200, //生成的二维码的宽度
|
||||||
height: 200, //生成的二维码的高度
|
height: 200, //生成的二维码的高度
|
||||||
colorDark: "#000000", // 生成的二维码的深色部分
|
colorDark: "#000000", // 生成的二维码的深色部分
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user