Commit 81d76893 by 袁成

Merge branch 'develop' of ssh://nvwa.jiuqi.com.cn:2222/GFP/RBC/rbc-frontend into develop-yuancheng

parents 3efe1d6d a699f0b0
<template> <template>
<gms-query <gms-query
:templateName="config.name" :templateName="config.name"
v-if="config.name" v-if="config.name && visible"
:extrCondition="extrCondition" :extrCondition="extrCondition"
:tableHeight="tableHeight" :tableHeight="tableHeight"
></gms-query> ></gms-query>
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
return { return {
extrCondition: [], extrCondition: [],
tableHeight: height, tableHeight: height,
visible: true,
}; };
}, },
mounted() { mounted() {
...@@ -38,6 +39,20 @@ export default { ...@@ -38,6 +39,20 @@ export default {
if(GMS.$hideContainer.$route.query && GMS.$hideContainer.$route.query.param){ if(GMS.$hideContainer.$route.query && GMS.$hideContainer.$route.query.param){
this.extrCondition = GMS.$hideContainer.$route.query.param.fieldQueryRelation; this.extrCondition = GMS.$hideContainer.$route.query.param.fieldQueryRelation;
} }
this.$root.$on('updated', this.refresh)
},
beforeUnmount() {
this.$root.$off('updated', this.refresh)
},
methods: {
refresh(visible) {
if (visible == 'show') {
this.visible = false
this.$nextTick(() => {
this.visible = true
})
}
},
}, },
}; };
</script> </script>
...@@ -56,7 +56,6 @@ export default { ...@@ -56,7 +56,6 @@ export default {
this.init = false; this.init = false;
this.$nextTick(() => { this.$nextTick(() => {
this.init = true; this.init = true;
// this.type = 'load'
}); });
}); });
GMS.vbus.$on("workflow-state-change", (val) => { GMS.vbus.$on("workflow-state-change", (val) => {
...@@ -79,7 +78,7 @@ export default { ...@@ -79,7 +78,7 @@ export default {
return return
} }
const tem = this.curBill && this.curBill.getBuillData() || {} const tem = this.curBill && this.curBill.getBuillData() || {}
if (compareData(GMS.oldBillDataMap[this.curTagId], tem)) cb(true) if (compareData(GMS.oldBillDataMap[this.curTagId], tem) || this.state == 'readOnly') cb(true)
else { else {
this.$Modal.confirm({ this.$Modal.confirm({
title: "信息提示", title: "信息提示",
...@@ -96,9 +95,13 @@ export default { ...@@ -96,9 +95,13 @@ export default {
loadFinishFun(bill) { loadFinishFun(bill) {
this.curBill = bill; this.curBill = bill;
const billState = bill.getMasterData().getValue('billState') const billState = bill.getMasterData().getValue('billState')
if ([90,92].includes(billState)) { if (this.state != 'readOnly' && [90,92].includes(billState)) {
this.state = 'readOnly' this.state = 'readOnly' ;
} this.init = false;
this.$nextTick(() => {
this.init = true;
});
}
setTimeout(() => { setTimeout(() => {
GMS.oldBillData = bill.getBuillData(); GMS.oldBillData = bill.getBuillData();
if (!GMS.oldBillDataMap) GMS.oldBillDataMap = {} if (!GMS.oldBillDataMap) GMS.oldBillDataMap = {}
......
{ {
"name": "welcome-page", "name": "welcome-page",
"title": "大屏配置", "title": "云报销配置",
"author": "admin", "author": "admin",
"keywords": "invoice", "keywords": "invoice",
"company": "久其软件", "company": "久其软件",
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
"title": "登录页配置", "title": "登录页配置",
"icon": "", "icon": "",
"component": "LoginPage" "component": "LoginPage"
},
{
"title": "系统版本",
"icon": "",
"component": "About"
} }
], ],
"data": { "data": {
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import Vue from 'vue' import Vue from 'vue'
import WelcomePage from './src/views/welcome-page' import WelcomePage from './src/views/welcome-page'
import LoginPage from './src/views/login-page' import LoginPage from './src/views/login-page'
import About from './src/views/about'
// 在此处引入vuex和router,将下面导出对象改为{app: App, store: store, router: router} // 在此处引入vuex和router,将下面导出对象改为{app: App, store: store, router: router}
...@@ -15,6 +16,9 @@ export default { ...@@ -15,6 +16,9 @@ export default {
}, },
LoginPage: { LoginPage: {
app: LoginPage, app: LoginPage,
} },
About: {
app: About,
},
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"build-dev": "vue-cli-service build --mode development", "build-dev": "vue-cli-service build --mode development",
"build-dev-watch": "vue-cli-service build --mode development --watch",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
......
<template>
<div>{{version}}</div>
</template>
<script>
export default {
data() {
return {
version: '',
}
},
mounted() {
const appStoreServer = window.nros.createNewInstance({
baseURL: `${window.location.origin}/`,
})
let times = new Date().getTime()
appStoreServer.get(`${window.NROS_PREFIX || '/'}version.json?times=`+times).then((res) => {
console.log(res)
this.version = res && res.data && res.data.rbcVersion
})
}
}
</script>
<style>
</style>
\ No newline at end of file
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