Commit 741177cd by zhangliding

静态交易lgb

parents 59c45162 fb68a316
import Api from "~/service/Api"
export function queryById(data) {
return Api.post("/manager/pts/queryById", data)
// export function queryById(data) {
// return Api.post("/manager/pts/queryById", data)
// }
export function queryById(extkey) {
return Api.post("/manager/pts/queryById", {extkey})
}
export function queryByPage(data) {
return Api.post("/manager/pts/queryByPage", data)
......@@ -11,8 +14,8 @@ export function queryByPage2(data) {
export function insert(data) {
return Api.post("/manager/pts/insert", data)
}
export function update(data) {
return Api.post("/manager/pts/update", data)
export function edit(data) {
return Api.post("/manager/pts/edit", data)
}
export function deleteById(data) {
return Api.post("/manager/pts/deleteById", data)
......
......@@ -4,8 +4,8 @@ export function queryByPage(data) {
return Api.post("/manager/swm/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/manager/swm/queryById?inr=${inr}`)
export function queryById(data) {
return Api.post(`/manager/swm/queryById`,data)
}
export function add(data) {
......@@ -16,6 +16,6 @@ export function edit(data) {
return Api.post("/manager/swm/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/swm/deleteById?inr=${inr}`)
export function deleteById(data) {
return Api.post(`/manager/swm/deleteById`,data)
}
\ No newline at end of file
......@@ -294,6 +294,9 @@ import Dbaact from "~/views/Statics/Dbaact";
import Dbeact from "~/views/Statics/Dbeact";
import Dbdact from "~/views/Statics/Dbdact";
import Infswm from "~/views/Statics/Infswm"
import Dbiswm from "~/views/Statics/Dbiswm"
import Infatp from "~/views/Statics/Infatp";
import Dbiatp from "~/views/Statics/Dbiatp";
import Dbaatp from "~/views/Statics/Dbaatp";
......@@ -382,6 +385,43 @@ import Dbddia from '~/views/Statics/Dbddia'
import Inflck from "~/views/Statics/Inflck"
import Infucl from "~/views/Statics/Infucl"
import Inftdh from "~/views/Statics/Inftdh"
import Dbitdh from '~/views/Statics/Dbitdh'
import Dbatdh from '~/views/Statics/Dbatdh'
import Dbetdh from '~/views/Statics/Dbetdh'
import Dbdtdh from '~/views/Statics/Dbdtdh'
import Infxrt from "~/views/Statics/Infxrt";
import Dblxrt from "~/views/Statics/Dblxrt";
import Dbaxrt from "~/views/Statics/Dbaxrt";
import Dbexrt from "~/views/Statics/Dbexrt";
import Dbdxrt from "~/views/Statics/Dbdxrt";
import Infcod from "~/views/Statics/Infcod"
import Dbicod from '~/views/Statics/Dbicod'
import Dbacod from '~/views/Statics/Dbacod'
import Dbecod from '~/views/Statics/Dbecod'
import Dbdcod from '~/views/Statics/Dbdcod'
import Infety from "~/views/Statics/Infety";
import Dbiety from "~/views/Statics/Dbiety";
import Dbaety from "~/views/Statics/Dbaety";
import Dbeety from "~/views/Statics/Dbeety";
import Dbdety from "~/views/Statics/Dbdety";
import Dblzmq from "~/views/Statics/Dblzmq";
import Dbazmq from "~/views/Statics/Dbazmq";
import Dbezmq from "~/views/Statics/Dbezmq";
import Dbdzmq from "~/views/Statics/Dbdzmq";
import Dbizmqxrt from "~/views/Statics/Dbizmqxrt";
import InfBtb from "~/views/Statics/Infbtb";
import DbiBtb from "~/views/Statics/Dbibtb";
import Infbnk from "~/views/Statics/Infbnk";
import Dbibnk from "~/views/Statics/Dbibnk";
/**
* 带有name的才会被添加进顶部的标签页里
*/
......@@ -690,6 +730,9 @@ 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: 'infswm', component: Infswm, name: 'StaticsInfswm', meta: { title: '报文栏位映射信息查询' } },
{ path: 'dbiswm', component: Dbiswm, name: 'StaticsDbiswm', meta: { title: '报文栏位映射信息详情' } },
{ path: 'infatp', component: Infatp, name: 'StaticsInfatp', meta: { title: '交易配置信息查询' } },
{ path: 'dbaatp', component: Dbaatp, name: 'StaticsDbaatp', meta: { title: '交易配置信息新增' } },
......@@ -779,5 +822,41 @@ const BusRouter = [
{ path: 'inflck', component: Inflck, name: 'StaticsInflck', meta: { title: '业务解锁' } },
{ path: 'infucl', component: Infucl, name: 'StaticsInfucl', meta: { title: '用户归属机构更换' } },
{ path: 'inftdh', component: Inftdh, name: 'StaticsInftdh', meta: { title: '节假日查询' } },
{ path: 'dbatdh', component: Dbatdh, name: 'StaticsDbatdh', meta: { title: '节假日新增' } },
{ path: 'dbitdh/:inr', component: Dbitdh, name: 'StaticsDbitdh', meta: { title: (tag) => { return '节假日详情: ' + tag.params.inr } } },
{ path: 'dbetdh/:inr', component: Dbetdh, name: 'StaticsDbetdh', meta: { title: (tag) => { return '节假日修改: ' + tag.params.inr } } },
{ path: 'dbdtdh/:inr', component: Dbdtdh, name: 'StaticsDbdtdh', meta: { title: (tag) => { return '节假日删除: ' + tag.params.inr } } },
{ path: '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: 'infcod', component: Infcod, name: 'StaticsInfcod', meta: { title: '收支申报码表查询' } },
{ path: 'dbacod', component: Dbacod, name: 'StaticsDbacod', meta: { title: '收支申报码表新增' } },
{ path: 'dbicod/:inr', component: Dbicod, name: 'StaticsDbicod', meta: { title: (tag) => { return '收支申报码表详情: ' + tag.params.inr } } },
{ path: 'dbecod/:inr', component: Dbecod, name: 'StaticsDbecod', meta: { title: (tag) => { return '收支申报码表修改: ' + tag.params.inr } } },
{ path: 'dbdcod/:inr', component: Dbdcod, name: 'StaticsDbdcod', meta: { title: (tag) => { return '收支申报码表删除: ' + tag.params.inr } } },
{ path: 'infety', component: Infety, name: 'StaticsInfety', meta: { title: '实体查询' } },
{ path: 'dbaety', component: Dbaety, name: 'StaticsDbaety', meta: { title: '实体新增' } },
{ path: 'dbiety/:inr', component: Dbiety, name: 'StaticsDbiety', meta: { title: (tag) => { return '查看实体详情信息: ' + tag.params.inr } } },
{ path: 'dbeety/:inr', component: Dbeety, name: 'StaticsDbeety', meta: { title: (tag) => { return '实体修改: ' + tag.params.inr } } },
{ path: 'dbdety/:inr', component: Dbdety, name: 'StaticsDbdety', 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: 'infbtb', component: InfBtb, name: 'StaticsInfbtb', meta: { title: '查询清算代理行' } },
{ path: 'dbibtb/:inr', component: DbiBtb, name: 'StaticsDbibtb', meta: { title: (tag) => { return '清算代理行详情: ' + tag.params.inr } } },
{ path: 'infbnk', component: Infbnk, name: 'StaticsInfbnk', meta: { title: '银行行号信息查询' } },
{ path: 'dbibnk/:inr', component: Dbibnk, name: 'StaticsDbibnk', meta: { title: (tag) => { return '银行行号信息详情: ' + tag.params.inr } } },
]
export default BusRouter
\ No newline at end of file
......@@ -122,7 +122,7 @@
v-model="model.gidgrp.rec.gartyp"
style="width: 100%"
placeholder="请选择保函类型"
:code="codes.typgar5"
:code="codes.typgar"
>
</c-select>
</el-form-item>
......
......@@ -188,19 +188,35 @@ export default {
//{ inifrm: "18",ininam: "客户查询", pntmiu: "" },
// { inifrm: "infpty", ininam: "客户信息查询", pntmiu: "10" },
// { inifrm: "infpta", ininam: "客户地址查询", pntmiu: "10" },
{ inifrm: "infact", ininam: "账号信息查询", pntmiu: "10" },
{ inifrm: "infatp", ininam: "交易模式配置查询", pntmiu: "10" },
{ inifrm: "infbch", ininam: "机构信息查询", pntmiu: "10" },
{ inifrm: "infcty", ininam: "国别信息查询", pntmiu: "10" },
{ inifrm: "infcur", ininam: "币种信息查询", pntmiu: "10" },
{ inifrm: "inffec", ininam: "费率信息查询", pntmiu: "10" },
{ inifrm: "infgtx", ininam: "保函文本查询", pntmiu: "10" },
{ inifrm: "infpty", ininam: "客户信息查询", pntmiu: "10" },
{ inifrm: "inftrl", ininam: "交易权限查询", pntmiu: "10" },
{ inifrm: "infusr", ininam: "柜员信息查询", pntmiu: "10" },
{ inifrm: "infcod", ininam: "收支申报码表查询", pntmiu: "10"},
{ inifrm: "infpta", ininam: "客户地址查询", pntmiu: "10" },
{ inifrm: 'infact', ininam: '账号信息查询', pntmiu: '10' },
{ inifrm: 'infatp', ininam: '交易模式配置查询', pntmiu: '10' },
{ inifrm: 'infbch', ininam: '机构信息查询', pntmiu: '10' },
{ inifrm: 'infcty', ininam: '国别信息查询', pntmiu: '10' },
{ inifrm: 'infcur', ininam: '币种信息查询', pntmiu: '10' },
{ inifrm: 'inffec', ininam: '费率信息查询', pntmiu: '10' },
{ inifrm: 'infgtx', ininam: '保函文本查询', pntmiu: '10' },
{ inifrm: 'infpty', ininam: '客户信息查询', pntmiu: '10' },
{ inifrm: 'inftrl', ininam: '交易权限查询', pntmiu: '10' },
{ inifrm: 'infusr', ininam: '柜员信息查询', pntmiu: '10' },
{ inifrm: 'infoit', ininam: '消息信息查询OIT', pntmiu: '10' },
{ inifrm: 'infswm', ininam: '报文栏位映射信息查询', pntmiu: '10' },
{ inifrm: 'inffee', ininam: '费用代码信息查询', pntmiu: '10' },
{ inifrm: 'infdia', ininam: '交易备忘录查询', pntmiu: '10' },
{ inifrm: 'inftxm2', ininam: '固定格式文本查询', pntmiu: '10' },
{ inifrm: 'infcup', ininam: '查询申报币种信息', pntmiu: '10' },
{ inifrm: 'inftdh', ininam: '节假日查询', pntmiu: '10' },
{ inifrm: 'infxrt', ininam: '牌价查询', pntmiu: '10' },
{ inifrm: 'inflck', ininam: '业务解锁', pntmiu: '10' },
{ inifrm: 'infucl', ininam: '用户归属机构更换', pntmiu: '10' },
{ inifrm: 'infcod', ininam: '收支申报码表查询', pntmiu: '10' },
{ inifrm: 'infety', ininam: '实体查询', pntmiu: '10' },
{ inifrm: 'dblapf', ininam: '报文格式信息查询', pntmiu: '10' },
{ inifrm: 'dblzmq', ininam: '自贸区牌价查询', pntmiu: '10' },
{ inifrm: 'infbtb', ininam: '清算代理行查询', pntmiu: '10' },
{ inifrm: 'infptm', ininam: '银行密押查询', pntmiu: '10' },
{ inifrm: 'infbnk', ininam: '联行行号信息查询', pntmiu: '10' },
// { inifrm: "gitset", ininam: "进口保函赔付", pntmiu: "13" },
// { inifrm: "gitcrq", ininam: "进口保函索赔登记", pntmiu: "13" },
{ inifrm: "14", ininam: "服务管理", pntmiu: "" },
......
<template>
<m-pts ref="pts" title="dbepts" type="edit"></m-pts>
</template>
<script>
import Dbipts from "~/views/Statics/Dbipts";
export default {
name: "StaticsDbepts",
components: {
"m-pts": Dbipts
},
data() {
return {
rules:{required:false}
};
},
};
</script>
<style>
</style>
\ No newline at end of file
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>
<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 "./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
......@@ -118,7 +118,7 @@ export default {
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res)=> {queryById(this.model)
queryDetailById(inr).then((res)=> {
if (res.inr) {
this.model = res;
} else {
......
export default class Swm {
constructor() {
this.data = {
fmt: "",
mt: "",
frm: "",
tag: "",
subtag: "",
dst: "",
ins: "",
met: "",
cpyflg: "",
ovwflg: "",
dstgrp: "",
altmapflg: "",
num: "",
}
}
}
export const Pattern = {
"fmt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"mt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"frm": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"tag": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"subtag": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"dst": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 60, "message": "最大长度60个字符", "trigger": "blur" }
],
"ins": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"met": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"cpyflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"ovwflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"dstgrp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"swm_idx": [
],
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="报文格式" prop="fmt">
<c-select v-model="model1.fmt" placeholder="请选择报文格式" :code="getCodesByKey('fmt')" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="映射交易" prop="frm">
<c-input v-model="model1.frm" 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="mt">
<c-select v-model="model1.mt" placeholder="请选择报文类型" :code="getCodesByKey('mt')" style="width:100%"></c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="swmData"
:columns="swmColumns"
:pageNumber="model1.pageNum"
:pageSize="model1.pageSize"
:total="model1.total"
v-on:queryFunc="queryFunc"
:border="true"
>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryById, add, edit, deleteById } from "~/service/test/swm.js";
export default {
name: "",
props: {
swmModel:Array,
model1:Object
},
data() {
return {
swmData: [],
swmColumns: [
{ label: "报文元素", prop: "tag", width: "auto" },
{ label: "报文元素id", prop: "subtag", width: "auto" },
{ label: "映射模型组", prop: "dstgrp", width: "auto" },
{ label: "映射字段", prop: "ovwflg", width: "auto" },
{ label: "附加映射方法", prop: "met", width: "auto" },
{ label: "指示", prop: "ins", width: "auto" }
],
};
},
methods:{
getCodesByKey(key) {
this.swmData=this.swmModel
return codes[key] ?? [];
},
queryFunc(pageNumber, pageSize) {
this.model1.pageNum = pageNumber;
this.model1.pageSize = pageSize;
queryById(this.model1).then((res) => {
const list = res.list;
this.swmModel=list;
console.log(list);
console.log(this.swmModel)
});
},
},
};
</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="swm">
<c-content>
<m-swm-info :swmModel="swmModel" :model1="model1" />
</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 Swm, { Pattern } from "./Swm.js";
import SwmInfo from "./SwmInfo.vue";
import { queryById, add, edit, deleteById } from "~/service/test/swm.js";
export default {
name: "StaticsDbiswm",
components: {
"m-swm-info": SwmInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiswm"
}
},
data() {
return {
model: new Swm().data,
tabVal: "swm",
rules: Pattern,
model1:{
frm:'',
mt:'',
fmt:'',
pageNum: 1,
pageSize: 5,
total: 0,
},
swmModel:[]
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
this.model1 = this.$route.params;
queryById(this.model1).then((res) => {
if (res.list.length!==0) {
this.swmModel = res.list;
this.model1.total=res.total
console.log("--------")
console.log(this.swmModel)
} 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(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infswm的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfswm", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -41,6 +41,23 @@
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"
......@@ -85,7 +102,7 @@ export default {
ptyColumns: [
{ label: "客户号", prop: "extkey", width: "auto" },
{ label: "客户名称", prop: "nam", width: "auto" },
{ label: "机构", prop: "branch", width: "auto" },
{ label: "机构", prop: "branch", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
],
ptaData: [],
......@@ -133,6 +150,9 @@ export default {
})
},
infptsEdit(index, row) {
this.$router.push(`/statics/dbepts/${row.extkey}`)
},
onInfptsSearch2() {
queryByPage2(this.model).then(res => {
/**
......@@ -147,6 +167,9 @@ export default {
})
},
infptsInfo(index, row) {
this.$router.push(`/statics/dbipts/${row.extkey}`)
},
queryFunc(pageNumber, pageSize) {
......
......@@ -149,7 +149,6 @@ export default {
* totalPage: 0
*/
const list = res.list;
console.log(list);
this.swmData = list;
this.model.pageNum = res.pageNumber;
this.model.pageSize = res.pageSize;
......@@ -165,7 +164,7 @@ export default {
this.$router.push(`/statics/dbaswm`);
},
swmInfo(index, row) {
this.$router.push(`/statics/dbiswm/${row.inr}`);
this.$router.push({ name: "StaticsDbiswm", params: { mt: row.mt, fmt: row.fmt, frm: row.frm,pageSize: 5,pageNum: 1 } });
},
swmEdit(index, row) {
this.$router.push(`/statics/dbeswm/${row.inr}`);
......
......@@ -25,7 +25,7 @@
import Infsea from "./Infsea";
export default {
name: "StaticsInfswn",
name: "StaticsInfswm",
components: {
"m-infsea": Infsea,
},
......
......@@ -119,6 +119,7 @@ import Dbaety from "./Dbaety";
import Dbeety from "./Dbeety";
import Dbdety from "./Dbdety";
import Infswm from "./Infswm";
import Dbiswm from "./Dbiswm";
import Inftdh from "./Inftdh";
import Dbitdh from "./Dbitdh";
......@@ -142,6 +143,12 @@ import Dbilgb from './Dbilgb'
import Dbalgb from './Dbalgb'
import Dbelgb from './Dbelgb'
import Dbdlgb from './Dbdlgb'
import Infcod from "./Infcod"
import Dbicod from './Dbicod'
import Dbacod from './Dbacod'
import Dbecod from './Dbecod'
import Dbdcod from './Dbdcod'
import Dbipts from "./Dbipts";
const StaticsRouter = [
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
......@@ -265,11 +272,13 @@ const StaticsRouter = [
{ path: 'infbtb', component: InfBtb, name: 'StaticsInfbtb', meta: { title: '查询清算代理行' } },
{ path: 'dbibtb/:inr', component: DbiBtb, name: 'StaticsDbibtb', meta: { title: (tag) => { return '清算代理行详情: ' + tag.params.inr } } },
{ path: 'Infpts', component: Infpts, name: 'StaticsDbaatx', meta: { title: '客户管户机构管理' } },
{ 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: 'infswm', component: Infswm, name: 'StaticsInfswm', meta: { title: '报文栏位映射信息查询' } },
// { path: 'dbaswm', component: Dbaswm, name: 'StaticsDbaswm', meta: { title: '报文栏位映射信息新增' } },
// { path: 'dbiswm/:inr', component: Dbiswm, name: 'StaticsDbiswm', meta: { title: (tag) => { return '报文栏位映射信息详情: ' + tag.params.inr } } },
{ path: 'dbiswm', component: Dbiswm, name: 'StaticsDbiswm', meta: { title: '报文栏位映射信息详情: ' } },
// { 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: 'inftdh', component: Inftdh, name: 'StaticsInftdh', meta: { title: '节假日查询' } },
......@@ -293,6 +302,12 @@ const StaticsRouter = [
{ path: 'dbilgb/:inr', component: Dbilgb, name: 'StaticsDbilgb', meta: { title: (tag) => { return '查看保函额度详情信息: ' + tag.params.inr } } },
{ path: 'dbelgb/:inr', component: Dbelgb, name: 'StaticsDbelgb', meta: { title: (tag) => { return '修改保函额度信息: ' + tag.params.inr } } },
{ path: 'dbdlgb/:inr', component: Dbdlgb, name: 'StaticsDbdlgb', meta: { title: (tag) => { return '删除保函额度信息: ' + tag.params.inr } } },
{ path: 'infcod', component: Infcod, name: 'StaticsInfcod', meta: { title: '收支申报码表查询' } },
{ path: 'dbacod', component: Dbacod, name: 'StaticsDbacod', meta: { title: '收支申报码表新增' } },
{ path: 'dbicod/:inr', component: Dbicod, name: 'StaticsDbicod', meta: { title: (tag) => { return '收支申报码表详情: ' + tag.params.inr } } },
{ path: 'dbecod/:inr', component: Dbecod, name: 'StaticsDbecod', meta: { title: (tag) => { return '收支申报码表修改: ' + tag.params.inr } } },
{ path: 'dbdcod/:inr', component: Dbdcod, name: 'StaticsDbdcod', meta: { title: (tag) => { return '收支申报码表删除: ' + tag.params.inr } } },
]
......
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