Commit 71e22474 by 潘际乾

brtset、电证整合

parent 475a8cb7
......@@ -17,7 +17,9 @@
</template>
<SubMenu :subMenuList="item.children" :openFlgArr="openFlgArr" />
</el-submenu>
<el-menu-item v-else :key="item.path" :index="item.path">
<!-- <el-menu-item v-else :key="item.path" :index="item.isDz ? null : item.path" @click="gotoView(item)"> -->
<el-menu-item v-else :key="item.path" :index="item.path"
:route="item.isDz ? { name: 'DzSys', params: { path: getDynamicPath(item.path), title: item.name}} : { path: item.path }">
<template slot="title">
<i :class="item.icon"></i>
<span>{{ item.name }}</span>
......@@ -38,6 +40,18 @@ export default {
getOpenFlag(index) {
return this.openFlgArr.includes(index);
},
// gotoView(item) {
// if (!item.isDz) {
// return
// }
// const path = item.path
// const p = path.split("/")
// this.$router.push({name: 'DzSys', params: {path: p[p.length - 1], title: item.name}})
// }
getDynamicPath(path) {
const p = path.split("/")
return p[p.length - 1]
}
},
};
</script>
......
......@@ -141,6 +141,11 @@
</c-col>
<c-col :span="24">
<el-form-item label="待付款单据" >
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" label-width="0">
<c-istream-table
ref="table"
:list="model.liaall.tenstm.rows || []"
......@@ -152,7 +157,6 @@
</c-istream-table>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="应付金额" prop="setmod.doccur">
......@@ -252,6 +256,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="" label-width="0" >
<div class="e-table-wrapper">
<c-table
style="text-align: center"
......@@ -269,6 +274,7 @@
</c-table>
</div>
</el-form-item>
</c-col>
<c-col :span="12">
......
<template>
<c-page title="进口信用证单据进口付汇">
<div class="eContainer">
<c-page title="进口信用证单据进口付汇">
<el-form
:model="model"
:rules="rules"
......@@ -52,31 +52,41 @@
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="表外记账" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="保证金" name="ccvpan">
<c-content>
<m-ccvpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="结算" name="setpan">
<el-tab-pane label="费用/账务" name="engp,setpan,glepan">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="fyzw">
<el-collapse-item title="表外记账" name="engp">
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="结算" name="setpan">
<!-- 结算 -->
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="会计分录" name="glepan">
</el-collapse-item>
<el-collapse-item title="会计分录" name="glepan">
<!-- 会计分录 -->
<m-glepan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="提示信息" name="coninfp">
<c-content>
<div class="eibs-tab">
<m-coninfp :model="model" :codes="codes" />
</div>
</c-content>
</el-tab-pane>
<!--PD000529 -->
......@@ -85,8 +95,10 @@
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="附件" name="doctre">
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000008
......@@ -101,7 +113,9 @@
<!--PD000009 -->
<el-tab-pane label="申报信息" name="sbxx">
<c-content>
<m-sbxx :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane
......@@ -109,7 +123,9 @@
name="basp"
v-if="model.bopmod.basflg != '' && model.bopmod.szflg == '1'"
>
<c-content>
<m-basp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane
......@@ -117,17 +133,23 @@
name="basp1"
v-if="model.bopmod.basflg != '' && model.bopmod.szflg == '2'"
>
<c-content>
<m-basp1 :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000061 -->
<el-tab-pane label="资本项目" name="cfactlp">
<c-content>
<m-cfactlp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD001139 -->
<el-tab-pane label="试算结果" name="shisuan">
<c-content>
<m-shisuan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000115 -->
......@@ -162,7 +184,9 @@
name="outp"
v-if="model.cnybop.outflg == '1'"
>
<c-content>
<m-outp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane
......@@ -180,7 +204,9 @@
name="cips"
v-if="model.trnmod.cmtflg == 'P'"
>
<c-content>
<m-cips :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
......@@ -190,23 +216,21 @@
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<el-button size="small">备忘录</el-button>
<el-button size="small" @click="setDraggableContent('cms', '影像信息')"
>影像信息</el-button
>
<!-- <el-button size="small">备忘录</el-button> -->
<!-- <el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</el-button> -->
<!-- <el-button size="small">保存模板</el-button> -->
<!-- <el-button size="small">使用模板</el-button> -->
<el-button size="small">制裁信息</el-button>
<!-- <el-button size="small">制裁信息</el-button> -->
<!-- <el-button size="small">拆分报文</el-button> -->
<el-button size="small">智能提示</el-button>
<!-- <el-button size="small">智能提示</el-button> -->
</c-function-btn>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
></c-grid-ety-prompt-dialog>
</div>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api";
......@@ -292,6 +316,7 @@ export default {
codes: {
...CodeTable,
},
fyzw: ['engp']
};
},
methods: {
......
......@@ -214,6 +214,8 @@ import Dbiusr from "./Dbiusr"
import Dbibch from "./Dbibch"
import Infact from "./Infact"
import DzSys from "~/views/Layout/dz/DzSys.vue";
/**
* 带有name的才会被添加进顶部的标签页里
*/
......@@ -441,6 +443,6 @@ const BusRouter = [
{ path: 'Ordrel', component: Ordrel, name: 'Ordrel', meta: { title: 'Ordrel' } },
{ path: 'Infact', component: Infact, name: 'Infact', meta: { title: '账户' } },
{ path: 'dzsys/:path', component: DzSys, name: 'DzSys', meta: { title: (tag) => { return '电证 - ' + tag.params.title } } },
]
export default BusRouter
\ No newline at end of file
......@@ -52,9 +52,9 @@ export default {
this.loadCellData();
},
mounted() {
this.calcCellContentHeight();
this.calcCellContentHeightBind = this.calcCellContentHeight.bind(this);
window.addEventListener("resize", this.calcCellContentHeightBind);
this.calcAgain();
this.calcAgainBind = this.calcAgain.bind(this);
window.addEventListener("resize", this.calcAgainBind);
},
computed: {
...mapState({
......@@ -129,10 +129,14 @@ export default {
},
calcCellContentWidth() {
this.cellWidth = (this.$el.clientWidth - (this.cellCols + 1) * 25) / this.cellCols
},
calcAgain() {
this.calcCellContentHeight()
this.calcCellContentWidth()
}
},
destroyed() {
window.removeEventListener("resize", this.calcCellContentHeightBind);
window.removeEventListener("resize", this.calcAgainBind);
},
};
</script>
......
......@@ -26,6 +26,7 @@
<script>
import Button from "../../components/Button.vue";
import SubMenu from "~/components/SubMenu.vue";
import dzMenus from "./dz/menus.js";
export default {
components: { Button, SubMenu },
......@@ -226,7 +227,7 @@ export default {
mounted() {
const arr = [];
this.generateMenuTree(arr);
this.menus = arr;
this.menus = arr.concat(dzMenus);
this.$store.commit("UserContext/setMenu", arr);
this.initOpenFlgIndex();
},
......
<template>
<div style="height: 100%;display: flex;">
<iframe class="dz-iframe" :src="path" frameborder="0" style="flex: 1;width: 100%;"></iframe>
</div>
</template>
<script>
export default {
name: 'DzSys',
data() {
return {
baseUrl: "http://114.115.138.98:8300/#",
path: ''
}
},
mounted() {
this.path = this.getUrl();
// const iframes = document.querySelectorAll('.dz-iframe')
// iframes.forEach(iframe => {
// if (iframe.attachEvent) {
// iframe.attachEvent("onload", () => {
// this.hideHeadAndSideMenu(iframe)
// })
// } else {
// iframe.onload = () => {
// this.hideHeadAndSideMenu(iframe)
// }
// }
// })
},
methods: {
// 有跨域问题,获取不到
hideHeadAndSideMenu(iframe) {
iframe.contentWindow.document.querySelectorAll('.dz-iframe .ant-layout .ant-layout-header')[0].style.display= 'none';
iframe.contentWindow.document.querySelectorAll('.dz-iframe .ant-layout .ant-layout-header .sideMenu.ant-layout-sider')[0].style.display= 'none';
},
getUrl() {
console.log('============= ' + this.$route.params.path);
if (this.$route.params.path === 'login') {
return this.baseUrl + "/login"
} else {
return this.baseUrl + "/business/" + this.$route.params.path
}
}
}
}
</script>
<style>
/* 不生效 */
.dz-iframe .ant-layout .ant-layout-header,
.dz-iframe .ant-layout .ant-layout-header .sideMenu.ant-layout-sider {
display: none;
}
</style>
\ No newline at end of file
const menusConfig = [
{ id: null, label: "登陆", value: "login", subMenu: [] },
{
id: null,
label: "国内信用证",
value: null,
subMenu: [
{ id: null, label: "买方国内证", value: "ditsel", subMenu: [] },
{ id: null, label: "卖方国内证", value: "detsel", subMenu: [] },
{ id: null, label: "自由格式报文发送查询", value: "fresel", subMenu: [] },
{ id: null, label: "电证自由格式报文", value: "detfrm", subMenu: [] },
],
},
{
id: null,
label: "信用证辅助功能",
value: null,
subMenu: [
{ id: null, label: "信用证信息查询", value: "lcdinf", subMenu: [] },
{ id: null, label: "发票重复性融资", value: "invsel", subMenu: [] },
],
},
{
id: null,
label: "信用证查询",
value: null,
subMenu: [
{ id: null, label: "买方信用证", value: "infdid", subMenu: [] },
{ id: null, label: "买方到单", value: "infbdd", subMenu: [] },
{ id: null, label: "卖方信用证", value: "infded", subMenu: [] },
{ id: null, label: "卖方寄单", value: "infbmd", subMenu: [] },
],
},
{
id: null,
label: "福费廷",
value: null,
subMenu: [
{ id: null, label: "资产管理", value: "asmsel", subMenu: [] },
{ id: null, label: "福费廷转卖", value: "forsel", subMenu: [] },
{ id: null, label: "福费廷买入", value: "fobsel", subMenu: [] },
{ id: null, label: "福费廷自由格式报文", value: "assfre", subMenu: [] },
],
},
{
id: null,
label: "福费廷辅助功能",
value: null,
subMenu: [
{ id: null, label: "资金管理", value: "fudsel", subMenu: [] },
{ id: null, label: "福费廷信息查询", value: "assins", subMenu: [] },
{ id: null, label: "发票重复性融资查询", value: "invlcf", subMenu: [] },
{ id: null, label: "已发布资产清单", value: "asssel", subMenu: [] },
],
},
{
id: null,
label: "福费廷查询",
value: null,
subMenu: [{ id: null, label: "福费廷业务", value: "fbisel", subMenu: [] }],
},
{
id: null,
label: "贸易融资",
value: null,
subMenu: [
{ id: null, label: "买方融资", value: "trtsel", subMenu: [] },
{ id: null, label: "卖方融资", value: "bptsel", subMenu: [] },
],
},
{ id: null, label: "经办夹", value: "sptsel", subMenu: [] },
{ id: null, label: "历史夹", value: "annrel", subMenu: [] },
{
id: null,
label: "备忘录",
value: "diasel",
subMenu: [
{ id: null, label: "机构管理", value: "dblbch", subMenu: [] },
{ id: null, label: "角色管理", value: "dblrol", subMenu: [] },
{ id: null, label: "用户管理", value: "dblusr", subMenu: [] },
{ id: null, label: "交易管理", value: "dblfrm", subMenu: [] },
{ id: null, label: "客户管理", value: "dblpty", subMenu: [] },
{ id: null, label: "业务解锁", value: "lckinf", subMenu: [] },
{ id: null, label: "系统公告", value: "bchinf", subMenu: [] },
{ id: null, label: "证书托管", value: "keymag", subMenu: [] },
],
},
{
id: null,
label: "系统管理",
value: null,
subMenu: [
{ id: null, label: "支付系统行号", value: "ptysel", subMenu: [] },
{ id: null, label: "电证参与机构", value: "parsel", subMenu: [] },
{ id: null, label: "系统参数", value: "elsmsg", subMenu: [] },
{ id: null, label: "系统日志", value: "evtinf", subMenu: [] },
],
},
{
id: null,
label: "电证参数",
value: null,
subMenu: [
{ id: null, label: "往来报文查询", value: "infsmh", subMenu: [] },
{ id: null, label: "系统级报文", value: "sysels", subMenu: [] },
{ id: null, label: "信用证日终对账", value: "elschk", subMenu: [] },
{ id: null, label: "福费廷对账", value: "cbasel", subMenu: [] },
],
},
{ id: null, label: "影像管理", value: "imgadd", subMenu: [] },
];
let n = 0;
const generateMenuTree = (menus) => {
const arr = [];
for (let i = 0; i < menus.length; i++) {
const menu = menus[i];
if (menu.subMenu.length) {
const children = generateMenuTree(menu.subMenu)
arr.push({
index: menu.value + '_' + n++,
name: menu.label,
path: menu.value,
children
})
} else {
arr.push({
name: menu.label,
path: '/business/dzsys/' + menu.value,
isDz: true,
icon: "el-icon-document",
children: []
})
}
}
return arr;
}
const dzMenus = generateMenuTree(menusConfig)
export default {
name: '电证系统',
index: 'dzsys',
path: 'dzsys',
children: dzMenus
}
\ 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