Commit 3085db2e by 潘际乾

Ditopn、Ditame公共模块提取

parent dca01458
...@@ -3804,6 +3804,11 @@ ...@@ -3804,6 +3804,11 @@
"integrity": "sha1-9OaGxd4eofhn28rT1G2WlCjfmMQ=", "integrity": "sha1-9OaGxd4eofhn28rT1G2WlCjfmMQ=",
"dev": true "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": { "js-tokens": {
"version": "3.0.2", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
...@@ -7250,6 +7255,11 @@ ...@@ -7250,6 +7255,11 @@
"integrity": "sha1-UylVzB6yCKPZkLOp+acFdGV+CPI=", "integrity": "sha1-UylVzB6yCKPZkLOp+acFdGV+CPI=",
"dev": true "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": { "vue-loader": {
"version": "13.7.3", "version": "13.7.3",
"resolved": "https://registry.nlark.com/vue-loader/download/vue-loader-13.7.3.tgz", "resolved": "https://registry.nlark.com/vue-loader/download/vue-loader-13.7.3.tgz",
......
...@@ -15,8 +15,10 @@ ...@@ -15,8 +15,10 @@
"echarts": "^5.2.2", "echarts": "^5.2.2",
"element-ui": "^2.13.2", "element-ui": "^2.13.2",
"es6-promise": "^4.2.8", "es6-promise": "^4.2.8",
"js-cookie": "^3.0.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-i18n": "^8.26.7",
"vue-router": "^3.2.0", "vue-router": "^3.2.0",
"vuex": "^3.4.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 App from "./App.vue";
import 'es6-promise/auto' import RootRouter from "./routers";
import store from "./store";
import App from './App.vue' import "~/assets/css/common.css";
import RootRouter from './routers'
import store from "./store"
import '~/assets/css/common.css' import i18n from "./lang";
import CustomComponent from "./components";
import VueFunc from "./utils/vuefunc";
import "./permission";
import CustomComponent from "./components" window.SUCCESS = "AAAAAA";
import VueFunc from "./utils/vuefunc"
window.SUCCESS="AAAAAA" Vue.use(ElementUI, { size: "small", i18n: (key, value) => i18n.t(key, value) });
Vue.use(CustomComponent);
Vue.use(ElementUI, { size: 'small' }) Vue.use(VueFunc);
Vue.use(CustomComponent)
Vue.use(VueFunc)
new Vue({ new Vue({
el: '#app', el: "#app",
store, store,
router:RootRouter, i18n,
render: h => h(App) router: RootRouter,
}) render: (h) => h(App),
});
...@@ -157,6 +157,7 @@ export default class Ditame{ ...@@ -157,6 +157,7 @@ export default class Ditame{
seainf:"", // .trnmod.trndoc.rcvatt.seainf seainf:"", // .trnmod.trndoc.rcvatt.seainf
}, },
filrecv:"", // File Receiver .trnmod.trndoc.filrecv filrecv:"", // File Receiver .trnmod.trndoc.filrecv
doceot:[],
}, },
}, },
olddidgrp:{ olddidgrp:{
...@@ -290,6 +291,12 @@ export default class Ditame{ ...@@ -290,6 +291,12 @@ export default class Ditame{
setglg:{ setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
}, },
setfog:{
setfol:[]
},
setfeg:{
setfel:[]
},
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc 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 = { const I18N = {
namespaced: true, namespaced: true,
state:{ state: {
lang:"cn" lang: getLanguage(),
}, },
mutations:{ mutations: {
setLang(state,lang){ SET_LANG(state, lang) {
state.lang = lang state.lang = lang;
} Cookies.set("language", lang);
} },
} },
export default I18N actions: {
\ No newline at end of file setLang({ commit }, lang) {
commit("SET_LANG", lang);
},
},
};
export default I18N;
const state = { const state = {
visitedViewsMaxVal: 10,
visitedViews: [], visitedViews: [],
cachedViews: [] 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 { ...@@ -711,16 +711,16 @@ export default {
mixins: [CommonProcess], mixins: [CommonProcess],
data() { data() {
return { return {
declareParams: { // declareParams: {
fileName: "ditopn.json", // fileName: "ditopn.json",
basePath: "{{basePath}}", // basePath: "{{basePath}}",
method: "post", // method: "post",
scheme: "{{schemes}}", // scheme: "{{schemes}}",
host: "{{host}}", // host: "{{host}}",
consume: "0", // consume: "0",
produce: "0", // produce: "0",
uri: "/ditopn/getElcsRef", // uri: "/ditopn/getElcsRef",
}, // },
jigomcFlag:false, jigomcFlag:false,
trade: "" trade: ""
}; };
......
...@@ -129,14 +129,15 @@ import Dogpame from "./Dogpame"; ...@@ -129,14 +129,15 @@ import Dogpame from "./Dogpame";
import Dorpame from "./Dorpame"; import Dorpame from "./Dorpame";
import Adcpame from "./Adcpame"; import Adcpame from "./Adcpame";
import Inspame from "./Inspame"; import Inspame from "./Inspame";
import Engp from "./Engp";
import Ccvpan from "./Ccvpan";
import Setpan from "./Setpan";
import Addbcb from "./Addbcb"; import Addbcb from "./Addbcb";
import Coninfp from "./Coninfp";
import Docpan from "./Docpan";
import Doctre from "./Doctre"; 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 { export default {
name: 'Ditame', 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"; ...@@ -145,15 +145,15 @@ import Mt799 from "./Mt799";
import Litbenl1 from "./Litbenl1"; import Litbenl1 from "./Litbenl1";
import Litapll1 from "./Litapll1"; import Litapll1 from "./Litapll1";
import Litrmbl1 from "./Litrmbl1"; import Litrmbl1 from "./Litrmbl1";
import Engp from "./Engp";
import Addbcb from "./Addbcb"; 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 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 Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
export default { export default {
name: 'Ditopn', name: 'Ditopn',
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
"盛世饮料", "盛世饮料",
"中国华润总公司", "中国华润总公司",
"东风汽车公司", "东风汽车公司",
"恒大集团", "万科集团",
"万康食品", "万康食品",
], ],
}, },
......
<template> <template>
<div class="self-header"> <div class="self-header">
<div style="display: inline-block;margin: 5px 15px 5px 0;height: 50px;"> <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>
<div class="self_header_label"> <div class="self_header_label">
<h2>新一代银行国际结算系统</h2> <h2>新一代银行国际结算系统</h2>
...@@ -68,14 +68,20 @@ ...@@ -68,14 +68,20 @@
placement="bottom" placement="bottom"
width="80" width="80"
trigger="hover" trigger="hover"
v-model="langSelectVisible"
> >
<ul class="header-tool-item-list"> <ul class="header-tool-item-list">
<li @click="handleLangCn">中文</li> <li
<li @click="handleLangEn">English</li> v-for="(item, idx) in languageOptions"
:key="idx"
@click="handleLang(item.lang)"
>
{{ item.fullName }}
</li>
</ul> </ul>
<div class="header-tool-item header-tool-item-text" slot="reference"> <div class="header-tool-item header-tool-item-text" slot="reference">
<i class="el-icon-setting" style="font-size:14px;"></i> <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> <i class="el-icon-arrow-down" style="font-size:12px;"></i>
</div> </div>
</el-popover> </el-popover>
...@@ -85,9 +91,18 @@ ...@@ -85,9 +91,18 @@
<el-col :span="24"> <el-col :span="24">
<c-page title="公告"> <c-page title="公告">
<c-table :data="noticeboardData"> <c-table :data="noticeboardData">
<el-table-column label="公告内容" prop="noticeContent"></el-table-column> <el-table-column
<el-table-column label="发布人" prop="publisher"></el-table-column> label="公告内容"
<el-table-column label="发布日期" prop="publishDate"></el-table-column> 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-table>
</c-page> </c-page>
</el-col> </el-col>
...@@ -95,7 +110,9 @@ ...@@ -95,7 +110,9 @@
</div> </div>
<div class="header-tool-item" slot="reference"> <div class="header-tool-item" slot="reference">
<i class="el-icon-bell"></i> <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> </div>
</el-popover> </el-popover>
<span class="header-tool-item-text">会计日期: {{ accDate }}</span> <span class="header-tool-item-text">会计日期: {{ accDate }}</span>
...@@ -104,12 +121,11 @@ ...@@ -104,12 +121,11 @@
</template> </template>
<script> <script>
import cPage from '../../components/c-page.vue'; import cPage from "../../components/c-page.vue";
export default { export default {
components: { cPage }, components: { cPage },
data() { data() {
return { return {
lang: this.$store.state.I18n.lang,
txName: "", txName: "",
user: { user: {
userName: this.$store.state.UserContext.userName || "Admin", userName: this.$store.state.UserContext.userName || "Admin",
...@@ -125,7 +141,12 @@ export default { ...@@ -125,7 +141,12 @@ export default {
loading: false, loading: false,
count: "", count: "",
accDate: window.sessionStorage.accDate || "", accDate: window.sessionStorage.accDate || "",
noticeboardData: [] noticeboardData: [],
langSelectVisible: false,
languageOptions: [
{ lang: "zh", shortName: "中文", fullName: "中文" },
{ lang: "en", shortName: "En", fullName: "English" },
],
}; };
}, },
computed: { computed: {
...@@ -135,19 +156,28 @@ export default { ...@@ -135,19 +156,28 @@ export default {
// return subStrList[length - 1]; // return subStrList[length - 1];
return "北京分行"; 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: { methods: {
logout() { logout() {
this.$store.commit("UserContext/setLogout"); this.$store.commit("UserContext/setLogout");
this.$router.push("/login"); this.$router.push("/login");
}, },
handleLangCn() { handleLang(lang) {
this.$store.commit("I18n/setLang", "cn"); this.$i18n.locale = lang;
this.lang = "cn"; this.$store.dispatch("I18n/setLang", lang);
}, this.langSelectVisible = false;
handleLangEn() {
this.$store.commit("I18n/setLang", "en");
this.lang = "en";
}, },
showLogoutDialog(flg) { showLogoutDialog(flg) {
this.$refs.logoutform.show(flg); this.$refs.logoutform.show(flg);
......
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
:style="{ left: left + 'px', top: top + 'px' }" :style="{ left: left + 'px', top: top + 'px' }"
class="contextmenu" class="contextmenu"
> >
<li @click="refreshSelectedTag(selectedTag)">刷新</li> <li @click="refreshSelectedTag(selectedTag)">{{ $t('tagsView.refresh') }}</li>
<li v-if="!isAffix(selectedTag)" @click="closeSelectedTag(selectedTag)"> <li v-if="!isAffix(selectedTag)" @click="closeSelectedTag(selectedTag)">
关闭 {{ $t('tagsView.close') }}
</li> </li>
<li @click="closeOthersTags">关闭其他</li> <li @click="closeOthersTags">{{ $t('tagsView.closeOthers') }}</li>
<li @click="closeAllTags(selectedTag)">关闭所有</li> <li @click="closeAllTags(selectedTag)">{{ $t('tagsView.closeAll') }}</li>
</ul> </ul>
</div> </div>
</template> </template>
......
...@@ -50,7 +50,7 @@ const { setLoginInfo } = mapMutations(["setLoginInfo"]) ...@@ -50,7 +50,7 @@ const { setLoginInfo } = mapMutations(["setLoginInfo"])
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.setLoginInfo({userId:this.loginForm.username}) this.setLoginInfo({userId:this.loginForm.username})
this.$router.push("/business/office"); this.$router.push("/home");
} else { } else {
console.log('error submit!!'); console.log('error submit!!');
return false; return false;
......
<template> <template>
<c-row> <c-row>
<c-col :span="24"> <c-col :span="24">
<c-col :span="15"> <c-col :span="12">
<el-form-item <el-form-item
style="height=200px;" style="height=200px;"
label="General" label="General"
...@@ -9,81 +9,101 @@ ...@@ -9,81 +9,101 @@
> >
<c-input <c-input
type="textarea" type="textarea"
:rows="6"
@change="valueChange($event, 'mtabut.coninf.oitinf.oit.inflev')"
v-model="model.mtabut.coninf.oitinf.oit.inftxt" v-model="model.mtabut.coninf.oitinf.oit.inftxt"
maxlength="60" maxlength="60"
resize="none" :autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit show-word-limit
placeholder="请输入Infotext" placeholder="请输入Infotext"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="7" :offset="1"> <c-col :span="24">
<c-col :span="6">
<el-form-item <el-form-item
label="Display Type" label="Display Type"
prop="mtabut.coninf.oitinf.oit.inflev" prop="mtabut.coninf.oitinf.oit.inflev"
> >
<c-select <c-select
v-model="model.mtabut.coninf.oitinf.oit.inflev" v-model="model.mtabut.coninf.oitinf.oit.inflev"
:disabled="model.mtabut.coninf.oitinf.oit.inftxt ? false : true" style="width: 100%"
disabled
placeholder="请选择Infotext Level" 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> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="15"> <c-col :span="12">
<el-form-item label="Settlement" prop="mtabut.coninf.oitset.oit.inftxt"> <el-form-item
label="Settlement"
prop="mtabut.coninf.oitset.oit.inftxt"
>
<c-input <c-input
type="textarea" type="textarea"
:rows="6"
@change="valueChange($event, 'mtabut.coninf.oitset.oit.inflev')"
v-model="model.mtabut.coninf.oitset.oit.inftxt" v-model="model.mtabut.coninf.oitset.oit.inftxt"
maxlength="60" maxlength="60"
resize="none" :autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit show-word-limit
placeholder="请输入Infotext" placeholder="请输入Infotext"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="7" :offset="1"> <c-col :span="24">
<c-col :span="6">
<el-form-item <el-form-item
label="Display Type" label="Display Type"
prop="mtabut.coninf.oitset.oit.inflev" prop="mtabut.coninf.oitset.oit.inflev"
> >
<c-select <c-select
v-model="model.mtabut.coninf.oitset.oit.inflev" v-model="model.mtabut.coninf.oitset.oit.inflev"
:disabled="model.mtabut.coninf.oitset.oit.inftxt ? false : true" style="width: 100%"
disabled
placeholder="请选择Infotext Level" 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> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="6">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat"> <el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<el-date-picker <el-date-picker
type="date" type="date"
v-model="model.mtabut.coninf.conexedat" v-model="model.mtabut.coninf.conexedat"
style="width: 50%" style="width: 100%"
placeholder="请选择执行日期" placeholder="请选择执行日期"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="7" :offset="5"> <c-col :span="6" style="text-align:right">
<el-form-item label="Send for Release to" prop="mtabut.coninf.usr.extkey"> <el-form-item
label="Send for Release to"
prop="mtabut.coninf.usr.extkey"
label-width="140px"
>
<c-input <c-input
v-model="model.mtabut.coninf.usr.extkey" v-model="model.mtabut.coninf.usr.extkey"
maxlength="8" maxlength="8"
style="width: 100%"
disabled="disabled" disabled="disabled"
placeholder="请输入User ID" placeholder="请输入User ID"
></c-input> ></c-input>
...@@ -93,29 +113,16 @@ ...@@ -93,29 +113,16 @@
</template> </template>
<script> <script>
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import _ from "~/utils/Lodash.js"; import Event from "~/model/Ditopn/Event";
// zxk 附言页签
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [CommonProcess], mixins: [CommonProcess],
data() { data() {
return { return {};
inflev: [
{ label: "Show", value: "$" },
{ label: "Do not show", value: "!" },
{ label: "Warn", value: "0" },
], //码表
};
},
methods: {
valueChange(event, type) {
if (!event) {
_.set(this.model, type, "");
}
}, },
}, methods: { ...Event },
created: function () {}, created: function () {},
}; };
</script> </script>
......
<template> <template>
<div class="eibs-tab" style="margin: 0 10px"> <div class="eibs-tab">
<c-col :span="24" style="margin-bottom: 1px"> Liability </c-col> <!-- <c-col :span="24" style="margin-bottom:18px">
<c-col :span="24"> Liability
<c-table </c-col> -->
:list="model.liaall.liaallg" <c-col :span="23" style="margin-left:9px">
style="width:80%,text-align:center,margin-bottom:18px" <c-table :list="model.liaall.liaallg" style="width:80%,text-align:center,margin-bottom:18px" :border="true">
: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="cbtpfx" label="Type" width="auto"> <el-table-column prop="matdat" label="Maturity" width="100px"> </el-table-column>
</el-table-column> <el-table-column prop="tenday" label="Tenor" width="70px"> </el-table-column>
<el-table-column prop="matdat" label="Maturity" width="auto"> <el-table-column prop="rol" label="Dbt." width="70px"> </el-table-column>
</el-table-column> <el-table-column prop="nam" label="Name" width="170px"> </el-table-column>
<el-table-column prop="tenday" label="Tenor" width="auto"> <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>
<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>
<el-table-column prop="nam" label="Name" width="auto"> <el-table-column prop="tenpct" label="%" width="80px">
</el-table-column> </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>
<el-table-column prop="cur" label="Cur" width="auto"> </el-table-column> <el-table-column label="" prop="det" width="80px">
<el-table-column prop="oldamt" label="Old Amount" width="auto"> <template slot-scope="scope" slot="header">
<template slot-scope="scope"> <el-button
{{ moneyFormat(scope.row.oldamt) }} circle
</template> style="padding:4px"
</el-table-column> class="el-icon-plus"
<el-table-column prop="amt" label="Booking Amo" width="auto"> size="mini"
<template slot-scope="scope"> @click="addRow(scope)"
{{ moneyFormat(scope.row.amt) }} >
</el-button>
<el-button
style="padding:4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRow(scope)"
>
</el-button>
</template> </template>
</el-table-column> <template slot-scope="scoped">
<el-table-column prop="tenpct" label="%" width="auto"> <el-button
</el-table-column> style="margin-left:0"
<el-table-column prop="acc" label="Account" width="auto"> size="small"
</el-table-column> type="primary"
<el-table-column prop="valdat" label="Value Date" width="auto"> @click="detail1(scoped.$index, scoped.row)"
<template slot-scope="scope"> >详情</el-button
{{ dateFormat(scope.row.valdat) }} >
</template> </template>
</el-table-column> </el-table-column>
</c-table> </c-table>
</c-col> </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"> <c-col :span="12">
<el-form-item label="Amount not yet assigned"> <el-form-item label="Sight Amount Percentage">
<c-input <c-input style="width:50%" v-model="model.liaall.outpct" placeholder="请输入Sight Amount Percentage"></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> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <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=""> <el-form-item label="">
<c-button <c-button size="small" disabled type="primary" @click="onLiaallButmisamt">
size="small"
disabled
type="primary"
@click="onLiaallButmisamt"
>
Add to Current Line Add to Current Line
</c-button> </c-button>
</el-form-item> </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>
<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> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ["root"], inject: ['root'],
mixins: [CommonProcess], mixins: [CommonProcess],
props: ["model", "codes"], props:["model","codes"],
data() { data(){
return {}; return {
}
}, },
methods: { ...Event }, methods:{...Event},
created: function () {}, created:function(){
};
}
}
</script> </script>
<style> <style>
</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