Commit 036511fa by xionglin

静态交易ptm修改

parent 8b73c26a
import Api from "~/service/Api";
export function queryByPage(data) {
return Api.post("/service/ptm/queryByPage", data);
}
export function queryById(inr) {
return Api.post(`/service/ptm/queryById?inr=${inr}`)
}
export function queryDetailById(inr) {
return Api.post(`/service/ptm/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/service/ptm/add", data);
}
export function edit(data) {
return Api.post("/service/ptm/edit", data);
}
export function deleteById(data) {
return Api.post(`/service/ptm/deleteById`, { data });
}
......@@ -104,6 +104,8 @@ import Bdtcan from "./Bdtcan"
import Fctcan from "./Fctcan"
import Fctopn from "./Fctopn"
import Bttcan from "./Bttcan"
import Bttacc from "./Bttacc"
import Cltdav from "./Cltdav"
......@@ -300,6 +302,11 @@ 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 Infcur from "~/views/Statics/cur/views/Infcur";
import Dbacur from "~/views/Statics/cur/views/Dbacur";
import Dbicur from "~/views/Statics/cur/views/Dbicur";
......@@ -507,7 +514,6 @@ const BusRouter = [
{ path: 'botcan', component: Botcan, name: 'Botcan', meta: { title: '出口托收闭卷' } },
{ path: 'inffec', component: Botset, name: 'Inffec', meta: { title: '费用条件查询' } },
{ path: 'inffee', component: Inffee, name: 'Inffee', meta: { title: '费用管理' } },
{ path: 'infptm', component: Botset, name: 'Infptm', meta: { title: '客户BIC查询' } },
{ path: 'infbcd', component: Infbcd, name: 'Infbcd', meta: { title: '进口代收查询' } },
{ path: 'bdtcan', component: Bdtcan, name: 'Bdtcan', meta: { title: '买方信用证单据注销' } },
{ path: 'ditdla', component: Ditdla, name: 'Ditdla', meta: { title: '买方信用证减额接受' } },
......@@ -659,6 +665,10 @@ const BusRouter = [
{ path: 'dbeoit/:inr', component: Dbeoit, name: 'StaticsDbeoit', meta: { title: (tag) => { return '修改消息信息: ' + tag.params.inr } } },
{ path: 'dbdoit/:inr', component: Dbdoit, name: 'StaticsDbdoit', meta: { title: (tag) => { return '删除消息信息: ' + tag.params.inr } } },
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'infptm', component:Infptm, name: 'StaticsInfptm', meta: { title: '银行密押查询' } },
{ path: 'dbeptm/:inr', component: Dbeptm, name: 'StaticsDbeptm', meta: { title: (tag) => { return '银行密押更新: ' + tag.params.inr } } },
{ path: 'infatp', component: Infatp, name: 'StaticsInfatp', meta: { title: '交易配置信息查询' } },
{ path: 'dbaatp', component: Dbaatp, name: 'StaticsDbaatp', meta: { title: '交易配置信息新增' } },
......
......@@ -194,6 +194,7 @@ export default {
{ inifrm: "infatp", ininam: "交易模式配置查询", pntmiu: "10" },
{ inifrm: "infbch", ininam: "机构信息查询", pntmiu: "10" },
{ inifrm: 'infoit', ininam: '消息信息查询OIT', pntmiu: '10' },
{ inifrm: 'infptm', ininam: '银行密押查询', pntmiu: '10' },
{ inifrm: "infcty", ininam: "国别信息查询", pntmiu: "10" },
{ inifrm: "infcur", ininam: "币种信息查询", pntmiu: "10" },
{ inifrm: "inffec", ininam: "费率信息查询", pntmiu: "10" },
......
export default class Ptm {
constructor() {
this.data = {
inr: "",
ptainr: "",
cortyp: "",
coradr: "",
autflg: "",
autdet: "",
ver: "",
etyextkey: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"ptainr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cortyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"coradr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
"autflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"autdet": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
}
\ No newline at end of file
<template>
<m-ptm title="dbaptm" type="add"></m-ptm>
</template>
<script>
import Dbiptm from '~/views/Statics/Ptm/views/Dbiptm'
export default {
name: 'StaticsDbdptm',
components: {
'm-ptm': Dbiptm,
},
data() {
return {}
},
}
</script>
<style></style>
\ No newline at end of file
<template>
<m-ptm title="dbdptm" type="delete"></m-ptm>
</template>
<script>
import Dbiptm from '~/views/Statics/Ptm/views/Dbiptm'
export default {
name: 'StaticsDbdptm',
components: {
'm-ptm': Dbiptm,
},
data() {
return {}
},
}
</script>
<style></style>
<template>
<m-ptm ref="ptm" title="dbeptm" type="edit"></m-ptm>
</template>
<script>
import Dbiptm from "~/views/Statics/Ptm/views/Dbiptm";
export default {
name: "StaticsDbeptm",
components: {
"m-ptm": Dbiptm
},
data() {
return {
rules:{required:false}
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="ID号" prop="inr">
<c-input v-model="model.inr" placeholder="请输入ID号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联地址" prop="ptainr">
<c-input v-model="model.ptainr" placeholder="请输入关联地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="类型" prop="cortyp">
<c-input v-model="model.cortyp" placeholder="请输入类型"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" prop="coradr">
<c-input v-model="model.coradr" placeholder="请输入BIC"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="验证标志" prop="autflg">
<c-input v-model="model.autflg" placeholder="请输入验证标志"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="可选的验证关键字" prop="autdet">
<c-input v-model="model.autdet" placeholder="请输入可选的验证关键字"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="版本控制" prop="ver">
<c-input v-model="model.ver" placeholder="请输入版本控制"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联实体拥有的PTM" prop="etyextkey">
<c-input v-model="model.etyextkey" placeholder="请输入关联实体拥有的PTM">
</c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="160px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="ptm">
<c-content>
<m-ptm-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Ptm, { Pattern } from "../../model/ptm.js";
import PtmInfo from "./PtmInfo.vue";
import { add, edit, deleteById, queryDetailById,queryById} from "~/service/test/ptm.js";
export default {
name: "StaticsDbiptm",
components: {
"m-ptm-info": PtmInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiptm"
}
},
data() {
return {
model: new Ptm().data,
tabVal: "ptm",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
// this.model.inr = this.$route.params.inr;
console.log(inr);
queryById(inr).then((res) => {
debugger
if (res.inr) {
this.model = res;
} else {
this.$message.error("不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infptm的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfptm", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- 查询条件 -->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="ID号" prop="inr">
<c-input v-model="model.inr" placeholder="请输入ID号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联地址" prop="ptainr">
<c-input v-model="model.ptainr" placeholder="请输入关联地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="类型" prop="cortyp">
<c-input v-model="model.cortyp" placeholder="请输入类型"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" prop="coradr">
<c-input v-model="model.coradr" placeholder="请输入BIC"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="验证标志" prop="autflg">
<c-input v-model="model.autflg" placeholder="请输入验证标志"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="可选的验证关键字" prop="autdet">
<c-input v-model="model.autdet" placeholder="请输入可选的验证关键字"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="版本控制" prop="ver">
<c-input v-model="model.ver" placeholder="请输入版本控制"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联实体拥有的PTM" prop="etyextkey">
<c-input v-model="model.etyextkey" placeholder="请输入关联实体拥有的PTM">
</c-input>
</el-form-item>
</c-col>
</c-col>
<!-- 操作按钮 -->
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="ptmAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch"
>查询
</el-button>
</c-col>
</c-col>
<!-- 查询结果 -->
<c-col :span="24">
<c-paging-table
:data="ptmData"
:columns="ptmColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="ptmInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="ptmEdit(scope.$index, scope.row)"
>更新</c-button
>
<!--
<c-button
size="small"
style="margin-left: 5px"
@click="ptmDelete(scope.$index, scope.row)"
>删除</c-button
> -->
<!-- <el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover> -->
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import { queryByPage } from "~/service/test/ptm.js";
import CodeTable from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
entyGrp: [],
lang: CodeTable["uiltxt"],
ptmData: [],
ptmColumns: [
{ label: "ID号", prop: "inr", width: "120" },
{ label: "关联地址", prop: "ptainr", width: "120" },
{ label: "类型", prop: "cortyp", width: "120" },
{ label: "BIC", prop: "coradr", width: "120" },
{ label: "验证标志", prop: "autflg", width: "120" },
{ label: "可选的验证关键字", prop: "autdet", width: "150" },
{ label: "版本控制", prop: "ver", width: "120" },
{ label: "关联实体拥有的PTM", prop: "etyextkey", width: "170" },
],
};
},
activated() {
const { update } = this.$route.params;
if (update) {
this.onInfptmSearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfptmSearch();
},
langValue(key) {
return this.lang.filter((item) => item.value === key)[0]?.label;
},
onInfptmSearch() {
queryByPage(this.model).then((res) => {
const list = res.list ?? [];
list.map((item) => (item.uil = this.langValue(item.uil) ?? item.uil));
this.ptmData = list;
this.model.pageNum = res.pageNumber;
this.model.pageSize = res.pageSize;
this.model.total = res.total;
});
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
this.onInfptmSearch();
},
ptmAdd() {
this.$router.push(`/statics/dbaptm`);
},
ptmInfo(index, row) {
this.$router.push(`/statics/dbiptm/${row.inr}`);
},
ptmEdit(index, row) {
this.$router.push(`/statics/dbeptm/${row.inr}`);
},
ptmDelete(index, row) {
this.$router.push(`/statics/dbdptm/${row.inr}`);
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<c-page title="固定格式文本查询">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="固定格式文本查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfptm",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
etgextkey: "",
nam: "",
uil: "",
pageSize: 5,
pageNum: 1,
total: 0,
},
};
},
};
</script>
<style>
</style>
......@@ -26,12 +26,16 @@ import Dbadia from "./dia/views/Dbadia";
import Dbedia from "./dia/views/Dbedia";
import Dbddia from "./dia/views/Dbddia";
import Infoit from "./Oit/views/Infoit"
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 Infptm from "./Ptm/views/Infptm"
import Dbiptm from "./Ptm/views/Dbiptm"
import Dbeptm from "./Ptm/views/Dbeptm"
import Dbaswm from "./Swm/views/Dbaswm";
import Dbdswm from "./Swm/views/Dbdswm";
import Dbeswm from "./Swm/views/Dbeswm";
......@@ -194,6 +198,10 @@ const StaticsRouter = [
{ path: 'dbexrt/:inr', component: Dbexrt, name: 'StaticsDbexrt', meta: { title: (tag) => { return '牌价修改: ' + tag.params.inr } } },
{ path: 'dbdxrt/:inr', component: Dbdxrt, name: 'StaticsDbdxrt', meta: { title: (tag) => { return '牌价删除: ' + tag.params.inr } } },
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'infptm', component:Infptm, name: 'StaticsInfptm', meta: { title: '银行密押查询' } },
{ path: 'dbeptm/:inr', component: Dbeptm, name: 'StaticsDbeptm', meta: { title: (tag) => { return '银行密押更新: ' + tag.params.inr } } },
{ path: 'inffec', component: Inffec, name: 'StaticsInffec', meta: { title: '费率查询' } },
{ path: 'dbafec', component: Dbafec, name: 'StaticsDbafec', meta: { title: '费率新增' } },
{ path: 'dbifec/:inr', component: Dbifec, name: 'StaticsDbifec', meta: { title: (tag) => { return '费率详情: ' + tag.params.inr } } },
......
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