Commit 25bdb631 by zhujiazhan

新增静态交易infbtb,dbibtb

parent 1958cc8d
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/btb/queryByPage", data)
}
export function queryByPage_Agent(data) {
return Api.post("/manager/btb/queryByPage_Agent",data)
}
export function queryByPageByInr(data) {
return Api.post("/manager/btb/queryByPageByInr",data)
}
export function queryDetailById(data) {
return Api.post(`/manager/btb/queryById`,data)
}
export function add(data) {
return Api.post("/manager/btb/add", data)
}
export function edit(data) {
return Api.post("/manager/btb/edit", data)
}
export function deleteById(data) {
return Api.post(`/manager/btb/deleteById`,data)
}
......@@ -5,7 +5,6 @@
<script>
import Dbizmqxrt from "~/views/Statics/Dbizmqxrt";
debugger
export default {
name: "StaticsDbizmqxrt",
components: {
......@@ -20,7 +19,6 @@ export default {
// ]
}
};
debugger
</script>
<style>
......
export default class Btb {
constructor() {
this.data = {
inr: "",
corbnk: "",
corbnknam: "",
coract: "",
corptyinr:"",
lnktyp: "",
orcbch: "",
orcbchnam: "",
orcptyinr: "",
pyebch: "",
pyeptyinr: "",
pyebchnam: "",
useflg: "",
chkflg: "",
btbData:[],
pageNum: 1,
pageSize: 20,
total: 0
}
}
}
export const Pattern = {
}
<template>
<div class="eibs">
<el-form
ref="modelForm"
label-width="170px"
size="small"
label-position="right"
:model="btb"
:rules="rules"
:validate-on-rule-change="false"
:disabled="operate === 'details'"
>
<c-col :span="20" class="col-left">
<c-col :span="24">
<el-form-item label="inr" prop="inr" v-if="operate !== 'add'">
<c-input v-model="btb.inr" style="width: 100%" placeholder="请输入inr" disabled> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="代理行BIC" prop="corbnk">
<c-input v-model="btb.corbnk" style="width: 100%" placeholder="请输入代理行BIC" disabled> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="代理行名称" prop="corbnknam">
<c-input v-model="btb.corbnknam" style="width: 100%" placeholder="请输入代理行名称" disabled> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="参加行BIC" prop="pyebch">
<c-input v-model="btb.pyebch" style="width: 100%" placeholder="请输入参加行BIC"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="参加行名称" prop="pyebchnam">
<c-input v-model="btb.pyebchnam" style="width: 100%" placeholder="请输入参加行名称"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="启用标志" prop="useflg">
<c-checkbox v-model="btb.useflg" style="width: 100%;text-align: left;" placeholder="请选择启用标志" true-label="X" false-label=" "> </c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24" v-show="false">
<c-col :span="24">
<el-form-item label="coract" prop="coract">
<c-input v-model="btb.coract" style="width: 100%" placeholder="请输入coract" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="corptyinr" prop="corptyinr">
<c-input v-model="btb.corptyinr" style="width: 100%" placeholder="请输入corptyinr" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lnktyp" prop="lnktyp">
<c-input v-model="btb.lnktyp" style="width: 100%" placeholder="请输入lnktyp" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="orcbch" prop="orcbch">
<c-input v-model="btb.orcbch" style="width: 100%" placeholder="请输入orcbch" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="orcbchnam" prop="orcbchnam">
<c-input v-model="btb.orcbchnam" style="width: 100%" placeholder="请输入orcbchnam" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="orcptyinr" prop="orcptyinr">
<c-input v-model="btb.orcptyinr" style="width: 100%" placeholder="请输入orcptyinr" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="pyeptyinr" prop="pyeptyinr">
<c-input v-model="btb.pyeptyinr" style="width: 100%" placeholder="请输入pyeptyinr" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="chkflg" prop="chkflg">
<c-input v-model="btb.chkflg" style="width: 100%" placeholder="请输入chkflg" > </c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</el-form>
</div>
</template>
<script>
import { Pattern } from "./Btb.js";
import codes from "~/config/CodeTable";
export default {
name: "",
props: ['btb','operate'],
data() {
return {
rules: Pattern,
};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</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=" 代理行BIC" prop="corbnk">
<c-input
v-model="model.corbnk"
disabled
placeholder="请输入代理行BIC"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="代理行名称" prop="corbnknam">
<c-input
v-model="model.corbnknam"
maxlength="35"
placeholder="请输入代理行名称"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="24" style="text-align: right">
<el-button type="primary" size="small" @click="btbAdd()">新增</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="model.btbData"
:columns="btbColumns"
: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="btbEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="btbDelete(scope.$index, scope.row)"
>删除</c-button
>
</template>
</c-table-column>
</c-paging-table>
</c-col>
<el-dialog
:title="
'参与行信息:' +
(operate === 'details' ? '详情' : operate === 'edit' ? '修改' : '新增')
"
:visible.sync="btbDialog"
top="10vh"
width="50%"
:destroy-on-close="true"
:before-close="handleClose"
>
<m-btb-info ref="btb" :btb="btb" :operate="operate"></m-btb-info>
<span slot="footer" class="dialog-footer">
<button
class="el-button el-button--default el-button--small"
style="margin-left: 0"
size="small"
:disabled="false"
@click.prevent="cancel"
>
<span>取 消</span>
</button>
<c-button type="primary" @click="" v-if="operate === 'details'"
>确 定</c-button
>
<c-button type="primary" @click="editBtb" v-if="operate === 'edit'"
>保 存</c-button
>
<c-button type="primary" @click="saveBtb" v-if="operate === 'add'"
>保 存</c-button
>
</span>
</el-dialog>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage,edit,add,deleteById } from "~/service/test/btb.js";
import BtbInfo from "./BtbInfo";
import Btb from "./Btb.js";
export default {
name: "btbList",
components: {
"m-btb-info": BtbInfo,
},
props: ["model"],
data() {
return {
btbDialog: false,
btb: null,
operate: "",
btbColumns: [
{ label: '参加行BIC', prop: 'pyebch', width: '200' },
{ label: '参加行名称', prop: 'pyebchnam' },
{ label: '启用标志', prop: 'useflg', width: '120' },
// { label: '启用标志2', prop: 'chkflg', width: '120'},
],
};
},
created() {
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
queryFunc(pageNumber, pageSize) {
console.log(this.model)
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInfbtbSearch()
},
onInfbtbSearch() {
this.model.lnktyp="B";
queryByPage(this.model).then(res => {
const list = res.list
this.model.btbData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
/**
* 取消
*/
cancel() {
this.handleClose();
},
/**
* 修改
*/
btbEdit(index, row) {
this.btb = { ...row };
this.operate = "edit";
this.btbDialog = true;
},
editBtb() {
console.log(this.$refs.btb.$refs.modelForm);
console.log(this.$refs.btb.$refs.modelForm.$refs.useflg2);
this.$refs.btb.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.btb)
.then((res) => {
if (res.inr) {
this.$message.success("修改参与行信息成功!");
this.handleClose();
this.onInfbtbSearch();
}
})
}
});
},
btbDelete(index,row){
this.$confirm("是否真的删除?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then((res) => {
deleteById(row).then((res) => {
if (res) {
this.model.btbData.splice(index, 1);
this.$message.success("删除成功!");
} else {
this.$message.error("删除失败!");
}
});
});
},
/**
* 新增
*/
btbAdd() {
this.btb = new Btb().data;
this.btb.lnktyp="B";
this.btb.corbnk=this.model.corbnk;
this.btb.corbnknam=this.model.corbnknam;
this.btb.chkflg="X";
//都不能为空,先给空格
this.btb.coract=" ";
this.btb.corptyinr=" ",
this.btb.orcbch= " ",
this.btb.orcbchnam= " ",
this.btb.orcptyinr= " ",
this.btb.pyeptyinr= " ",
this.operate = "add";
this.btbDialog = true;
},
saveBtb(){
this.$refs.btb.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.btb).then((res) => {
this.$message.success("保存参与行信息成功!");
this.handleClose();
this.onInfbtbSearch();
})
}
});
},
handleClose(done) {
this.btbDialog = false;
if (done && typeof done === "function") {
done();
}
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="160px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="btb">
<c-content>
<m-btbList :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Btb, { Pattern } from "./Btb.js";
import {queryDetailById,queryByPageByInr } from "~/service/test/btb.js";
import BtbList from "./BtbList.vue";
export default {
name: "StaticsDbibtb",
components: {
"m-btbList": BtbList,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbibtb"
}
},
data() {
return {
model: new Btb().data,
tabVal: "btb",
rules: Pattern,
};
},
computed: {
},
created() {
const inr = this.$route.params.inr;
if(inr){
const data = {"inr":inr,"lnktyp":"B",pageNum:this.model.pageNum,pageSize:this.model.pageSize};
//通过inr查代理行信息
queryDetailById(data).then(res => {
this.model.corbnk = res.corbnk;
this.model.corbnknam = res.corbnknam;
})
queryByPageByInr(data).then(res => {
const list = res.list
if(list.length > 0){
this.model.btbData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
}else{
}
})
}
},
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)
}
});
},
/**
* update 是否更新infpty的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfbtb", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label=" 代理行BIC" prop="corbnk">
<c-input
v-model="model.corbnk"
placeholder="请输入代理行BIC"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="代理行名称" prop="corbnknam">
<c-input
v-model="model.corbnknam"
maxlength="35"
placeholder="请输入代理行名称"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<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="btbData"
:columns="btbColumns"
: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="btbInfo(scope.$index, scope.row)"
>详情</c-button
>
<!-- <c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="btbEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="btbDelete(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_Agent,queryByPage } from "~/service/test/btb.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
btbData: [],
btbColumns: [
{ label: '代理行BIC', prop: 'corbnk', width: '250' },
{ label: '代理行名称', prop: 'corbnknam' },
{ label: '参与行数', prop: 'pyenum', width: '200' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfbtbSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfbtbSearch();
},
onInfbtbSearch() {
this.model.lnktyp="B";
queryByPage_Agent(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.btbData = 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.onInfbtbSearch()
},
getCodesByKey(key) {
return codes[key] ?? [];
},
btbInfo(index, row) {
//通过corbnk , pyebch获取inr
/* this.model.corbnk = row.corbnk;
this.model.lnktyp = 'A';*/
const date = {corbnk:row.corbnk,
lnktyp:'A',
pageNum:this.model.pageNum,
pageSize:this.model.pageSize}
queryByPage(date).then(res => {
const list = res.list
if(list.length == 1){
this.$router.push(`/statics/dbibtb/${list[0].inr}`)
}else{
}
})
},
},
};
</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: "StaticsInfbtb",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
inr:"",
corbnknam: "",
pyebch:"",
corbnk: "",
lnktyp:"",
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -83,6 +83,9 @@ import Dbafee from "./Dbafee";
import Dbefee from "./Dbefee";
import Dbdfee from "./Dbdfee";
import InfBtb from "./Infbtb";
import DbiBtb from "./Dbibtb";
import Infcup from "./Infcup";
import Dbicup from "./Dbicup";
import Dbacup from "./Dbacup";
......@@ -208,6 +211,9 @@ const StaticsRouter = [
{ path: 'infbnk', component: Infbnk, name: 'StaticsInfbnk', meta: { title: '银行行号信息查询' } },
{ path: 'dbibnk/:inr', component: Dbibnk, name: 'StaticsDbibnk', meta: { title: (tag) => { return '银行行号信息详情: ' + tag.params.inr } } },
{ path: 'infbtb', component: InfBtb, name: 'StaticsInfbtb', meta: { title: '查询清算代理行' } },
{ path: 'dbibtb/:inr', component: DbiBtb, name: 'StaticsDbibtb', meta: { title: (tag) => { return '清算代理行详情: ' + tag.params.inr } } },
]
export default StaticsRouter
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