Commit be83a1a9 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

Develop zhouyi

See merge request GFP/RBC/rbc-frontend!59
parents 4961407a 7e7a0f42
......@@ -32,10 +32,8 @@ export default {
showVchrAsync(obj,context){
GMS.$http.post('/mechanismVchr/showVchr',obj).then(res => {
        if (res.status === 200) {
if(res.data.data.showVoucher){//展示凭证
let resObj = res.data.data;
resObj.previewState = 'readonly';
GMS.vbus.$emit('previewVoucher',res.data.data);
if(res.data.data){//展示凭证
GMS.vbus.$emit('previewVoucherTY',res.data.data);
}else{
context.dom.$Modal.warning({
title: '信息提示',
......
......@@ -156,7 +156,22 @@ export default {
},
watch: {
},
created() {
this.getLoginAssetsInfo();
},
mounted() {
document.addEventListener('keyup', this.onKeyUp)
this.getVerificationCode();
},
beforeUnmount() {
document.removeEventListener('keyup', this.onKeyUp)
},
methods: {
onKeyUp(event) {
if (event.keyCode == 13) {
this.submit()
}
},
getImgUrl(imgCode) {
const time = Date.now()
return window.GMS.$http.get(`/homepage/downloadFile/${imgCode}`, {
......@@ -277,12 +292,6 @@ export default {
}
},
},
mounted() {
this.getVerificationCode();
},
created() {
this.getLoginAssetsInfo();
},
};
</script>
......
......@@ -32,6 +32,16 @@
"titleColumn": "title",
"valueColumn": "name"
}
},
{
"title": "凭证打开方式",
"key": "voucherShowType",
"type": "array",
"dataSource": {
"api": "/mechanismVchr/configOptions",
"titleColumn": "title",
"valueColumn": "name"
}
}
]
},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -148,11 +148,26 @@ export default {
this.jumpToVoucher(param.voucher.id,param.voucher.acctYear,param.previewState);
})
})
window.GMS.vbus.$on('previewVoucherTY', (param) => {
if (this.config.voucherShowType == 'modal') {
this.showVoucher = true;
this.$nextTick(() => {
let iframe0 = document.getElementById("iframe0");
if (iframe0) {
iframe0.src = param
}
})
}
else {
window.open(param, '_blank');
}
})
this.getCerSerName();
this.searchAllQueryAsync();
},
beforeDestroy() {
window.GMS.vbus.$off("previewVoucher");
window.GMS.vbus.$off("previewVoucherTY");
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment