Commit 4f0cff86 by “wufan”

Merge remote-tracking branch 'origin/development-202206' into development-202206

parents 3d4aaf75 5e79dc57
......@@ -7733,6 +7733,139 @@ const CodeTable = {
{label: 'Request to amend an undertaking (BOL,SWT)', value: 'REQAMEND'},
{label: 'Amendment of a free-form undertaking e.g. dependent guar. (BOL,SWT)', value: 'ISSAMEND'},
],
swtcod:[
{ label: '/AGENT/', value: 'AGEN' },
{ label: '/COMM/', value: 'COM' },
{ label: '/CORCOM/', value: 'CORP' },
{ label: '/DISC/', value: 'DISC' },
{ label: '/INSUR/', value: 'INS' },
{ label: '/POST/', value: 'POST' },
{ label: '/STAMP/', value: 'STA' },
{ label: '/TELE/', value: 'TELE' },
{ label: '/WAREHOUSE/', value: 'WARE' },
],
dscmodflg: [
{ label: "是", value: "Y" },
{ label: "否", value: "N" },
],
grpcod:[
{ label: "Various correspondence charges", value: "CROC" },
{ label: "Guarantee comission", value: "GIC" },
],
feecod3: [
{ label: '', value: '' },
{ label: '', value: '' },
{ label: '', value: '' },
{ label: 'ADVAME', value: '出口信用证修改通知费' },
{ label: 'ADVFEE', value: '信用证通知费转递费' },
{ label: 'AMECCV', value: '进口信用证修改费' },
{ label: 'AMEFEE', value: '进口信用证修改费' },
{ label: 'ATIFEE', value: '境内汇入汇款手续费' },
{ label: 'ATOFEE', value: '境内汇出汇款手续费' },
{ label: 'BACOM', value: '进口信用证承兑费' },
{ label: 'BFINT', value: '偿付手续费(停用)' },
{ label: 'CANFEE', value: '进口信用证撤销手续费' },
{ label: 'CCFEE', value: '光票托收手续费' },
{ label: 'CEFEE', value: '出口托收手续费' },
{ label: 'CIFEE', value: '进口代收手续费' },
{ label: 'CNFFEE', value: '进口信用证保兑手续费' },
{ label: 'COFEE', value: '出口信用证保兑费' },
{ label: 'COLAME', value: '托收修改手续费' },
{ label: 'CPIFEE', value: '汇入汇款手续费' },
{ label: 'CPOFEE', value: '汇出汇款手续费' },
{ label: 'DADVAM', value: '国内信用证修改通知手续费' },
{ label: 'DADVFE', value: '国内信用证通知手续费' },
{ label: 'DAMEFE', value: '国内信用证修改手续费' },
{ label: 'DBACOM', value: '国内信用证承付手续费' },
{ label: 'DCANFE', value: '国内信用证注销手续费' },
{ label: 'DDHL11', value: '普通业务国内快邮费' },
{ label: 'DDISCR', value: '国内信用证不符点处理费' },
{ label: 'DFFFEE', value: '同业代付风险参与手续费(停用)' },
{ label: 'DHL01', value: '境外快邮费' },
{ label: 'DHL02', value: '境外快邮费' },
{ label: 'DHL03', value: '境外快邮费' },
{ label: 'DHL04', value: '境外快邮费' },
{ label: 'DHL05', value: '境外快邮费' },
{ label: 'DHL06', value: '境外快邮费' },
{ label: 'DHL07', value: '境外快邮费' },
{ label: 'DHL08', value: '境外快邮费' },
{ label: 'DHL09', value: '境外快邮费' },
{ label: 'DHL10', value: '境外快邮费' },
{ label: 'DINFEE', value: '贸金顾问咨询手续费' },
{ label: 'DISCOM', value: '国内信用证开立手续费' },
{ label: 'DISCRE', value: '不符点手续费' },
{ label: 'DJYFEE', value: '代加押手续费' },
{ label: 'DMJFEE', value: '票据转卖收入(国内证)(停用)' },
{ label: 'DPOST', value: '普通业务国内平邮费' },
{ label: 'DPRECK', value: '国内信用证议付&单手续费' },
{ label: 'DSENBK', value: '国内信用证退单手续费' },
{ label: 'DTELEX', value: '国内信用证电讯费' },
{ label: 'FFTDOM', value: '国内福费庭业务手续费' },
{ label: 'FFTDRF', value: '国内福费庭风险承担费已停用]' },
{ label: 'FFTFEE', value: '国际福费庭业务手续费' },
{ label: 'FFTRSK', value: '国际福费庭风险承担费' },
{ label: 'FOGFEE', value: '贸易融资额度管理费' },
{ label: 'FORINT', value: '国外利息(停用)' },
{ label: 'FREPAY', value: '无偿交单手续费' },
{ label: 'GACOM', value: '保函开立手续费' },
{ label: 'GECRQ', value: '保函代索赔手续费' },
{ label: 'GETAMC', value: '保函保兑手续费' },
{ label: 'GETAME', value: '保函修改通知费' },
{ label: 'GETOPN', value: '保函通知手续费' },
{ label: 'GlAME', value: '保函修改手续费' },
{ label: 'GlAME1', value: '保函修改手续费' },
{ label: 'GIAME2', value: '保函修改手续费' },
{ label: 'GlAME3', value: '保函修改手续费' },
{ label: 'GlAME4', value: '保函修改手续费' },
{ label: 'GIAME5', value: '保函修改手续费' },
{ label: 'GIAME6', value: '保函修改手续费' },
{ label: 'GIAME7', value: '保函修改手续费' },
{ label: 'GlAME8', value: '保函修改手续费' },
{ label: 'GIAME9', value: '保函修改手续费' },
{ label: 'GIFEE4', value: '保函开立手续费(停用)' },
{ label: 'GIOPN1', value: '保函开立手续费' },
{ label: 'GIOPN2', value: '保函开立手续费' },
{ label: 'GIOPN3', value: '保函开立手续费' },
{ label: 'GIOPN4', value: '保函开立手续费' },
{ label: 'GIOPN5', value: '保函开立手续费' },
{ label: 'GIOPN6', value: '转开保函手续费' },
{ label: 'GIOPN7', value: '保函开立手续费' },
{ label: 'GIOPN8', value: '信贷证明手续费' },
{ label: 'GIOPN9', value: '预开银关保函手续费' },
{ label: 'GIOTH', value: '保函代审核及其他手续费' },
{ label: 'GPGFEE', value: '货押北务管理费' },
{ label: 'GYLFEE', value: '供应链融资手续费(停用)' },
{ label: 'HTEMIN', value: '十个月浮动利息' },
{ label: 'HYJFEE', value: '代核印鉴手续费' },
{ label: 'ISSCCV', value: '进口信用证开证手续费' },
{ label: 'ISSCOM', value: '进口信用证开证手续费' },
{ label: 'LCRETU', value: '进口代收退单手续费' },
{ label: 'LSBFEE', value: '贸金业务额度管理费' },
{ label: 'MORFE2', value: '商通赢手续费' },
{ label: 'MORFE3', value: '保兑仓手续费' },
{ label: 'MORFEE', value: '保付加签手续费' },
{ label: 'NONEXC', value: '无兑换手续费《停用)' },
{ label: 'OTHER', value: '查询费其他费用' },
{ label: 'OTMFEE', value: '其他国内贸金结算手续费' },
{ label: 'PCINT', value: '同业代付手续费' },
{ label: 'POST', value: '普通业务国外平邮费' },
{ label: 'PREADY', value: '出口信用证预通知手续费' },
{ label: 'PRECHK', value: '出口信用证议付/验单手续费' },
{ label: 'REPFEE', value: '汇款止付/修改/退汇手续费' },
{ label: 'SENBAK', value: '进口信用证退单手续费' },
{ label: 'SGDFEE', value: '提货担保手续费' },
{ label: 'TELEX', value: '境外电讯费' },
{ label: 'TELEXH', value: '境外电讯费(开立)' },
{ label: 'TELEXJ', value: '境内电讯费' },
{ label: 'TFINT', value: '票据转卖收入《停用)' },
{ label: 'TRAFEE', value: '转汇手续费' },
{ label: 'TRANSF', value: '出口信用证转让手续费' },
{ label: 'URPINT', value: '第三方风险参货' },
{ label: 'UUFEE', value: '托收退票/退单/撤销手续费' },
{ label: 'cpifee', value: '境外汇入汇款手续费' },
{ label: 'cpofee', value: '境外汇出汇款手续费' },
{ label: 'preadv', value: '出口信用证预通知手续费(停用)' },
],
}
export default CodeTable;
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/bopcur/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/manager/bopcur/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/bopcur/add", data)
}
export function edit(data) {
return Api.post("/manager/bopcur/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/bopcur/deleteById?inr=${inr}`)
}
\ No newline at end of file
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/fee/queryByPage", data)
}
export function queryById(data) {
return Api.post("/manager/fee/queryById",data)
}
export function add(data) {
return Api.post("/manager/fee/add", data)
}
export function edit(data) {
return Api.post("/manager/fee/edit", data)
}
export function deleteById(data) {
return Api.post("/manager/fee/deleteById",data)
}
\ No newline at end of file
......@@ -100,7 +100,7 @@ import Infbpd from "./Infbpd"
import Inftxm from "./Inftxm"
import Bctdav from "./Bctdav"
import Bctcan from "./Bctcan"
import Inffee from "./Inffee"
// import Inffee from "./Inffee"
import Infbcd from "./Infbcd"
import Bdtcan from "./Bdtcan"
import Fctcan from "./Fctcan"
......@@ -345,6 +345,12 @@ import Dbiusr from "~/views/Statics/Dbiusr";
import Dbeusr from "~/views/Statics/Dbeusr";
import Dbdusr from "~/views/Statics/Dbdusr";
import Inffee from "~/views/Statics/Inffee";
import Dbifee from "~/views/Statics/Dbifee";
import Dbafee from "~/views/Statics/Dbafee";
import Dbefee from "~/views/Statics/Dbefee";
import Dbdfee from "~/views/Statics/Dbdfee";
import Inftxm2 from "~/views/Statics/Inftxm";
/**
* 带有name的才会被添加进顶部的标签页里
......@@ -707,5 +713,11 @@ const BusRouter = [
{ path: 'dbdusr/:inr', component: Dbdusr, name: 'StaticsDbdusr', meta: { title: (tag) => { return '柜员删除: ' + tag.params.inr } } },
{ path: 'inftxm2', component: Inftxm2, name: 'StaticsInftxm', meta: { title: '固定格式文本查询' } },
{ path: 'inffee', component: Inffee, name: 'StaticsInffee', meta: { title: '费用代码查询' } },
{ path: 'dbafee', component: Dbafee, name: 'StaticsDbafee', meta: { title: '费用代码新增' } },
{ path: 'dbifee/:inr', component: Dbifee, name: 'StaticsDbifee', meta: { title: (tag) => { return '费用代码详情: ' + tag.params.inr } } },
{ path: 'dbefee/:inr', component: Dbefee, name: 'StaticsDbefee', meta: { title: (tag) => { return '费用代码修改: ' + tag.params.inr } } },
{ path: 'dbdfee/:inr', component: Dbdfee, name: 'StaticsDbdfee', meta: { title: (tag) => { return '费用代码删除: ' + tag.params.inr } } },
]
export default BusRouter
\ No newline at end of file
......@@ -32,6 +32,10 @@ import Gitsetp1 from "./Gitsetp1";
import Cfap from "./Cfap";
import Dclpp from "./Dclpp";
const tabNameToRulePathMapping = {
"dclpp": "cfagit.recp.dclp(1).dclpp",
}
export default {
components: {
"m-gitsetp1": Gitsetp1,
......@@ -48,6 +52,29 @@ export default {
},
methods: {
...Event,
handleChange(names){
console.log(names);//激活的(展开的)面板的name数组集合
if (this.isInDisplay) {
return
}
const arr = []
for (let i = 0; i < names.length; i++) {
const n = names[i];
const path = tabNameToRulePathMapping[n]//取出激活/展开面板name对应的rulePath
if (path) {
arr.push(path)
}
}
// let rulePath = arr[arr.length-1]//取最后一个展开的面板的rulePath
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created: function () {},
};
......
......@@ -2,7 +2,7 @@
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="重新开" name="rop">
<el-collapse-item title="重新开" name="rop">
<m-rop :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
......
......@@ -196,6 +196,7 @@ export default {
{ inifrm: "infcty", ininam: "国别信息查询", pntmiu: "10" },
{ inifrm: "infcur", ininam: "币种信息查询", pntmiu: "10" },
{ inifrm: "inffec", ininam: "费率信息查询", pntmiu: "10" },
{ inifrm: "inffee", ininam: "费用代码信息查询", pntmiu: "10" },
{ inifrm: "infgtx", ininam: "保函文本查询", pntmiu: "10" },
{ inifrm: "infpty", ininam: "客户信息查询", pntmiu: "10" },
{ inifrm: "inftrl", ininam: "交易权限查询", pntmiu: "10" },
......
<template>
<m-fee ref="fee" title="dbafee" type="add"></m-fee>
</template>
<script>
import Dbifee from "~/views/Statics/Dbifee";
export default {
name: "StaticsDbafee",
components: {
"m-fee": Dbifee
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-fee title="dbdfee" type="delete"></m-fee>
</template>
<script>
import Dbifee from "~/views/Statics/Dbifee";
export default {
name: "StaticsDbdfee",
components: {
"m-fee": Dbifee
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-fee title="dbefee" type="edit"></m-fee>
</template>
<script>
import Dbifee from "~/views/Statics/Dbifee";
export default {
name: "StaticsDbefee",
components: {
"m-fee": Dbifee
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Pty {
constructor() {
this.data = {
inr :"",
cod :"",
sftcod :"",
rol :"",
incflg :"",
staflg :"",
vatflg :"",
acc :"",
accacr :"",
eno :"",
reltir :"",
grpcod :"",
ver :"",
dscmodflg :"",
reltrn :"",
begdat :"",
enddat :"",
dtacod :"",
etgextkey :"",
taxacc :"",
taxflg :""
}
}
}
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" }
],
"stfcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"rol": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"incflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"staflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"vatflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"vatflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"acc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"accacr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度34个字符", "trigger": "blur" }
],
"eno": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"reltir": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"grpcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"dscmodflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"reltrn": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"dtacod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度40个字符", "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度40个字符", "trigger": "blur" }
],
"taxacc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 34, "message": "最大长度40个字符", "trigger": "blur" }
],
"taxflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度40个字符", "trigger": "blur" }
]
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="费用代码" prop="cod">
<c-select
style="width: 100%"
v-model="model.cod"
placeholder="请选择费用代码"
:code="getCodesByKey('feecod3')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="相关金额类型" prop="reltir">
<c-select
style="width: 100%"
v-model="model.reltir"
placeholder="请选择相关金额类型"
:code="getCodesByKey('calcbs')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="SWIFT报文描述" prop="sftcod">
<c-select
style="width: 100%"
v-model="model.sftcod"
placeholder="请选择SWIFT报文类型"
:code="getCodesByKey('swtcod')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="DTA报文中的费用代码" prop="dtacod">
<c-select
style="width: 100%"
v-model="model.dtacod"
placeholder="请选择DTA报文中的费用代码"
:code="getCodesByKey('dtacod')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="统计标志" prop="staflg">
<c-select
style="width: 100%"
v-model="model.staflg"
placeholder="请选择统计标志"
:code="getCodesByKey('staflgFee')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.incflg" >收入</c-checkbox>
</c-col>
<c-col :span="24">
<el-form-item label="支付此费用的默认角色" prop="rol">
<c-select
style="width: 100%"
v-model="model.rol"
placeholder="请选择支付此费用的角色"
:code="getCodesByKey('rol')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号" prop="acc">
<c-input v-model="model.acc" placeholder="请输入账号"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<c-checkbox v-model="model.dscmodflg">结算中允许修改描述</c-checkbox>
</c-col>
<c-col :span="24">
<el-form-item label="循环收费账号" prop="accacr">
<c-input v-model="model.accacr" placeholder="请输入循环收费账号">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="有关交易及业务部门" prop="reltrn">
<c-input v-model="model.reltrn" maxlength="40" placeholder="请输入有关交易及业务部门"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开始日期" prop="begdat">
<c-date-picker type="date" v-model="model.begdat" style="width:100%" placeholder="请选择开始日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="结束日期" prop="enddat">
<c-date-picker type="date" v-model="model.enddat" style="width:100%" placeholder="请选择结束日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="费用分组" prop="grpcod">
<c-select
v-model="model.grpcod"
style="width:100%"
placeholder="请选择费用的组"
:code="getCodesByKey('grpcod')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="价税分离" prop="taxflg" placeholder="是/否">
<c-select
style="width: 100%"
v-model="model.taxflg"
:code="getCodesByKey('taxflg')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="传真账号" prop="taxacc">
<c-input v-model="model.taxacc" maxlength="34" placeholder="请输入传真账号"></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="160px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="fee">
<c-content>
<m-fee-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 Fee, { Pattern } from "./Fee.js";
import FeeInfo from "./FeeInfo.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 { queryById, add, edit, deleteById } from "~/service/test/fee.js";
export default {
name: "StaticsDbifee",
components: {
"m-fee-info": FeeInfo,
// "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: "dbifee"
}
},
data() {
return {
model: new Fee().data,
tabVal: "fee",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
const data = {"inr":inr}
queryById(data).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(() => {
const data = {"inr":this.model.inr}
deleteById(data)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新inffee的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInffee", 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="bchkey">
<c-input v-model="model.bchkey" placeholder="请输入机构编码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="授权货币" prop="relcur">
<c-select v-model="model.relcur" placeholder="请选择授权货币" :code="relcur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="授权金额" prop="relamt">
<c-input v-model="model.relamt" 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="trn">
<c-input v-model="model.trn" placeholder="请输入交易代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易属性" prop="relflg">
<c-input v-model="model.relflg" placeholder="请输入交易属性"> </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="trlAdd">新增</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="trlData"
:columns="trlColumns"
: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="trlInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="trlEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="trlDelete(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/trl.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
trlData: [],
trlColumns: [
{ label: "机构编码", prop: "bchkey", width: "auto" },
{ label: "交易代码", prop: "trn", width: "auto" },
{ label: "授权货币", prop: "relcur", width: "auto" },
{ label: "授权金额", prop: "relamt", width: "auto" },
{ label: "交易属性", prop: "relflg", width: "auto" },
],
relcur: [
{ label: "AUD 澳大利亚元", value: "AUD" },
{ label: "CAD 加拿大元", value: "CAD" },
{ label: "CHF 瑞士法郎", value: "CHF" },
{ label: "CNY 人民币", value: "CNY" },
{ label: "DKK 丹麦克朗", value: "DKK" },
{ label: "EUR 欧元", value: "EUR" },
{ label: "FIM 芬兰马克", value: "FIM" },
{ label: "FRF 法国法郎", value: "FRF" },
{ label: "GBP 英镑", value: "FRF" },
{ label: "HKD 港币", value: "FRF" },
{ label: "JPY 日元", value: "FRF" },
{ label: "KRW 韩圆", value: "FRF" },
{ label: "MOP 澳门元", value: "FRF" },
{ label: "NOK 挪威克朗", value: "FRF" },
{ label: "NZD 新西兰元", value: "FRF" },
{ label: "SEK 瑞典克朗", value: "FRF" },
{ label: "SGD 新加坡元", value: "FRF" },
{ label: "THB 泰国铢", value: "FRF" },
{ label: "TWD 新台湾元", value: "FRF" },
{ label: "USD 美元", value: "FRF" },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params;
if (update) {
this.onInftrlSearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInftrlSearch();
},
onInftrlSearch() {
queryByPage(this.model).then((res) => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list;
this.trlData = 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.onInftrlSearch();
},
trlAdd() {
this.$router.push(`/statics/dbatrl`);
},
trlInfo(index, row) {
this.$router.push(`/statics/dbitrl/${row.inr}`);
},
trlEdit(index, row) {
this.$router.push(`/statics/dbetrl/${row.inr}`);
},
trlDelete(index, row) {
this.$router.push(`/statics/dbdtrl/${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>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInftrl",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// trl
bchkey: "",
trn: "",
relcur: "",
relamt: "",
ver: "",
relflg: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0,
},
};
},
};
</script>
<style></style>
<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="nam">
<c-input
v-model="model.nam"
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="feeAdd">新增</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="feeData"
:columns="feeColumns"
: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="feeInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="feeEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="feeDelete(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/fee.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
feeData: [],
feeColumns: [
{ label: '费用代码', prop: 'cod', width: '120' },
{ label: '名称', prop: 'descrp', width: '120' },
{ label: '相关金额类型', prop: 'reltir', width: '150' },
{ label: 'SWIFT报文描述', prop: 'sftcod', width: '150' },
{ label: 'DTA报文中的费用代码', prop: 'dtacod', width: '170' },
{ label: '统计标志', prop: 'staflg', width: '120' },
{ label: '支付此费用的默认角色', prop: 'rol', width: '170' },
{ label: '账号', prop: 'acc', width: '120' }
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInffeeSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInffeeSearch();
},
onInffeeSearch() {
var objectArr = codes['fepfeecod'];
var map = new Map();
for(let i =0;i<objectArr.length;i++){
map.set(objectArr[i].value,objectArr[i].label);
}
var feeList = [];
if(!this.model.cod&&this.model.nam){
for(var fee of map){
if(fee[1].includes(this.model.nam)){
feeList.push(fee[0])
}
}
}
if(this.model.cod&&this.model.nam){
for(var fee of map){
if(fee[0].includes(this.model.cod)&&fee[1].includes(this.model.nam)){
feeList.push(fee[0])
}
}
}
this.model.feelist = feeList;
console.log(this.model)
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list;
this.feeData = list;
for(let i =0;i<list.length;i++){
this.feeData[i].descrp = map.get(this.feeData[i].cod)
}
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
this.model.feelist=[];
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInffeeSearch()
},
feetypeChange(val) {
this.model.feetyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
feeAdd() {
this.$router.push(`/statics/dbafee`)
},
feeInfo(index, row) {
this.$router.push(`/statics/dbifee/${row.inr}`)
},
feeEdit(index, row) {
this.$router.push(`/statics/dbefee/${row.inr}`)
},
feeDelete(index, row) {
this.$router.push(`/statics/dbdfee/${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>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInffee",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
cod:"",
nam:"",
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -69,6 +69,12 @@ import Dbatxm from "~/views/Statics/Dbatxm";
import Dbetxm from "~/views/Statics/Dbetxm";
import Dbdtxm from "~/views/Statics/Dbdtxm";
import Inffee from "./Inffee";
import Dbifee from "./Dbifee";
import Dbafee from "./Dbafee";
import Dbefee from "./Dbefee";
import Dbdfee from "./Dbdfee";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
{ path: 'dbapty', component: Dbapty, name: 'StaticsDbapty', meta: { title: '客户新增' } },
......@@ -139,6 +145,12 @@ const StaticsRouter = [
{ path: 'dbatxm', component: Dbatxm, name: 'StaticsDbatxm', meta: { title: '固定格式文本新增' } },
{ path: 'dbetxm/:inr', component: Dbetxm, name: 'StaticsDbetxm', meta: { title: (tag) => { return '固定格式文修改: ' + tag.params.inr } } },
{ path: 'dbdtxm/:inr', component: Dbdtxm, name: 'StaticsDbdtxm', meta: { title: (tag) => { return '固定格式文删除: ' + tag.params.inr } } },
{ path: 'inffee', component: Inffee, name: 'StaticsInffee', meta: { title: '费用代码查询' } },
{ path: 'dbafee', component: Dbafee, name: 'StaticsDbafee', meta: { title: '费用代码新增' } },
{ path: 'dbifee/:inr', component: Dbifee, name: 'StaticsDbifee', meta: { title: (tag) => { return '费用代码详情: ' + tag.params.inr } } },
{ path: 'dbefee/:inr', component: Dbefee, name: 'StaticsDbefee', meta: { title: (tag) => { return '费用代码修改: ' + tag.params.inr } } },
{ path: 'dbdfee/:inr', component: Dbdfee, name: 'StaticsDbdfee', meta: { title: (tag) => { return '费用代码删除: ' + tag.params.inr } } },
]
export default StaticsRouter
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment