Commit 7cbfc811 by WF1020

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 9ce65691 d29eb022
......@@ -65,6 +65,7 @@ export default {
loading.close();
return
}
loading.close();
const tab = this.showBackendErrors(errorRules)
if (tab) {
// tab切换之后,需出发tab-click的事件
......@@ -77,7 +78,6 @@ export default {
message: "校核失败",
type: "error",
});
loading.close();
return
}
}
......@@ -89,12 +89,13 @@ export default {
type: 'error',
});
this.$nextTick(() => {
console.log('========', this.$refs['modelForm'])
let isError = document.querySelectorAll('.is-error')
let fields = this.$refs['modelForm'].fields
fields.map((fieldItem) => {
if (fieldItem.validateState === 'error') {
let errorComponentName = fieldItem.$options.componentName
console.log('fieldItem===', fieldItem)
// console.log('fieldItem===', fieldItem)
// 切换tab
if (errorComponentName === 'ElTabPane') {
fieldItem.$parent.currentName = fieldItem.name
......
import Api from "~/service/Api"
// export function queryById(data) {
// return Api.post("/manager/pts/queryById", data)
// }
export function queryById(extkey) {
return Api.post("/service/pts/queryById", {extkey})
}
export function queryByPage(data) {
return Api.post("/service/pts/queryByPage", data)
}
export function queryByPage2(data) {
return Api.post("/service/pts/queryByPage2", data)
}
export function insert(data) {
return Api.post("/service/pts/insert", data)
}
export function edit(data) {
return Api.post("/service/pts/edit", data)
}
export function deleteById(data) {
return Api.post("/service/pts/deleteById", data)
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/ucl/queryByPage", data)
return Api.post("/service/ucl/queryByPage", data)
}
export function edit(data) {
return Api.post("/manager/ucl/edit", data)
return Api.post("/service/ucl/edit", data)
}
\ No newline at end of file
......@@ -60,7 +60,6 @@ import Infbdd from "./Infbdd"
import Infbrd from "./Infbrd"
import Mgrtsk from "./Mgrtsk"
import Switsk from "./Switsk"
// import Infusr from "./Infusr"
import Infcpd from "./Infcpd"
import Bctacc from "./Bctacc"
import Bctrad from "./Bctrad"
......@@ -102,8 +101,6 @@ import Bdtcan from "./Bdtcan"
import Fctcan from "./Fctcan"
import Fctopn from "./Fctopn"
import Bttcan from "./Bttcan"
import Bttacc from "./Bttacc"
import Cltdav from "./Cltdav"
......@@ -217,7 +214,6 @@ import Gctcan from "./Gctcan"
import Trtrcl from "./Trtrcl"
import Trtset from "./Trtset"
import Trtcan from "./Trtcan"
// import Dbiusr from "./Dbiusr"
// import Dbibch from "./Dbibch"
// import Infact from "./Infact"
import Dbbinf from "./Dbbinf"
......@@ -294,16 +290,20 @@ 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/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 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 Infptm from "~/views/Statics/Ptm/views/Infptm"
import Dbiptm from "~/views/Statics/Ptm/views/Dbiptm"
import Dbeptm from "~/views/Statics/Ptm/views/Dbeptm"
import Infpts from "~/views/Statics/Pts/views/Infpts"
import Dbipts from "~/views/Statics/Pts/views/Dbipts"
import Dbepts from "~/views/Statics/Pts/views/Dbepts"
import Inflgb from "~/views/Statics/Lgb/views/Inflgb"
import Dbilgb from "~/views/Statics/Lgb/views/Dbilgb"
import Dbalgb from "~/views/Statics/Lgb/views/Dbalgb"
......@@ -361,17 +361,11 @@ 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";
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 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";
......@@ -392,6 +386,13 @@ import Dbeswm from "~/views/Statics/Swm/views/Dbeswm";
import Dbiswm from "~/views/Statics/Swm/views/Dbiswm";
import Infswm from "~/views/Statics/Swm/views/Infswm";
import Infusr from "~/views/Statics/Usr/views/Infusr";
import Dbausr from "~/views/Statics/Usr/views/Dbausr";
import Dbiusr from "~/views/Statics/Usr/views/Dbiusr";
import Dbeusr from "~/views/Statics/Usr/views/Dbeusr";
import Dbdusr from "~/views/Statics/Usr/views/Dbdusr";
import Infucl from "~/views/Statics/Ucl/views/Infucl"
import Inftxm from "~/views/Statics/Txm/views/Inftxm";
import Dbitxm from "~/views/Statics/Txm/views/Dbitxm";
......@@ -502,7 +503,6 @@ const BusRouter = [
{ path: 'infbrd', component: Infbrd, name: 'Infbrd', meta: { title: '进口信用证单据查询' } },
{ path: 'mgrtsk', component: Mgrtsk, name: 'Mgrtsk', meta: { title: 'Mgrtsk' } },
{ path: 'switsk', component: Switsk, name: 'Switsk', meta: { title: 'Switsk' } },
// { path: 'infusr', component: Infusr, name: 'Infusr', meta: { title: '用户信息' } },
{ path: 'infcpd', component: Infcpd, name: 'Infcpd', meta: { title: '汇款查询' } },
{ path: 'bctdav', component: Bctdav, name: 'Bctdav', meta: { title: '进口代收到单通知' } },
{ path: 'bctacc', component: Bctacc, name: 'Bctacc', meta: { title: '进口代收承兑' } },
......@@ -630,7 +630,6 @@ const BusRouter = [
{ path: 'trtrcl', component: Trtrcl, name: 'Trtrcl', meta: { title: '进口融资索汇' }},
{ path: 'trtset', component: Trtset, name: 'Trtset', meta: { title: '进口融资还款' } },
{ path: 'trtcan', component: Trtcan, name: 'Trtcan', meta: { title: '进口融资注销' } },
// { path: 'Dbiusr', component: Dbiusr, name: 'Dbiusr', meta: { title: 'Dbiusr' } },
// { path: 'Dbibch', component: Dbibch, name: 'Dbibch', meta: { title: 'Dbibch' } },
{ path: 'Ordrel', component: Ordrel, name: 'Ordrel', meta: { title: 'Ordrel' } },
// { path: 'Infact', component: Infact, name: 'Infact', meta: { title: '账户' } },
......@@ -690,16 +689,20 @@ const BusRouter = [
{ 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: '新增消息信息' } },
{ 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: 'infoit', component: Infoit, name: 'StaticsInfoit', meta: { title: '查询消息信息' } },
// { path: 'dbaoit', component: Dbaoit, name: 'StaticsDbaoit', meta: { title: '新增消息信息' } },
// { 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: '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: 'Infpts', component: Infpts, name: 'StaticsInfpts', meta: { title: '客户管户机构管理查询' } },
// { path: 'dbipts/:extkey', component: Dbipts, name: 'StaticsDbipts', meta: { title: (tag) => { return '客户更新详情: ' + tag.params.extkey } } },
// { path: 'dbepts/:extkey', component: Dbipts, name: 'StaticsDbepts', meta: { title: (tag) => { return '客户信息修改: ' + tag.params.extkey } } },
{ path: 'infatp', component: Infatp, name: 'StaticsInfatp', meta: { title: '交易配置信息查询' } },
{ path: 'dbaatp', component: Dbaatp, name: 'StaticsDbaatp', meta: { title: '交易配置信息新增' } },
......@@ -773,11 +776,11 @@ const BusRouter = [
{ 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: '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 } } },
......@@ -785,6 +788,9 @@ 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: 'infucl', component: Infucl, name: 'StaticsInfucl', meta: { title: '用户归属机构更换' } },
{ 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 } } },
......
......@@ -195,6 +195,7 @@ export default {
{ inifrm: "infbch", ininam: "机构信息查询", pntmiu: "10" },
{ inifrm: 'infoit', ininam: '消息信息查询OIT', pntmiu: '10' },
{ inifrm: 'infptm', ininam: '银行密押查询', pntmiu: '10' },
// { inifrm: 'infpts', ininam: '客户管户机构管理查询', pntmiu: '10' },
{ inifrm: "infcty", ininam: "国别信息查询", pntmiu: "10" },
{ inifrm: "infcur", ininam: "币种信息查询", pntmiu: "10" },
{ inifrm: "inffec", ininam: "费率信息查询", pntmiu: "10" },
......
export default class Pts {
constructor() {
this.data = {
extkey: "",
nam: "",
branch: "",
bchname: "",
}
}
}
export const Pattern = {
"extkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 55, "message": "最大长度16个字符", "trigger": "blur" }
],
"nam": [
{ "type": "string", "trigger": "blur" },
{ "max": 140, "message": "最大长度40个字符", "trigger": "blur" }
],
"branch": [
{ "type": "string", "trigger": "blur" },
{ "max": 144, "message": "最大长度144个字符", "trigger": "blur" }
],
"bchname": [
{ "type": "string", "trigger": "blur" },
{ "max": 100, "message": "最大长度40个字符", "trigger": "blur" }
],
}
<template>
<m-pts ref="pts" title="dbepts" type="edit"></m-pts>
</template>
<script>
import Dbipts from "~/views/Statics/Pts/views/Dbipts";
export default {
name: "StaticsDbepts",
components: {
"m-pts": Dbipts
},
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="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入extkey"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户名称" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入nam"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="机构号" prop="branch">
<c-input
v-model="model.branch"
placeholder="branch"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="机构号" prop="bchname">
<c-input
v-model="model.bchname"
placeholder="bchname"
></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: "",
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="180px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="changePosition">
<el-tab-pane label="基本信息" name="info">
<c-content>
<m-pts-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="commitEdit"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Pts, { Pattern } from "../../model/Pts.js";
import PtsInfo from "./PtsInfo.vue";
import { add, edit, deleteById,queryById } from "~/service/test/pts.js";
export default {
name: "StaticsDbipts",
components: {
"m-pts-info": PtsInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbipts"
}
},
data() {
return {
tabVal: "PtsInfo",
model: new Pts().data,
tabVal: "pts",
rules: Pattern,
tabPosition:"tab-pts",
extkey:"",
nam:"",
branch:"",
bchname:"",
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const extkey = this.$route.params.extkey;
window.console.log(this.type)
queryById(extkey).then((res)=> {
if (res.extkey) {
this.model = res;
} else {
this.$message.error("客户不存在")
}
});
}
},
methods: {
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
window.console.log("123")
edit(this.model)
.then((res) => {
this.$message.success("代码修改保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("代码修改保存失败!");
});
}
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfpts", params: { update } });
},
changePosition(tab,event){
this.tabPosition=event.target.getAttribute('id');
console.log(this.tabPosition)
},
},
};
</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="extkey">
<c-input v-model="model.extkey" placeholder="请输入extkey"></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<el-form-item label="当前管户机构" prop="bchlst">
<c-select
v-model="model.bchtyp"
style="width: 100%"
placeholder="请输入管户机构"
:code="getCodesByKey('bchlst')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: right">
<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="ptyData"
:columns="ptyColumns"
: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="infptsInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="infptsEdit(scope.$index, scope.row)"
>修改</c-button
>
</template>
</c-table-column>
</c-paging-table>
<c-paging-table
:data="ptaData"
:columns="ptaColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
</c-paging-table>
</c-col>
<c-col :span="24" class="col-left">
<c-col :span="12">
<el-form-item label="客户经办机构" prop="bchkeyinr">
<c-input v-model="model.bchkeyinr" placeholder="" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" class="col-left">
<c-col :span="12">
<el-form-item label="客户所属机构" prop="branchinr">
<c-input v-model="model.branchinr" placeholder="" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryById,queryByPage,queryByPage2 } from "~/service/test/pts.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
ptyData: [],
ptyColumns: [
{ label: "客户号", prop: "extkey", width: "auto" },
{ label: "客户名称", prop: "nam", width: "auto" },
{ label: "机构号", prop: "branch", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
],
ptaData: [],
ptaColumns: [
{ label: "客户号", prop: "objkey", width: "auto" },
{ label: "客户名称", prop: "nam", width: "auto" },
{ label: "所属机构", prop: "branch", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
{ label: "经办机构", prop: "bchname", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
],
};
},
computed: {},
activated() {
const { update } = this.extkey;
if (update) {
this.onInfptySearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfptsSearch();
this.onInfptsSearch2();
},
onInfptsSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total:
* totalPage: 0
*/
const list = res.list
this.ptyData = list
window.console.log(list);
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
infptsEdit(index, row) {
this.$router.push(`/statics/dbepts/${row.extkey}`)
},
onInfptsSearch2() {
queryByPage2(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total:
* totalPage: 0
*/
const list = res.list
this.ptaData = list
this.model.total = res.total
})
},
infptsInfo(index, row) {
this.$router.push(`/statics/dbipts/${row.extkey}`)
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
this.onInfptySearch();
},
ptytypeChange(val) {
this.model.ptytyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</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: "StaticsInfpts",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// pts
inr: "",
objtyp: "",
ptyinr: "",
bchlst:"",
nam:"",
branch:"",
bchname:"",
BCHKEYINR:"",
ROW_ID:"",
// adr
extkey: "",
// pta
ownref: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -8,11 +8,6 @@ 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";
import Dbeusr from "./Dbeusr";
import Dbdusr from "./Dbdusr";
import Dbatdh from "./Tdh/views/Dbatdh";
import Dbdtdh from "./Tdh/views/Dbdtdh";
......@@ -26,6 +21,11 @@ import Dbacty from "./cty/views/Dbacty";
import Dbecty from "./cty/views/Dbecty";
import Dbdcty from "./cty/views/Dbdcty";
// 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 Infety from "./ety/views/Infety";
import Dbiety from "./ety/views/Dbiety";
import Dbaety from "./ety/views/Dbaety";
......@@ -51,6 +51,11 @@ import Infptm from "./Ptm/views/Infptm"
import Dbiptm from "./Ptm/views/Dbiptm"
import Dbeptm from "./Ptm/views/Dbeptm"
import Infpts from "./Pts/views/Infpts"
import Dbipts from "./Pts/views/Dbipts"
import Dbepts from "./Pts/views/Dbepts"
import Dbaswm from "./Swm/views/Dbaswm";
import Dbdswm from "./Swm/views/Dbdswm";
import Dbeswm from "./Swm/views/Dbeswm";
......@@ -124,11 +129,11 @@ 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 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";
......@@ -136,6 +141,14 @@ import Dbaxrt from "./Xrt/views/Dbaxrt";
import Dbexrt from "./Xrt/views/Dbexrt";
import Dbdxrt from "./Xrt/views/Dbdxrt";
import Infusr from "./Usr/views/Infusr";
import Dbausr from "./Usr/views/Dbausr";
import Dbiusr from "./Usr/views/Dbiusr";
import Dbeusr from "./Usr/views/Dbeusr";
import Dbdusr from "./Usr/views/Dbdusr";
// import Infucl from "./Ucl/views/Infucl";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
{ path: 'dbapty', component: Dbapty, name: 'StaticsDbapty', meta: { title: '客户新增' } },
......@@ -160,11 +173,11 @@ 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: '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: '费率新增' } },
......@@ -214,11 +227,11 @@ const StaticsRouter = [
{ 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: 'infoit', component: Infoit, name: 'StaticsInfoit', meta: { title: '查询消息信息' } },
{ path: 'dbaoit', component: Dbaoit, name: 'StaticsDbaoit', meta: { title: '新增消息信息' } },
{ 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: 'infoit', component: Infoit, name: 'StaticsInfoit', meta: { title: '查询消息信息' } },
// { path: 'dbaoit', component: Dbaoit, name: 'StaticsDbaoit', meta: { title: '新增消息信息' } },
// { 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: 'inffee', component: Inffee, name: 'StaticsInffee', meta: { title: '费用代码查询' } },
{ path: 'dbafee', component: Dbafee, name: 'StaticsDbafee', meta: { title: '费用代码新增' } },
......@@ -233,10 +246,17 @@ 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: 'infucl', component: Infucl, name: 'StaticsInfucl', meta: { title: '用户归属机构更换' } },
{ 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: 'Infpts', component: Infpts, name: 'StaticsInfpts', meta: { title: '客户管户机构管理' } },
{ path: 'dbipts/:extkey', component: Dbipts, name: 'StaticsDbipts', meta: { title: (tag) => { return '客户更新详情: ' + tag.params.extkey } } },
{ path: 'dbepts/:extkey', component: Dbipts, name: 'StaticsDbepts', meta: { title: (tag) => { return '客户信息修改: ' + tag.params.extkey } } },
{ 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 } } },
......@@ -250,13 +270,6 @@ const StaticsRouter = [
{ path: 'dbddia/:inr', component: Dbddia, name: 'StaticsDbddia', 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 } } },
{ 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 } } },
......
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="机构名称" prop="bchName">
<c-input v-model="model.bchname" 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="branchinr">
<c-input v-model="model.branchinr" placeholder="请输入机构编号" style="width: 100%"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: right">
<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="uclData" :columns="uclColumns" :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: 5px" size="small" type="primary"
@click="uclEdit(scope.$index, scope.row)">修改</c-button>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage,edit } from "~/service/test/ucl.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
uclData: [],
uclColumns: [
{ label: '机构名称', prop: 'bchName', width: 'auto' },
{ label: '机构编号', prop: 'branchinr', width: 'auto' },
{ label: '是否默认机构', prop: 'usrdefCn', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfuclSearch()
}
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfuclSearch();
},
onInfuclSearch() {
queryByPage(this.model).then(res => {
const list = res.list
// Object.keys(list).forEach((item) => {
// let obj = list[item]
// let codArr = codes['ucl_defflg'].filter((i) => {
// return i.value == obj.usrdef.trim()
// })
// obj.usrdefCn = codArr[0].label
// })
this.uclData = 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.onInfuclSearch()
},
uclCodesByKey(key) {
return codes[key] ?? [];
},
uclEdit(index, row) {
this.$confirm("请确认是否将此机构修改为用户默认机构?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
edit(row)
.then((res) => {
this.$message.success("修改成功!")
this.onInfuclSearch()
})
.catch((err) => {
this.$message.error("修改失败!")
})
})
.catch(() => {
this.$message({
type: "info",
message: "已取消修改",
})
})
},
},
};
</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: "StaticsInfucl",
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
......@@ -30,47 +30,47 @@ export default class Xrt {
export const Pattern = {
cur: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8个字符", trigger: "blur" },
],
midrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
selrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buyrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
sel1rat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buy1rat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ttrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
odrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
resrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
rebrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ibrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
......
......@@ -35,48 +35,48 @@
</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>
<c-input-currency v-model="model.cur" placeholder="请输入货币名称">
</c-input-currency>
</el-form-item>
<el-form-item label="中间价" prop="midrat">
<c-input v-model="model.midrat" placeholder="请输入中间价">
</c-input>
<c-input-currency v-model="model.midrat" placeholder="请输入中间价">
</c-input-currency>
</el-form-item>
<el-form-item label="买入价" prop="selrat">
<c-input v-model="model.selrat" placeholder="请输入买入价">
</c-input>
<c-input-currency v-model="model.selrat" placeholder="请输入买入价">
</c-input-currency>
</el-form-item>
<el-form-item label="卖出价" prop="buyrat">
<c-input v-model="model.buyrat" placeholder="请输入卖出价">
</c-input>
<c-input-currency v-model="model.buyrat" placeholder="请输入卖出价">
</c-input-currency>
</el-form-item>
<el-form-item label="现钞卖出价" prop="sel1rat">
<c-input v-model="model.sel1rat" placeholder="请输入现钞卖出价">
</c-input>
<c-input-currency v-model="model.sel1rat" placeholder="请输入现钞卖出价">
</c-input-currency>
</el-form-item>
<el-form-item label="现钞买入价" prop="buy1rat">
<c-input v-model="model.buy1rat" placeholder="请输入现钞买入价">
</c-input>
<c-input-currency v-model="model.buy1rat" placeholder="请输入现钞买入价">
</c-input-currency>
</el-form-item>
<el-form-item label="指定买价" prop="ttrrat">
<c-input v-model="model.ttrrat" placeholder="请输入指定买价">
</c-input>
<c-input-currency v-model="model.ttrrat" placeholder="请输入指定买价">
</c-input-currency>
</el-form-item>
<el-form-item label="票据买断汇款" prop="odrrat">
<c-input v-model="model.odrrat" placeholder="请输入票据买断汇款">
</c-input>
<c-input-currency v-model="model.odrrat" placeholder="请输入票据买断汇款">
</c-input-currency>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="resrat">
<c-input v-model="model.resrat" placeholder="请输入卖出参考汇率">
</c-input>
<c-input-currency v-model="model.resrat" placeholder="请输入卖出参考汇率">
</c-input-currency>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="rebrat">
<c-input v-model="model.rebrat" placeholder="请输入卖出参考汇率">
</c-input>
<c-input-currency v-model="model.rebrat" placeholder="请输入卖出参考汇率">
</c-input-currency>
</el-form-item>
<el-form-item label="报表折算价" prop="ibrrat">
<c-input v-model="model.ibrrat" placeholder="请输入报表折算价">
</c-input>
<c-input-currency v-model="model.ibrrat" placeholder="请输入报表折算价">
</c-input-currency>
</el-form-item>
</c-col>
</div>
......
......@@ -89,7 +89,6 @@ export default {
},
},
created() {
debugger
if (this.type !== "add") {
const inr = this.$route.params.inr;
this.model.inr = this.$route.params.inr;
......@@ -147,7 +146,6 @@ export default {
if(this.tabPosition===`tab-zmqxrt`){
deleteById(this.model.inr)
.then((res) => {
debugger
this.$message.success("自贸区牌价信息删除成功!");
this.goBack(true)
})
......
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