Commit cc362f52 by zhangliding

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 8b7161d8 45cbb57c
......@@ -7717,6 +7717,50 @@ const CodeTable = {
{ label: "ISCO Issuance of counter-undertaking", value: "ISCO" },
{ label: "ICCO Issuance of counter-counter-undert", value: "ICCO" },
],
sndto: []
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 ' },
],
subtypcodetable: [
{ label: 'General', value: 'INF' },
{ label: 'Stop', value: 'STP' },
{ label: 'Busines Sector', value: 'BUS' },
{ label: 'Settlement', value: 'SET' },
],
inflevcodetable: [
{ label: 'Do not show', value: '!' },
{ label: 'Show', value: '$' },
{ label: 'Warn', value: '0' },
{ label: 'Stop new Risk', value: '1' },
{ label: 'Stop Payments', value: '2' },
{ label: 'Stop Transaction', value: '3' },
{ label: 'Stop Processing', value: '9' },
],
}
export default CodeTable;
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/trl/queryByPage", data)
return Api.post("/service/trl/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/manager/trl/queryById?inr=${inr}`)
return Api.post(`/service/trl/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/trl/add", data)
return Api.post("/service/trl/add", data)
}
export function edit(data) {
return Api.post("/manager/trl/edit", data)
return Api.post("/service/trl/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/trl/deleteById?inr=${inr}`)
return Api.post(`/service/trl/deleteById?inr=${inr}`)
}
\ No newline at end of file
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/xrt/queryByPage", data)
}
export function queryById(data) {
return Api.post(`/service/xrt/queryById`,data)
}
export function add(data) {
return Api.post("/service/xrt/add", data)
}
export function edit(data) {
return Api.post("/service/xrt/edit", data)
}
export function deleteById(data) {
return Api.post(`/service/xrt/deleteById`,data)
}
export function queryByCUR(data){
return Api.post("/service/xrt/queryByCUR",data)
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/zmqxrt/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/service/zmqxrt/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/service/zmqxrt/add", data)
}
export function edit(data) {
return Api.post("/service/zmqxrt/edit", data)
}
export function deleteById(inr) {
return Api.post(`/service/zmqxrt/deleteById?inr=${inr}`)
}
export function queryDetailById(inr) {
return Api.post(`/service/zmqxrt/queryDetailById?inr=${inr}`)
}
\ No newline at end of file
......@@ -270,11 +270,6 @@ 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";
......@@ -294,11 +289,11 @@ import Dbacty from "~/views/Statics/cty/views/Dbacty";
import Dbecty from "~/views/Statics/cty/views/Dbecty";
import Dbdcty from "~/views/Statics/cty/views/Dbdcty";
import Infoit from "~/views/Statics/Act/views/Infoit"
import Dbioit from "~/views/Statics/Act/views/Dbioit"
import Dbaoit from "~/views/Statics/Act/views/Dbaoit"
import Dbdoit from "~/views/Statics/Act/views/Dbdoit"
import Dbeoit from "~/views/Statics/Act/views/Dbeoit"
import Infoit from "~/views/Statics/Oit/views/Infoit"
import Dbioit from "~/views/Statics/Oit/views/Dbioit"
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 Infcur from "~/views/Statics/cur/views/Infcur";
import Dbacur from "~/views/Statics/cur/views/Dbacur";
......@@ -324,11 +319,11 @@ import Dbapty from "~/views/Statics/Dbapty";
import Dbepty from "~/views/Statics/Dbepty";
import Dbdpty from "~/views/Statics/Dbdpty";
import Inftrl from "~/views/Statics/Inftrl";
import Dbitrl from "~/views/Statics/Dbitrl";
import Dbatrl from "~/views/Statics/Dbatrl";
import Dbetrl from "~/views/Statics/Dbetrl";
import Dbdtrl from "~/views/Statics/Dbdtrl";
import Dbatrl from "~/views/Statics/Trl/views/Dbatrl";
import Dbdtrl from "~/views/Statics/Trl/views/Dbdtrl";
import Dbetrl from "~/views/Statics/Trl/views/Dbetrl";
import Dbitrl from "~/views/Statics/Trl/views/Dbitrl";
import Inftrl from "~/views/Statics/Trl/views/Inftrl";
import Infusr from "~/views/Statics/Infusr";
import Dbausr from "~/views/Statics/Dbausr";
......@@ -336,6 +331,18 @@ import Dbiusr from "~/views/Statics/Dbiusr";
import Dbeusr from "~/views/Statics/Dbeusr";
import Dbdusr from "~/views/Statics/Dbdusr";
import Dbazmq from "~/views/Statics/Zmqxrt/views/Dbazmq";
import Dbdzmq from "~/views/Statics/Zmqxrt/views/Dbdzmq";
import Dbezmq from "~/views/Statics/Zmqxrt/views/Dbezmq";
import Dbizmqxrt from "~/views/Statics/Zmqxrt/views/Dbizmqxrt";
import Dblzmq from "~/views/Statics/Zmqxrt/views/Dblzmq";
import Infxrt from "~/views/Statics/Xrt/views/Infxrt";
import Dblxrt from "~/views/Statics/Xrt/views/Dblxrt";
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 Dbaswm from "~/views/Statics/Swm/views/Dbaswm";
import Dbdswm from "~/views/Statics/Swm/views/Dbdswm";
......@@ -629,11 +636,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: '新增消息信息' } },
......@@ -641,7 +648,7 @@ 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: 'infatp', component: Infatp, name: 'StaticsInfatp', meta: { title: '交易配置信息查询' } },
{ path: 'dbaatp', component: Dbaatp, name: 'StaticsDbaatp', meta: { title: '交易配置信息新增' } },
{ path: 'dbeatp/:inr', component: Dbeatp, name: 'StaticsDbeatp', meta: { title: (tag) => { return '客户修改: ' + tag.params.inr } } },
......@@ -701,5 +708,17 @@ const BusRouter = [
{ path: 'dbiswm/:inr', component: Dbiswm, name: 'StaticsDbiswm', meta: { title: (tag) => { return '查看报文栏位映射详情信息: ' + tag.params.inr } } },
{ path: 'dbeswm/:inr', component: Dbeswm, name: 'StaticsDbeswm', meta: { title: (tag) => { return '修改报文栏位映射信息: ' + tag.params.inr } } },
{ path: 'dbdswm/:inr', component: Dbdswm, name: 'StaticsDbdswm', meta: { title: (tag) => { return '删除报文栏位映射信息: ' + tag.params.inr } } },
{ path: 'dblzmq', component: Dblzmq, name: 'StaticsDblzmq', meta: { title: '自贸区牌价查询' } },
{ path: 'dbazmq', component: Dbazmq, name: 'StaticsDbazmq', meta: { title: '自贸区牌价新增' } },
{ path: 'dbizmqxrt/:inr', component: Dbizmqxrt, name: 'StaticsDbizmqxrt', meta: { title: (tag) => { return '自贸区牌价详情: ' + tag.params.inr } } },
{ path: 'dbezmq/:inr', component: Dbezmq, name: 'StaticsDbezmq', meta: { title: (tag) => { return '自贸区牌价编辑: ' + tag.params.inr } } },
{ path: 'dbdzmq/:inr', component: Dbdzmq, name: 'StaticsDbdzmq', 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 } } },
{ path: 'dbaxrt', component: Dbaxrt, name: 'StaticsDbaxrt', meta: { title: '牌价新增' } },
{ 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 } } },
]
export default BusRouter
\ No newline at end of file
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>
<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>
......@@ -51,7 +51,13 @@
import Utils from "~/utils";
import Apf, { Pattern } from "../../model/Apf.js";
<<<<<<<< HEAD:src/views/Statics/Apf/views/Dbiapf/index.vue
import ApfInfo from "./ApfInfo.vue";
========
<script>
import Utils from '~/utils'
import Oit, { Pattern } from '../../model/Oit.js'
>>>>>>>> 45cbb57c3917ff55387e3cfc20096f30267b7cc4:src/views/Statics/Oit/views/Dbioit/index.vue
import { queryById, add, edit, deleteById } from "~/service/test/apf.js";
......
<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="apf">
<c-content>
<m-apf-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 Apf, { Pattern } from "../../model/Apf.js";
<<<<<<<< HEAD:src/views/Statics/Apf/views/Dbiapf/index.vue
import ApfInfo from "./ApfInfo.vue";
========
<script>
import Utils from '~/utils'
import Oit, { Pattern } from '../../model/Oit.js'
>>>>>>>> 45cbb57c3917ff55387e3cfc20096f30267b7cc4:src/views/Statics/Oit/views/Dbioit/index.vue
import { queryById, add, edit, deleteById } from "~/service/test/apf.js";
export default {
name: "StaticsDbiapf",
components: {
"m-apf-info": ApfInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info",
},
title: {
type: String,
default: "dbiapf",
},
},
data() {
return {
model: new Apf().data,
tabVal: "apf",
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();
})
.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 是否更新infapf的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsDblapf", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -3,11 +3,11 @@ import Dbipty from "./Dbipty";
import Dbapty from "./Dbapty";
import Dbepty from "./Dbepty";
import Dbdpty from "./Dbdpty";
import Inftrl from "./Inftrl";
import Dbitrl from "./Dbitrl";
import Dbatrl from "./Dbatrl";
import Dbetrl from "./Dbetrl";
import Dbdtrl from "./Dbdtrl";
import Dbatrl from "./Trl/views/Dbatrl";
import Dbdtrl from "./Trl/views/Dbdtrl";
import Dbetrl from "./Trl/views/Dbetrl";
import Dbitrl from "./Trl/views/Dbitrl";
import Inftrl from "./Trl/views/Inftrl";
import Infusr from "./Infusr";
import Dbausr from "./Dbausr";
import Dbiusr from "./Dbiusr";
......@@ -20,11 +20,11 @@ import Dbacty from "./cty/views/Dbacty";
import Dbecty from "./cty/views/Dbecty";
import Dbdcty from "./cty/views/Dbdcty";
import Infoit from "./Act/views/Infoit"
import Dbioit from "./Act/views/Dbioit"
import Dbaoit from "./Act/views/Dbaoit"
import Dbdoit from "./Act/views/Dbdoit"
import Dbeoit from "./Act/views/Dbeoit"
import Infoit from "./Oit/views/Infoit"
import Dbioit from "./Oit/views/Dbioit"
import Dbaoit from "./Oit/views/Dbaoit"
import Dbdoit from "./Oit/views/Dbdoit"
import Dbeoit from "./Oit/views/Dbeoit"
import Dbaswm from "./Swm/views/Dbaswm";
import Dbdswm from "./Swm/views/Dbdswm";
......@@ -34,6 +34,8 @@ import Infswm from "./Swm/views/Infswm";
// import Infcty from "./Infcty";
// import Dbicty from "./Dbicty";
// import Dbacty from "./Dbacty";
......@@ -70,12 +72,6 @@ import Dbaatp from "./Atp/views/Dbaatp";
import Dbeatp from "./Atp/views/Dbeatp";
import Dbdatp from "./Atp/views/Dbdatp";
//act
import Infact from "./Act/views/Infact";
import Dbiact from "./Act/views/Dbiact";
import Dbaact from "./Act/views/Dbaact";
import Dbeact from "./Act/views/Dbeact";
import Dbdact from "./Act/views/Dbdact";
import Infatx from "./Atx/views/Infatx";
import Dbiatx from "./Atx/views/Dbiatx";
......@@ -83,6 +79,18 @@ import Dbaatx from "./Atx/views/Dbaatx";
import Dbeatx from "./Atx/views/Dbeatx";
import Dbdatx from "./Atx/views/Dbdatx";
import Dbazmq from "./Zmqxrt/views/Dbazmq";
import Dbdzmq from "./Zmqxrt/views/Dbdzmq";
import Dbezmq from "./Zmqxrt/views/Dbezmq";
import Dbizmqxrt from "./Zmqxrt/views/Dbizmqxrt";
import Dblzmq from "./Zmqxrt/views/Dblzmq";
import Infxrt from "./Xrt/views/Infxrt";
import Dblxrt from "./Xrt/views/Dblxrt";
import Dbaxrt from "./Xrt/views/Dbaxrt";
import Dbexrt from "./Xrt/views/Dbexrt";
import Dbdxrt from "./Xrt/views/Dbdxrt";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
{ path: 'dbapty', component: Dbapty, name: 'StaticsDbapty', meta: { title: '客户新增' } },
......@@ -107,6 +115,12 @@ const StaticsRouter = [
{ path: 'dbecty/:inr', component: Dbecty, name: 'StaticsDbecty', meta: { title: (tag) => { return '国家代码修改: ' + tag.params.inr } } },
{ path: 'dbdcty/:inr', component: Dbdcty, name: 'StaticsDbdcty', meta: { title: (tag) => { return '国家代码删除: ' + tag.params.inr } } },
{ path: 'dblzmq', component: Dblzmq, name: 'StaticsDblzmq', meta: { title: '自贸区牌价查询' } },
{ path: 'dbazmq', component: Dbazmq, name: 'StaticsDbazmq', meta: { title: '自贸区牌价新增' } },
{ path: 'dbizmqxrt/:inr', component: Dbizmqxrt, name: 'StaticsDbizmqxrt', meta: { title: (tag) => { return '自贸区牌价详情: ' + tag.params.inr } } },
{ path: 'dbezmq/:inr', component: Dbezmq, name: 'StaticsDbezmq', meta: { title: (tag) => { return '自贸区牌价编辑: ' + tag.params.inr } } },
{ path: 'dbdzmq/:inr', component: Dbdzmq, name: 'StaticsDbdzmq', 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 } } },
......@@ -137,11 +151,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: '保函文本新增' } },
......@@ -160,6 +174,13 @@ const StaticsRouter = [
{ path: 'dbioit/:inr', component: Dbioit, name: 'StaticsDbioit', meta: { title: (tag) => { return '查看消息信息: ' + tag.params.inr } } },
{ 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: 'infxrt', component: Infxrt, name: 'StaticsInfxrt', meta: { title: '牌价查询' } },
{ path: 'dblxrt/:inr', component: Dblxrt, name: 'StaticsDblxrt', meta: { title: (tag) => { return '牌价详情: ' + tag.params.inr } } },
{ path: 'dbaxrt', component: Dbaxrt, name: 'StaticsDbaxrt', meta: { title: '牌价新增' } },
{ 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 } } },
]
export default StaticsRouter
......@@ -58,7 +58,8 @@
<script>
import CodeTable from "~/config/CodeTable";
import Utils from "~/utils";
import Swm, { Pattern } from "./Swm.js";
import Swm, { Pattern } from "~/views/Statics/Swm/model/Swm.js";
import SwmInfo from "./SwmInfo.vue";
import SwmAdd from "./SwmAdd";
......
<template>
<m-act title="dbdact" type="delete"></m-act>
<m-trl ref="trl" title="dbatrl" type="add"></m-trl>
</template>
<script>
import Dbiact from "~/views/Statics/Act/views/Dbiact";
import Dbitrl from "~/views/Statics/Trl/views/Dbitrl";
export default {
name: "StaticsDbdact",
name: "StaticsDbatrl",
components: {
"m-act": Dbiact
"m-trl": Dbitrl
},
data() {
return {};
......
<template>
<m-act title="dbeact" type="edit"></m-act>
<m-trl title="dbdtrl" type="delete"></m-trl>
</template>
<script>
import Dbiact from "~/views/Statics/Act/views/Dbiact";
import Dbitrl from "~/views/Statics/Trl/views/Dbitrl";
export default {
name: "StaticsDbeact",
name: "StaticsDbdtrl",
components: {
"m-act": Dbiact
"m-trl": Dbitrl
},
data() {
return {};
......
<template>
<m-act title="dbaact" type="add"></m-act>
<m-trl title="dbetrl" type="edit"></m-trl>
</template>
<script>
import Dbiact from "~/views/Statics/Act/views/Dbiact";
import Dbitrl from "~/views/Statics/Trl/views/Dbitrl";
export default {
name: "StaticsDbaact",
name: "StaticsDbetrl",
components: {
"m-act": Dbiact
"m-trl": Dbitrl
},
data() {
return {};
},
mounted() {
}
};
</script>
......
......@@ -54,9 +54,9 @@
<script>
import Utils from "~/utils";
import Trl, { Pattern } from "./Trl.js";
import Trl, { Pattern } from "~/views/Statics/Trl/model/Trl.js";
import TrlInfo from "./TrlInfo.vue";
import TrlInfo from "~/views/Statics/Trl/views/Dbitrl/TrlInfo.vue";
import { queryById, add, edit, deleteById } from "~/service/test/trl.js";
......
<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 label="机构编码" prop="bchkey">
<c-input v-model="model.bchkey" placeholder="请输入机构编码"> </c-input>
</el-form-item>
</c-col>
</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 label="授权货币" prop="relcur">
<c-select v-model="model.relcur" placeholder="请选择授权货币" :code="relcur" style="width:100%">
</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 label="授权金额" prop="relamt">
<c-input v-model="model.relamt" 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="iban">
<c-input
v-model="model.iban"
maxlength="34"
placeholder="请输入国际银行账户号"
></c-input>
<el-form-item label="交易代码" prop="trn">
<c-input v-model="model.trn" 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 label="交易属性" prop="relflg">
<c-input v-model="model.relflg" placeholder="请输入交易属性"> </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="actAdd">新增</el-button>
<el-button type="primary" size="small" @click="trlAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
......@@ -84,9 +47,9 @@
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="actData"
:columns="actColumns"
<c-paging-table
:data="trlData"
:columns="trlColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
......@@ -98,20 +61,20 @@
<c-button
style="margin-left: 0"
size="small"
@click="actInfo(scope.$index, scope.row)"
@click="trlInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="actEdit(scope.$index, scope.row)"
@click="trlEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="actDelete(scope.$index, scope.row)"
@click="trlDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
......@@ -141,7 +104,7 @@
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/act.js";
import { queryByPage } from "~/service/test/trl.js";
export default {
name: "",
......@@ -149,74 +112,87 @@ export default {
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' },
],
trlData: [],
trlColumns: [
{ label: "机构编码", prop: "bchkey", width: "auto" },
{ label: "交易代码", prop: "trn", width: "auto" },
{ label: "授权货币", prop: "relcur", width: "auto" },
{ label: "授权金额", prop: "relamt", width: "auto" },
{ label: "交易属性", prop: "relflg", width: "auto" },
],
relcur: [
{ label: "AUD 澳大利亚元", value: "AUD" },
{ label: "CAD 加拿大元", value: "CAD" },
{ label: "CHF 瑞士法郎", value: "CHF" },
{ label: "CNY 人民币", value: "CNY" },
{ label: "DKK 丹麦克朗", value: "DKK" },
{ label: "EUR 欧元", value: "EUR" },
{ label: "FIM 芬兰马克", value: "FIM" },
{ label: "FRF 法国法郎", value: "FRF" },
{ label: "GBP 英镑", value: "FRF" },
{ label: "HKD 港币", value: "FRF" },
{ label: "JPY 日元", value: "FRF" },
{ label: "KRW 韩圆", value: "FRF" },
{ label: "MOP 澳门元", value: "FRF" },
{ label: "NOK 挪威克朗", value: "FRF" },
{ label: "NZD 新西兰元", value: "FRF" },
{ label: "SEK 瑞典克朗", value: "FRF" },
{ label: "SGD 新加坡元", value: "FRF" },
{ label: "THB 泰国铢", value: "FRF" },
{ label: "TWD 新台湾元", value: "FRF" },
{ label: "USD 美元", value: "FRF" },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
const { update } = this.$route.params;
if (update) {
this.onInfactSearch()
this.onInftrlSearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfactSearch();
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInftrlSearch();
},
onInfactSearch() {
queryByPage(this.model).then(res => {
onInftrlSearch() {
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
})
},
const list = res.list;
this.trlData = 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()
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
this.onInftrlSearch();
},
trlAdd() {
this.$router.push(`/statics/dbatrl`);
},
trlInfo(index, row) {
this.$router.push(`/statics/dbitrl/${row.inr}`);
},
getCodesByKey(key) {
return codes[key] ?? [];
trlEdit(index, row) {
this.$router.push(`/statics/dbetrl/${row.inr}`);
},
trlDelete(index, row) {
this.$router.push(`/statics/dbdtrl/${row.inr}`);
},
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>
......@@ -232,4 +208,5 @@ export default {
text-align: center;
color: #606266;
cursor: pointer;
}</style>
}
</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: "StaticsInftrl",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// trl
bchkey: "",
trn: "",
relcur: "",
relamt: "",
ver: "",
relflg: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0,
},
};
},
};
</script>
<style></style>
export default class Xrt {
constructor() {
this.data = {
// inr: "",
// extkey: "",
// nam: "",
// txt: "",
// uil: "",
// ver: "",
// etgextkey: "",
inr:"",
cur:"",
buyrat:"",
midrat:"",
selrat:"",
xrttim:"",
// midrat:"",
// selrat:"",
// buyrat:"",
sel1rat:"",
buy1rat:"",
ttrrat:"",
odrrat:"",
resrat:"",
rebrat:"",
ibrrat:"",
};
}
}
export const Pattern = {
cur: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8个字符", trigger: "blur" },
],
midrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
selrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buyrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
sel1rat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buy1rat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ttrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
odrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
resrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
rebrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ibrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
}
;
<template>
<m-xrt ref="xrt" title="dbaxrt" type="add"></m-xrt>
</template>
<script>
import Dblxrt from "../Dblxrt";
export default {
name: "StaticsDbaxrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
mounted() {
this.$refs.fec.rules['fecList'] = [
{ type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-xrt title="dbdxrt" type="delete"></m-xrt>
</template>
<script>
import Dblxrt from "../Dblxrt";
export default {
name: "StaticsDbdxrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-xrt title="dbexrt" type="edit"></m-xrt>
</template>
<script>
import Dblxrt from "../Dblxrt";
export default {
name: "StaticsDbexrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="16" class="col-left" v-if="type != 'add'">
<!-- 绑定的数据 -->
<el-table
:data="xrtCURData"
style="width: 100%"
>
<!--:default-sort = "{prop: 'date', order: 'descending'}"-->
<el-table-column
prop="xrttim"
label="日末牌价"
width="auto">
</el-table-column>
<el-table-column
prop="midrat"
label="中间汇率"
sortable
width="auto">
</el-table-column>
<el-table-column
prop="selrat"
label="卖出汇率"
sortable
width="auto">
</el-table-column>
<el-table-column
prop="buyrat"
label="买入汇率"
sortable
width="aoto">
</el-table-column>
</el-table>
</c-col>
<c-col :span="8" class="col-right">
<el-form-item label="货币名称" prop="cur" v-if="type == 'add'">
<c-input v-model="model.cur" placeholder="请输入货币名称">
</c-input>
</el-form-item>
<el-form-item label="中间价" prop="midrat">
<c-input v-model="model.midrat" placeholder="请输入中间价">
</c-input>
</el-form-item>
<el-form-item label="买入价" prop="selrat">
<c-input v-model="model.selrat" placeholder="请输入买入价">
</c-input>
</el-form-item>
<el-form-item label="卖出价" prop="buyrat">
<c-input v-model="model.buyrat" placeholder="请输入卖出价">
</c-input>
</el-form-item>
<el-form-item label="现钞卖出价" prop="sel1rat">
<c-input v-model="model.sel1rat" placeholder="请输入现钞卖出价">
</c-input>
</el-form-item>
<el-form-item label="现钞买入价" prop="buy1rat">
<c-input v-model="model.buy1rat" placeholder="请输入现钞买入价">
</c-input>
</el-form-item>
<el-form-item label="指定买价" prop="ttrrat">
<c-input v-model="model.ttrrat" placeholder="请输入指定买价">
</c-input>
</el-form-item>
<el-form-item label="票据买断汇款" prop="odrrat">
<c-input v-model="model.odrrat" placeholder="请输入票据买断汇款">
</c-input>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="resrat">
<c-input v-model="model.resrat" placeholder="请输入卖出参考汇率">
</c-input>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="rebrat">
<c-input v-model="model.rebrat" placeholder="请输入卖出参考汇率">
</c-input>
</el-form-item>
<el-form-item label="报表折算价" prop="ibrrat">
<c-input v-model="model.ibrrat" placeholder="请输入报表折算价">
</c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
entyGrp: [],
props: ["model","type"],
data() {
return {
xrtCURData: [],
};
},
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="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="xrt">
<c-content>
<m-xrt-info ref="xrt" :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 Xrt, { Pattern } from "../../model/Xrt";
import XrtInfo from "./XrtInfo.vue";
import { queryById, add, edit, deleteById,queryByCUR} from "~/service/test/xrt.js";
export default {
name: "StaticsDblxrt",
components: {
"m-xrt-info": XrtInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dblxrt"
}
},
data() {
return {
model: new Xrt().data,
tabVal: "xrt",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const params = this.$route.params;
// queryById(inr).then((res) => {
queryById(params).then((res) => {
if (res.inr) {
this.model = res;
queryByCUR(this.model).then(res =>{
this.$refs.xrt.xrtCURData = 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 params = this.$route.params;
deleteById(params)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfxrt", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="8" class="col-left">
<c-col :span="24">
<el-form-item label="货币类型" prop="cur">
<c-select
v-model="model.cur"
style="height:30px;"
placeholder="请选择货币类型"
:code="getCodesByKey('curtxt1')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="16" class="col-right">
<c-col :span="24">
<el-form-item label="时间区间" prop="opndatfrom" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.opndatfrom" value-format="yyyy-MM-dd" style="width: 100%" placeholder="请选择开始时间">
</c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.opndatto" value-format="yyyy-MM-dd" style="width: 100%" placeholder="请选择结束时间"></c-date-picker>
</c-col>
</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="xrtAdd">新增</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="xrtData"
:columns="xrtColumns"
: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="xrtInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="xrtEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="xrtDelete(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/xrt.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
xrtData: [],
xrtColumns: [
{ label: '货币名称', prop: 'cur', width: 'auto' },
{ label: '日期时间', prop: 'xrttim', width: 'auto' },
{ label: '中间汇率', prop: 'midrat', width: 'auto' },
{ label: '买入汇率', prop: 'buyrat', width: 'auto' },
{ label: '卖出汇率', prop: 'selrat', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfXrtSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfXrtSearch();
},
onInfXrtSearch() {
queryByPage(this.model).then(res => {
const list = res.list
this.xrtData = 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.onInfXrtSearch()
},
getCodesByKey(key) {
return codes[key] ?? [];
},
xrtAdd() {
this.$router.push(`/statics/dbaxrt`)
},
xrtInfo(index, row) {
this.$router.push(`/statics/dblxrt/${row.inr}`)
},
xrtEdit(index, row) {
this.$router.push(`/statics/dbexrt/${row.inr}`)
},
xrtDelete(index, row) {
this.$router.push(`/statics/dbdxrt/${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: "StaticsInfxrt",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// // bch
// branch: "",
// etyexkey: "",
// bchkey: "",
// bchtyp: "",
//xrt
inr:"",
cur:"",
buyrat:"",
midrat:"",
selrat:"",
xrttim:"",
midrat:"",
selrat:"",
buyrat:"",
sel1rat:"",
buy1rat:"",
ttrrat:"",
odrrat:"",
resrat:"",
rebrat:"",
ibrrat:"",
opndatfrom:"",
opndatto:"",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
export default class Zmqxrt {
constructor() {
this.data = {
inr: "",
cur: "",
begdat: "",
enddat: "",
buyrat: "",
midrat: "",
selrat: "",
ttrrat: "",
odrrat: "",
ver: "",
resrat: "",
rebrat: "",
ibrrat: "",
sel1rat: "",
buy1rat: "",
etgextkey: "CEBGRP",
xrttim: "",
caozbz: "",
canssm: "",
}
}
}
export const Pattern = {
"inr": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cur": [
{ "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"begdat": [
{ "type": "date", "trigger": "blur" }
],
"enddat": [
{ "type": "date", "trigger": "blur" }
],
"buyrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"midrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"selrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ttrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"odrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ver": [
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"resrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"rebrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ibrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"sel1rat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"buy1rat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"etgextkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"xrttim": [
{ "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"caozbz": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
// "zmqxrt_cur": [
// ],
}
<template>
<m-zmqxrt ref="zmq" title="dbazmq" type="add"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "../Dbizmqxrt";
export default {
name: "StaticsDbizmqxrt",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {};
},
mounted() {
// this.$refs.pty.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-zmqxrt ref="zmq" title="dbezmq" type="delete"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "../Dbizmqxrt";
export default {
name: "StaticsDbezmq",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-zmqxrt ref="zmq" title="dbezmq" type="edit"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "../Dbizmqxrt";
export default {
name: "StaticsDbezmq",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {
rules:{required:false}
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="币种" prop="cur">
<c-select
v-model="model.cur"
style="width: 100%"
placeholder="请选择币种类型"
:code="getCodesByKey('cur')"
></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="开始日期"
prop="model.begdat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.begdat"
style="width: 100%"
placeholder="请选择起始日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="终止日期"
prop="model.enddat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.enddat"
style="width: 100%"
placeholder="请选择终止日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="买入价" prop="buyrat">
<c-input-currency
v-model="model.buyrat"
placeholder="请输入买入价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="中间价" prop="midrat">
<c-input-currency
v-model="model.midrat"
placeholder="请输入中间价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="卖出价" prop="selrat">
<c-input-currency
v-model="model.selrat"
placeholder="请输入卖出价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ttrrat" prop="ttrrat">
<c-input-currency
v-model="model.ttrrat"
placeholder="请输入ttrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="odrrat" prop="odrrat">
<c-input-currency
v-model="model.odrrat"
placeholder="请输入odrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="resrat" prop="resrat">
<c-input-currency
v-model="model.resrat"
placeholder="请输入resrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rebrat" prop="rebrat">
<c-input-currency
v-model="model.rebrat"
placeholder="请输入rebrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ibrrat" prop="ibrrat">
<c-input-currency
v-model="model.ibrrat"
placeholder="请输入ibrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="sel1rat" prop="sel1rat">
<c-input-currency
v-model="model.sel1rat"
placeholder="请输入sel1rat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="buy1rat" prop="buy1rat">
<c-input-currency
v-model="model.buy1rat"
placeholder="请输入buy1rat"
>
</c-input-currency>
</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="xrttim">
<c-input
v-model="model.xrttim"
placeholder="请输入牌价时间"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="caozbz" prop="caozbz">
<c-select
v-model="model.caozbz"
placeholder="请输入caozbz"
:code="getCodesByKey('caozbz')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="canssm" prop="canssm">
<c-input
v-model="model.canssm"
placeholder="请输入canssm"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
<!-- <c-col :span="24">-->
<!-- </c-col>-->
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "zmqxrt",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<c-page :title="title">
<el-form
ref="modelForm"
label-width="150px"
label-width="180px"
size="small"
label-position="right"
:model="model"
......@@ -11,10 +11,10 @@
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="act">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="changePosition">
<el-tab-pane label="自贸区牌价信息" name="zmqxrt">
<c-content>
<m-act-info :model="model" />
<m-zmqxrt-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
......@@ -39,7 +39,7 @@
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>删 除</c-button
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
......@@ -49,17 +49,16 @@
<script>
import Utils from "~/utils";
import Zmqxrt, { Pattern } from "../../model/Zmqxrt";
import Act, { Pattern } from "../../model/Act.js";
import ActInfo from "./ActInfo.vue";
import ZmqxrtInfo from "./ZmqxrtInfo.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/act.js";
import {queryDetailById, queryByPage, queryById, add, edit, deleteById } from "~/service/test/zmqxrt.js";
export default {
name: "StaticsDbiact",
name: "StaticsDbizmqxrt",
components: {
"m-act-info": ActInfo,
"m-zmqxrt-info": ZmqxrtInfo,
},
provide() {
return {
......@@ -73,14 +72,15 @@ export default {
},
title: {
type: String,
default: "dbiact"
default: "dbizmqxrt"
}
},
data() {
return {
model: new Act().data,
tabVal: "act",
model: new Zmqxrt().data,
tabVal: "zmqxrt",
rules: Pattern,
tabPosition:"tab-zmqxrt",
};
},
computed: {
......@@ -89,13 +89,16 @@ export default {
},
},
created() {
debugger
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => {
this.model.inr = this.$route.params.inr;
console.log(inr);
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("资金账户不存在")
this.$message.error("不存在")
}
});
}
......@@ -120,14 +123,15 @@ export default {
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
if(this.tabPosition===`tab-zmqxrt`){
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.$message.success("自贸区牌价信息修改保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
this.$message.error("自贸区牌价信息修改保存失败!");
});}
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
......@@ -140,14 +144,16 @@ export default {
type: "warning",
})
.then(() => {
if(this.tabPosition===`tab-zmqxrt`){
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
debugger
this.$message.success("自贸区牌价信息删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
this.$message.error("自贸区牌价信息删除失败!");
})};
})
.catch(() => {
this.$message({
......@@ -157,13 +163,16 @@ export default {
});
},
/**
* update 是否更新infpty的查询列表
* update 是否更新dblzmq的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfact", params: { update } });
this.$router.push({ name: "StaticsDblzmq", params: { update } });
},
changePosition(tab,event){
this.tabPosition=event.target.getAttribute('id');
console.log(this.tabPosition)
},
},
};
</script>
......
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="24">
<el-form-item label="币种" prop="cur">
<c-select
v-model="model.cur"
placeholder="请选择币种"
:code="getCodesByKey('cur')"
></c-select>
</el-form-item>
</c-col>
<c-col :span="12" class="col-left">
<!-- <c-col :span="24">-->
<!-- <el-form-item label="BEGDAT" prop="BEGDAT">-->
<!-- <c-input-->
<!-- v-model="model.BEGDAT"-->
<!-- placeholder="请输入BEGDAT"-->
<!-- ></c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
<c-col :span="24">
<el-form-item
label="开始日期"
prop="model.begdat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.begdat"
style="width: 100%"
placeholder="请选择起始日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<!-- <el-form-item label="Party No." prop="extkey">-->
<!-- <c-input-->
<!-- v-model="model.extkey"-->
<!-- maxlength="24"-->
<!-- placeholder="请输入Party No."-->
<!-- ></c-input>-->
<!-- </el-form-item>-->
</c-col>
<c-col :span="24">
<el-form-item
label="结束日期"
prop="model.enddat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.enddat"
style="width: 100%"
placeholder="请选择结束日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</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="zmqxrtAdd" :disabled="model.cur===''" >新增</el-button>-->
<el-button type="primary" size="small" @click="zmqxrtAdd" >新增</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="zmqxrtData"
:columns="zmqxrtColumns"
: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="zmqxrtInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="zmqxrtEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="zmqxrtDelete(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/zmqxrt.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
zmqxrtData: [],
zmqxrtColumns: [
{ label: 'INR', prop: 'inr', width: '120' },
{ label: '币种', prop: 'cur', width: '120' },
{ label: '起始日期', prop: 'begdat', width: '150' },
{ label: '终止日期', prop: 'enddat', width: '200' },
{ label: '买入价', prop: 'buyrat', width: '100' },
{ label: '中间价', prop: 'midrat', width: '200' },
{ label: '卖出价', prop: 'selrat', width: '98' },
// { label: 'TTRRAT', prop: 'ttrrat', width: '98' },
// { label: 'ODRRAT', prop: 'odrrat', width: '200' },
// { label: 'VER', prop: 'ver', width: '120' },
// { label: 'RESRAT', prop: 'resrat', width: '200' },
// { label: 'REBRAT', prop: 'rebrat', width: '98' },
// { label: 'IBRRAT', prop: 'ibrrat', width: '200' },
// { label: 'SEL1RAT', prop: 'sel1rat', width: '100' },
// { label: 'BUY1RAT', prop: 'buy1rat', width: '150' },
{ label: '实体组代码', prop: 'etgextkey', width: '120' },
{ label: '牌价时间', prop: 'xrttim', width: '98' },
// { label: 'CAOZBZ', prop: 'caozbz', width: '98' },
// { label: 'CANSSM', prop: 'canssm', width: '98' },
],
};
},
computed: {
seatypb: {
get: function () {
return this.model.zmqxrttyp === "B";
},
set: function (val) {
this.model.zmqxrttyp = val ? "B" : "";
},
},
seatypc: {
get: function () {
return this.model.zmqxrttyp === "C";
},
set: function (val) {
this.model.zmqxrttyp = val ? "C" : "";
},
},
seatypa: {
get: function () {
return this.model.zmqxrttyp === "A";
},
set: function (val) {
this.model.zmqxrttyp = val ? "A" : "";
},
},
seatypo: {
get: function () {
return this.model.zmqxrttyp === "O";
},
set: function (val) {
this.model.zmqxrttyp = val ? "O" : "";
},
},
seatyph: {
get: function () {
return this.model.zmqxrttyp === "H";
},
set: function (val) {
this.model.zmqxrttyp = val ? "H" : "";
},
},
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfzmqxrtSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfzmqxrtSearch();
},
onInfzmqxrtSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.zmqxrtData = 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.onInfzmqxrtSearch()
},
zmqxrttypeChange(val) {
this.model.zmqxrttyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
zmqxrtAdd() {
this.$router.push(`/statics/dbazmq`)
},
zmqxrtInfo(index, row) {
this.$router.push(`/statics/dbizmqxrt/${row.inr}`)
},
zmqxrtEdit(index, row) {
this.$router.push(`/statics/dbezmq/${row.inr}`)
},
zmqxrtDelete(index, row) {
this.$router.push(`/statics/dbdzmq/${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="资金账户信息查询">
<c-page title="自贸区牌价查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
: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">
<el-tab-pane label="自贸区牌价查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
......@@ -25,12 +25,13 @@
import Infsea from "./Infsea";
export default {
name: "StaticsInfact",
name: "StaticsDblzmq",
components: {
"m-infsea": Infsea,
},
provide() {
return {
//cur: model.cur,
root: this,
};
},
......@@ -38,13 +39,11 @@ export default {
return {
tabVal: "infsea",
model: {
// act,查询条件的字段
extkey: "",
nam: "",
iban: "",
typ: "",
cur: "",
ptyExtkey:"",
inr:"",
cur:"",
begdat:"",
enddat:"",
// paging
pageNum: 1,
pageSize: 5,
total: 0
......
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