|
@@ -357,9 +357,10 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="12" :sm="12" :lg="6" :span="6">
|
|
<el-col :xs="12" :sm="12" :lg="6" :span="6">
|
|
<el-form-item label="打印二维码:" prop="validateCode" label-width="140px" class="postInfo-container-item">
|
|
<el-form-item label="打印二维码:" prop="validateCode" label-width="140px" class="postInfo-container-item">
|
|
- <a @mouseenter="showQrCode(target.qrCode)">出入库二维码</a> <a @mouseenter="showQrCode(target.validateCode)" style="margin-left: 5px">验证二维码</a>
|
|
|
|
|
|
+ <a @mouseenter="showQR=true">出入库二维码</a> <a @mouseenter="showQR=false" style="margin-left: 5px">验证二维码</a>
|
|
<div class="qr-code-div">
|
|
<div class="qr-code-div">
|
|
- <img id="validateCode" class="qr-code" :src="qrCodeUrl" alt="未定价" @click="printQR()"/>
|
|
|
|
|
|
+ <img v-show="showQR" class="qr-code" :src="target.qrCode" alt="出入库二维码" @click="printQR(target.qrCode)"/>
|
|
|
|
+ <img v-show="!showQR" class="qr-code" :src="target.validateCode" alt="验证二维码" @click="printQR(target.validateCode)"/>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -945,9 +946,7 @@ export default {
|
|
if (newVal.id) {
|
|
if (newVal.id) {
|
|
this.getProductions();
|
|
this.getProductions();
|
|
}
|
|
}
|
|
- if (newVal.qrCode){
|
|
|
|
- this.qrCodeUrl = newVal.qrCode;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
deep: true
|
|
deep: true
|
|
},
|
|
},
|
|
@@ -1256,7 +1255,8 @@ export default {
|
|
houseShow:false,
|
|
houseShow:false,
|
|
immovalbeShow:false,
|
|
immovalbeShow:false,
|
|
landShow:false,
|
|
landShow:false,
|
|
- qrCodeUrl:null
|
|
|
|
|
|
+ qrCodeUrl:null,
|
|
|
|
+ showQR:true
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1475,17 +1475,14 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- printQR(){
|
|
|
|
- const path = this.qrCodeUrl;
|
|
|
|
|
|
+ printQR(path){
|
|
let routeUrl = this.$router.resolve({
|
|
let routeUrl = this.$router.resolve({
|
|
path: `/print/code?path=${path}`
|
|
path: `/print/code?path=${path}`
|
|
});
|
|
});
|
|
window.open(routeUrl.href, '_blank');
|
|
window.open(routeUrl.href, '_blank');
|
|
|
|
|
|
},
|
|
},
|
|
- showQrCode(url){
|
|
|
|
- this.qrCodeUrl = url;
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
handleAttachmentPreview(file) {
|
|
handleAttachmentPreview(file) {
|
|
// window.open(file.url)
|
|
// window.open(file.url)
|
|
this.officeFileView(file.name, file.url);
|
|
this.officeFileView(file.name, file.url);
|