Commit 3085db2e by 潘际乾

Ditopn、Ditame公共模块提取

parent dca01458
......@@ -3804,6 +3804,11 @@
"integrity": "sha1-9OaGxd4eofhn28rT1G2WlCjfmMQ=",
"dev": true
},
"js-cookie": {
"version": "3.0.1",
"resolved": "https://registry.nlark.com/js-cookie/download/js-cookie-3.0.1.tgz",
"integrity": "sha1-njm0xsL1ZWNwjX0x9vXyGHOpJBQ="
},
"js-tokens": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
......@@ -7250,6 +7255,11 @@
"integrity": "sha1-UylVzB6yCKPZkLOp+acFdGV+CPI=",
"dev": true
},
"vue-i18n": {
"version": "8.26.7",
"resolved": "https://registry.npmmirror.com/vue-i18n/download/vue-i18n-8.26.7.tgz",
"integrity": "sha1-rf1INzRJ/jFDjEjjs71DBE3DpoE="
},
"vue-loader": {
"version": "13.7.3",
"resolved": "https://registry.nlark.com/vue-loader/download/vue-loader-13.7.3.tgz",
......
......@@ -15,8 +15,10 @@
"echarts": "^5.2.2",
"element-ui": "^2.13.2",
"es6-promise": "^4.2.8",
"js-cookie": "^3.0.1",
"lodash": "^4.17.21",
"vue": "^2.6.11",
"vue-i18n": "^8.26.7",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
......
import Vue from "vue";
import VueI18n from "vue-i18n";
import Cookies from "js-cookie";
import elementEnLocale from "element-ui/lib/locale/lang/en"; // element-ui lang
import elementZhLocale from "element-ui/lib/locale/lang/zh-CN"; // element-ui lang
import enLocale from "./local/en/";
import zhLocale from "./local/zh/";
/**
* 详细文档
* https://kazupon.github.io/vue-i18n/zh/guide/formatting.html#%E5%85%B7%E5%90%8D%E6%A0%BC%E5%BC%8F
*/
Vue.use(VueI18n);
const messages = {
en: {
...enLocale,
...elementEnLocale,
},
zh: {
...zhLocale,
...elementZhLocale,
},
};
export function getLanguage() {
const chooseLanguage = Cookies.get("language");
if (chooseLanguage) return chooseLanguage;
// if has not choose language
const language = (
navigator.language || navigator.browserLanguage
).toLowerCase();
const locales = Object.keys(messages);
for (const locale of locales) {
if (language.indexOf(locale) > -1) {
return locale;
}
}
return "en";
}
const i18n = new VueI18n({
// set locale
// options: en | zh | es
locale: getLanguage(),
// set locale messages
messages,
});
export default i18n;
export default {
tagsView: {
refresh: "Refresh",
close: "Close",
closeOthers: "Close Others",
closeAll: "Close All",
},
};
/**
* 码表值
*/
export default {
}
\ No newline at end of file
/**
* 页面中的公共部分(顶部、左侧菜单栏、页签等)
*/
export default {
tagsView: {
refresh: "刷新",
close: "关闭",
closeOthers: "关闭其它",
closeAll: "关闭所有",
},
login: {
},
sideMenu: {
},
home: {
}
};
import codeTable from "./codeTable";
import common from "./common";
import tx from "./tx";
export default {
...common,
codeTable,
tx,
};
const modulesFiles = require.context('./', true, /\.js$/)
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
const value = modulesFiles(modulePath)
modules[moduleName] = value.default
return modules
}, {})
/**
* 交易模块
*/
export default {
...modules
}
\ No newline at end of file
export default {
}
\ No newline at end of file
/**
* 交易中的公共模块
*/
export default {
}
\ No newline at end of file
import Vue from 'vue'
import Vue from "vue";
import ElementUI from "element-ui";
import ElementUI from 'element-ui'
import "element-ui/lib/theme-chalk/index.css";
import "es6-promise/auto";
import 'element-ui/lib/theme-chalk/index.css'
import 'es6-promise/auto'
import App from "./App.vue";
import RootRouter from "./routers";
import store from "./store";
import App from './App.vue'
import RootRouter from './routers'
import store from "./store"
import "~/assets/css/common.css";
import '~/assets/css/common.css'
import i18n from "./lang";
import CustomComponent from "./components";
import VueFunc from "./utils/vuefunc";
import "./permission";
import CustomComponent from "./components"
import VueFunc from "./utils/vuefunc"
window.SUCCESS = "AAAAAA";
window.SUCCESS="AAAAAA"
Vue.use(ElementUI, { size: 'small' })
Vue.use(CustomComponent)
Vue.use(VueFunc)
Vue.use(ElementUI, { size: "small", i18n: (key, value) => i18n.t(key, value) });
Vue.use(CustomComponent);
Vue.use(VueFunc);
new Vue({
el: '#app',
el: "#app",
store,
router:RootRouter,
render: h => h(App)
})
i18n,
router: RootRouter,
render: (h) => h(App),
});
......@@ -157,6 +157,7 @@ export default class Ditame{
seainf:"", // .trnmod.trndoc.rcvatt.seainf
},
filrecv:"", // File Receiver .trnmod.trndoc.filrecv
doceot:[],
},
},
olddidgrp:{
......@@ -290,6 +291,12 @@ export default class Ditame{
setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
},
setfog:{
setfol:[]
},
setfeg:{
setfel:[]
},
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
},
......
import router from "./routers";
import store from "./store";
import { Message } from "element-ui";
/**
* 可在这里做鉴权
*/
router.beforeEach(async (to, from, next) => {
// 限制页签的数量
if (to.path.startsWith("/business")) {
if (store.state.TagsView.visitedViews.length >= store.state.TagsView.visitedViewsMaxVal) {
Message.warning(
`页签数超过最大限制(${store.state.TagsView.visitedViewsMaxVal}),请先关闭其他页签!`
);
return;
}
}
next();
});
router.afterEach(() => {});
import Cookies from "js-cookie";
import { getLanguage } from "~/lang/index";
const I18N = {
namespaced: true,
state:{
lang:"cn"
},
mutations:{
setLang(state,lang){
state.lang = lang
}
}
}
export default I18N
\ No newline at end of file
state: {
lang: getLanguage(),
},
mutations: {
SET_LANG(state, lang) {
state.lang = lang;
Cookies.set("language", lang);
},
},
actions: {
setLang({ commit }, lang) {
commit("SET_LANG", lang);
},
},
};
export default I18N;
const state = {
visitedViewsMaxVal: 10,
visitedViews: [],
cachedViews: []
}
......
<template>
<c-row>
<c-col :span="24">
<c-col :span="12">
<el-form-item
style="height=200px;"
label="General"
prop="mtabut.coninf.oitinf.oit.inftxt"
>
<c-input
type="textarea"
v-model="model.mtabut.coninf.oitinf.oit.inftxt"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitinf.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitinf.oit.inflev"
style="width: 50%"
disabled
placeholder="请选择Infotext Level"
>
<el-option
v-for="item in codes.inflev"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item
label="Settlement"
prop="mtabut.coninf.oitset.oit.inftxt"
>
<c-input
type="textarea"
v-model="model.mtabut.coninf.oitset.oit.inftxt"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitset.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitset.oit.inflev"
style="width: 50%"
disabled
placeholder="请选择Infotext Level"
>
<el-option
v-for="item in codes.inflev"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<el-date-picker
type="date"
v-model="model.mtabut.coninf.conexedat"
style="width: 40%"
placeholder="请选择执行日期"
></el-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="Send for Release to"
prop="mtabut.coninf.usr.extkey"
>
<c-input
v-model="model.mtabut.coninf.usr.extkey"
maxlength="8"
style="width: 40%"
disabled="disabled"
placeholder="请输入User ID"
></c-input>
</el-form-item>
</c-col>
</c-row>
</template>
<script>
import CommonProcess from "~/mixin/CommonProcess";
import Event from "~/model/Ditopn/Event";
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="24" style="margin-bottom:18px">
Liability
</c-col>
<c-col :span="22" :offset="1">
<c-table :list="model.liaall.liaallg" style="width:80%,text-align:center,margin-bottom:18px" :border="true">
<el-table-column prop="cbtpfx" label="Type" width="auto"> </el-table-column>
<el-table-column prop="matdat" label="Maturity" width="auto"> </el-table-column>
<el-table-column prop="tenday" label="Tenor" width="auto"> </el-table-column>
<el-table-column prop="rol" label="Dbt." width="auto"> </el-table-column>
<el-table-column prop="nam" label="Name" width="auto"> </el-table-column>
<el-table-column prop="cdtrol" label="Cdt." width="auto"> </el-table-column>
<el-table-column prop="cur" label="Cur" width="auto"> </el-table-column>
<el-table-column prop="oldamt" label="Old Amount" width="auto">
<template slot-scope="scope">
{{moneyFormat(scope.row.oldamt)}}
</template>
</el-table-column>
<el-table-column prop="amt" label="Booking Amo" width="auto">
<template slot-scope="scope">
{{moneyFormat(scope.row.amt)}}
</template>
</el-table-column>
<el-table-column prop="tenpct" label="%" width="auto"> </el-table-column>
<el-table-column prop="acc" label="Account" width="auto"> </el-table-column>
<el-table-column prop="valdat" label="Value Date" width="auto">
<template slot-scope="scope">
{{dateFormat(scope.row.valdat)}}
</template>
</el-table-column>
</c-table>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Sight Amount">
<c-input style="width:50%" v-model="model.liaall.outamt" placeholder="请输入Sight Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Sight Amount Percentage">
<c-input style="width:50%" v-model="model.liaall.outpct" placeholder="请输入Sight Amount Percentage"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Booking Amount">
<c-input style="width:70%" v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
</el-form-item>
</c-col> -->
<c-col :span="12">
<el-form-item label="Amount not yet assigned">
<c-input style="width:20%" disabled v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
<c-input style="width:50%" disabled v-model="model.liaall.misamt" placeholder="请输入Amount not yet assigned"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="">
<c-button size="small" disabled type="primary" @click="onLiaallButmisamt">
Add to Current Line
</c-button>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="">
<c-button size="small" type="primary" @click="onLiaallButmissig">
Add to Sight Amount
</c-button>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Old Amount booked externally">
<c-input style="width:50%" v-model="model.liaall.exttotoldamt" placeholder="请输入Old Amount booked externally"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Total booking amount external assinged">
<c-input style="width:50%" v-model="model.liaall.exttotamt" placeholder="请输入Total booking amount external assinged"></c-input>
</el-form-item>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"
export default {
inject: ['root'],
mixins: [CommonProcess],
props:["model","codes"],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
......@@ -711,16 +711,16 @@ export default {
mixins: [CommonProcess],
data() {
return {
declareParams: {
fileName: "ditopn.json",
basePath: "{{basePath}}",
method: "post",
scheme: "{{schemes}}",
host: "{{host}}",
consume: "0",
produce: "0",
uri: "/ditopn/getElcsRef",
},
// declareParams: {
// fileName: "ditopn.json",
// basePath: "{{basePath}}",
// method: "post",
// scheme: "{{schemes}}",
// host: "{{host}}",
// consume: "0",
// produce: "0",
// uri: "/ditopn/getElcsRef",
// },
jigomcFlag:false,
trade: ""
};
......
......@@ -129,14 +129,15 @@ import Dogpame from "./Dogpame";
import Dorpame from "./Dorpame";
import Adcpame from "./Adcpame";
import Inspame from "./Inspame";
import Engp from "./Engp";
import Ccvpan from "./Ccvpan";
import Setpan from "./Setpan";
import Addbcb from "./Addbcb";
import Coninfp from "./Coninfp";
import Docpan from "./Docpan";
import Doctre from "./Doctre";
import Limitbody from "./Limitbody";
import Setpan from "~/views/Public/Setpan";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
export default {
name: 'Ditame',
......
<template>
<c-row>
<c-col :span="24">
<c-col :span="12">
<el-form-item
style="height=200px;"
label="General"
prop="mtabut.coninf.oitinf.oit.inftxt"
>
<c-input
type="textarea"
v-model="model.mtabut.coninf.oitinf.oit.inftxt"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="6">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitinf.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitinf.oit.inflev"
style="width: 100%"
disabled
placeholder="请选择Infotext Level"
>
<el-option
v-for="item in codes.inflev"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item
label="Settlement"
prop="mtabut.coninf.oitset.oit.inftxt"
>
<c-input
type="textarea"
v-model="model.mtabut.coninf.oitset.oit.inftxt"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="6">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitset.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitset.oit.inflev"
style="width: 100%"
disabled
placeholder="请选择Infotext Level"
>
<el-option
v-for="item in codes.inflev"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="6">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<el-date-picker
type="date"
v-model="model.mtabut.coninf.conexedat"
style="width: 100%"
placeholder="请选择执行日期"
></el-date-picker>
</el-form-item>
</c-col>
<c-col :span="6" style="text-align:right">
<el-form-item
label="Send for Release to"
prop="mtabut.coninf.usr.extkey"
label-width="140px"
>
<c-input
v-model="model.mtabut.coninf.usr.extkey"
maxlength="8"
style="width: 100%"
disabled="disabled"
placeholder="请输入User ID"
></c-input>
</el-form-item>
</c-col>
</c-row>
</template>
<script>
import CommonProcess from "~/mixin/CommonProcess";
import Event from "~/model/Ditopn/Event";
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- <c-col :span="24" style="margin-bottom:18px">
Liability
</c-col> -->
<c-col :span="23" style="margin-left:9px">
<c-table :list="model.liaall.liaallg" style="width:80%,text-align:center,margin-bottom:18px" :border="true">
<el-table-column prop="bussec" label="BS" width="40px"> </el-table-column>
<el-table-column prop="cbtpfx" label="Type" width="60px"> </el-table-column>
<el-table-column prop="matdat" label="Maturity" width="100px"> </el-table-column>
<el-table-column prop="tenday" label="Tenor" width="70px"> </el-table-column>
<el-table-column prop="rol" label="Dbt." width="70px"> </el-table-column>
<el-table-column prop="nam" label="Name" width="170px"> </el-table-column>
<el-table-column prop="cdtrol" label="Cdt." width="70px"> </el-table-column>
<el-table-column prop="cur" label="Cur" width="55px"> </el-table-column>
<el-table-column prop="oldamt" label="Old Amount" width="150px">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.oldamt)}}
</template> -->
</el-table-column>
<el-table-column prop="amt" label="Booking Amo" width="100px">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.amt)}}
</template> -->
</el-table-column>
<el-table-column prop="tenpct" label="%" width="80px">
</el-table-column>
<el-table-column prop="acc" label="Account" width="150px"> </el-table-column>
<el-table-column prop="valdat" label="Value Date" width="120px">
<!-- <template slot-scope="scope">
{{dateFormat(scope.row.valdat)}}
</template> -->
</el-table-column>
<el-table-column label="" prop="det" width="80px">
<template slot-scope="scope" slot="header">
<el-button
circle
style="padding:4px"
class="el-icon-plus"
size="mini"
@click="addRow(scope)"
>
</el-button>
<el-button
style="padding:4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRow(scope)"
>
</el-button>
</template>
<template slot-scope="scoped">
<el-button
style="margin-left:0"
size="small"
type="primary"
@click="detail1(scoped.$index, scoped.row)"
>详情</el-button
>
</template>
</el-table-column>
</c-table>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Sight Amount">
<c-input style="width:50%" v-model="model.liaall.outamt" placeholder="请输入Sight Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Sight Amount Percentage">
<c-input style="width:50%" v-model="model.liaall.outpct" placeholder="请输入Sight Amount Percentage"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Booking Amount">
<c-input style="width:70%" v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
</el-form-item>
</c-col> -->
<c-col :span="16" style="margin-top:10px">
<el-form-item label="Amount not yet assigned">
<c-input style="width:15%" disabled v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
<c-input style="width:40%" disabled v-model="model.liaall.misamt" placeholder="请输入Amount not yet assigned"></c-input>
<c-button style="width:20%" size="small" disabled type="primary" @click="onLiaallButmisamt">
Add to Current Line
</c-button>
</el-form-item>
</c-col>
<!-- <c-col :span="1" style="text-align:left;margin-left:0">
<el-form-item label="">
<c-button size="small" disabled type="primary" @click="onLiaallButmisamt">
Add to Current Line
</c-button>
</el-form-item>
</c-col> -->
<!-- <c-col :span="12">
<el-form-item label="">
<c-button size="small" type="primary" @click="onLiaallButmissig">
Add to Sight Amount
</c-button>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Old Amount booked externally">
<c-input style="width:50%" v-model="model.liaall.exttotoldamt" placeholder="请输入Old Amount booked externally"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Total booking amount external assinged">
<c-input style="width:50%" v-model="model.liaall.exttotamt" placeholder="请输入Total booking amount external assinged"></c-input>
</el-form-item>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"
export default {
inject: ['root'],
mixins: [CommonProcess],
props:["model","codes"],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
......@@ -145,15 +145,15 @@ import Mt799 from "./Mt799";
import Litbenl1 from "./Litbenl1";
import Litapll1 from "./Litapll1";
import Litrmbl1 from "./Litrmbl1";
import Engp from "./Engp";
import Addbcb from "./Addbcb";
import Limitbody from "./Limitbody";
import Coninfp from "./Coninfp";
import Ccvpan from "~/views/Public/Ccvpan";
import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
export default {
name: 'Ditopn',
......
......@@ -56,7 +56,7 @@ export default {
"盛世饮料",
"中国华润总公司",
"东风汽车公司",
"恒大集团",
"万科集团",
"万康食品",
],
},
......
<template>
<div class="self-header">
<div style="display: inline-block;margin: 5px 15px 5px 0;height: 50px;">
<img src="../../assets/logo.png" alt="" style="height: 100%;"/>
<img src="../../assets/logo.png" alt="" style="height: 100%;" />
</div>
<div class="self_header_label">
<h2>新一代银行国际结算系统</h2>
......@@ -68,14 +68,20 @@
placement="bottom"
width="80"
trigger="hover"
v-model="langSelectVisible"
>
<ul class="header-tool-item-list">
<li @click="handleLangCn">中文</li>
<li @click="handleLangEn">English</li>
<li
v-for="(item, idx) in languageOptions"
:key="idx"
@click="handleLang(item.lang)"
>
{{ item.fullName }}
</li>
</ul>
<div class="header-tool-item header-tool-item-text" slot="reference">
<i class="el-icon-setting" style="font-size:14px;"></i>
{{ lang == "cn" ? "中文" : "En" }}
{{ displayLangName }}
<i class="el-icon-arrow-down" style="font-size:12px;"></i>
</div>
</el-popover>
......@@ -85,9 +91,18 @@
<el-col :span="24">
<c-page title="公告">
<c-table :data="noticeboardData">
<el-table-column label="公告内容" prop="noticeContent"></el-table-column>
<el-table-column label="发布人" prop="publisher"></el-table-column>
<el-table-column label="发布日期" prop="publishDate"></el-table-column>
<el-table-column
label="公告内容"
prop="noticeContent"
></el-table-column>
<el-table-column
label="发布人"
prop="publisher"
></el-table-column>
<el-table-column
label="发布日期"
prop="publishDate"
></el-table-column>
</c-table>
</c-page>
</el-col>
......@@ -95,7 +110,9 @@
</div>
<div class="header-tool-item" slot="reference">
<i class="el-icon-bell"></i>
<span class="header-tool-item-text" style="padding-left:7px;">通知</span>
<span class="header-tool-item-text" style="padding-left:7px;"
>通知</span
>
</div>
</el-popover>
<span class="header-tool-item-text">会计日期: {{ accDate }}</span>
......@@ -104,12 +121,11 @@
</template>
<script>
import cPage from '../../components/c-page.vue';
import cPage from "../../components/c-page.vue";
export default {
components: { cPage },
data() {
return {
lang: this.$store.state.I18n.lang,
txName: "",
user: {
userName: this.$store.state.UserContext.userName || "Admin",
......@@ -125,7 +141,12 @@ export default {
loading: false,
count: "",
accDate: window.sessionStorage.accDate || "",
noticeboardData: []
noticeboardData: [],
langSelectVisible: false,
languageOptions: [
{ lang: "zh", shortName: "中文", fullName: "中文" },
{ lang: "en", shortName: "En", fullName: "English" },
],
};
},
computed: {
......@@ -135,19 +156,28 @@ export default {
// return subStrList[length - 1];
return "北京分行";
},
lang() {
return this.$store.state.I18n.lang;
},
displayLangName() {
for (let i = 0; i < this.languageOptions.length; i++) {
const op = this.languageOptions[i];
if (this.lang === op.lang) {
return op.shortName;
}
}
return "";
},
},
methods: {
logout() {
this.$store.commit("UserContext/setLogout");
this.$router.push("/login");
},
handleLangCn() {
this.$store.commit("I18n/setLang", "cn");
this.lang = "cn";
},
handleLangEn() {
this.$store.commit("I18n/setLang", "en");
this.lang = "en";
handleLang(lang) {
this.$i18n.locale = lang;
this.$store.dispatch("I18n/setLang", lang);
this.langSelectVisible = false;
},
showLogoutDialog(flg) {
this.$refs.logoutform.show(flg);
......
......@@ -30,12 +30,12 @@
:style="{ left: left + 'px', top: top + 'px' }"
class="contextmenu"
>
<li @click="refreshSelectedTag(selectedTag)">刷新</li>
<li @click="refreshSelectedTag(selectedTag)">{{ $t('tagsView.refresh') }}</li>
<li v-if="!isAffix(selectedTag)" @click="closeSelectedTag(selectedTag)">
关闭
{{ $t('tagsView.close') }}
</li>
<li @click="closeOthersTags">关闭其他</li>
<li @click="closeAllTags(selectedTag)">关闭所有</li>
<li @click="closeOthersTags">{{ $t('tagsView.closeOthers') }}</li>
<li @click="closeAllTags(selectedTag)">{{ $t('tagsView.closeAll') }}</li>
</ul>
</div>
</template>
......
......@@ -50,7 +50,7 @@ const { setLoginInfo } = mapMutations(["setLoginInfo"])
this.$refs[formName].validate((valid) => {
if (valid) {
this.setLoginInfo({userId:this.loginForm.username})
this.$router.push("/business/office");
this.$router.push("/home");
} else {
console.log('error submit!!');
return false;
......
<template>
<c-row>
<c-col :span="24">
<c-col :span="15">
<c-col :span="12">
<el-form-item
style="height=200px;"
label="General"
......@@ -9,81 +9,101 @@
>
<c-input
type="textarea"
:rows="6"
@change="valueChange($event, 'mtabut.coninf.oitinf.oit.inflev')"
v-model="model.mtabut.coninf.oitinf.oit.inftxt"
maxlength="60"
resize="none"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
<c-col :span="7" :offset="1">
</c-col>
<c-col :span="24">
<c-col :span="6">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitinf.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitinf.oit.inflev"
:disabled="model.mtabut.coninf.oitinf.oit.inftxt ? false : true"
style="width: 100%"
disabled
placeholder="请选择Infotext Level"
:code="inflev"
>
<el-option
v-for="item in codes.inflev"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="15">
<el-form-item label="Settlement" prop="mtabut.coninf.oitset.oit.inftxt">
<c-col :span="12">
<el-form-item
label="Settlement"
prop="mtabut.coninf.oitset.oit.inftxt"
>
<c-input
type="textarea"
:rows="6"
@change="valueChange($event, 'mtabut.coninf.oitset.oit.inflev')"
v-model="model.mtabut.coninf.oitset.oit.inftxt"
maxlength="60"
resize="none"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
<c-col :span="7" :offset="1">
</c-col>
<c-col :span="24">
<c-col :span="6">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitset.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitset.oit.inflev"
:disabled="model.mtabut.coninf.oitset.oit.inftxt ? false : true"
style="width: 100%"
disabled
placeholder="请选择Infotext Level"
:code="inflev"
>
<el-option
v-for="item in codes.inflev"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="11">
<c-col :span="6">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<el-date-picker
type="date"
v-model="model.mtabut.coninf.conexedat"
style="width: 50%"
style="width: 100%"
placeholder="请选择执行日期"
></el-date-picker>
</el-form-item>
</c-col>
<c-col :span="7" :offset="5">
<el-form-item label="Send for Release to" prop="mtabut.coninf.usr.extkey">
<c-col :span="6" style="text-align:right">
<el-form-item
label="Send for Release to"
prop="mtabut.coninf.usr.extkey"
label-width="140px"
>
<c-input
v-model="model.mtabut.coninf.usr.extkey"
maxlength="8"
style="width: 100%"
disabled="disabled"
placeholder="请输入User ID"
></c-input>
......@@ -93,29 +113,16 @@
</template>
<script>
import CommonProcess from "~/mixin/CommonProcess";
import _ from "~/utils/Lodash.js";
// zxk 附言页签
import Event from "~/model/Ditopn/Event";
export default {
inject: ["root"],
inject: ['root'],
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {
inflev: [
{ label: "Show", value: "$" },
{ label: "Do not show", value: "!" },
{ label: "Warn", value: "0" },
], //码表
};
},
methods: {
valueChange(event, type) {
if (!event) {
_.set(this.model, type, "");
}
return {};
},
},
methods: { ...Event },
created: function () {},
};
</script>
......
<template>
<div class="eibs-tab" style="margin: 0 10px">
<c-col :span="24" style="margin-bottom: 1px"> Liability </c-col>
<c-col :span="24">
<c-table
:list="model.liaall.liaallg"
style="width:80%,text-align:center,margin-bottom:18px"
:border="true"
>
<el-table-column prop="cbtpfx" label="Type" width="auto">
</el-table-column>
<el-table-column prop="matdat" label="Maturity" width="auto">
</el-table-column>
<el-table-column prop="tenday" label="Tenor" width="auto">
<div class="eibs-tab">
<!-- <c-col :span="24" style="margin-bottom:18px">
Liability
</c-col> -->
<c-col :span="23" style="margin-left:9px">
<c-table :list="model.liaall.liaallg" style="width:80%,text-align:center,margin-bottom:18px" :border="true">
<el-table-column prop="bussec" label="BS" width="40px"> </el-table-column>
<el-table-column prop="cbtpfx" label="Type" width="60px"> </el-table-column>
<el-table-column prop="matdat" label="Maturity" width="100px"> </el-table-column>
<el-table-column prop="tenday" label="Tenor" width="70px"> </el-table-column>
<el-table-column prop="rol" label="Dbt." width="70px"> </el-table-column>
<el-table-column prop="nam" label="Name" width="170px"> </el-table-column>
<el-table-column prop="cdtrol" label="Cdt." width="70px"> </el-table-column>
<el-table-column prop="cur" label="Cur" width="55px"> </el-table-column>
<el-table-column prop="oldamt" label="Old Amount" width="150px">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.oldamt)}}
</template> -->
</el-table-column>
<el-table-column prop="rol" label="Dbt." width="auto">
<el-table-column prop="amt" label="Booking Amo" width="100px">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.amt)}}
</template> -->
</el-table-column>
<el-table-column prop="nam" label="Name" width="auto">
<el-table-column prop="tenpct" label="%" width="80px">
</el-table-column>
<el-table-column prop="cdtrol" label="Cdt." width="auto">
<el-table-column prop="acc" label="Account" width="150px"> </el-table-column>
<el-table-column prop="valdat" label="Value Date" width="120px">
<!-- <template slot-scope="scope">
{{dateFormat(scope.row.valdat)}}
</template> -->
</el-table-column>
<el-table-column prop="cur" label="Cur" width="auto"> </el-table-column>
<el-table-column prop="oldamt" label="Old Amount" width="auto">
<template slot-scope="scope">
{{ moneyFormat(scope.row.oldamt) }}
</template>
</el-table-column>
<el-table-column prop="amt" label="Booking Amo" width="auto">
<template slot-scope="scope">
{{ moneyFormat(scope.row.amt) }}
<el-table-column label="" prop="det" width="80px">
<template slot-scope="scope" slot="header">
<el-button
circle
style="padding:4px"
class="el-icon-plus"
size="mini"
@click="addRow(scope)"
>
</el-button>
<el-button
style="padding:4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRow(scope)"
>
</el-button>
</template>
</el-table-column>
<el-table-column prop="tenpct" label="%" width="auto">
</el-table-column>
<el-table-column prop="acc" label="Account" width="auto">
</el-table-column>
<el-table-column prop="valdat" label="Value Date" width="auto">
<template slot-scope="scope">
{{ dateFormat(scope.row.valdat) }}
<template slot-scope="scoped">
<el-button
style="margin-left:0"
size="small"
type="primary"
@click="detail1(scoped.$index, scoped.row)"
>详情</el-button
>
</template>
</el-table-column>
</c-table>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Sight Amount">
<c-input style="width:50%" v-model="model.liaall.outamt" placeholder="请输入Sight Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Amount not yet assigned">
<c-input
style="width: 20%"
disabled
v-model="model.liaall.concur"
maxlength="3"
placeholder="请输入External Booking Amount"
></c-input>
<c-input
style="width: 50%"
disabled
v-model="model.liaall.misamt"
placeholder="请输入Amount not yet assigned"
></c-input>
<el-form-item label="Sight Amount Percentage">
<c-input style="width:50%" v-model="model.liaall.outpct" placeholder="请输入Sight Amount Percentage"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Booking Amount">
<c-input style="width:70%" v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
</el-form-item>
</c-col> -->
<c-col :span="16" style="margin-top:10px">
<el-form-item label="Amount not yet assigned">
<c-input style="width:15%" disabled v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
<c-input style="width:40%" disabled v-model="model.liaall.misamt" placeholder="请输入Amount not yet assigned"></c-input>
<c-button style="width:20%" size="small" disabled type="primary" @click="onLiaallButmisamt">
Add to Current Line
</c-button>
</el-form-item>
</c-col>
<!-- <c-col :span="1" style="text-align:left;margin-left:0">
<el-form-item label="">
<c-button
size="small"
disabled
type="primary"
@click="onLiaallButmisamt"
>
<c-button size="small" disabled type="primary" @click="onLiaallButmisamt">
Add to Current Line
</c-button>
</el-form-item>
</c-col> -->
<!-- <c-col :span="12">
<el-form-item label="">
<c-button size="small" type="primary" @click="onLiaallButmissig">
Add to Sight Amount
</c-button>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Old Amount booked externally">
<c-input style="width:50%" v-model="model.liaall.exttotoldamt" placeholder="请输入Old Amount booked externally"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Total booking amount external assinged">
<c-input style="width:50%" v-model="model.liaall.exttotamt" placeholder="请输入Total booking amount external assinged"></c-input>
</el-form-item>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"
export default {
inject: ["root"],
inject: ['root'],
mixins: [CommonProcess],
props: ["model", "codes"],
data() {
return {};
props:["model","codes"],
data(){
return {
}
},
methods: { ...Event },
created: function () {},
};
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
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