Commit ab19760a by xionglin

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 d470e6e7 69ba29b1
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/act/queryByPage", data)
return Api.post("/service/act/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/manager/act/queryDetailById?inr=${inr}`)
return Api.post(`/service/act/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/act/add", data)
return Api.post("/service/act/add", data)
}
export function edit(data) {
return Api.post("/manager/act/edit", data)
return Api.post("/service/act/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/act/deleteById?inr=${inr}`)
return Api.post(`/service/act/deleteById?inr=${inr}`)
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/atp/queryByPage", data)
return Api.post("/service/atp/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/manager/atp/queryById?inr=${inr}`)
return Api.post(`/service/atp/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/atp/add", data)
return Api.post("/service/atp/add", data)
}
export function hasCod(cod) {
return Api.post(`/manager/atp/hasCod?cod=${cod}`)
return Api.post(`/service/atp/hasCod?cod=${cod}`)
}
export function edit(data) {
return Api.post("/manager/atp/edit", data)
return Api.post("/service/atp/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/atp/deleteById?inr=${inr}`)
return Api.post(`/service/atp/deleteById?inr=${inr}`)
}
\ No newline at end of file
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/atx/queryByPage", data)
return Api.post("/service/atx/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/manager/atx/queryDetailById?inr=${inr}`)
return Api.post(`/service/atx/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/atx/add", data)
return Api.post("/service/atx/add", data)
}
export function edit(data) {
return Api.post("/manager/atx/edit", data)
return Api.post("/service/atx/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/atx/deleteById?inr=${inr}`)
return Api.post(`/service/atx/deleteById?inr=${inr}`)
}
\ No newline at end of file
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/swm/queryByPage", data)
}
export function queryById(data) {
return Api.post(`/service/swm/queryById`,data)
}
export function add(data) {
return Api.post("/service/swm/add", data)
}
export function edit(data) {
return Api.post("/service/swm/edit", data)
}
export function deleteById(data) {
return Api.post(`/service/swm/deleteById`,data)
}
export function count(data) {
return Api.post(`/service/swm/count`,data)
}
\ No newline at end of file
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/xrt/queryByPage", data)
}
export function queryById(data) {
return Api.post(`/service/xrt/queryById`,data)
}
export function add(data) {
return Api.post("/service/xrt/add", data)
}
export function edit(data) {
return Api.post("/service/xrt/edit", data)
}
export function deleteById(data) {
return Api.post(`/service/xrt/deleteById`,data)
}
export function queryByCUR(data){
return Api.post("/service/xrt/queryByCUR",data)
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/zmqxrt/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/service/zmqxrt/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/service/zmqxrt/add", data)
}
export function edit(data) {
return Api.post("/service/zmqxrt/edit", data)
}
export function deleteById(inr) {
return Api.post(`/service/zmqxrt/deleteById?inr=${inr}`)
}
export function queryDetailById(inr) {
return Api.post(`/service/zmqxrt/queryDetailById?inr=${inr}`)
}
\ No newline at end of file
......@@ -270,17 +270,17 @@ import Dbfdel from "./Dbfdel"
import Dbfinf from "./Dbfinf"
//添加静态交易路由
import Infact from "~/views/Statics/Infact";
import Dbiact from "~/views/Statics/Dbiact";
import Dbaact from "~/views/Statics/Dbaact";
import Dbeact from "~/views/Statics/Dbeact";
import Dbdact from "~/views/Statics/Dbdact";
import Infatp from "~/views/Statics/Infatp";
import Dbiatp from "~/views/Statics/Dbiatp";
import Dbaatp from "~/views/Statics/Dbaatp";
import Dbeatp from "~/views/Statics/Dbeatp";
import Dbdatp from "~/views/Statics/Dbdatp";
import Infact from "~/views/Statics/Act/views/Infact";
import Dbiact from "~/views/Statics/Act/views/Dbiact";
import Dbaact from "~/views/Statics/Act/views/Dbaact";
import Dbeact from "~/views/Statics/Act/views/Dbeact";
import Dbdact from "~/views/Statics/Act/views/Dbdact";
import Infatp from "~/views/Statics/Atp/views/Infatp";
import Dbiatp from "~/views/Statics/Atp/views/Dbiatp";
import Dbaatp from "~/views/Statics/Atp/views/Dbaatp";
import Dbeatp from "~/views/Statics/Atp/views/Dbeatp";
import Dbdatp from "~/views/Statics/Atp/views/Dbdatp";
import Infbch from "~/views/Statics/Infbch";
import Dbibch from "~/views/Statics/Dbibch";
......@@ -335,6 +335,28 @@ 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 Infxrt from "~/views/Statics/Xrt/views/Infxrt";
import Dblxrt from "~/views/Statics/Xrt/views/Dblxrt";
import Dbaxrt from "~/views/Statics/Xrt/views/Dbaxrt";
import Dbexrt from "~/views/Statics/Xrt/views/Dbexrt";
import Dbdxrt from "~/views/Statics/Xrt/views/Dbdxrt";
import Dbaswm from "~/views/Statics/Swm/views/Dbaswm";
import Dbdswm from "~/views/Statics/Swm/views/Dbdswm";
import Dbeswm from "~/views/Statics/Swm/views/Dbeswm";
import Dbiswm from "~/views/Statics/Swm/views/Dbiswm";
import Infswm from "~/views/Statics/Swm/views/Infswm";
/**
* 带有name的才会被添加进顶部的标签页里
*/
......@@ -685,5 +707,23 @@ const BusRouter = [
{ path: 'dbiusr/:inr', component: Dbiusr, name: 'StaticsDbiusr', meta: { title: (tag) => { return '柜员详情: ' + tag.params.inr } } },
{ path: 'dbeusr/:inr', component: Dbeusr, name: 'StaticsDbeusr', meta: { title: (tag) => { return '柜员修改: ' + tag.params.inr } } },
{ path: 'dbdusr/:inr', component: Dbdusr, name: 'StaticsDbdusr', meta: { title: (tag) => { return '柜员删除: ' + tag.params.inr } } },
{ 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: 'dbeswm/:inr', component: Dbeswm, name: 'StaticsDbeswm', meta: { title: (tag) => { return '修改报文栏位映射信息: ' + tag.params.inr } } },
{ path: 'dbdswm/:inr', component: Dbdswm, name: 'StaticsDbdswm', meta: { title: (tag) => { return '删除报文栏位映射信息: ' + tag.params.inr } } },
{ path: 'dblzmq', component: Dblzmq, name: 'StaticsDblzmq', meta: { title: '自贸区牌价查询' } },
{ path: 'dbazmq', component: Dbazmq, name: 'StaticsDbazmq', meta: { title: '自贸区牌价新增' } },
{ path: 'dbizmqxrt/:inr', component: Dbizmqxrt, name: 'StaticsDbizmqxrt', meta: { title: (tag) => { return '自贸区牌价详情: ' + tag.params.inr } } },
{ path: 'dbezmq/:inr', component: Dbezmq, name: 'StaticsDbezmq', meta: { title: (tag) => { return '自贸区牌价编辑: ' + tag.params.inr } } },
{ path: 'dbdzmq/:inr', component: Dbdzmq, name: 'StaticsDbdzmq', meta: { title: (tag) => { return '自贸区牌价删除: ' + tag.params.inr } } },
{ path: 'infxrt', component: Infxrt, name: 'StaticsInfxrt', meta: { title: '牌价查询' } },
{ path: 'dblxrt/:inr', component: Dblxrt, name: 'StaticsDblxrt', meta: { title: (tag) => { return '牌价详情: ' + tag.params.inr } } },
{ path: 'dbaxrt', component: Dbaxrt, name: 'StaticsDbaxrt', meta: { title: '牌价新增' } },
{ path: 'dbexrt/:inr', component: Dbexrt, name: 'StaticsDbexrt', meta: { title: (tag) => { return '牌价修改: ' + tag.params.inr } } },
{ path: 'dbdxrt/:inr', component: Dbdxrt, name: 'StaticsDbdxrt', meta: { title: (tag) => { return '牌价删除: ' + tag.params.inr } } },
]
export default BusRouter
\ No newline at end of file
export default class Pty {
constructor() {
this.data = {
inr: "",
cod: "",
rouflg: "",
bus: "",
concreflg: "",
dtaflg: "",
sepflg: "",
jobflg: "",
subflg: "",
lnkobj: "",
ccstyp: "",
ver: "",
bustrnflg: "",
relamt: "",
reltyp: "",
negflg: "",
dealtim: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"rouflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bus": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"concreflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"dtaflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"sepflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"jobflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"subflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"lnkobj": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"ccstyp": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"bustrnflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"relamt": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"reltyp": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"negflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"dealtim": [
{"required": true, "message": "无法保存数据"},
{"max": 5, "message": "不能大于两位数"}
],
}
<template>
<m-atp ref="atp" title="dbaatp" type="add"></m-atp>
</template>
<script>
import Dbiatp from "~/views/Statics/Atp/views/Dbiatp";
export default {
name: "StaticsDbaatp",
components: {
"m-atp": Dbiatp
},
data() {
return {};
},
mounted() {
this.$refs.fec.rules['fecList'] = [
{ type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-pty title="dbdatp" type="delete"></m-pty>
</template>
<script>
import Dbiatp from "~/views/Statics/Atp/views/Dbiatp";
export default {
name: "StaticsDbdatp",
components: {
"m-pty": Dbiatp
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-pty title="dbeatp" type="edit"></m-pty>
</template>
<script>
import Dbiatp from "~/views/Statics/Atp/views/Dbiatp";
export default {
name: "StaticsDbeatp",
components: {
"m-pty": Dbiatp
},
data() {
return {};
},
};
</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="inr">-->
<!-- <c-input-->
<!-- v-model="model.inr"-->
<!-- placeholder="请输入编号"-->
<!-- >-->
<!-- </c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
<c-col :span="24">
<el-form-item label="交易配置信息代码" prop="cod">
<c-input
v-model="model.cod"
placeholder="请输入交易配置信息代码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="控制标志" prop="rouflg">
<c-select style="width: 100%"
v-model="model.rouflg"
placeholder="请选择控制标志"
:code="getCodesByKey('chgcurflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务品种" prop="bus">
<c-input
v-model="model.bus"
placeholder="请输入业务品种"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="创建新进程标志" prop="concreflg">
<c-select style="width: 100%"
v-model="model.concreflg"
placeholder="请选择创建新进程标志"
:code="getCodesByKey('concreflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="处理数据标志" prop="dtaflg">
<c-select style="width: 100%"
v-model="model.dtaflg"
placeholder="请选择处理数据标志"
:code="getCodesByKey('chgcurflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="处理临时结算标志" prop="sepflg">
<c-select style="width: 100%"
v-model="model.sepflg"
placeholder="请选择处理临时结算标志"
:code="getCodesByKey('chgcurflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="后台进程标志" prop="jobflg">
<c-select style="width: 100%"
v-model="model.jobflg"
placeholder="请选择后台进程标志"
:code="getCodesByKey('chgcurflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="创建子合同进程" prop="subflg">
<c-select style="width: 100%"
v-model="model.subflg"
placeholder="请选择创建子合同进程"
:code="getCodesByKey('chgcurflg')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="关联表名" prop="lnkobj">
<c-input
v-model="model.lnkobj"
placeholder="请输入关联表名"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="比较类型" prop="ccstyp">
<c-select style="width: 100%"
v-model="model.ccstyp"
placeholder="请选择比较类型"
:code="getCodesByKey('ccstyp')"
>
</c-select>
</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="交易处理标志" prop="bustrnflg">
<c-select style="width: 100%"
v-model="model.bustrnflg"
placeholder="请选择交易处理标志"
:code="getCodesByKey('chgcurflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用于释放的金额" prop="relamt">
<c-select style="width: 100%"
v-model="model.relamt"
placeholder="请选择用于释放的金额"
:code="getCodesByKey('relamt')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="释放规则类型" prop="reltyp">
<c-select style="width: 100%"
v-model="model.reltyp"
placeholder="请选择释放规则类型"
:code="getCodesByKey('reltyp')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="押汇中心处理标志" prop="negflg">
<c-select style="width: 100%"
v-model="model.negflg"
placeholder="请选择押汇中心处理标志"
:code="getCodesByKey('chgcurflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易处理时间" prop="dealtim">
<c-input-currency value="0.0" class="input-currency-left"
v-model="model.dealtim"
placeholder="请输入交易处理时间"
>
</c-input-currency>
</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="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="atp">
<c-content>
<m-atp-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 Atp, { Pattern } from "../../model/Atp.js";
import AtpInfo from "./AtpInfo.vue";
import { queryById, add, edit, deleteById, hasCod } from "~/service/test/atp.js";
export default {
name: "StaticsDbiatp",
components: {
"m-atp-info": AtpInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiatp"
}
},
data() {
return {
model: new Atp().data,
tabVal: "atp",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("该信息不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
hasCod(this.model.cod)
.then((res) => {
console.log("res" + res)
if (!res) {
add(this.model)
.then((res) => {
this.$message.success("添加成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("添加失败!");
});
} else {
return 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 是否更新infatp的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfatp", 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="交易配置信息代码" prop="cod">
<c-input v-model="model.cod" 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="cod">
<c-input v-model="model.cod" placeholder="请输入代码描述" style="width: 100%">
</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="atpAdd">新增</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="atpData"
:columns="atpColumns"
: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="atpInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="atpEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="atpDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/atp.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
atpData: [],
atpColumns: [
{ label: '交易配置信息代码', prop: 'cod', width: 'auto' },
{ label: '描述', prop: 'cod', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfatpSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfatpSearch();
},
onInfatpSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.atpData = 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.onInfatpSearch()
},
atptypeChange(val) {
this.model.fectyp = val;
},
atpCodesByKey(key) {
return codes[key] ?? [];
},
atpAdd() {
this.$router.push(`/statics/dbaatp`)
},
atpInfo(index, row) {
this.$router.push(`/statics/dbiatp/${row.inr}`)
},
atpEdit(index, row) {
this.$router.push(`/statics/dbeatp/${row.inr}`)
},
atpDelete(index, row) {
this.$router.push(`/statics/dbdatp/${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">
<!--PD000039 -->
<el-tab-pane label="查询面板" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
<!-- <el-tab-pane label="交易配置信息" name="curpo">
<c-content>
<m-curpo :model="model" ref="curpo" />
</c-content>
</el-tab-pane> -->
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfatp",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
cod: "",
pageSize:5,
pageNum:1,
total:0
},
};
},
};
</script>
<style>
</style>
export default class Pty {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
ver: "",
objinr: "",
atxtyp: "",
objtyp: "",
atxcod: "",
atxtxt: "",
syncolflg: "",
synagrtyp: "",
synagrothtxt: "",
synagrdat: "",
uil: "",
gtxlegfrm: "",
covgodsrvdft: "",
gtxexpflg: "",
labaddinf: "",
laborcdat: "",
gtxpri: "",
expliatxt: "",
preinstxt: "",
gtxfullflg: "",
etgextkey: "",
gtxhndtyp: "",
getfldnrm: "",
objkey: "",
objnam: "",
gtxgartyp: "",
gtxpurpos: "",
}
}
}
export const Pattern = {
"inr": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"extkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"nam": [
{ "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"ver": [
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"objinr": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"atxtyp": [
{ "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"objtyp": [
{ "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"atxcod": [
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"atxtxt": [
],
"syncolflg": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"synagrtyp": [
{ "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"synagrothtxt": [
{ "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"synagrdat": [
{ "type": "string", "trigger": "blur" }
],
"uil": [
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"gtxlegfrm": [
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"covgodsrvdft": [
{ "type": "string", "trigger": "blur" },
{ "max": 3300, "message": "最大长度3300个字符", "trigger": "blur" }
],
"gtxexpflg": [
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"labaddinf": [
{ "type": "string", "trigger": "blur" },
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"laborcdat": [
{ "type": "string", "trigger": "blur" },
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"gtxpri": [
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"expliatxt": [
{ "type": "string", "trigger": "blur" },
{ "max": 792, "message": "最大长度792个字符", "trigger": "blur" }
],
"preinstxt": [
],
"gtxfullflg": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"etgextkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"gtxhndtyp": [
{ "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"getfldnrm": [
{ "type": "string", "trigger": "blur" },
{ "max": 60, "message": "最大长度60个字符", "trigger": "blur" }
],
"objkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"objnam": [
{ "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"gtxgartyp": [
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"gtxpurpos": [
{required: false, message: "必输项"}
],
}
<template>
<m-atx ref="atx" title="dbaatx" type="add"></m-atx>
</template>
<script>
import Dbiatx from "~/views/Statics/Atx/views/Dbiatx";
export default {
name: "StaticsDbaatx",
components: {
"m-atx": Dbiatx
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-atx title="dbdatx" type="delete"></m-atx>
</template>
<script>
import Dbiatx from "~/views/Statics/Atx/views/Dbiatx";
export default {
name: "StaticsDbdatx",
components: {
"m-atx": Dbiatx
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-atx title="dbeatx" type="edit"></m-atx>
</template>
<script>
import Dbiatx from "~/views/Statics/Atx/views/Dbiatx";
export default {
name: "StaticsDbeatx",
components: {
"m-atx": Dbiatx
},
data() {
return {};
},
};
</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="atx">
<c-content>
<m-atx-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 Atx, { Pattern } from "../../model/Atx.js";
import AtxInfo from "./AtxInfo.vue"
// import PtyInfo from "./PtyInfo.vue";
// import AdrList from "./AdrList.vue";
// import ActInfo from "./ActInfo.vue";
// import PtcInfo from "./PtcInfo.vue";
// import RatInfo from "./RatInfo.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/atx.js";
export default {
name: "StaticsDbiatx",
components: {
"m-atx-info": AtxInfo,
// "m-adr-list": AdrList,
// "m-act-info": ActInfo,
// "m-ptc-info": PtcInfo,
// "m-rat-info": RatInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiatx"
}
},
data() {
return {
model: new Atx().data,
tabVal: "atx",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("客户不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(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 是否更新infatx的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfatx", 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="保函文本用途" prop="atxcod">
<c-select style="width: 100%"
v-model="model.atxcod"
placeholder="请选择保函文本用途"
:code="getCodesByKey('atxcod')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="保函文本名" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入保函文本名"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" v-if="(this.model.atxcod==`1`)" class="col-left">
<c-col :span="24">
<el-form-item label="出具目的" prop="gtxpurpos">
<c-select style="width: 100%"
v-model="model.gtxpurpos"
placeholder="请选择出具目的"
:code="getCodesByKey('gtxpurpos') "
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函包含类型" prop="gtxgartyp">
<c-select style="width: 100%"
v-model="model.gtxgartyp"
placeholder="请选择保函包含类型"
:code="getCodesByKey('gtxgartyp')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函格式" prop="gtxlegfrm">
<c-select style="width: 100%"
v-model="model.sealegfrm"
placeholder="请选择保函格式"
:code="getCodesByKey('gtxlegfrm')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- 右 -->
<c-col :span="12" v-if="(this.model.atxcod==`1`)" class="col-right">
<c-col :span="24">
<el-form-item label="语言" prop="gtxuil">
<c-select style="width: 100%"
v-model="model.gtxuil"
placeholder="请选择语言"
:code="getCodesByKey('gtxuil')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函无责任担保标志" prop="gtxexpflg">
<c-select style="width: 100%"
v-model="model.gtxexpflg"
placeholder="请选择保函无责任担保标志"
:code="getCodesByKey('gtxexpflg')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" v-if="(this.model.atxcod==`2`)" class="col-left">
<c-col :span="24">
<!-- -->
</c-col>
</c-col>
<c-col :span="12" v-if="(this.model.atxcod==`2`)" class="col-right">
<c-col :span="24">
<!-- -->
</c-col>
</c-col>
<!-- 条件输入框下面的按钮 -->
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="atxAdd">新增</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="atxData"
:columns="atxColumns"
: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="atxInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="atxEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="atxDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/atx.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
atxData: [],
atxColumns: [
{ label: '保函文本名', prop: 'nam', width: 'auto' },
{ label: '保函用途', prop: 'atxcod', width: 'auto' },
{ label: '语言', prop: 'uil', width: 'auto' },
{ label: '保函格式', prop: 'gtxlegfrm', width: 'auto' },
{ label: '保函无责任担保标志', prop: 'gtxexpflg', width: 'auto' },
{ label: '保函包含类型', prop: 'gtxgartyp', width: 'auto' },
{ label: '出具目的', prop: 'gtxpurpos', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfatxSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfatxSearch();
},
onInfatxSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.atxData = 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.onInfatxSearch()
},
atxtypeChange(val) {
this.model.atxtyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
atxAdd() {
this.$router.push(`/statics/dbaatx`)
},
atxInfo(index, row) {
this.$router.push(`/statics/dbiatx/${row.inr}`)
},
atxEdit(index, row) {
this.$router.push(`/statics/dbeatx/${row.inr}`)
},
atxDelete(index, row) {
this.$router.push(`/statics/dbdatx/${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="140px"
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: "StaticsInfatx",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// atx
//保函文本名
nam: "",
//保函文本用途
atxcod: "",
//语言
gtxuil: "",
//保函格式
gtxlegfrm: "",
//保函无责任担保标志
gtxexpflg: "",
//保函包含类型
gtxgartyp: "",
//出具目的
gtxpurpos: "",
sealegfrm: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
export default class Act {
constructor() {
this.data = {
inr: "",
pri: "",
cur: "",
extkey: "",
seracc: "",
sernam: "",
serptytyp: "",
serptyinr: "",
holacc: "",
holnam: "",
holptytyp: "",
holptyinr: "",
cvrflg: "",
rmbflg: "",
delflg: "",
ver: "",
dirflg: "",
othbnkflg: "",
othptynam: "",
othownflg: "",
othbic6: "",
iban: "",
etgextkey: "",
nam: "",
exttyp: "",
typ: "",
extact: "",
trmtyp: "",
acctyp: "",
zmqacc: "",
actpro: "",
ptyExtkey:"",
ptyInr:"",
holPtyExtkey:"",
serPtyExtkey:"",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"pri": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"cur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"seracc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"sernam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"serptytyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"serptyinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"holacc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"holnam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"holptytyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"holptyinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cvrflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"rmbflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"delflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"dirflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"othbnkflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"othptynam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"othownflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"othbic6": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"iban": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"exttyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"typ": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"extact": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"trmtyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"acctyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"zmqacc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"actpro": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"ptyInr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"holPtyExtkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"serPtyExtkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"ptyExtkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
}
\ No newline at end of file
......@@ -26,6 +26,20 @@ import Dbaoit from "./Oit/views/Dbaoit"
import Dbdoit from "./Oit/views/Dbdoit"
import Dbeoit from "./Oit/views/Dbeoit"
import Dbaswm from "./Swm/views/Dbaswm";
import Dbdswm from "./Swm/views/Dbdswm";
import Dbeswm from "./Swm/views/Dbeswm";
import Dbiswm from "./Swm/views/Dbiswm";
import Infswm from "./Swm/views/Infswm";
// import Infcty from "./Infcty";
// import Dbicty from "./Dbicty";
// import Dbacty from "./Dbacty";
// import Dbecty from "./Dbecty";
// import Dbdcty from "./Dbdcty";
import Inffec from "./Inffec";
import Dbifec from "./Dbifec";
import Dbafec from "./Dbafec";
......@@ -50,24 +64,36 @@ import Dbabch from "./Dbabch";
import Dbebch from "./Dbebch";
import Dbdbch from "./Dbdbch";
import Infatp from "./Infatp";
import Dbiatp from "./Dbiatp";
import Dbaatp from "./Dbaatp";
import Dbeatp from "./Dbeatp";
import Dbdatp from "./Dbdatp";
import Infatp from "./Atp/views/Infatp";
import Dbiatp from "./Atp/views/Dbiatp";
import Dbaatp from "./Atp/views/Dbaatp";
import Dbeatp from "./Atp/views/Dbeatp";
import Dbdatp from "./Atp/views/Dbdatp";
//act
import Infact from "./Infact";
import Dbiact from "./Dbiact";
import Dbaact from "./Dbaact";
import Dbeact from "./Dbeact";
import Dbdact from "./Dbdact";
import Infatx from "./Infatx";
import Dbiatx from "./Dbiatx";
import Dbaatx from "./Dbaatx";
import Dbeatx from "./Dbeatx";
import Dbdatx from "./Dbdatx";
import Infact from "./Act/views/Infact";
import Dbiact from "./Act/views/Dbiact";
import Dbaact from "./Act/views/Dbaact";
import Dbeact from "./Act/views/Dbeact";
import Dbdact from "./Act/views/Dbdact";
import Infatx from "./Atx/views/Infatx";
import Dbiatx from "./Atx/views/Dbiatx";
import Dbaatx from "./Atx/views/Dbaatx";
import Dbeatx from "./Atx/views/Dbeatx";
import Dbdatx from "./Atx/views/Dbdatx";
import Dbazmq from "./Zmqxrt/views/Dbazmq";
import Dbdzmq from "./Zmqxrt/views/Dbdzmq";
import Dbezmq from "./Zmqxrt/views/Dbezmq";
import Dbizmqxrt from "./Zmqxrt/views/Dbizmqxrt";
import Dblzmq from "./Zmqxrt/views/Dblzmq";
import Infxrt from "./Xrt/views/Infxrt";
import Dblxrt from "./Xrt/views/Dblxrt";
import Dbaxrt from "./Xrt/views/Dbaxrt";
import Dbexrt from "./Xrt/views/Dbexrt";
import Dbdxrt from "./Xrt/views/Dbdxrt";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
......@@ -93,6 +119,12 @@ const StaticsRouter = [
{ path: 'dbecty/:inr', component: Dbecty, name: 'StaticsDbecty', meta: { title: (tag) => { return '国家代码修改: ' + tag.params.inr } } },
{ path: 'dbdcty/:inr', component: Dbdcty, name: 'StaticsDbdcty', meta: { title: (tag) => { return '国家代码删除: ' + tag.params.inr } } },
{ path: 'dblzmq', component: Dblzmq, name: 'StaticsDblzmq', meta: { title: '自贸区牌价查询' } },
{ path: 'dbazmq', component: Dbazmq, name: 'StaticsDbazmq', meta: { title: '自贸区牌价新增' } },
{ path: 'dbizmqxrt/:inr', component: Dbizmqxrt, name: 'StaticsDbizmqxrt', meta: { title: (tag) => { return '自贸区牌价详情: ' + tag.params.inr } } },
{ path: 'dbezmq/:inr', component: Dbezmq, name: 'StaticsDbezmq', meta: { title: (tag) => { return '自贸区牌价编辑: ' + tag.params.inr } } },
{ path: 'dbdzmq/:inr', component: Dbdzmq, name: 'StaticsDbdzmq', meta: { title: (tag) => { return '自贸区牌价删除: ' + tag.params.inr } } },
{ path: 'inffec', component: Inffec, name: 'StaticsInffec', meta: { title: '费率查询' } },
{ path: 'dbafec', component: Dbafec, name: 'StaticsDbafec', meta: { title: '费率新增' } },
{ path: 'dbifec/:inr', component: Dbifec, name: 'StaticsDbifec', meta: { title: (tag) => { return '费率详情: ' + tag.params.inr } } },
......@@ -135,11 +167,24 @@ const StaticsRouter = [
{ path: 'dbeatx/:inr', component: Dbeatx, name: 'StaticsDbeatx', meta: { title: (tag) => { return '保函文本修改: ' + tag.params.inr } } },
{ path: 'dbdatx/:inr', component: Dbdatx, name: 'StaticsDbdatx', meta: { title: (tag) => { return '保函文本删除: ' + tag.params.inr } } },
{ 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: '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: 'infxrt', component: Infxrt, name: 'StaticsInfxrt', meta: { title: '牌价查询' } },
{ path: 'dblxrt/:inr', component: Dblxrt, name: 'StaticsDblxrt', meta: { title: (tag) => { return '牌价详情: ' + tag.params.inr } } },
{ path: 'dbaxrt', component: Dbaxrt, name: 'StaticsDbaxrt', meta: { title: '牌价新增' } },
{ path: 'dbexrt/:inr', component: Dbexrt, name: 'StaticsDbexrt', meta: { title: (tag) => { return '牌价修改: ' + tag.params.inr } } },
{ path: 'dbdxrt/:inr', component: Dbdxrt, name: 'StaticsDbdxrt', meta: { title: (tag) => { return '牌价删除: ' + tag.params.inr } } },
]
export default StaticsRouter
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>
<m-swm ref="swm" title="dbaswm" type="add"></m-swm>
</template>
<script>
import Dbiswm from "~/views/Statics/Swm/views/Dbiswm";
export default {
name: "StaticsDbaswm",
components: {
"m-swm": Dbiswm
},
data() {
return {};
},
// mounted() {
// this.$refs.fec.rules['fecList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
// }
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-swm title="dbdswm" type="delete"></m-swm>
</template>
<script>
import Dbiswm from "~/views/Statics/Swm/views/Dbiswm";
export default {
name: "StaticsDbdswm",
components: {
"m-swm": Dbiswm
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-swm title="dbeswm" type="edit"></m-swm>
</template>
<script>
import Dbiswm from "~/views/Statics/Swm/views/Dbiswm";
export default {
name: "StaticsDbeswm",
components: {
"m-swm": Dbiswm
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
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="model.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="model.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-input v-model="model.mt" placeholder="请选择报文类型" style="width:100%"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" style="">
<c-table
style="text-align: center"
:list="dataList"
:paginationShow="true"
:border="true"
>
<el-table-column label="报文元素" width="auto">
<template slot-scope="scope">
<c-input
v-model="scope.row.tag"
style="width: 100%"
placeholder="请输入报文元素"
>
</c-input>
</template>
</el-table-column>
<el-table-column label="报文元素id" width="auto">
<template slot-scope="scope">
<c-input v-model="scope.row.subtag"
style="width: 100%"
placeholder="请输入报文元素id"
>
</c-input>
</template>
</el-table-column>
<el-table-column label="映射模型组" prop="dstgrp" width="auto">
<template slot-scope="scope">
<c-select v-model="scope.row.dstgrp">
<el-option
v-for="item in codes.dstgrp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="映射字段" width="auto">
<template slot-scope="scope">
<c-input v-model="scope.row.dst"
style="width: 100%"
placeholder="请输入映射字段"
>
</c-input>
</template>
</el-table-column>
<el-table-column label="覆盖标识" prop="ovwflg" width="auto">
<template slot-scope="scope">
<c-select v-model="scope.row.ovwflg">
<el-option
v-for="item in codes.ovwflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="附加映射方法" prop="met" width="auto">
<template slot-scope="scope">
<c-select v-model="scope.row.met">
<el-option
v-for="item in codes.met"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="指示" width="auto">
<template slot-scope="scope">
<c-input v-model="scope.row.ins"
style="width: 100%"
placeholder="请输入指示"
>
</c-input>
</template>
</el-table-column>
<el-table-column label="" prop="det" width="auto" fixed="right">
<template slot-scope="scope" slot="header">
<c-button
circle
style="padding: 4px"
class="el-icon-plus"
size="mini"
@click="addRowSetfol(scope)"
>
</c-button>
<c-button
style="padding: 4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRowSetfol(scope)"
>
</c-button>
</template>
<template slot-scope="scoped">
<c-button
style="margin-left: 0"
size="small"
type="primary"
icon="el-icon-info"
@click="detail2(scoped)"
></c-button>
</template>
</el-table-column>
</c-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
props:{
model:Object,
codes:Object,
swmFn:Function
},
data(){
return{
dataList:[],
dataModel:{
fmt:'',
mt:'',
frm:'',
tag:'',
subtag:'',
dst:'',
ins:'',
met:'',
cpyflg:'',
ovwflg:'',
dstgrp:'',
altmapflg:''
}
}
},
methods:{
getCodesByKey(key) {
return codes[key] ?? [];
},
addRowSetfol() {
let newRow = { ...this.newdialog };
this.dataModel=newRow
this.dataModel.fmt=this.model.fmt
this.dataModel.mt=this.model.mt
this.dataModel.frm=this.model.frm
this.dataList.splice(0, 0, this.dataModel);
this.swmFn(this.dataModel)
},
removeRowSetfol() {
this.dataList.shift();
},
detail2(){
},
}
}
</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="fmt">
<c-select v-model="model1.fmt" placeholder="请选择报文格式" :code="getCodesByKey('fmt')" style="width:100%" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="映射交易" prop="frm">
<c-input v-model="model1.frm" placeholder="请输入映射交易" :readonly="true" disabled> </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-input v-model="model1.mt" placeholder="请选择报文类型" style="width:100%" :readonly="true" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col>
<el-dialog :visible.sync="dialogVisible" center>
<c-col>
<el-form :model="swmRow" label-width="200px">
<c-col :span="16">
<el-form-item label="报文元素">
<c-input v-model="swmRow.tag" style="width: 100%" disabled/>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="报文元素id">
<c-input v-model="swmRow.subtag" style="width: 100%" disabled/>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="映射模型组">
<c-select v-model="swmRow.dstgrp" disabled>
<el-option
v-for="item in codes.dstgrp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="映射字段">
<c-input v-model="swmRow.dst" style="width: 100%" disabled/>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="附加映射方法">
<c-select v-model="swmRow.met" disabled>
<el-option
v-for="item in codes.met"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="指示">
<c-input v-model="swmRow.ins" style="width: 100%" disabled/>
</el-form-item>
</c-col>
</el-form>
</c-col>
<span slot="footer" class="dialog-footer">
<c-button type="primary" @click="saveDialog">确 定</c-button>
<c-button @click="cancelDialog">取 消</c-button>
</span>
</el-dialog>
</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-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
size="small"
style="margin-left: 5px"
@click="swmDelete(scope.$index, scope.row)"
>删除</c-button
>
</template>
</c-table-column>
</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 {
props:{
model1:Object,
swmModel:Array,
codes:Object,
},
data(){
return{
swmData: [],
swmColumns: [
{ label: "报文元素", prop: "tag", width: "auto"},
{ label: "报文元素id", prop: "subtag", width: "auto" },
{ label: "映射模型组", prop: "dstgrp", width: "auto" },
{ label: "映射字段", prop: "dst", width: "auto" },
{ label: "附加映射方法", prop: "met", width: "auto" },
{ label: "指示", prop: "ins", width: "auto" }
],
dialogVisible:false,
swmRow:{
},
}
},
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)
});
},
saveDialog(){
this.dialogVisible=false;
deleteById(this.swmRow).then((res)=>{
})
queryById(this.model1).then((res) => {
const list = res.list;
this.swmModel=list;
});
},
cancelDialog(){
this.dialogVisible=false
},
swmDelete(index,row){
this.dialogVisible=true
this.swmRow=row
this.swmRow.fmt=this.model1.fmt;
this.swmRow.mt=this.model1.mt;
this.swmRow.frm=this.model1.frm;
}
}
}
</script>
\ 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="fmt">
<c-select v-model="model1.fmt" placeholder="请选择报文格式" :code="getCodesByKey('fmt')" style="width:100%" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="映射交易" prop="frm">
<c-input v-model="model1.frm" placeholder="请输入映射交易" :readonly="true" disabled> </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-input v-model="model1.mt" placeholder="请选择报文类型" style="width:100%" :readonly="true" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col>
<el-dialog :visible.sync="dialogVisible" center>
<c-col>
<el-form :model="swmRow" label-width="200px">
<c-col :span="16">
<el-form-item label="报文元素">
<c-input v-model="swmRow.tag" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="报文元素id">
<c-input v-model="swmRow.subtag" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="映射模型组">
<c-select v-model="swmRow.dstgrp">
<el-option
v-for="item in codes.dstgrp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="映射字段">
<c-input v-model="swmRow.dst" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="附加映射方法">
<c-select v-model="swmRow.met">
<el-option
v-for="item in codes.met"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="指示">
<c-input v-model="swmRow.ins" style="width: 100%" />
</el-form-item>
</c-col>
</el-form>
</c-col>
<span slot="footer" class="dialog-footer">
<c-button type="primary" @click="saveDialog">确 定</c-button>
<c-button @click="cancelDialog">取 消</c-button>
</span>
</el-dialog>
</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-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="swmEdit(scope.$index, scope.row)"
>修改</c-button
>
<!-- <c-button
size="small"
style="margin-left: 5px"
@click="swmDelete(scope.$index, scope.row)"
>删除</c-button
> -->
</template>
</c-table-column>
</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 {
props:{
model1:Object,
swmModel:Array,
codes:Object,
},
data(){
return{
swmData: [],
swmColumns: [
{ label: "报文元素", prop: "tag", width: "auto"},
{ label: "报文元素id", prop: "subtag", width: "auto" },
{ label: "映射模型组", prop: "dstgrp", width: "auto" },
{ label: "映射字段", prop: "dst", width: "auto" },
{ label: "附加映射方法", prop: "met", width: "auto" },
{ label: "指示", prop: "ins", width: "auto" }
],
dialogVisible:false,
swmRow:{
},
}
},
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)
});
},
saveDialog(){
this.dialogVisible=false;
add(this.swmRow).then(res=>{
})
},
cancelDialog(){
this.dialogVisible=false
add(this.swmRow).then(res=>{
})
},
swmEdit(index,row){
this.dialogVisible=true
this.swmRow=row
this.swmRow.fmt=this.model1.fmt;
this.swmRow.mt=this.model1.mt;
this.swmRow.frm=this.model1.frm;
deleteById(this.swmRow).then((res)=>{
})
}
}
}
</script>
\ 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="fmt">
<c-select v-model="model1.fmt" placeholder="请选择报文格式" :code="getCodesByKey('fmt')" style="width:100%" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="映射交易" prop="frm">
<c-input v-model="model1.frm" placeholder="请输入映射交易" disabled> </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%" disabled></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: "dst", 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"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="报文栏位映射信息" name="swm">
<c-content v-show="this.type=='info'">
<m-swm-info :swmModel="swmModel" :model1="model1" />
</c-content>
<c-content v-show="this.type=='add'">
<m-swm-add :model="model" :codes="codes" :swmFn="change"></m-swm-add>
</c-content>
<c-content v-show="this.type=='edit'">
<m-swm-edit :swmModel="swmModel" :model1="model1" :codes="codes"></m-swm-edit>
</c-content>
<c-content v-show="this.type=='delete'">
<m-swm-delete :swmModel="swmModel" :model1="model1" :codes="codes"></m-swm-delete>
</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 CodeTable from "~/config/CodeTable";
import Utils from "~/utils";
import Swm, { Pattern } from "./Swm.js";
import SwmInfo from "./SwmInfo.vue";
import SwmAdd from "./SwmAdd";
import SwmEdit from "./SwmEdit.vue"
import SwmDelete from "./SwmDelete.vue";
import { queryById, add, edit, deleteById,count } from "~/service/test/swm.js";
export default {
name: "StaticsDbiswm",
components: {
"m-swm-info": SwmInfo,
"m-swm-add":SwmAdd,
"m-swm-edit":SwmEdit,
"m-swm-delete":SwmDelete
},
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,
},
dataModels:{},
swmModel:[],
codes: {...CodeTable
},
};
},
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
} else {
this.$message.error("信息不存在")
}
});
}
},
methods: {
change:function(swm){
this.dataModels=swm
},
// count(){
// count(this.model).then((res) =>{
// console.log(res)
// if(res>0){
// this.$message.error("您应该进行修改操作")
// }
// this.commitAdd()
// })
// },
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
console.log(this.dataModels)
add(this.dataModels)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$message.success("保存成功!");
this.goBack(true)
},
commitDelete() {
this.$message.success("保存成功!");
this.goBack(true)
},
/**
* 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
<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="model.fmt" placeholder="请选择报文格式" :code="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="model.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="model.mt" placeholder="请选择报文类型" :code="mt" style="width:100%"></c-select>
</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="swmAdd">新增</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="swmData"
:columns="swmColumns"
: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="swmInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="swmEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="swmDelete(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 } from "~/service/test/swm.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
swmData: [],
swmColumns: [
{ label: "报文格式", prop: "fmt", width: "auto" },
{ label: "报文类型", prop: "mt", width: "auto" },
{ label: "映射交易", prop: "frm", width: "auto" },
{ label: "配置个数", prop: "num", width: "auto" }
],
fmt: [
{ label: "DTA Import", value: "A" },
{ label: "电证", value: "C" },
{ label: "DTA Export", value: "E" },
{ label: "单证通XML", value: "H" },
{ label: "FMT", value: "Q" },
{ label: "SWIFT", value: "S" },
{ label: "TradeConnect", value: "T" },
],
mt:[
]
};
},
computed: {
},
activated() {
const { update } = this.$route.params;
if (update) {
this.onInfswmSearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfswmSearch();
},
onInfswmSearch() {
queryByPage(this.model).then((res) => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list;
this.swmData = 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.onInfswmSearch();
},
swmAdd() {
this.$router.push(`/statics/dbaswm`);
},
swmInfo(index, row) {
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({name: "StaticsDbeswm", params: { mt: row.mt, fmt: row.fmt, frm: row.frm,pageSize: 5,pageNum: 1 } });
},
swmDelete(index, row) {
this.$router.push({ name: "StaticsDbdswm", params: { mt: row.mt, fmt: row.fmt, frm: row.frm,pageSize: 5,pageNum: 1 } });
},
},
};
</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: "StaticsInfswm",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
frm:'',
mt:'',
fmt:'',
pageNum: 1,
pageSize: 5,
total: 0,
},
};
},
};
</script>
<style></style>
export default class Xrt {
constructor() {
this.data = {
// inr: "",
// extkey: "",
// nam: "",
// txt: "",
// uil: "",
// ver: "",
// etgextkey: "",
inr:"",
cur:"",
buyrat:"",
midrat:"",
selrat:"",
xrttim:"",
// midrat:"",
// selrat:"",
// buyrat:"",
sel1rat:"",
buy1rat:"",
ttrrat:"",
odrrat:"",
resrat:"",
rebrat:"",
ibrrat:"",
};
}
}
export const Pattern = {
cur: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8个字符", trigger: "blur" },
],
midrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
selrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buyrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
sel1rat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buy1rat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ttrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
odrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
resrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
rebrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ibrrat: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
}
;
<template>
<m-xrt ref="xrt" title="dbaxrt" type="add"></m-xrt>
</template>
<script>
import Dblxrt from "../Dblxrt";
export default {
name: "StaticsDbaxrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
mounted() {
this.$refs.fec.rules['fecList'] = [
{ type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-xrt title="dbdxrt" type="delete"></m-xrt>
</template>
<script>
import Dblxrt from "../Dblxrt";
export default {
name: "StaticsDbdxrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-xrt title="dbexrt" type="edit"></m-xrt>
</template>
<script>
import Dblxrt from "../Dblxrt";
export default {
name: "StaticsDbexrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="16" class="col-left" v-if="type != 'add'">
<!-- 绑定的数据 -->
<el-table
:data="xrtCURData"
style="width: 100%"
>
<!--:default-sort = "{prop: 'date', order: 'descending'}"-->
<el-table-column
prop="xrttim"
label="日末牌价"
width="auto">
</el-table-column>
<el-table-column
prop="midrat"
label="中间汇率"
sortable
width="auto">
</el-table-column>
<el-table-column
prop="selrat"
label="卖出汇率"
sortable
width="auto">
</el-table-column>
<el-table-column
prop="buyrat"
label="买入汇率"
sortable
width="aoto">
</el-table-column>
</el-table>
</c-col>
<c-col :span="8" class="col-right">
<el-form-item label="货币名称" prop="cur" v-if="type == 'add'">
<c-input v-model="model.cur" placeholder="请输入货币名称">
</c-input>
</el-form-item>
<el-form-item label="中间价" prop="midrat">
<c-input v-model="model.midrat" placeholder="请输入中间价">
</c-input>
</el-form-item>
<el-form-item label="买入价" prop="selrat">
<c-input v-model="model.selrat" placeholder="请输入买入价">
</c-input>
</el-form-item>
<el-form-item label="卖出价" prop="buyrat">
<c-input v-model="model.buyrat" placeholder="请输入卖出价">
</c-input>
</el-form-item>
<el-form-item label="现钞卖出价" prop="sel1rat">
<c-input v-model="model.sel1rat" placeholder="请输入现钞卖出价">
</c-input>
</el-form-item>
<el-form-item label="现钞买入价" prop="buy1rat">
<c-input v-model="model.buy1rat" placeholder="请输入现钞买入价">
</c-input>
</el-form-item>
<el-form-item label="指定买价" prop="ttrrat">
<c-input v-model="model.ttrrat" placeholder="请输入指定买价">
</c-input>
</el-form-item>
<el-form-item label="票据买断汇款" prop="odrrat">
<c-input v-model="model.odrrat" placeholder="请输入票据买断汇款">
</c-input>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="resrat">
<c-input v-model="model.resrat" placeholder="请输入卖出参考汇率">
</c-input>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="rebrat">
<c-input v-model="model.rebrat" placeholder="请输入卖出参考汇率">
</c-input>
</el-form-item>
<el-form-item label="报表折算价" prop="ibrrat">
<c-input v-model="model.ibrrat" placeholder="请输入报表折算价">
</c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
entyGrp: [],
props: ["model","type"],
data() {
return {
xrtCURData: [],
};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form ref="modelForm" label-width="120px" size="small" label-position="right" :model="model" :rules="rules"
:validate-on-rule-change="false" :disabled="isDisabled">
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="具体牌价信息" name="xrt">
<c-content>
<m-xrt-info ref="xrt" :model="model" :type="type"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button type="primary" style="margin-right: 10px" @click="commitAdd" v-if="type === 'add'">提 交</c-button>
<c-button type="primary" style="margin-right: 10px" @click="commitEdit" v-if="type === 'edit'">提 交</c-button>
<c-button type="primary" style="margin-right: 10px" @click="commitDelete" v-if="type === 'delete'">
</c-button>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Xrt, { Pattern } from "../../model/Xrt";
import XrtInfo from "./XrtInfo.vue";
import { queryById, add, edit, deleteById,queryByCUR} from "~/service/test/xrt.js";
export default {
name: "StaticsDblxrt",
components: {
"m-xrt-info": XrtInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dblxrt"
}
},
data() {
return {
model: new Xrt().data,
tabVal: "xrt",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const params = this.$route.params;
// queryById(inr).then((res) => {
queryById(params).then((res) => {
if (res.inr) {
this.model = res;
queryByCUR(this.model).then(res =>{
this.$refs.xrt.xrtCURData = res;
})
} else {
this.$message.error("该信息不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("添加成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("添加失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("修改成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("修改失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const params = this.$route.params;
deleteById(params)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfxrt", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="8" class="col-left">
<c-col :span="24">
<el-form-item label="货币类型" prop="cur">
<c-select
v-model="model.cur"
style="height:30px;"
placeholder="请选择货币类型"
:code="getCodesByKey('curtxt1')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="16" class="col-right">
<c-col :span="24">
<el-form-item label="时间区间" prop="opndatfrom" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.opndatfrom" value-format="yyyy-MM-dd" style="width: 100%" placeholder="请选择开始时间">
</c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.opndatto" value-format="yyyy-MM-dd" style="width: 100%" placeholder="请选择结束时间"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="xrtAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="xrtData"
:columns="xrtColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="xrtInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="xrtEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="xrtDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/xrt.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
xrtData: [],
xrtColumns: [
{ label: '货币名称', prop: 'cur', width: 'auto' },
{ label: '日期时间', prop: 'xrttim', width: 'auto' },
{ label: '中间汇率', prop: 'midrat', width: 'auto' },
{ label: '买入汇率', prop: 'buyrat', width: 'auto' },
{ label: '卖出汇率', prop: 'selrat', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfXrtSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfXrtSearch();
},
onInfXrtSearch() {
queryByPage(this.model).then(res => {
const list = res.list
this.xrtData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInfXrtSearch()
},
getCodesByKey(key) {
return codes[key] ?? [];
},
xrtAdd() {
this.$router.push(`/statics/dbaxrt`)
},
xrtInfo(index, row) {
this.$router.push(`/statics/dblxrt/${row.inr}`)
},
xrtEdit(index, row) {
this.$router.push(`/statics/dbexrt/${row.inr}`)
},
xrtDelete(index, row) {
this.$router.push(`/statics/dbdxrt/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<c-page title="客户信息查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="客户查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfxrt",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// // bch
// branch: "",
// etyexkey: "",
// bchkey: "",
// bchtyp: "",
//xrt
inr:"",
cur:"",
buyrat:"",
midrat:"",
selrat:"",
xrttim:"",
midrat:"",
selrat:"",
buyrat:"",
sel1rat:"",
buy1rat:"",
ttrrat:"",
odrrat:"",
resrat:"",
rebrat:"",
ibrrat:"",
opndatfrom:"",
opndatto:"",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
export default class Zmqxrt {
constructor() {
this.data = {
inr: "",
cur: "",
begdat: "",
enddat: "",
buyrat: "",
midrat: "",
selrat: "",
ttrrat: "",
odrrat: "",
ver: "",
resrat: "",
rebrat: "",
ibrrat: "",
sel1rat: "",
buy1rat: "",
etgextkey: "CEBGRP",
xrttim: "",
caozbz: "",
canssm: "",
}
}
}
export const Pattern = {
"inr": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cur": [
{ "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"begdat": [
{ "type": "date", "trigger": "blur" }
],
"enddat": [
{ "type": "date", "trigger": "blur" }
],
"buyrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"midrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"selrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ttrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"odrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ver": [
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"resrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"rebrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ibrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"sel1rat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"buy1rat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"etgextkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"xrttim": [
{ "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"caozbz": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
// "zmqxrt_cur": [
// ],
}
<template>
<m-zmqxrt ref="zmq" title="dbazmq" type="add"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "../Dbizmqxrt";
export default {
name: "StaticsDbizmqxrt",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {};
},
mounted() {
// this.$refs.pty.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-zmqxrt ref="zmq" title="dbezmq" type="delete"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "../Dbizmqxrt";
export default {
name: "StaticsDbezmq",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-zmqxrt ref="zmq" title="dbezmq" type="edit"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "../Dbizmqxrt";
export default {
name: "StaticsDbezmq",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {
rules:{required:false}
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="币种" prop="cur">
<c-select
v-model="model.cur"
style="width: 100%"
placeholder="请选择币种类型"
:code="getCodesByKey('cur')"
></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="开始日期"
prop="model.begdat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.begdat"
style="width: 100%"
placeholder="请选择起始日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="终止日期"
prop="model.enddat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.enddat"
style="width: 100%"
placeholder="请选择终止日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="买入价" prop="buyrat">
<c-input-currency
v-model="model.buyrat"
placeholder="请输入买入价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="中间价" prop="midrat">
<c-input-currency
v-model="model.midrat"
placeholder="请输入中间价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="卖出价" prop="selrat">
<c-input-currency
v-model="model.selrat"
placeholder="请输入卖出价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ttrrat" prop="ttrrat">
<c-input-currency
v-model="model.ttrrat"
placeholder="请输入ttrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="odrrat" prop="odrrat">
<c-input-currency
v-model="model.odrrat"
placeholder="请输入odrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="resrat" prop="resrat">
<c-input-currency
v-model="model.resrat"
placeholder="请输入resrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rebrat" prop="rebrat">
<c-input-currency
v-model="model.rebrat"
placeholder="请输入rebrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ibrrat" prop="ibrrat">
<c-input-currency
v-model="model.ibrrat"
placeholder="请输入ibrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="sel1rat" prop="sel1rat">
<c-input-currency
v-model="model.sel1rat"
placeholder="请输入sel1rat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="buy1rat" prop="buy1rat">
<c-input-currency
v-model="model.buy1rat"
placeholder="请输入buy1rat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体组代码" prop="etgextkey">
<c-input
v-model="model.etgextkey"
placeholder="请输入实体组代码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="牌价时间" prop="xrttim">
<c-input
v-model="model.xrttim"
placeholder="请输入牌价时间"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="caozbz" prop="caozbz">
<c-select
v-model="model.caozbz"
placeholder="请输入caozbz"
:code="getCodesByKey('caozbz')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="canssm" prop="canssm">
<c-input
v-model="model.canssm"
placeholder="请输入canssm"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
<!-- <c-col :span="24">-->
<!-- </c-col>-->
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "zmqxrt",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<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"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="changePosition">
<el-tab-pane label="自贸区牌价信息" name="zmqxrt">
<c-content>
<m-zmqxrt-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 Zmqxrt, { Pattern } from "../../model/Zmqxrt";
import ZmqxrtInfo from "./ZmqxrtInfo.vue";
import {queryDetailById, queryByPage, queryById, add, edit, deleteById } from "~/service/test/zmqxrt.js";
export default {
name: "StaticsDbizmqxrt",
components: {
"m-zmqxrt-info": ZmqxrtInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbizmqxrt"
}
},
data() {
return {
model: new Zmqxrt().data,
tabVal: "zmqxrt",
rules: Pattern,
tabPosition:"tab-zmqxrt",
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
debugger
if (this.type !== "add") {
const inr = this.$route.params.inr;
this.model.inr = this.$route.params.inr;
console.log(inr);
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
if(this.tabPosition===`tab-zmqxrt`){
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(() => {
if(this.tabPosition===`tab-zmqxrt`){
deleteById(this.model.inr)
.then((res) => {
debugger
this.$message.success("自贸区牌价信息删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("自贸区牌价信息删除失败!");
})};
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新dblzmq的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsDblzmq", params: { update } });
},
changePosition(tab,event){
this.tabPosition=event.target.getAttribute('id');
console.log(this.tabPosition)
},
},
};
</script>
<style>
</style>
\ No newline at end of file
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