Commit 5b9f40c0 by liaoxing

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents 03b64ebd c5a03b97
......@@ -104,8 +104,33 @@ export default {
console.log('close');
},
// 处理
handler() {
async handler(row) {
this.initdialog = true;
const params = {
//根据xx字段 查询处理的数据
ownref: row.ownref,
};
const res = await Api.post('/service/infgid/dealWithByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data) {
this.handlerDataList = []
Object.keys(res.data).map((item) => {
this.handlerDataList.push({
label: item,
value: res.data[item]
})
})
}
}
},
handleClick (btn) {
if (btn.value === 'N') {
return
}
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push(filterRoute[0].route);
},
// 关闭处理弹框
closeHandlerDialog() {
......
......@@ -525,7 +525,7 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="handler(scope.row['保函编号'], scope.row['保函效期'])"
@click="handler(scope.row)"
>处理
</c-button>
</template>
......@@ -553,12 +553,15 @@
width="60%"
>
<div class="dialog-wrap">
<el-button
v-for="(item, index) in handlerDataList"
:key="index"
type="primary"
:disabled="item.disabled"
>{{ item.name }}</el-button>
<div class="btn-group-wrap">
<div class="btn-item" v-for="(item, index) in handlerDataList" :key="index">
<el-button
type="primary"
:disabled="item.value === 'N'"
@click="handleClick(item)"
>{{ item.label }}</el-button>
</div>
</div>
</div>
</el-dialog>
</div>
......@@ -650,7 +653,13 @@ export default {
},
// 处理
initdialog: false,
handlerDataList: []
handlerDataList: [],
btnRouteMap: [
{
label: '注销',
route: '/business/gitcan'
}
]
};
},
methods: {
......@@ -677,4 +686,17 @@ export default {
background: #fff;
margin-top: 5px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</style>
......@@ -6,7 +6,10 @@ export default {
let objtyp = doctreRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${objtyp.toLowerCase()}/doctre/assertDoctre`, doctreRequest);
if (rtnmsg.respCode == SUCCESS) {
this.model.trnmod = rtnmsg.data;
this.$set(this.model, 'doctre', {
tableData1: rtnmsg.data || [],
tableData2: []
})
}
loading.close();
},
......
......@@ -11,26 +11,12 @@
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-istream-table-docpan :border="true" :list="data1">
<el-table-column label="类型" width="auto">
<template slot-scope="scope">
<span>{{ getType(scope.row.index) }}</span>
</template>
</el-table-column>
<el-table-column label="名称" width="auto">
<template slot-scope="scope">
<span>{{
model.trnmod.trndoc.doceot[scope.row.index].pandsc
}}</span>
</template>
</el-table-column>
<el-table-column label="创建交易" width="auto"></el-table-column>
<el-table-column label="创建日期" width="auto">
<template>
<span>{{ getNow() }}</span>
</template>
</el-table-column>
</c-istream-table-docpan>
<el-table :border="true" :data="model.doctre.tableData1">
<el-table-column label="类型" width="auto" prop="rol"></el-table-column>
<el-table-column label="名称" width="auto" prop="pandsc"></el-table-column>
<el-table-column label="创建交易" width="auto" prop="inifrm"></el-table-column>
<el-table-column label="创建日期" width="auto" prop="credat"></el-table-column>
</el-table>
</c-col>
<c-col
......@@ -47,12 +33,12 @@
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-istream-table-docpan :border="true" :list="data2">
<el-table-column label="类型" width="auto"></el-table-column>
<el-table-column label="名称" width="auto"></el-table-column>
<el-table-column label="创建日期" width="auto"></el-table-column>
<el-table-column label="创建日期" width="auto"></el-table-column>
</c-istream-table-docpan>
<el-table :border="true" :data="model.doctre.tableData2">
<el-table-column label="类型" width="auto" prop="rol"></el-table-column>
<el-table-column label="名称" width="auto" prop="pandsc"></el-table-column>
<el-table-column label="创建交易" width="auto" prop="inifrm"></el-table-column>
<el-table-column label="创建日期" width="auto" prop="credat"></el-table-column>
</el-table>
</c-col>
</div>
</template>
......@@ -65,8 +51,6 @@ export default {
props: ['model', 'codes'],
data() {
return {
data1: [],
data2: [],
isShow1: false,
isShow2: false,
aDisabled: true,
......
......@@ -6,7 +6,10 @@ export default {
let objtyp = limitbodyRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${objtyp.toLowerCase()}/limit/assertLimit`, limitbodyRequest);
if (rtnmsg.respCode == SUCCESS) {
this.copyValueFromVoData(this.model.liaall.limmod, rtnmsg.data)
if (rtnmsg.data) {
this.copyValueFromVoData(this.model.liaall.limmod, rtnmsg.data)
this.copyValueFromVoData(this.model.liaall.limmod.limpts, rtnmsg.data)
}
}
loading.close();
},
......
......@@ -7719,32 +7719,32 @@ const CodeTable = {
],
sndto: [],
objtypcodetable: [
{ label: 'Party', value: 'PTY ' },
{ label: 'Account', value: 'ACT ' },
{ label: 'Export L/C', value: 'LED ' },
{ label: 'Imoprt L/C', value: 'LID ' },
{ label: 'Country', value: 'CTY ' },
{ label: 'Guarantee', value: 'GID ' },
{ label: 'Reimbursement', value: 'RMD ' },
{ label: 'Import Collection', value: 'BCD ' },
{ label: 'Export Collection', value: 'BOD ' },
{ label: 'Advance', value: 'BPD ' },
{ label: 'Clean Payment', value: 'CPD ' },
{ label: 'Export L/C (Ind.)', value: 'LED ' },
{ label: 'Transferable L/C', value: 'LTD ' },
{ label: 'Manual Contract', value: 'MCD ' },
{ label: 'Participation', value: 'PAD ' },
{ label: 'Loan', value: 'TRD ' },
{ label: 'Condition', value: 'FEC ' },
{ label: 'Export L/C Documents', value: 'BED ' },
{ label: 'Import L/C Documents', value: 'BRD ' },
{ label: 'Transfer Documents', value: 'BTD ' },
{ label: 'Export Doc. (Ind.)', value: 'DED ' },
{ label: 'Reimbursement Claim', value: 'RCD ' },
{ label: '', value: 'BDD ' },
{ label: '', value: 'CLD ' },
{ label: '', value: 'DID ' },
{ label: '', value: 'GCD ' },
{ label: 'Party', value: 'PTY' },
{ label: 'Account', value: 'ACT' },
{ label: 'Export L/C', value: 'LED' },
{ label: 'Imoprt L/C', value: 'LID' },
{ label: 'Country', value: 'CTY' },
{ label: 'Guarantee', value: 'GID' },
{ label: 'Reimbursement', value: 'RMD' },
{ label: 'Import Collection', value: 'BCD' },
{ label: 'Export Collection', value: 'BOD' },
{ label: 'Advance', value: 'BPD' },
{ label: 'Clean Payment', value: 'CPD' },
{ label: 'Export L/C (Ind.)', value: 'LED' },
{ label: 'Transferable L/C', value: 'LTD' },
{ label: 'Manual Contract', value: 'MCD' },
{ label: 'Participation', value: 'PAD' },
{ label: 'Loan', value: 'TRD' },
{ label: 'Condition', value: 'FEC' },
{ label: 'Export L/C Documents', value: 'BED' },
{ label: 'Import L/C Documents', value: 'BRD' },
{ label: 'Transfer Documents', value: 'BTD' },
{ label: 'Export Doc. (Ind.)', value: 'DED' },
{ label: 'Reimbursement Claim', value: 'RCD' },
{ label: '', value: 'BDD' },
{ label: '', value: 'CLD' },
{ label: '', value: 'DID' },
{ label: '', value: 'GCD' },
],
subtypcodetable: [
{ label: 'General', value: 'INF' },
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/fee/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/service/fee/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/service/fee/add", data)
}
export function edit(data) {
return Api.post("/service/fee/edit", data)
}
export function deleteById(inr) {
return Api.post(`/service/fee/deleteById?inr=${inr}`)
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/lgb/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/service/lgb/queryDetailById?inr=${inr}`)
}
export function queryPageByIdFromLgbAndLga(data) {
return Api.post("/service/lgb/queryPageByIdFromLgbAndLga", data)
}
export function queryByIdFromLgbAndLga(inr) {
return Api.post(`/service/lgb/queryByIdFromLgbAndLga?inr=${inr}`)
}
export function queryByIdFromLgo(inr) {
return Api.post(`/service/lgb/queryByIdFromLgo?inr=${inr}`)
}
export function add(data) {
return Api.post("/service/lgb/add", data)
}
export function edit(data) {
return Api.post("/service/lgb/edit", data)
}
export function deleteById(inr) {
return Api.post(`/service/lgb/deleteById?inr=${inr}`)
}
import Api from "~/service/Api";
export function queryByPage(data) {
return Api.post("/service/ptm/queryByPage", data);
}
export function queryById(inr) {
return Api.post(`/service/ptm/queryById?inr=${inr}`)
}
export function queryDetailById(inr) {
return Api.post(`/service/ptm/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/service/ptm/add", data);
}
export function edit(data) {
return Api.post("/service/ptm/edit", data);
}
export function deleteById(data) {
return Api.post(`/service/ptm/deleteById`, { data });
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/tdh/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/service/tdh/queryById?inr=${inr}`)
}
export function queryDetailById(data) {
return Api.post(`/service/tdh/queryDetailById`, data)
}
export function add(data) {
return Api.post("/service/tdh/add", data)
}
export function edit(data) {
return Api.post("/service/tdh/edit", data)
}
export function deleteById(data) {
return Api.post(`/service/tdh/deleteById`, data)
}
export function queryYearList(data) {
return Api.post(`/service/tdh/queryYearList`, data)
}
export function queryCalList(data) {
return Api.post(`/service/tdh/queryCalList`, data)
}
\ No newline at end of file
......@@ -98,12 +98,13 @@ import Infbpd from "./Infbpd"
import Inftxm from "./Inftxm"
import Bctdav from "./Bctdav"
import Bctcan from "./Bctcan"
import Inffee from "./Inffee"
import Infbcd from "./Infbcd"
import Bdtcan from "./Bdtcan"
import Fctcan from "./Fctcan"
import Fctopn from "./Fctopn"
import Bttcan from "./Bttcan"
import Bttacc from "./Bttacc"
import Cltdav from "./Cltdav"
......@@ -270,6 +271,11 @@ import Dbfdel from "./Dbfdel"
import Dbfinf from "./Dbfinf"
//添加静态交易路由
import Infact from "~/views/Statics/Act/views/Infact";
import Dbiact from "~/views/Statics/Act/views/Dbiact";
import Dbaact from "~/views/Statics/Act/views/Dbaact";
import Dbeact from "~/views/Statics/Act/views/Dbeact";
import Dbdact from "~/views/Statics/Act/views/Dbdact";
import Infatp from "~/views/Statics/Atp/views/Infatp";
import Dbiatp from "~/views/Statics/Atp/views/Dbiatp";
......@@ -295,12 +301,28 @@ import Dbaoit from "~/views/Statics/Oit/views/Dbaoit"
import Dbdoit from "~/views/Statics/Oit/views/Dbdoit"
import Dbeoit from "~/views/Statics/Oit/views/Dbeoit"
import Infptm from "~/views/Statics/Ptm/views/Infptm"
import Dbiptm from "~/views/Statics/Ptm/views/Dbiptm"
import Dbeptm from "~/views/Statics/Ptm/views/Dbeptm"
import Inflgb from "~/views/Statics/Lgb/views/Inflgb"
import Dbilgb from "~/views/Statics/Lgb/views/Dbilgb"
import Dbalgb from "~/views/Statics/Lgb/views/Dbalgb"
import Dbdlgb from "~/views/Statics/Lgb/views/Dbdlgb"
import Dbelgb from "~/views/Statics/Lgb/views/Dbelgb"
import Infcur from "~/views/Statics/cur/views/Infcur";
import Dbacur from "~/views/Statics/cur/views/Dbacur";
import Dbicur from "~/views/Statics/cur/views/Dbicur";
import Dbecur from "~/views/Statics/cur/views/Dbecur";
import Dbdcur from "~/views/Statics/cur/views/Dbdcur";
import Inffee from "~/views/Statics/Fee/views/Inffee";
import Dbifee from "~/views/Statics/Fee/views/Dbifee";
import Dbafee from "~/views/Statics/Fee/views/Dbafee";
import Dbefee from "~/views/Statics/Fee/views/Dbefee";
import Dbdfee from "~/views/Statics/Fee/views/Dbdfee";
import Inffec from "~/views/Statics/Fec/views/Inffec";
import Dbifec from "~/views/Statics/Fec/views/Dbifec";
import Dbafec from "~/views/Statics/Fec/views/Dbafec";
......@@ -355,6 +377,12 @@ import Dbaxrt from "~/views/Statics/Xrt/views/Dbaxrt";
import Dbexrt from "~/views/Statics/Xrt/views/Dbexrt";
import Dbdxrt from "~/views/Statics/Xrt/views/Dbdxrt";
import Dbatdh from "~/views/Statics/Tdh/views/Dbatdh";
import Dbdtdh from "~/views/Statics/Tdh/views/Dbdtdh";
import Dbetdh from "~/views/Statics/Tdh/views/Dbetdh";
import Dbitdh from "~/views/Statics/Tdh/views/Dbitdh";
import Inftdh from "~/views/Statics/Tdh/views/Inftdh";
import Dbaswm from "~/views/Statics/Swm/views/Dbaswm";
import Dbdswm from "~/views/Statics/Swm/views/Dbdswm";
......@@ -508,7 +536,6 @@ const BusRouter = [
{ path: 'botcan', component: Botcan, name: 'Botcan', meta: { title: '出口托收闭卷' } },
{ path: 'inffec', component: Botset, name: 'Inffec', meta: { title: '费用条件查询' } },
{ path: 'inffee', component: Inffee, name: 'Inffee', meta: { title: '费用管理' } },
{ path: 'infptm', component: Botset, name: 'Infptm', meta: { title: '客户BIC查询' } },
{ path: 'infbcd', component: Infbcd, name: 'Infbcd', meta: { title: '进口代收查询' } },
{ path: 'bdtcan', component: Bdtcan, name: 'Bdtcan', meta: { title: '买方信用证单据注销' } },
{ path: 'ditdla', component: Ditdla, name: 'Ditdla', meta: { title: '买方信用证减额接受' } },
......@@ -648,11 +675,11 @@ const BusRouter = [
{ path: 'dzsys/:path', name: 'DzSys', meta: { title: (tag) => { return '电证 - ' + tag.params.title } } },
// { path: 'infact', component: Infact, name: 'StaticsInfact', meta: { title: '资金账户查询' } },
// { path: 'dbaact', component: Dbaact, name: 'StaticsDbaact', meta: { title: '资金账户新增' } },
// { path: 'dbiact/:inr', component: Dbiact, name: 'StaticsDbiact', meta: { title: (tag) => { return '资金账户详情: ' + tag.params.inr } } },
// { path: 'dbeact/:inr', component: Dbeact, name: 'StaticsDbeact', meta: { title: (tag) => { return '资金账户修改: ' + tag.params.inr } } },
// { path: 'dbdact/:inr', component: Dbdact, name: 'StaticsDbdact', meta: { title: (tag) => { return '资金账户删除: ' + tag.params.inr } } },
{ path: 'infact', component: Infact, name: 'StaticsInfact', meta: { title: '资金账户查询' } },
{ path: 'dbaact', component: Dbaact, name: 'StaticsDbaact', meta: { title: '资金账户新增' } },
{ path: 'dbiact/:inr', component: Dbiact, name: 'StaticsDbiact', meta: { title: (tag) => { return '资金账户详情: ' + tag.params.inr } } },
{ path: 'dbeact/:inr', component: Dbeact, name: 'StaticsDbeact', meta: { title: (tag) => { return '资金账户修改: ' + tag.params.inr } } },
{ path: 'dbdact/:inr', component: Dbdact, name: 'StaticsDbdact', meta: { title: (tag) => { return '资金账户删除: ' + tag.params.inr } } },
{ path: 'infoit', component: Infoit, name: 'StaticsInfoit', meta: { title: '查询消息信息' } },
{ path: 'dbaoit', component: Dbaoit, name: 'StaticsDbaoit', meta: { title: '新增消息信息' } },
......@@ -660,6 +687,10 @@ const BusRouter = [
{ path: 'dbeoit/:inr', component: Dbeoit, name: 'StaticsDbeoit', meta: { title: (tag) => { return '修改消息信息: ' + tag.params.inr } } },
{ path: 'dbdoit/:inr', component: Dbdoit, name: 'StaticsDbdoit', meta: { title: (tag) => { return '删除消息信息: ' + tag.params.inr } } },
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'infptm', component:Infptm, name: 'StaticsInfptm', meta: { title: '银行密押查询' } },
{ path: 'dbeptm/:inr', component: Dbeptm, name: 'StaticsDbeptm', meta: { title: (tag) => { return '银行密押更新: ' + tag.params.inr } } },
{ path: 'infatp', component: Infatp, name: 'StaticsInfatp', meta: { title: '交易配置信息查询' } },
{ path: 'dbaatp', component: Dbaatp, name: 'StaticsDbaatp', meta: { title: '交易配置信息新增' } },
......@@ -691,6 +722,12 @@ const BusRouter = [
{ path: 'dbedia/:inr', component: Dbedia, name: 'StaticsDbedia', meta: { title: (tag) => { return '交易备忘录修改: ' + tag.params.inr } } },
{ path: 'dbddia/:inr', component: Dbddia, name: 'StaticsDbddia', meta: { title: (tag) => { return '交易备忘录删除: ' + tag.params.inr } } },
{ path: 'inffee', component: Inffee, name: 'StaticsInffee', meta: { title: '费用代码查询' } },
{ path: 'dbafee', component: Dbafee, name: 'StaticsDbafee', meta: { title: '费用代码新增' } },
{ path: 'dbifee/:inr', component: Dbifee, name: 'StaticsDbifee', meta: { title: (tag) => { return '费用代码详情: ' + tag.params.inr } } },
{ path: 'dbefee/:inr', component: Dbefee, name: 'StaticsDbefee', meta: { title: (tag) => { return '费用代码修改: ' + tag.params.inr } } },
{ path: 'dbdfee/:inr', component: Dbdfee, name: 'StaticsDbdfee', meta: { title: (tag) => { return '费用代码删除: ' + tag.params.inr } } },
{ path: 'inffec', component: Inffec, name: 'StaticsInffec', meta: { title: '费率查询' } },
{ path: 'dbafec', component: Dbafec, name: 'StaticsDbafec', meta: { title: '费率新增' } },
{ path: 'dbifec/:inr', component: Dbifec, name: 'StaticsDbifec', meta: { title: (tag) => { return '费率详情: ' + tag.params.inr } } },
......@@ -739,6 +776,19 @@ const BusRouter = [
{ path: 'dbexrt/:inr', component: Dbexrt, name: 'StaticsDbexrt', meta: { title: (tag) => { return '牌价修改: ' + tag.params.inr } } },
{ path: 'dbdxrt/:inr', component: Dbdxrt, name: 'StaticsDbdxrt', meta: { title: (tag) => { return '牌价删除: ' + tag.params.inr } } },
{ path: 'inflgb', component: Inflgb, name: 'StaticsInflgb', meta: { title: '查询保函额度信息' } },
{ path: 'dbalgb', component: Dbalgb, name: 'StaticsDbalgb', meta: { title: '新增保函额度信息' } },
{ path: 'dbilgb/:inr', component: Dbilgb, name: 'StaticsDbilgb', meta: { title: (tag) => { return '查看保函额度详情信息: ' + tag.params.inr } } },
{ path: 'dbelgb/:inr', component: Dbelgb, name: 'StaticsDbelgb', meta: { title: (tag) => { return '修改保函额度信息: ' + tag.params.inr } } },
{ path: 'dbdlgb/:inr', component: Dbdlgb, name: 'StaticsDbdlgb', meta: { title: (tag) => { return '删除保函额度信息: ' + tag.params.inr } } },
{ path: 'inftdh', component: Inftdh, name: 'StaticsInftdh', meta: { title: '节假日信息查询' } },
{ path: 'dbitdh/:inr', component: Dbitdh, name: 'StaticsDbitdh', meta: { title: (tag) => { return '节假日信息详情: ' + tag.params.inr } } },
{ path: 'dbatdh', component: Dbatdh, name: 'StaticsDbatdh', meta: { title: '节假日新增' } },
{ path: 'dbetdh/:inr', component: Dbetdh, name: 'StaticsDbetdh', meta: { title: (tag) => { return '节假日修改: ' + tag.params.inr } } },
{ path: 'dbdtdh/:inr', component: Dbdtdh, name: 'StaticsDbdtdh', meta: { title: (tag) => { return '节假日删除: ' + tag.params.inr } } },
{ path: 'infety', component: Infety, name: 'StaticsInfety', meta: { title: '实体查询' } },
{ path: 'dbaety', component: Dbaety, name: 'StaticsDbaety', meta: { title: '实体新增' } },
{ path: 'dbiety/:inr', component: Dbiety, name: 'StaticsDbiety', meta: { title: (tag) => { return '查看实体详情信息: ' + tag.params.inr } } },
......
......@@ -194,6 +194,7 @@ export default {
{ inifrm: "infatp", ininam: "交易模式配置查询", pntmiu: "10" },
{ inifrm: "infbch", ininam: "机构信息查询", pntmiu: "10" },
{ inifrm: 'infoit', ininam: '消息信息查询OIT', pntmiu: '10' },
{ inifrm: 'infptm', ininam: '银行密押查询', pntmiu: '10' },
{ inifrm: "infcty", ininam: "国别信息查询", pntmiu: "10" },
{ inifrm: "infcur", ininam: "币种信息查询", pntmiu: "10" },
{ inifrm: "inffec", ininam: "费率信息查询", pntmiu: "10" },
......
export default class Act {
constructor() {
this.data = {
inr: "",
pri: "",
cur: "",
extkey: "",
seracc: "",
sernam: "",
serptytyp: "",
serptyinr: "",
holacc: "",
holnam: "",
holptytyp: "",
holptyinr: "",
cvrflg: "",
rmbflg: "",
delflg: "",
ver: "",
dirflg: "",
othbnkflg: "",
othptynam: "",
othownflg: "",
othbic6: "",
iban: "",
etgextkey: "",
nam: "",
exttyp: "",
typ: "",
extact: "",
trmtyp: "",
acctyp: "",
zmqacc: "",
actpro: "",
ptyExtkey:"",
ptyInr:"",
holPtyExtkey:"",
serPtyExtkey:"",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"pri": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"cur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"seracc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"sernam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"serptytyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"serptyinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"holacc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"holnam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"holptytyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"holptyinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cvrflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"rmbflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"delflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"dirflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"othbnkflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"othptynam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"othownflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"othbic6": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"iban": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"exttyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"typ": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"extact": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"trmtyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"acctyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"zmqacc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"actpro": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"ptyInr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"holPtyExtkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"serPtyExtkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"ptyExtkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
}
\ No newline at end of file
<template>
<m-act title="dbaact" type="add"></m-act>
</template>
<script>
import Dbiact from "~/views/Statics/Act/views/Dbiact";
export default {
name: "StaticsDbaact",
components: {
"m-act": Dbiact
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-act title="dbdact" type="delete"></m-act>
</template>
<script>
import Dbiact from "~/views/Statics/Act/views/Dbiact";
export default {
name: "StaticsDbdact",
components: {
"m-act": Dbiact
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-act title="dbeact" type="edit"></m-act>
</template>
<script>
import Dbiact from "~/views/Statics/Act/views/Dbiact";
export default {
name: "StaticsDbeact",
components: {
"m-act": Dbiact
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- =============================================左边=========================================== -->
<c-col :span="12" class="col-left">
<!-- <c-col :span="24">
<el-form-item label="inr" prop="inr">
<c-input
v-model="model.inr"
placeholder="请输入inr"
>
</c-input>
</el-form-item>
</c-col> -->
<c-col :span="24" v-if="model.serPtyExtkey=='' || model.serPtyExtkey==null" disabled>
<el-form-item label="holPtyExtkey" prop="holPtyExtkey">
<c-input v-model="model.holPtyExtkey" placeholder=""> </c-input>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.holPtyExtkey==''|| model.holPtyExtkey==null" disabled>
<el-form-item label="serPtyExtkey" prop="serPtyExtkey">
<c-input v-model="model.serPtyExtkey" placeholder=""> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号优先级" prop="pri">
<c-select style="width: 100%"
v-model="model.pri"
placeholder="请选择账号优先级"
:code="getCodesByKey('pri')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号币种" prop="cur">
<c-select v-model="model.cur" style="width: 100%" placeholder="请选择账号币种" :code="getCodesByKey('curtxt')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号" prop="extkey">
<c-input v-model="model.extkey" placeholder="请输入账号" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号提供机构的账号" prop="seracc">
<c-input v-model="model.seracc" placeholder="请输入账号提供机构的账号" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号提供机构名称" prop="sernam">
<c-input v-model="model.sernam" placeholder="请输入账号提供机构名称" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号提供机构种类" prop="serptytyp">
<c-select v-model="model.serptytyp" style="width: 100%" placeholder="请选择账号提供机构种类" :code="getCodesByKey('ptytyp')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号提供机构INR号" prop="serptyinr">
<c-input v-model="model.serptyinr" placeholder="请输入serptyinr" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号开户机构的账号" prop="holacc">
<c-input v-model="model.holacc" placeholder="请输入账号开户机构的账号" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号开户机构名称" prop="holnam">
<c-input v-model="model.holnam" placeholder="请输入账号开户机构名称" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号开户机构类型" prop="holptytyp">
<c-select v-model="model.holptytyp" style="width: 100%" placeholder="请选择账号开户机构类型" :code="getCodesByKey('ptytyp')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号开户机构INR号" prop="holptyinr">
<c-input v-model="model.holptyinr" placeholder="请输入holptyinr" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="头寸账户标志" prop="cvrflg">
<c-input v-model="model.cvrflg" placeholder="请输入头寸账户标志" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="偿付账户标志" prop="rmbflg">
<c-input v-model="model.rmbflg" placeholder="请输入偿付账户标志" > </c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="版本文本" prop="ver">
<c-input v-model="model.ver" placeholder="请输入ver" > </c-input>
</el-form-item>
</c-col> -->
</c-col>
<!-- =============================================右边=========================================== -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="借贷标志" prop="dirflg">
<c-select v-model="model.dirflg" style="width: 100%" placeholder="请输入借贷标志" >
<el-option
v-for="item in dirflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否账户行账号标志" prop="othbnkflg">
<c-input v-model="model.othbnkflg" placeholder="请输入othbnkflg" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户行名称" prop="othptynam">
<c-input v-model="model.othptynam" placeholder="请输入账户行名称" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否我方账户行标志" prop="othownflg">
<c-input v-model="model.othownflg" placeholder="请输入othownflg" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户行的6位BIC" prop="othbic6">
<c-input v-model="model.othbic6" placeholder="请输入账户行的6位BIC" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="国际银行账户号" prop="iban">
<c-input v-model="model.iban" placeholder="请输入国际银行账户号" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体组" prop="etgextkey">
<c-input v-model="model.etgextkey" placeholder="请输入实体组" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号名称" prop="nam">
<c-input v-model="model.nam" placeholder="请输入账号名称" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="外部账号类型" prop="exttyp">
<c-input v-model="model.exttyp" placeholder="请输入外部账号类型" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号类型" prop="typ">
<c-select style="width: 100%"
v-model="model.typ"
placeholder="请选择账号类型"
:code="getCodesByKey('acttyp')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="外部账号" prop="extact">
<c-input v-model="model.extact" placeholder="请输入外部账号" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="科目代码" prop="trmtyp">
<c-input v-model="model.trmtyp" placeholder="请输入科目代码" >
</c-input>
<!-- :code="getCodesByKey('trmmix')" td上看码表-->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户类型" prop="acctyp">
<c-select v-model="model.acctyp" style="width: 100%" placeholder="请选择账户类型" >
<el-option
v-for="item in acctyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="zmqacc" prop="zmqacc">
<c-input v-model="model.zmqacc" placeholder="请输入zmqacc" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="actpro" prop="actpro">
<c-input v-model="model.actpro" placeholder="请输入actpro" > </c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: '',
props: ['model'],
data() {
return {
acctyp: [
{ label: "客户分户账", value: "C" },
{ label: "内部分户账", value: "O" },
],
dirflg: [
{ label: "可以借记或贷记", value: " " },
{ label: "只能贷记", value: "C" },
{ label: "只能借记", value: "D" },
],
}
},
mounted() {},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
}
</script>
<style></style>
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="150px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="act">
<c-content>
<m-act-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>删 除</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Act, { Pattern } from "../../model/Act.js";
import ActInfo from "./ActInfo.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/act.js";
export default {
name: "StaticsDbiact",
components: {
"m-act-info": ActInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiact"
}
},
data() {
return {
model: new Act().data,
tabVal: "act",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("资金账户不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infpty的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfact", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- 参照TD上infxxx,如infpty/infact交易的search panel面板,对应布局查询条件字段 -->
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<!-- Account No. -->
<el-form-item label="资金账号" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入资金账号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- Holding Party -->
<el-form-item label="客户账户" prop="ptyExtkey">
<c-input
v-model="model.ptyExtkey"
placeholder="请输入客户账户"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号类型" prop="typ">
<c-select
v-model="model.typ"
placeholder="请选择账号类型"
style="width: 100%"
:code="getCodesByKey('recgrptyp')"
></c-select>
</el-form-item>
</c-col>
</c-col>
<!-- =========================------------- 右 ----------======================= -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="账号名称" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入账号名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="国际银行账户号 " prop="iban">
<c-input
v-model="model.iban"
maxlength="34"
placeholder="请输入国际银行账户号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号币种" prop="cur">
<c-select
v-model="model.cur"
style="width: 100%"
placeholder="请选择账号币种"
:code="getCodesByKey('infled_Cur')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="actAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="actData"
:columns="actColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="actInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="actEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="actDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/act.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
actData: [],
actColumns: [
{ label: 'HolPtyExtkey', prop: 'holPtyExtkey', width: '200' },
{ label: 'SerPtyExtkey', prop: 'serPtyExtkey', width: '200' },
{ label: '账号名称', prop: 'nam', width: '200' },
{ label: '账号类型', prop: 'typ', width: '100' },
{ label: '账号币种', prop: 'cur', width: '100' },
{ label: '资金账号', prop: 'extkey', width: '200' },
{ label: '账号开户机构的账号', prop: 'holacc', width: '200' },
{ label: '账号提供机构的账号', prop: 'seracc', width: '200' },
{ label: '客户账户', prop: 'serPtyExtkey', width: '200' },
{ label: '国际银行账户号', prop: 'iban', width: '200' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfactSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfactSearch();
},
onInfactSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.actData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInfactSearch()
},
getCodesByKey(key) {
return codes[key] ?? [];
},
actAdd() {
this.$router.push(`/statics/dbaact`)
},
actInfo(index, row) {
this.$router.push(`/statics/dbiact/${row.inr}`)
},
actEdit(index, row) {
this.$router.push(`/statics/dbeact/${row.inr}`)
},
actDelete(index, row) {
this.$router.push(`/statics/dbdact/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}</style>
<template>
<div class="eContainer">
<c-page title="资金账户信息查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="资金账户查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfact",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// act,查询条件的字段
extkey: "",
nam: "",
iban: "",
typ: "",
cur: "",
ptyExtkey:"",
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
export default class Pty {
constructor() {
this.data = {
inr :"",
cod :"",
sftcod :"",
rol :"",
incflg :"",
staflg :"",
vatflg :"",
acc :"",
accacr :"",
eno :"",
reltir :"",
grpcod :"",
ver :"",
dscmodflg :"",
reltrn :"",
begdat :"",
enddat :"",
dtacod :"",
etgextkey :"",
taxacc :"",
taxflg :""
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符","trigger": "blur" }
],
"sftcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符","trigger": "blur" }
],
"rol": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符","trigger": "blur" }
],
"incflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"staflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"vatflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"vatflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"acc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"accacr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"eno": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"reltir": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"grpcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"dscmodflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"reltrn": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"dtacod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度40个字符", "trigger": "blur" }
],
"taxacc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度40个字符", "trigger": "blur" }
],
"taxflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度40个字符", "trigger": "blur" }
]
}
<template>
<m-fee ref="fee" title="dbafee" type="add"></m-fee>
</template>
<script>
import Dbifee from "../Dbifee";
export default {
name: "StaticsDbafee",
components: {
"m-fee": Dbifee
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-fee title="dbdfee" type="delete"></m-fee>
</template>
<script>
import Dbifee from "../Dbifee";
export default {
name: "StaticsDbdfee",
components: {
"m-fee": Dbifee
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-fee title="dbefee" type="edit"></m-fee>
</template>
<script>
import Dbifee from "../Dbifee";
export default {
name: "StaticsDbefee",
components: {
"m-fee": Dbifee
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="费用代码" prop="cod">
<!-- <c-select
style="width: 100%"
v-model="model.cod"
placeholder="请选择费用代码"
:code="getCodesByKey('feecod3')"
>
</c-select> -->
<c-input v-model="model.cod" placeholder="请输入费用代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="计算费用相关的金额类型" prop="reltir">
<c-select
style="width: 100%"
v-model="model.reltir"
placeholder="请选择计算费用相关的金额类型"
:code="getCodesByKey('calcbs')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="SWIFT报文费用代码" prop="sftcod">
<c-select
style="width: 100%"
v-model="model.sftcod"
placeholder="请选择SWIFT报文费用代码"
:code="getCodesByKey('swtcod')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="DTA报文中的费用代码" prop="dtacod">
<c-select
style="width: 100%"
v-model="model.dtacod"
placeholder="请选择DTA报文中的费用代码"
:code="getCodesByKey('dtacod')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="统计标志" prop="staflg">
<c-select
style="width: 100%"
v-model="model.staflg"
placeholder="请选择统计标志"
:code="getCodesByKey('staflgFee')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否计入收费标志" prop="incflgFee">
<c-select style="width: 100%"
v-model="model.incflg"
:code="getCodesByKey('incflgFee')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="默认付费角色" prop="rol">
<c-select
style="width: 100%"
v-model="model.rol"
placeholder="请选择默认付费角色"
:code="getCodesByKey('rol')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="费用账号" prop="acc">
<c-input v-model="model.acc" placeholder="请输入费用账号"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="费用描述是否允许修改" prop="dscmodflg">
<c-select style="width: 100%"
v-model="model.dscmodflg"
:code="getCodesByKey('dscmodflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="计提摊销账号" prop="accacr">
<c-input v-model="model.accacr" placeholder="请输入计提摊销账号">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="相关的交易名称或者业务品种" prop="reltrn">
<c-input v-model="model.reltrn" maxlength="40" placeholder="请输入相关的交易名称或者业务品种"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="费用生效日期" prop="begdat">
<c-date-picker type="date" v-model="model.begdat" style="width:100%" placeholder="请选择开始日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="费用失效日期" prop="enddat">
<c-date-picker type="date" v-model="model.enddat" style="width:100%" placeholder="请选择结束日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="费用组代码" prop="grpcod">
<c-select
v-model="model.grpcod"
style="width:100%"
placeholder="请选择费用组代码"
:code="getCodesByKey('grpcod')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="价税分离标志" prop="taxflg" placeholder="是/否">
<c-select
style="width: 100%"
v-model="model.taxflg"
:code="getCodesByKey('taxflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="税则账号" prop="taxacc">
<c-input v-model="model.taxacc" maxlength="34" placeholder="请输入税则账号"></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="160px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="fee">
<c-content>
<m-fee-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Fee, { Pattern } from "~/views/Statics/Fee/model/Fee.js";
import FeeInfo from "./FeeInfo.vue"
// import PtyInfo from "./PtyInfo.vue";
// import AdrList from "./AdrList.vue";
// import ActInfo from "./ActInfo.vue";
// import PtcInfo from "./PtcInfo.vue";
// import RatInfo from "./RatInfo.vue";
import { queryById, add, edit, deleteById } from "~/service/test/fee.js";
export default {
name: "StaticsDbifee",
components: {
"m-fee-info": FeeInfo,
// "m-adr-list": AdrList,
// "m-act-info": ActInfo,
// "m-ptc-info": PtcInfo,
// "m-rat-info": RatInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbifee"
}
},
data() {
return {
model: new Fee().data,
tabVal: "fee",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
const data = {"inr":inr}
queryById(data).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("客户不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const data = {"inr":this.model.inr}
deleteById(data)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新inffee的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInffee", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="费用代码" prop="cod">
<c-input
v-model="model.cod"
placeholder="请输入费用代码"
style="width: 100%"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="名称" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入名称"
style="width: 100%"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="feeAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="feeData"
:columns="feeColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="feeInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="feeEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="feeDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/fee.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
feeData: [],
feeColumns: [
{ label: '费用代码', prop: 'cod', width: '120' },
{ label: '名称', prop: 'descrp', width: '120' },
{ label: '计算费用相关的金额类型', prop: 'reltir', width: '190' },
{ label: 'SWIFT报文费用代码', prop: 'sftcod', width: '170' },
{ label: 'DTA报文中的费用代码', prop: 'dtacod', width: '170' },
{ label: '统计标志', prop: 'staflg', width: '120' },
{ label: '默认付费角色', prop: 'rol', width: '170' },
{ label: '费用账号', prop: 'acc', width: '120' }
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInffeeSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInffeeSearch();
},
onInffeeSearch() {
var objectArr = codes['fepfeecod'];
var map = new Map();
for(let i =0;i<objectArr.length;i++){
map.set(objectArr[i].value,objectArr[i].label);
}
var feeList = [];
if(!this.model.cod&&this.model.nam){
for(var fee of map){
if(fee[1].includes(this.model.nam)){
feeList.push(fee[0])
}
}
}
if(this.model.cod&&this.model.nam){
for(var fee of map){
if(fee[0].includes(this.model.cod)&&fee[1].includes(this.model.nam)){
feeList.push(fee[0])
}
}
}
this.model.feelist = feeList;
this.model.etgextkey = 'CEBGRP';
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list;
this.feeData = list;
for(let i =0;i<list.length;i++){
this.feeData[i].descrp = map.get(this.feeData[i].cod)
}
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
this.model.feelist=[];
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInffeeSearch()
},
feetypeChange(val) {
this.model.feetyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
feeAdd() {
this.$router.push(`/statics/dbafee`)
},
feeInfo(index, row) {
this.$router.push(`/statics/dbifee/${row.inr}`)
},
feeEdit(index, row) {
this.$router.push(`/statics/dbefee/${row.inr}`)
},
feeDelete(index, row) {
this.$router.push(`/statics/dbdfee/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}</style>
<template>
<div class="eContainer">
<c-page title="费用代码信息查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="费用查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInffee",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
cod:"",
nam:"",
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
export default class Lgb {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
typ: "",
cur: "",
amt: "",
sta: "",
expdat: "",
usecur: "",
useamt: "",
naccur: "",
nacamt: "",
}
}
}
export const Pattern = {
//pty
"extkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"nam": [
{ "type": "string", "trigger": "blur" },
{ "max": 44, "message": "最大长度44个字符", "trigger": "blur" }
],
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
//lgb
"cur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"amt": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"sta": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"expdat": [
{ "type": "string", "trigger": "blur" }
],
"typ": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
//lga
"usecur": [
{ "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"useamt": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"naccur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"nacamt": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
]
}
<template>
<m-lgb title="dbalgb" type="add"></m-lgb>
</template>
<script>
import Dbilgb from "../Dbilgb";
export default {
name: "StaticsDbalgb",
components: {
"m-lgb": Dbilgb
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-lgb title="dbalgb" type="delete"></m-lgb>
</template>
<script>
import Dbilgb from "../Dbilgb";
export default {
name: "StaticsDbdlgb",
components: {
"m-lgb": Dbilgb
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-lgb title="dbalgb" type="edit"></m-lgb>
</template>
<script>
import Dbilgb from "../Dbilgb";
export default {
name: "StaticsDbelgb",
components: {
"m-lgb": Dbilgb
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="保函额度品种" prop="sealsntyp">
<c-select style="width: 100%"
v-model="model.sealsntyp"
placeholder="请选择保函额度品种"
:code="getCodesByKey('sealsntyp')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-row>
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item
label="客户号"
prop="extkey"
style="width: 100%"
>
<c-input
v-model="model.extkey"
maxlength="40"
placeholder="请输入客户号"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<c-form-item label="客户名称" prop="nam">
<c-input
v-model="model.nam"
maxlength="40"
placeholder="请输入客户名称"
></c-input>
</c-form-item>
</c-col>
</c-col>
</c-row>
<!---------------左------------------->
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<c-form-item label="总额度类型" prop="typ">
<c-select
v-model="model.typ"
maxlength="40"
placeholder="请输入总额度类型"
:code="getCodesByKey('lgbtyp')"
></c-select>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="总额度状态" prop="sta">
<c-select
v-model="model.sta"
maxlength="40"
placeholder="请输入总额度状态"
:code="getCodesByKey('lgbsta')"
></c-select>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="总额度到期时间" prop="expdat">
<c-date-picker
v-model="model.expdat"
maxlength="40"
placeholder="请输入总额度到期时间"
></c-date-picker>
</c-form-item>
</c-col>
</c-col>
<!-------------------右 --------------------->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="总额度" prop="cur">
<c-select
v-model="model.cur"
maxlength="3"
style="width: 100%"
placeholder="请输入总额度币种"
:code="getCodesByKey('curtxt1')"
></c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="amt"
>
<c-input-currency
v-model="model.amt"
style="text-align: left; width: 90%"
placeholder="请输入总额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="已使用额度" prop="usecur">
<c-input
v-model="model.usecur"
maxlength="3"
style="width: 100%"
placeholder="请输入已使用额度币种"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="useamt"
>
<c-input-currency
v-model="model.useamt"
style="text-align: left; width: 90%"
placeholder="请输入已使用额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="可使用额度" prop="opncur">
<c-input
v-model="model.opncur"
maxlength="3"
style="width: 100%"
placeholder="请输入可使用额度币种"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="opnamt"
>
<c-input-currency
v-model="model.opnamt"
style="text-align: left; width: 90%"
placeholder="请输入可使用额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="待复核额度" prop="naccur">
<c-input
v-model="model.naccur"
maxlength="3"
style="width: 100%"
placeholder="请输入待复核额度币种"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="nacamt"
>
<c-input-currency
v-model="model.nacamt"
style="text-align: left; width: 90%"
placeholder="请输入待复核额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
</c-col>
</c-row>
<!-- lgo表查询结果展示区域 -->
<c-col :span="24">
<c-paging-table
:data="lgoVoData1"
:columns="lgoVoColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "@/config/CodeTable";
export default {
name: "",
inject: ["root"],
props: {
model:Object,
lgoVoData:Array
},
data() {
return {
lgoVoColumns: [
{ label: 'ownref', prop: 'ownref', width: 'auto' },
{ label: 'objtyp', prop: 'objtyp', width: 'auto' },
{ label: 'objinr', prop: 'objinr', width: 'auto' },
{ label: 'cur', prop: 'cur', width: 'auto' },
{ label: 'amt', prop: 'amt', width: 'auto' },
{ label: 'xrfcur', prop: 'xrfcur', width: 'auto' },
{ label: 'xrfamt', prop: 'xrfamt', width: 'auto' },
{ label: 'rate', prop: 'rate', width: 'auto' },
{ label: 'pending', prop: 'pending', width: 'auto' },
],
};
},
methods: {
getCodesByKey(key) {
// console.log(this.lgoVoData)
this.lgoVoData1=this.lgoVoData
// console.log(this.lgoVoData1)
return codes[key] ?? [];
},
queryFunc(){}
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="150px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="lgb">
<c-content>
<m-lgb-info :model="model" :lgoVoData="lgoVoData"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Lgb, { Pattern } from "~/views/Statics/Lgb/model/Lgb.js";
import LgbInfo from "./LgbInfo.vue";
import { queryByIdFromLgbAndLga,queryByIdFromLgo,add, edit, deleteById } from "~/service/test/lgb.js";
export default {
name: "StaticsDbilgb",
components: {
"m-lgb-info": LgbInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbilgb"
}
},
data() {
return {
model: new Lgb().data,
tabVal: "lgb",
rules: Pattern,
lgoVoData:[]
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
console.log(inr)
queryByIdFromLgo(inr).then((res) => {
const list = res
this.lgoVoData = list
console.log(this.lgoVoData )
});
queryByIdFromLgbAndLga(inr).then((res) => {
const list = res
this.model = list;
});
}
if(this.type === "add"){
this.model.extkey= "EVERCNBJXXX"
this.model.nam="CHINA EVERBRIGHT BANK"
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infpty的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInflgb", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="保函额度查询">
<el-form
:model="model"
ref="modelForm"
label-width="140px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="保函额度查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInflgb",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// 保函额度品种
sealsntyp: "",
//客户号
extkey: "",
//客户名称
nam: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -49,7 +49,7 @@
<script>
import Utils from '~/utils'
import Oit, { Pattern } from '../../model/Oit.js'
import Oit, { Pattern } from '../../model/Oit'
// import Bchp0 from "./Bchp0.vue";
import OitInfo from './OitInfo.vue'
......
export default class Ptm {
constructor() {
this.data = {
inr: "",
ptainr: "",
cortyp: "",
coradr: "",
autflg: "",
autdet: "",
ver: "",
etyextkey: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"ptainr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cortyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"coradr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
"autflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"autdet": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
}
\ No newline at end of file
<template>
<m-ptm title="dbaptm" type="add"></m-ptm>
</template>
<script>
import Dbiptm from '~/views/Statics/Ptm/views/Dbiptm'
export default {
name: 'StaticsDbdptm',
components: {
'm-ptm': Dbiptm,
},
data() {
return {}
},
}
</script>
<style></style>
\ No newline at end of file
<template>
<m-ptm title="dbdptm" type="delete"></m-ptm>
</template>
<script>
import Dbiptm from '~/views/Statics/Ptm/views/Dbiptm'
export default {
name: 'StaticsDbdptm',
components: {
'm-ptm': Dbiptm,
},
data() {
return {}
},
}
</script>
<style></style>
<template>
<m-ptm ref="ptm" title="dbeptm" type="edit"></m-ptm>
</template>
<script>
import Dbiptm from "~/views/Statics/Ptm/views/Dbiptm";
export default {
name: "StaticsDbeptm",
components: {
"m-ptm": Dbiptm
},
data() {
return {
rules:{required:false}
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="ID号" prop="inr">
<c-input v-model="model.inr" placeholder="请输入ID号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联地址" prop="ptainr">
<c-input v-model="model.ptainr" placeholder="请输入关联地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="类型" prop="cortyp">
<c-input v-model="model.cortyp" placeholder="请输入类型"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" prop="coradr">
<c-input v-model="model.coradr" placeholder="请输入BIC"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="验证标志" prop="autflg">
<c-input v-model="model.autflg" placeholder="请输入验证标志"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="可选的验证关键字" prop="autdet">
<c-input v-model="model.autdet" placeholder="请输入可选的验证关键字"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="版本控制" prop="ver">
<c-input v-model="model.ver" placeholder="请输入版本控制"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联实体拥有的PTM" prop="etyextkey">
<c-input v-model="model.etyextkey" placeholder="请输入关联实体拥有的PTM">
</c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="160px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="ptm">
<c-content>
<m-ptm-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Ptm, { Pattern } from "../../model/ptm.js";
import PtmInfo from "./PtmInfo.vue";
import { add, edit, deleteById, queryDetailById,queryById} from "~/service/test/ptm.js";
export default {
name: "StaticsDbiptm",
components: {
"m-ptm-info": PtmInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiptm"
}
},
data() {
return {
model: new Ptm().data,
tabVal: "ptm",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
// this.model.inr = this.$route.params.inr;
console.log(inr);
queryById(inr).then((res) => {
debugger
if (res.inr) {
this.model = res;
} else {
this.$message.error("不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infptm的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfptm", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- 查询条件 -->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="ID号" prop="inr">
<c-input v-model="model.inr" placeholder="请输入ID号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联地址" prop="ptainr">
<c-input v-model="model.ptainr" placeholder="请输入关联地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="类型" prop="cortyp">
<c-input v-model="model.cortyp" placeholder="请输入类型"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" prop="coradr">
<c-input v-model="model.coradr" placeholder="请输入BIC"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="验证标志" prop="autflg">
<c-input v-model="model.autflg" placeholder="请输入验证标志"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="可选的验证关键字" prop="autdet">
<c-input v-model="model.autdet" placeholder="请输入可选的验证关键字"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="版本控制" prop="ver">
<c-input v-model="model.ver" placeholder="请输入版本控制"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联实体拥有的PTM" prop="etyextkey">
<c-input v-model="model.etyextkey" placeholder="请输入关联实体拥有的PTM">
</c-input>
</el-form-item>
</c-col>
</c-col>
<!-- 操作按钮 -->
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="ptmAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch"
>查询
</el-button>
</c-col>
</c-col>
<!-- 查询结果 -->
<c-col :span="24">
<c-paging-table
:data="ptmData"
:columns="ptmColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="ptmInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="ptmEdit(scope.$index, scope.row)"
>更新</c-button
>
<!--
<c-button
size="small"
style="margin-left: 5px"
@click="ptmDelete(scope.$index, scope.row)"
>删除</c-button
> -->
<!-- <el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover> -->
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import { queryByPage } from "~/service/test/ptm.js";
import CodeTable from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
entyGrp: [],
lang: CodeTable["uiltxt"],
ptmData: [],
ptmColumns: [
{ label: "ID号", prop: "inr", width: "120" },
{ label: "关联地址", prop: "ptainr", width: "120" },
{ label: "类型", prop: "cortyp", width: "120" },
{ label: "BIC", prop: "coradr", width: "120" },
{ label: "验证标志", prop: "autflg", width: "120" },
{ label: "可选的验证关键字", prop: "autdet", width: "150" },
{ label: "版本控制", prop: "ver", width: "120" },
{ label: "关联实体拥有的PTM", prop: "etyextkey", width: "170" },
],
};
},
activated() {
const { update } = this.$route.params;
if (update) {
this.onInfptmSearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfptmSearch();
},
langValue(key) {
return this.lang.filter((item) => item.value === key)[0]?.label;
},
onInfptmSearch() {
queryByPage(this.model).then((res) => {
const list = res.list ?? [];
list.map((item) => (item.uil = this.langValue(item.uil) ?? item.uil));
this.ptmData = list;
this.model.pageNum = res.pageNumber;
this.model.pageSize = res.pageSize;
this.model.total = res.total;
});
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
this.onInfptmSearch();
},
ptmAdd() {
this.$router.push(`/statics/dbaptm`);
},
ptmInfo(index, row) {
this.$router.push(`/statics/dbiptm/${row.inr}`);
},
ptmEdit(index, row) {
this.$router.push(`/statics/dbeptm/${row.inr}`);
},
ptmDelete(index, row) {
this.$router.push(`/statics/dbdptm/${row.inr}`);
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<c-page title="固定格式文本查询">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="固定格式文本查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfptm",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
etgextkey: "",
nam: "",
uil: "",
pageSize: 5,
pageNum: 1,
total: 0,
},
};
},
};
</script>
<style>
</style>
......@@ -14,6 +14,12 @@ import Dbiusr from "./Dbiusr";
import Dbeusr from "./Dbeusr";
import Dbdusr from "./Dbdusr";
import Dbatdh from "./Tdh/views/Dbatdh";
import Dbdtdh from "./Tdh/views/Dbdtdh";
import Dbetdh from "./Tdh/views/Dbetdh";
import Dbitdh from "./Tdh/views/Dbitdh";
import Inftdh from "./Tdh/views/Inftdh";
import Infcty from "./cty/views/Infcty";
import Dbicty from "./cty/views/Dbicty";
import Dbacty from "./cty/views/Dbacty";
......@@ -38,6 +44,10 @@ import Dbaoit from "./Oit/views/Dbaoit"
import Dbdoit from "./Oit/views/Dbdoit"
import Dbeoit from "./Oit/views/Dbeoit"
import Infptm from "./Ptm/views/Infptm"
import Dbiptm from "./Ptm/views/Dbiptm"
import Dbeptm from "./Ptm/views/Dbeptm"
import Dbaswm from "./Swm/views/Dbaswm";
import Dbdswm from "./Swm/views/Dbdswm";
import Dbeswm from "./Swm/views/Dbeswm";
......@@ -45,9 +55,17 @@ import Dbiswm from "./Swm/views/Dbiswm";
import Infswm from "./Swm/views/Infswm";
import Inflgb from "./Lgb/views/Inflgb"
import Dbilgb from "./Lgb/views/Dbilgb"
import Dbalgb from "./Lgb/views/Dbalgb"
import Dbdlgb from "./Lgb/views/Dbdlgb"
import Dbelgb from "./Lgb/views/Dbelgb"
import Inffee from "./Fee/views/Inffee";
import Dbifee from "./Fee/views/Dbifee";
import Dbafee from "./Fee/views/Dbafee";
import Dbefee from "./Fee/views/Dbefee";
import Dbdfee from "./Fee/views/Dbdfee";
// import Infcty from "./Infcty";
// import Dbicty from "./Dbicty";
// import Dbacty from "./Dbacty";
......@@ -78,6 +96,12 @@ import Dbabch from "./Dbabch";
import Dbebch from "./Dbebch";
import Dbdbch from "./Dbdbch";
import Infact from "./Act/views/Infact";
import Dbaact from "./Act/views/Dbaact";
import Dbiact from "./Act/views/Dbiact";
import Dbeact from "./Act/views/Dbeact";
import Dbdact from "./Act/views/Dbdact";
import Infatp from "./Atp/views/Infatp";
import Dbiatp from "./Atp/views/Dbiatp";
import Dbaatp from "./Atp/views/Dbaatp";
......@@ -163,11 +187,11 @@ const StaticsRouter = [
{ path: 'dbdatp/:inr', component: Dbdatp, name: 'StaticsDbdatp', meta: { title: (tag) => { return '客户删除: ' + tag.params.inr } } },
{ path: 'dbiatp/:inr', component: Dbiatp, name: 'StaticsDbiatp', meta: { title: (tag) => { return '交易配置信息详情: ' + tag.params.inr } } },
// { path: 'infact', component: Infact, name: 'StaticsInfact', meta: { title: '资金账户查询' } },
// { path: 'dbaact', component: Dbaact, name: 'StaticsDbaact', meta: { title: '资金账户新增' } },
// { path: 'dbiact/:inr', component: Dbiact, name: 'StaticsDbiact', meta: { title: (tag) => { return '资金账户详情: ' + tag.params.inr } } },
// { path: 'dbeact/:inr', component: Dbeact, name: 'StaticsDbeact', meta: { title: (tag) => { return '资金账户修改: ' + tag.params.inr } } },
// { path: 'dbdact/:inr', component: Dbdact, name: 'StaticsDbdact', meta: { title: (tag) => { return '资金账户删除: ' + tag.params.inr } } },
{ path: 'infact', component: Infact, name: 'StaticsInfact', meta: { title: '资金账户查询' } },
{ path: 'dbaact', component: Dbaact, name: 'StaticsDbaact', meta: { title: '资金账户新增' } },
{ path: 'dbiact/:inr', component: Dbiact, name: 'StaticsDbiact', meta: { title: (tag) => { return '资金账户详情: ' + tag.params.inr } } },
{ path: 'dbeact/:inr', component: Dbeact, name: 'StaticsDbeact', meta: { title: (tag) => { return '资金账户修改: ' + tag.params.inr } } },
{ path: 'dbdact/:inr', component: Dbdact, name: 'StaticsDbdact', meta: { title: (tag) => { return '资金账户删除: ' + tag.params.inr } } },
{ path: 'infatx', component: Infatx, name: 'StaticsInfatx', meta: { title: '保函文本查询' } },
{ path: 'dbaatx', component: Dbaatx, name: 'StaticsDbaatx', meta: { title: '保函文本新增' } },
......@@ -187,6 +211,12 @@ const StaticsRouter = [
{ path: 'dbeoit/:inr', component: Dbeoit, name: 'StaticsDbeoit', meta: { title: (tag) => { return '修改消息信息: ' + tag.params.inr } } },
{ path: 'dbdoit/:inr', component: Dbdoit, name: 'StaticsDbdoit', meta: { title: (tag) => { return '删除消息信息: ' + tag.params.inr } } },
{ path: 'inffee', component: Inffee, name: 'StaticsInffee', meta: { title: '费用代码查询' } },
{ path: 'dbafee', component: Dbafee, name: 'StaticsDbafee', meta: { title: '费用代码新增' } },
{ path: 'dbifee/:inr', component: Dbifee, name: 'StaticsDbifee', meta: { title: (tag) => { return '费用代码详情: ' + tag.params.inr } } },
{ path: 'dbefee/:inr', component: Dbefee, name: 'StaticsDbefee', meta: { title: (tag) => { return '费用代码修改: ' + tag.params.inr } } },
{ path: 'dbdfee/:inr', component: Dbdfee, name: 'StaticsDbdfee', meta: { title: (tag) => { return '费用代码删除: ' + tag.params.inr } } },
{ path: 'infxrt', component: Infxrt, name: 'StaticsInfxrt', meta: { title: '牌价查询' } },
{ path: 'dblxrt/:inr', component: Dblxrt, name: 'StaticsDblxrt', meta: { title: (tag) => { return '牌价详情: ' + tag.params.inr } } },
......@@ -194,6 +224,10 @@ const StaticsRouter = [
{ path: 'dbexrt/:inr', component: Dbexrt, name: 'StaticsDbexrt', meta: { title: (tag) => { return '牌价修改: ' + tag.params.inr } } },
{ path: 'dbdxrt/:inr', component: Dbdxrt, name: 'StaticsDbdxrt', meta: { title: (tag) => { return '牌价删除: ' + tag.params.inr } } },
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'infptm', component:Infptm, name: 'StaticsInfptm', meta: { title: '银行密押查询' } },
{ path: 'dbeptm/:inr', component: Dbeptm, name: 'StaticsDbeptm', meta: { title: (tag) => { return '银行密押更新: ' + tag.params.inr } } },
{ path: 'inffec', component: Inffec, name: 'StaticsInffec', meta: { title: '费率查询' } },
{ path: 'dbafec', component: Dbafec, name: 'StaticsDbafec', meta: { title: '费率新增' } },
{ path: 'dbifec/:inr', component: Dbifec, name: 'StaticsDbifec', meta: { title: (tag) => { return '费率详情: ' + tag.params.inr } } },
......@@ -220,6 +254,19 @@ const StaticsRouter = [
{ path: 'dbefec/:inr', component: Dbefec, name: 'StaticsDbefec', meta: { title: (tag) => { return '费率修改: ' + tag.params.inr } } },
{ path: 'dbdfec/:inr', component: Dbdfec, name: 'StaticsDbdfec', meta: { title: (tag) => { return '费率删除: ' + tag.params.inr } } },
{ path: 'inflgb', component: Inflgb, name: 'StaticsInflgb', meta: { title: '查询保函额度信息' } },
{ path: 'dbalgb', component: Dbalgb, name: 'StaticsDbalgb', meta: { title: '新增保函额度信息' } },
{ path: 'dbilgb/:inr', component: Dbilgb, name: 'StaticsDbilgb', meta: { title: (tag) => { return '查看保函额度详情信息: ' + tag.params.inr } } },
{ path: 'dbelgb/:inr', component: Dbelgb, name: 'StaticsDbelgb', meta: { title: (tag) => { return '修改保函额度信息: ' + tag.params.inr } } },
{ path: 'dbdlgb/:inr', component: Dbdlgb, name: 'StaticsDbdlgb', meta: { title: (tag) => { return '删除保函额度信息: ' + tag.params.inr } } },
{ path: 'inftdh', component: Inftdh, name: 'StaticsInftdh', meta: { title: '节假日信息查询' } },
{ path: 'dbitdh/:inr', component: Dbitdh, name: 'StaticsDbitdh', meta: { title: (tag) => { return '节假日信息详情: ' + tag.params.inr } } },
{ path: 'dbatdh', component: Dbatdh, name: 'StaticsDbatdh', meta: { title: '节假日新增' } },
{ path: 'dbetdh/:inr', component: Dbetdh, name: 'StaticsDbetdh', meta: { title: (tag) => { return '节假日修改: ' + tag.params.inr } } },
{ path: 'dbdtdh/:inr', component: Dbdtdh, name: 'StaticsDbdtdh', meta: { title: (tag) => { return '节假日删除: ' + tag.params.inr } } },
{ path: 'infety', component: Infety, name: 'StaticsInfety', meta: { title: '实体查询' } },
{ path: 'dbaety', component: Dbaety, name: 'StaticsDbaety', meta: { title: '实体新增' } },
{ path: 'dbiety/:inr', component: Dbiety, name: 'StaticsDbiety', meta: { title: (tag) => { return '查看实体详情信息: ' + tag.params.inr } } },
......
export default class Tdh {
constructor() {
this.data = {
inr: "",
calyear: "",
calendarName: "",
calendar: "",
ver: "",
dat: "",
dateday: "",
}
}
}
export const Pattern = {
"dat": [
{ "required": true, "message": "必输项", "type": "date", "trigger": "blur" },
],
"calendar": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
],
"dateday": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
],
"calendarname": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
],
}
<template>
<m-tdh title="dbatdh" type="add"></m-tdh>
</template>
<script>
import Dbitdh from "~/views/Statics/Tdh/views/Dbitdh";
export default {
name: "StaticsDbatdh",
components: {
"m-tdh": Dbitdh
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-tdh title="dbdtdh" type="delete"></m-tdh>
</template>
<script>
import Dbitdh from "~/views/Statics/Tdh/views/Dbitdh";
export default {
name: "StaticsDbdtdh",
components: {
"m-tdh": Dbitdh
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-tdh title="dbetdh" type="edit"></m-tdh>
</template>
<script>
import Dbitdh from "~/views/Statics/Tdh/views/Dbitdh";
export default {
name: "StaticsDbetdh",
components: {
"m-tdh": Dbitdh
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- =============================================左边=========================================== -->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="日期" prop="dat">
<c-date-picker type="date"  v-model="model.dat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="日历代码" prop="calendar">
<c-input :disabled="type === 'edit'" v-model="model.calendar" placeholder="请输入日历代码" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
</c-col>
<!-- =============================================右边=========================================== -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="节日名" prop="dateday">
<c-input v-model="model.dateday" style="width: 100%" placeholder="请输入节日名"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="日历名称" prop="calendarname">
<c-input :disabled="type === 'edit'" v-model="model.calendarname" style="width: 100%" placeholder="请输入日历名称"> </c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: '',
props: ['model', 'type'],
data() {
return {
}
},
mounted() {},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
}
</script>
<style></style>
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="120px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="节假日查询" name="tdh">
<c-content>
<m-tdh-info :model="model" :type="type" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Tdh, { Pattern } from "~/views/Statics/Tdh/model/Tdh.js";
import TdhInfo from "./TdhInfo.vue";
import { queryById, add, edit, deleteById, queryDetailById } from "~/service/test/tdh.js";
export default {
name: "StaticsDbitdh",
components: {
"m-tdh-info": TdhInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbitdh"
}
},
data() {
return {
model: new Tdh().data,
tabVal: "tdh",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("数据不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!")
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let data = {"inr":this.model.inr}
deleteById(data)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新inftdh的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInftdh", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="日历名称" prop="calendarname">
<c-select v-model="model.calendarname" placeholder="请选择日历名称" @change="getTdhYearList">
<el-option v-for="item in tdhCalList" :key="item.lable" :label="item.lable" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="年份" prop="calyear">
<c-select v-model="model.calyear" placeholder="请选择年份">
<el-option v-for="item in tdhYearList" :key="item.lable" :label="item.lable"
:value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="tdhAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button type="primary" icon="el-icon-search" size="small" @click="onSearch()">查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table :data="tdhData" :columns="tdhColumns" :pageNumber="model.pageNum" :pageSize="model.pageSize"
:total="model.total" v-on:queryFunc="queryFunc" :border="true">
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 0" size="small" @click="tdhInfo(scope.$index, scope.row)">详情</c-button>
<c-button style="margin-left: 5px" size="small" type="primary"
@click="tdhEdit(scope.$index, scope.row)">修改</c-button>
<c-button size="small" style="margin-left: 5px" @click="tdhDelete(scope.$index, scope.row)">删除</c-button>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a slot="reference" href="javascript:void(0)" style="margin-left: 5px">
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage, queryYearList, queryCalList } from "~/service/test/tdh.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
tdhData: [],
tdhColumns: [
{ label: '日期', prop: 'datStr', width: 'auto' },
{ label: '节日名', prop: 'dateday', width: 'auto' }
],
tdhYearList: [],
tdhCalList: [],
};
},
computed: {
},
created() {
this.getTdhCalList()
},
activated() {
this.getTdhCalList()
const { update } = this.$route.params
if (update) {
this.onInftdhSearch()
}
},
methods: {
getTdhCalList() {
queryCalList(this.model).then(res => {
this.tdhCalList = res.list
})
},
getTdhYearList() {
this.model.calyear ? this.model.calyear = '' : ''
queryYearList(this.model).then(res => {
this.tdhYearList = res.list
})
},
getCodesByKey(key) {
return codes[key] ?? [];
},
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInftdhSearch();
},
onInftdhSearch() {
queryByPage(this.model).then(res => {
const list = res.list
this.tdhData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInftdhSearch()
},
tdhtypeChange(val) {
this.model.fectyp = val;
},
tdhCodesByKey(key) {
return codes[key] ?? [];
},
tdhAdd() {
this.$router.push(`/statics/dbatdh`)
},
tdhInfo(index, row) {
this.$router.push(`/statics/dbitdh/${row.inr}`)
},
tdhEdit(index, row) {
this.$router.push(`/statics/dbetdh/${row.inr}`)
},
tdhDelete(index, row) {
this.$router.push(`/statics/dbdtdh/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<c-page title="节假日查询">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="查询面板" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInftdh",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
cod: "",
pageSize:5,
pageNum:1,
total:0
},
};
},
};
</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