Commit c17ddd21 by niewei

Merge branch 'develop' of http://114.115.138.98:8900/isc-v3.1/isc-web-vue into develop

parents 0fcab2fa eb440b40
......@@ -33,7 +33,7 @@ if (process.env.NODE_ENV === 'production') {//生产模式
}
} else {//开发模式
baseData = {
// "hostFunds":"localhost:28090",
"hostFunds":"localhost:28090",
"hostPublic": "localhost:31081",
"hostReport": "192.168.0.114:31090",
......
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
let rcvdatsta = this.model.sndp.rcvdatsta;
if (!rcvdatsta || rcvdatsta == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let rcvdatend = this.model.sndp.rcvdatend;
if (!rcvdatend || rcvdatend == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/webapi/gjzf/msgsel/query", {
...this.model.sndp,
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
const {codes:{sta1}} = this;
list.forEach(v=>{
for(let i in sta1){
if(sta1[i].value == v.sta){
v.sta = sta1[i].label;
}
}
})
this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.sndp.msgtyp = "";
this.model.sndp.rcvdatsta = new Date();
this.model.sndp.rcvdatend = new Date();
this.model.sndp.subtyp = "";
this.model.sndp.sndbak = "";
this.model.sndp.revbak = "";
this.model.sndp.actbic = "";
this.model.sndp.othref = "";
this.model.sndp.ownref = "";
this.model.sndp.cur = "";
this.model.sndp.act = "";
this.model.sndp.amtmin = "";
this.model.sndp.amtmax = "";
this.model.sndp.chnipt = "";
this.model.sndp.rspsta = "";
this.model.sndp.dtlchg = "";
this.model.sndp.sta = "";
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val){
this.multipleSelection = val;
}
},
};
import Utils from "~/utils"
/**
* Msgrsm Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Msgrsm Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onMdtmodTnsbtn(){
let rtnmsg = await this.executeRule("mdtmod.tnsbtn")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdtmodOrgmsg(){
let rtnmsg = await this.executeRule("mdtmod.orgmsg")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdtmodExpmsg(){
let rtnmsg = await this.executeRule("mdtmod.expmsg")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdtmodShwcipsdtl(){
let rtnmsg = await this.executeRule("mdtmod.shwcipsdtl")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRsmpSnd(){
let rtnmsg = await this.executeRule("rsmp.snd")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRsmpDrp(){
let rtnmsg = await this.executeRule("rsmp.drp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRsmpRtn(){
let rtnmsg = await this.executeRule("rsmp.rtn")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"msggrp.mpe.txt":[
{type: "string", required: true, message: "必输项"},
{max: 600,message:"长度不能超过600"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Msgrsm{
constructor () {
export default class Msgrsm {
constructor() {
this.data = {
msggrp:{
mps:{
rcvdattim:"", // 消息接收时间 .msggrp.mps.rcvdattim
srcchncod:"", // 源渠道代码 .msggrp.mps.srcchncod
tgtchncod:"", // 最终渠道代码 .msggrp.mps.tgtchncod
},
mpi:{
ownref:"", // 我方编号 .msggrp.mpi.ownref
othref:"", // 对方编码 .msggrp.mpi.othref
act:"", // 账号 .msggrp.mpi.act
cur:"", // 币种 .msggrp.mpi.cur
amt:"", // 金额 .msggrp.mpi.amt
valdat:"", // 有效期 .msggrp.mpi.valdat
},
mpe:{
txt:"", // 处理说明 .msggrp.mpe.txt
},
},
rsmp:{
pcrmod:{
mpelst:[], // .rsmp.pcrmod.mpelst
beizhu:"", // 备注 .rsmp.pcrmod.beizhu
},
nxtcldchn:"", // 国际支付前置子系统 .rsmp.nxtcldchn
chk:"", // 抄送 .rsmp.chk
nxttxtchn:"", // 子系统标签 .rsmp.nxttxtchn
mdtmod:{
mpelst:[], // .rsmp.mdtmod.mpelst
msgdtl:"", // 报文展示 .rsmp.mdtmod.msgdtl
gpelst:[], // .rsmp.mdtmod.gpelst
gpe192lst:[], // .rsmp.mdtmod.gpe192lst
gpeutrlst:[], // .rsmp.mdtmod.gpeutrlst
},
},
pageId: "" // ctx的key
}
sndp: {
rcvdatsta: "", // : 起始日期
rcvdatend: "", // : 截止日期
msgtyp: "", // : 报文标准
subtyp: "", // : 报文类型
sndbak: "", // : 发报行BIC
revbak: "", // : 收报行BIC
actbic: "", // : 账户行
othref: "", // : 21域编号
ownref: "", // : 20域编
cur: "", // : 币种
act: "", // : 账号
amtmin: "", // : 金额下限
amtmax: "", // : 金额上限
chnipt: "", // 行内系统 .sndp.chnipt
rspsta: "", // 回执状态 .sndp.rspsta
tblrsp: "", // 回执状态标签 .sndp.tblrsp
tblrsm: "", // 回执状态标签 .sndp.tblrsm
usrnam: "", // 操作员 .sndp.usrnam
starsp: "", // 处理状态标签 .sndp.starsp
starsm: "", // 处理状态标签 .sndp.starsm
sta: "", // 处理状态 .sndp.sta
dtlchg: "", // : 费用明细
starsp1: "", // 处理状态标签1 .sndp.starsp1
starsm1: "", // 处理状态标签1 .sndp.starsm1
sta1: "", // 处理状态1 .sndp.sta1
expexl: "", // 导出 .sndp.expexl
expexl2: "", // 3910导出 .sndp.expexl2
},
msggrp: {
rcvlst: [], // .msggrp.rcvlst
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--rsmp PD000011 疑似重复主页面 -->
<el-tab-pane :label="$t('rsmp.PD000011')" name="rsmp">
<m-rsmp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-rsmp :model="model" :codes="codes" ref="rsmp"/>
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Msgrsm from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Rsmp from "./Rsmp"
import CodeTable from "~/config/CodeTable";
import Msgrsm from "../model";
import event from "../event"
import Rsmp from "./Rsmp.vue"
export default {
name: "Msgrsm",
components:{
"m-rsmp" : Rsmp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "rsmp",
trnName: "msgrsm",
trnType: "",
model: new Msgrsm().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
gpicod:CodeTable.gpicod,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
stacod:CodeTable.stacod,
bnksta:CodeTable.bnksta,
gpista:CodeTable.gpista,
kpadir:CodeTable.kpadir,
area:CodeTable.area,
cpsfxdtyp:CodeTable.cpsfxdtyp,
sta:CodeTable.sta,
actsta:CodeTable.actsta,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
dircod:CodeTable.dircod,
kpstyp:CodeTable.kpstyp,
dcflg:CodeTable.dcflg,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
setmth:CodeTable.setmth,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入msgrsm交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
name: "Msgrsm",
components:{
"m-rsmp" : Rsmp,
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
provide() {
return {
root: this
}
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "rsmp",
trnName: "msgrsm",
model: new Msgrsm().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style>
<style scoped>
</style>
import Api from "@/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
let rcvdatsta = this.model.sndp.rcvdatsta;
if (!rcvdatsta || rcvdatsta == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let rcvdatend = this.model.sndp.rcvdatend;
if (!rcvdatend || rcvdatend == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/webapi/gjzf/msgsel/query", {
...this.model.sndp,
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
const {codes:{sta1}} = this;
list.forEach(v=>{
for(let i in sta1){
if(sta1[i].value == v.sta){
v.sta = sta1[i].label;
}
}
})
this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.sndp.msgtyp = "";
this.model.sndp.rcvdatsta = new Date();
this.model.sndp.rcvdatend = new Date();
this.model.sndp.subtyp = "";
this.model.sndp.sndbak = "";
this.model.sndp.revbak = "";
this.model.sndp.actbic = "";
this.model.sndp.othref = "";
this.model.sndp.ownref = "";
this.model.sndp.cur = "";
this.model.sndp.act = "";
this.model.sndp.amtmin = "";
this.model.sndp.amtmax = "";
this.model.sndp.chnipt = "";
this.model.sndp.rspsta = "";
this.model.sndp.dtlchg = "";
this.model.sndp.sta = "";
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val){
this.multipleSelection = val;
}
},
};
import Utils from "~/utils"
/**
* Msgsep Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Msgsep Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onMdtmodTnsbtn(){
let rtnmsg = await this.executeRule("mdtmod.tnsbtn")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdtmodOrgmsg(){
let rtnmsg = await this.executeRule("mdtmod.orgmsg")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdtmodExpmsg(){
let rtnmsg = await this.executeRule("mdtmod.expmsg")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdtmodShwcipsdtl(){
let rtnmsg = await this.executeRule("mdtmod.shwcipsdtl")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSeppSndagn(){
let rtnmsg = await this.executeRule("sepp.sndagn")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSeppDrp(){
let rtnmsg = await this.executeRule("sepp.drp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSeppRtn(){
let rtnmsg = await this.executeRule("sepp.rtn")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"msggrp.mpe.txt":[
{type: "string", required: true, message: "必输项"},
{max: 600,message:"长度不能超过600"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Msgsep{
constructor () {
export default class Msgsep {
constructor() {
this.data = {
msggrp:{
mps:{
rcvdattim:"", // 消息接收时间 .msggrp.mps.rcvdattim
srcchncod:"", // 源渠道代码 .msggrp.mps.srcchncod
tgtchncod:"", // 最终渠道代码 .msggrp.mps.tgtchncod
},
mpi:{
ownref:"", // 我方编号 .msggrp.mpi.ownref
othref:"", // 对方编码 .msggrp.mpi.othref
act:"", // 账号 .msggrp.mpi.act
cur:"", // 币种 .msggrp.mpi.cur
amt:"", // 金额 .msggrp.mpi.amt
valdat:"", // 有效期 .msggrp.mpi.valdat
},
mpe:{
txt:"", // 处理说明 .msggrp.mpe.txt
},
},
sepp:{
pcrmod:{
mpelst:[], // .sepp.pcrmod.mpelst
beizhu:"", // 备注 .sepp.pcrmod.beizhu
},
mdtmod:{
mpelst:[], // .sepp.mdtmod.mpelst
msgdtl:"", // 报文展示 .sepp.mdtmod.msgdtl
gpelst:[], // .sepp.mdtmod.gpelst
gpe192lst:[], // .sepp.mdtmod.gpe192lst
gpeutrlst:[], // .sepp.mdtmod.gpeutrlst
},
},
pageId: "" // ctx的key
}
sndp: {
rcvdatsta: "", // : 起始日期
rcvdatend: "", // : 截止日期
msgtyp: "", // : 报文标准
subtyp: "", // : 报文类型
sndbak: "", // : 发报行BIC
revbak: "", // : 收报行BIC
actbic: "", // : 账户行
othref: "", // : 21域编号
ownref: "", // : 20域编
cur: "", // : 币种
act: "", // : 账号
amtmin: "", // : 金额下限
amtmax: "", // : 金额上限
chnipt: "", // 行内系统 .sndp.chnipt
rspsta: "", // 回执状态 .sndp.rspsta
tblrsp: "", // 回执状态标签 .sndp.tblrsp
tblrsm: "", // 回执状态标签 .sndp.tblrsm
usrnam: "", // 操作员 .sndp.usrnam
starsp: "", // 处理状态标签 .sndp.starsp
starsm: "", // 处理状态标签 .sndp.starsm
sta: "", // 处理状态 .sndp.sta
dtlchg: "", // : 费用明细
starsp1: "", // 处理状态标签1 .sndp.starsp1
starsm1: "", // 处理状态标签1 .sndp.starsm1
sta1: "", // 处理状态1 .sndp.sta1
expexl: "", // 导出 .sndp.expexl
expexl2: "", // 3910导出 .sndp.expexl2
},
msggrp: {
rcvlst: [], // .msggrp.rcvlst
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--sepp PD000000 发送失败处理主页 -->
<el-tab-pane :label="$t('sepp.PD000000')" name="mainp">
<m-mainp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-mainp :model="model" :codes="codes" ref="mainp"/>
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Msgsep from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Mainp from "./Mainp"
import CodeTable from "~/config/CodeTable";
import Msgsep from "../model";
import event from "../event"
import Mainp from "./Mainp.vue"
export default {
name: "Msgsep",
components:{
"m-mainp" : Mainp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "mainp",
trnName: "msgsep",
trnType: "",
model: new Msgsep().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
gpicod:CodeTable.gpicod,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
stacod:CodeTable.stacod,
bnksta:CodeTable.bnksta,
gpista:CodeTable.gpista,
kpadir:CodeTable.kpadir,
area:CodeTable.area,
cpsfxdtyp:CodeTable.cpsfxdtyp,
rspsta:CodeTable.rspsta,
sta:CodeTable.sta,
actsta:CodeTable.actsta,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
dircod:CodeTable.dircod,
kpstyp:CodeTable.kpstyp,
dcflg:CodeTable.dcflg,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
msgchksta:CodeTable.msgchksta,
setmth:CodeTable.setmth,
chniptcod:CodeTable.chniptcod,
dtlchg:CodeTable.dtlchg,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入msgsep交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
name: "Msgsep",
components:{
"m-mainp" : Mainp,
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
provide() {
return {
root: this
}
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "mainp",
trnName: "msgsep",
model: new Msgsep().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style>
<style scoped>
</style>
const BusRouter = [
{ path: 'inffxd', component: () => import("./Inffxd/views"), name: 'Inffxd', meta: { title: '资结售汇报表交易查询' }, module: 'Funds' },
{ path: 'infftd', component: () => import("./Infftd1/views"), name: 'Infftd', meta: { title: '资金拆借/头寸调拨报表交易查询' }, module: 'Funds' },
{ path: 'infftd', component: () => import("./Infftd/views"), name: 'Infftd', meta: { title: '资金拆借/头寸调拨报表交易查询' }, module: 'Funds' },
{ path: 'fttatt', component: () => import("./Fttatt/views"), name: 'Fttatt', meta: { title: 'Fttatt' }, module: 'Funds' },
{ path: 'fttfcm', component: () => import("./Fttfcm/views"), name: 'Fttfcm', meta: { title: 'Fttfcm' }, module: 'Funds' },
{ path: 'fttfcn', component: () => import("./Fttfcn/views"), name: 'Fttfcn', meta: { title: 'Fttfcn' }, module: 'Funds' },
......
......@@ -24,7 +24,7 @@ export default {
}
this.load = true;
let rtnmsg = await Api.post("/webapi/gjzf/infsea/query", {
let rtnmsg = await Api.post("/funds/ftdsel/query", {
...this.model.infcon,
dir: ">",
pageNum: this.pagination.pageNum,
......@@ -49,22 +49,16 @@ export default {
}
this.load = false;
},
//nothing
async handleReset() {
this.model.infcon.ownref = "";
this.model.infcon.seaownref = "";
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.nam = "";
this.model.infcon.fxtyp = "";
this.model.infcon.trdint = "";
this.model.infcon.fudref = "";
this.model.infcon.seacur = "";
this.model.infcon.eaamtfr = "";
this.model.infcon.eaamtto = "";
//this.model.infcon.trnman = "";
this.model.infcon.acc = "";
this.model.infcon.acc2 = "";
this.model.infcon.ownusr = "";
this.model.infcon.usr = "";
},
// pageSize改变
handleSizeChange(val) {
......
import Api from "~/service/Api"
export default class Inffxd{
export default class infftd{
constructor () {
this.data = {
infcon:{
ownref:"", // 业务编号 .infcon.seaownref
nam:"", // 参与方名称Name .infcon.nam
fxtyp, //平盘类型
trdint, //结售汇类型
fudref, //资金部编号
//searef:"", // 参与方参考号 .infcon.searef
//seapty:"", // 参与方名称/BIC .infcon.seapty
opndatfrom:"", // 成交有效日期自 .infcon.opndatfrom
seaownref:"", // 业务编号 .infcon.seaownref
nam:"", // Name客户名称 .infcon.nam
opndatfrom:"", // 有效日期自 .infcon.opndatfrom
opndatto:"", // Open Date to .infcon.opndatto
seacur:"", // 币种 .infcon.seacur
seaamtfr:"", // 金额自 .infcon.seaamtfr
seaamtto:"", // Amount to .infcon.seaamtto
//trnman, //交易主体
acc, //外币结算账号
acc2, //本币结算账号
ownusr, //资金部经办人
usr, //营运部经办人
},
infbut:{
dspstm:"", // display stream .infbut.dspstm
......
......@@ -6,24 +6,31 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="业务编号" prop="ownref" style="width: 100%">
<el-form-item
label="资金调拨编号"
prop="seaownref"
style="width: 100%"
>
<c-input
v-model="model.infcon.ownref"
v-model="model.infcon.seaownref"
maxlength="40"
placeholder="请输入业务编号">
placeholder="请输入资金调拨编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="成交有效日期"
label="开立有效日期"
prop="opndatfrom"
style="width: 100%">
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatfrom"
style="width: 100%"></c-date-picker>
style="width: 100%"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
......@@ -32,16 +39,18 @@
<c-date-picker
type="date"
v-model="model.infcon.opndatto"
style="width: 100%"></c-date-picker>
style="width: 100%"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="参与方名称" prop="nam" style="width: 100%">
<el-form-item label="业务名称" prop="nam" style="width: 100%">
<c-input
v-model="model.infcon.nam"
maxlength="40"
placeholder="请填写名称">
placeholder="请填写业务名称"
>
</c-input>
</el-form-item>
</c-col>
......@@ -51,31 +60,6 @@
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="平盘类型" prop="fxtyp" style="width: 100%">
<c-input
v-model="model.infcon.fxtyp"
maxlength="40"
placeholder="请输入平盘类型"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="结售汇类型"
prop="trdint"
style="width: 100%"
>
<c-input
v-model="model.infcon.trdint"
maxlength="40"
placeholder="请输入结售汇类型"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="seacur" style="width: 100%">
<c-select
v-model="model.infcon.cur"
......@@ -86,13 +70,12 @@
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item :label="$t('lc.金额区间')" style="width: 100%">
<c-col :span="11">
<c-input
v-model="model.infcon.seaamtfr"
v-model="model.infcon.amtmin"
:placeholder="$t('lc.请输入金额下限')"
style="width: 100%"
></c-input>
......@@ -102,77 +85,13 @@
</c-col>
<c-col :span="11">
<c-input
v-model="model.infcon.seaamtto"
v-model="model.infcon.amtmax"
:placeholder="$t('lc.请输入金额上限')"
style="width: 100%"
></c-input>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="资金部编号"
prop="fudref"
style="width: 100%"
>
<c-input
v-model="model.infcon.fudref"
maxlength="40"
placeholder="请输入资金部编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="资金部经办人"
prop="ownusr"
style="width: 100%"
>
<c-input
v-model="model.infcon.ownusr"
maxlength="40"
placeholder="请输入资金部经办人"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="外币结算账号" prop="acc" style="width: 100%">
<c-input
v-model="model.infcon.acc"
maxlength="40"
placeholder="请输入外币结算账号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="本币结算账号"
prop="acc2"
style="width: 100%"
>
<c-input
v-model="model.infcon.acc2"
maxlength="40"
placeholder="请输入本币结算账号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="营运部经办人" prop="usr" style="width: 100%">
<c-input
v-model="model.infcon.usr"
maxlength="40"
placeholder="请输入营运部经办人"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
</template>
......@@ -182,7 +101,7 @@
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="结售汇查询" name="jsh">
<el-tab-pane label="资金调拨查询" name="zjdb">
<el-table
:data="stmData.data"
:columns="stmData.columns"
......@@ -228,81 +147,66 @@ export default {
mixins: [event],
data() {
return {
activeTab: "jsh",
activeTab: "zjdb",
load: false,
stmData: {
columns: [
{
label: "业务编号",
label: "资金调拨编号",
prop: "ownref",
width: "180px",
},
{
label: "参与方名称",
label: "业务名称",
prop: "nam",
width: "180px",
},
{
label: "平盘类型",
prop: "fxtyp",
width: "120px",
},
{
label: "结售汇类型",
prop: "trdint",
width: "120px",
},
{
label: "开始日期",
prop: "opndatfrom",
width: "120px",
},
{
label: "结束日期",
prop: "opndatto",
label: "开立日期",
prop: "opndat",
width: "120px",
},
{
label: "资金部编号",
prop: "fudref",
label: "起息日",
prop: "valdat",
width: "120px",
},
{
label: "资金部经办人",
prop: "ownusr",
label: "资金部负责人",
prop: "ownsur",
width: "120px",
},
{
label: "营运部经办人",
label: "清算中心负责人",
prop: "usr",
width: "120px",
width: "140px",
},
{
label: "金额下限",
prop: "seaamtfr",
label: "定存拆借类型",
prop: "fttyp",
width: "120px",
},
{
label: "金额上限",
prop: "seaamtto",
label: "到期日",
prop: "matdat",
width: "120px",
},
{
label: "币种",
prop: "seacur",
label: "年利率",
prop: "rat",
width: "120px",
},
{
label: "外币结算账号",
prop: "acc",
{
label: "计息方式",
prop: "cntfra",
width: "120px",
},
{
label: "本币结算账号",
prop: "acc2",
{
label: "银行类型",
prop: "bnktyp",
width: "120px",
},
],
data: [],
},
......@@ -316,9 +220,7 @@ export default {
},
methods: {},
mounted: function () {
console.log('model=====================',this.codes);
},
mounted: function () {},
};
</script>
<style lang="less" scoped>
......
......@@ -18,13 +18,13 @@
<script>
import CodeTable from "~/config/CodeTable";
import Inffxd from "../model";
import infftd from "../model";
import event from "../event"
import Infsea from "./Infsea.vue"
export default {
name: "Inffxd",
name: "infftd",
components:{
"m-infsea" : Infsea,
......@@ -38,8 +38,8 @@ export default {
data(){
return {
tabVal: "infsea",
trnName: "inffxd",
model: new Inffxd().data,
trnName: "infftd",
model: new infftd().data,
rules: null,
codes:{...CodeTable},
};
......
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanButgetref(){
let rtnmsg = await this.executeRule("recpan.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTropDet(){
let rtnmsg = await this.executeRule("trop.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTripDet(){
let rtnmsg = await this.executeRule("trip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBenpDet(){
let rtnmsg = await this.executeRule("benp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onActpDet(){
let rtnmsg = await this.executeRule("actp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Infftd Check规则
*/
let checkObj = {
"ftdgrp.act.pts.extkey" :null,
"ftdgrp.cbs.max.amt" :null,
"infcon.seaamtto" :null,
"ftdgrp.tri.pts.extkey" :null,
"ftdgrp.tri.pts.adrblk" :null,
"ftdgrp.rec.fttyp" :null,
"ftdgrp.rec.opndat" :null,
"ftdgrp.cbs.max.cur" :null,
"ftdgrp.rec.valdat" :null,
"recpan.usr.extkey" :null,
"ftdgrp.tro.pts.adrblk" :null,
"ftdgrp.ben.pts.extkey" :null,
"ftdgrp.tro.pts.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infftd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infcon.usr.extkey" :Utils.defaultFunction,
"infcon.seapty" :Utils.defaultFunction,
"infcon.pty.extkey" :Utils.defaultFunction,
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.rec.nam" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"ftdgrp.rec.fttyp" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.act.pts.extkey" :Utils.defaultFunction,
"recpan.usr.extkey" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.usr" :Utils.defaultFunction,
"ftdgrp.rec.ownusr" :Utils.defaultFunction,
"ftdgrp.ben.pts.extkey" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
}
//你可以添加自动default处理
export default {
"infcon.seaownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.searef":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.accmng":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"infcon.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.pty.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.seapty":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.opndatfrom":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.opndatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"infcon.seaamtfr":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infcon.seaamtto":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infbut.dspstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.rec.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.rec.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recpan.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.benp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.ben.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.benp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.cbs.ins.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.ins.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"recpan.benact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"recpan.actp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.act.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"prtpanblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Infftd{
constructor () {
this.data = {
infcon:{
seaownref:"", // 业务编号 .infcon.seaownref
nam:"", // Name .infcon.nam
searef:"", // 参与方参考号 .infcon.searef
pty:{
extkey:"", // 选择一个参与方 .infcon.pty.extkey ETYEXTKEY
nam:"", // External Visible Name .infcon.pty.nam
},
seapty:"", // 参与方名称/BIC .infcon.seapty
searol:"", // Role .infcon.searol
opndatfrom:"", // 有效日期自 .infcon.opndatfrom
opndatto:"", // Open Date to .infcon.opndatto
usr:{
extkey:"", // User ID .infcon.usr.extkey
},
seasta:"", // Status .infcon.seasta
seacur:"", // 币种 .infcon.seacur
seaamtfr:"", // 金额自 .infcon.seaamtfr
seaamtto:"", // Amount to .infcon.seaamtto
accmng:"", // Account manager .infcon.accmng
},
infbut:{
dspstm:"", // display stream .infbut.dspstm
},
fttyp:"", // Funds Trans. Type .fttyp
ftdgrp:{
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
opndat:"", // 开立日期 .ftdgrp.rec.opndat
valdat:"", // 起息日 .ftdgrp.rec.valdat
ownusr:"", // 资金部负责人 .ftdgrp.rec.ownusr
usr:"", // 清算中心负责人 .ftdgrp.rec.usr
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
matdat:"", // 到期日 .ftdgrp.rec.matdat
rat:"", // 年利率 .ftdgrp.rec.rat
cntfra:"", // 计息方式 .ftdgrp.rec.cntfra
bnktyp:"", // Bank Type .ftdgrp.rec.bnktyp
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
cbs:{
max:{
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt
},
ins:{
cur:"", // 利息金额 .ftdgrp.cbs.ins.cur
amt:"", // Balance .ftdgrp.cbs.ins.amt
},
},
blk:{
remark:"", // 备注 .ftdgrp.blk.remark
},
ben:{
pts:new Pts().data,
},
act:{
pts:new Pts().data,
},
},
recpan:{
trop:{
ptsget:{
sdamod:{
seainf:"", // .recpan.trop.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.trop.ptsget.sdamod.dadsnd
},
},
},
trip:{
ptsget:{
sdamod:{
seainf:"", // .recpan.trip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.trip.ptsget.sdamod.dadsnd
},
},
},
troact:"", // Trade-out Account .recpan.troact
triact:"", // 备注 .recpan.triact
usr:{
extkey:"", // User ID .recpan.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .recpan.usrget.sdamod.seainf
},
},
benp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.benp.ptsget.sdamod.dadsnd
seainf:"", // .recpan.benp.ptsget.sdamod.seainf
},
},
},
msgtyp:"", // 报文类型 .recpan.msgtyp
benact:"", // Ben Trade-in Account .recpan.benact
actp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.actp.ptsget.sdamod.dadsnd
seainf:"", // .recpan.actp.ptsget.sdamod.seainf
},
},
},
},
prtpanblk:"", // XMLPanel prtpan的内置block .prtpanblk
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- SF000063 : 业务编号 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000063')" prop="infcon.seaownref">
<c-input v-model="model.infcon.seaownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('infcon.SF000063')"></c-input>
</c-form-item>
</c-col>
<!-- SF000062 : 名称 -->
<c-col :span="12">
<c-form-item label="Name" prop="infcon.nam">
<c-input v-model="model.infcon.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutSearow">
{{$t('infbut.CF000010')}}
</c-button>
</c-col>
<!-- SF000190 : 参与方参考号 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000190')" prop="infcon.searef">
<c-input v-model="model.infcon.searef" maxlength="16" :placeholder="$t('other.please_enter')+$t('infcon.SF000190')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutDsp">
{{$t('infbut.CF000011')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="Account manager" prop="infcon.accmng">
<c-input v-model="model.infcon.accmng" maxlength="6" :placeholder="$t('other.please_enter')+'Account manager'"></c-input>
</c-form-item>
</c-col>
<!-- SG001137 : Acc manager -->
<!-- SF000106 : 选择一个参与方 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000106')" prop="infcon.pty.extkey">
<c-input v-model="model.infcon.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('infcon.SF000106')"></c-input>
</c-form-item>
</c-col>
<!-- SF000108 : 参与方名称 -->
<c-col :span="12">
<c-form-item label="External Visible Name" prop="infcon.pty.nam">
<c-input v-model="model.infcon.pty.nam" maxlength="40" :placeholder="$t('other.please_enter')+'External Visible Name'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutUserow">
{{$t('infbut.CF000012')}}
</c-button>
</c-col>
<!-- SF000109 : 参与方名称/BIC -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000109')" prop="infcon.seapty">
<c-input v-model="model.infcon.seapty" maxlength="24" :placeholder="$t('other.please_enter')+$t('infcon.SF000109')"></c-input>
</c-form-item>
</c-col>
<!-- SF000105 : 角色 -->
<c-col :span="12">
<el-form-item label="Role" prop="infcon.searol">
<c-select v-model="model.infcon.searol" style="width:100%" :placeholder="$t('other.please_enter')+'Role'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutClr">
{{$t('infbut.CF000023')}}
</c-button>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('infcon.SF000064')" prop="infcon.opndatfrom">
<c-date-picker type="date" v-model="model.infcon.opndatfrom" style="width:100%" :placeholder="$t('other.please_enter')+$t('infcon.SF000064')"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF000065 : 到 -->
<c-col :span="12">
<el-form-item label="Open Date to" prop="infcon.opndatto">
<c-date-picker type="date" v-model="model.infcon.opndatto" style="width:100%" :placeholder="$t('other.please_enter')+'Open Date to'"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF000100 : Resp. User -->
<c-col :span="12">
<c-form-item label="User ID" prop="infcon.usr.extkey">
<c-input v-model="model.infcon.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+'User ID'"></c-input>
</c-form-item>
</c-col>
<!-- SF000104 : 状态 -->
<c-col :span="12">
<el-form-item label="Status" prop="infcon.seasta">
<c-select v-model="model.infcon.seasta" style="width:100%" :placeholder="$t('other.please_enter')+'Status'">
</c-select>
</el-form-item>
</c-col>
<!-- SF000064 : 有效日期自 -->
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutButprt">
{{$t('infbut.CG000026')}}
</c-button>
</c-col>
<!-- SF000101 : 币种 -->
<c-col :span="12">
<el-form-item :label="$t('infcon.SF000101')" prop="infcon.seacur">
<c-select v-model="model.infcon.seacur" style="width:100%" :placeholder="$t('other.please_enter')+$t('infcon.SF000101')">
</c-select>
</el-form-item>
</c-col>
<!-- SF000102 : 金额自 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000102')" prop="infcon.seaamtfr">
<c-input v-model="model.infcon.seaamtfr" :placeholder="$t('other.please_enter')+$t('infcon.SF000102')"></c-input>
</c-form-item>
</c-col>
<!-- SF000103 : 到 -->
<c-col :span="12">
<c-form-item label="Amount to" prop="infcon.seaamtto">
<c-input v-model="model.infcon.seaamtto" :placeholder="$t('other.please_enter')+'Amount to'"></c-input>
</c-form-item>
</c-col>
<!-- SF000191 : Funds Trans. Type -->
<c-col :span="12">
<el-form-item :label="$t('infftd.SF000191')" prop="fttyp">
<c-select v-model="model.fttyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('infftd.SF000191')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="display stream" prop="infbut.dspstm">
<c-input v-model="model.infbut.dspstm" :placeholder="$t('other.please_enter')+'display stream'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutExi">
{{$t('infbut.CF000013')}}
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel prtpan的内置block" prop="prtpanblk">
<c-input type="textarea" v-model="model.prtpanblk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel prtpan的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--infftd PD000006 Selection -->
<el-tab-pane :label="$t('infftd.PD000006')" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane>
<!--infftd PD000208 Funds Transfer -->
<el-tab-pane :label="$t('infftd.PD000208')" name="fttp">
<m-fttp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infftd PD000005 Print -->
<el-tab-pane :label="$t('infftd.PD000005')" name="prtpan">
<m-prtpan :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infftd from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Infsea from "./Infsea"
import Fttp from "./Fttp"
import Prtpan from "./Prtpan"
export default {
name: "Infftd",
components:{
"m-infsea" : Infsea,
"m-fttp" : Fttp,
"m-prtpan" : Prtpan,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "infftd",
trnType: "",
model: new Infftd().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入infftd交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -46,11 +46,11 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="客户名称" prop="nam" style="width: 100%">
<el-form-item label="业务名称" prop="nam" style="width: 100%">
<c-input
v-model="model.infcon.nam"
maxlength="40"
placeholder="请填写名称"
placeholder="请填写业务名称"
>
</c-input>
</el-form-item>
......@@ -161,39 +161,64 @@ export default {
width: "180px",
},
{
label: "客户名称",
label: "业务名称",
prop: "nam",
width: "180px",
},
{
label: "币种",
prop: "seacur",
width: "120px",
label: "平盘类型",
prop: "bnktyp",
width: "180px",
},
{
label: "日期",
label: "成交日期",
prop: "opndat",
width: "120px",
},
{
label: "交易金额",
prop: "seaamt",
label: "起息日",
prop: "valdat",
width: "120px",
},
{
label: "机构编号",
prop: "bchkeyinr",
label: "平盘牌价",
prop: "rat",
width: "120px",
},
{
label: "机构编码",
prop: "branchinr",
label: "中间价",
prop: "midrat",
width: "120px",
},
{
label: "平盘类型",
prop: "fxtyp",
label: "询价编号",
prop: "quoref",
width: "120px",
},
{
label: "资金部编号",
prop: "fudref",
width: "120px",
},
{
label: "远期交割日",
prop: "setdat",
width: "120px",
},
{
label: "择期交割起始日",
prop: "setdatfrm",
width: "120px",
},
{
label: "择期交割截止日",
prop: "setdatto",
width: "120px",
},
{
label: "交易主体",
prop: "trnman",
width: "120px",
},
{
......@@ -201,6 +226,7 @@ export default {
prop: "trdint",
width: "120px",
},
{
label: "外币结算账号",
prop: "acc",
......
import Api from "~/service/Api"
export default class inffxd{
export default class infftd{
constructor () {
this.data = {
infcon:{
......
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="资金调拨编号"
prop="seaownref"
style="width: 100%"
>
<c-input
v-model="model.infcon.seaownref"
maxlength="40"
placeholder="请输入资金调拨编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="开立有效日期"
prop="opndatfrom"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatfrom"
style="width: 100%"
></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.infcon.opndatto"
style="width: 100%"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务名称" prop="nam" style="width: 100%">
<c-input
v-model="model.infcon.nam"
maxlength="40"
placeholder="请填写业务名称"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="币种" prop="seacur" style="width: 100%">
<c-select
v-model="model.infcon.cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.seacur"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item :label="$t('lc.金额区间')" style="width: 100%">
<c-col :span="11">
<c-input
v-model="model.infcon.amtmin"
:placeholder="$t('lc.请输入金额下限')"
style="width: 100%"
></c-input>
</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-input
v-model="model.infcon.amtmax"
:placeholder="$t('lc.请输入金额上限')"
style="width: 100%"
></c-input>
</c-col>
</el-form-item>
</c-col>
</c-col>
</el-row>
</template>
</c-list-search>
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="资金调拨查询" name="zjdb">
<el-table
:data="stmData.data"
:columns="stmData.columns"
v-loading="load"
style="width: 100%"
size="small"
:border="true"
height="calc(100vh - 480px)"
:highlight-current-row="true"
>
<el-table-column
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:min-width="item.width"
>
</el-table-column>
</el-table>
<el-pagination
layout="total, sizes, prev, pager, next, jumper"
:total="pagination.total"
:page-size="pagination.pageSize"
:current-page.sync="pagination.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
>
</el-pagination>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeTab: "zjdb",
load: false,
stmData: {
columns: [
{
label: "资金调拨编号",
prop: "ownref",
width: "180px",
},
{
label: "业务名称",
prop: "nam",
width: "180px",
},
{
label: "开立日期",
prop: "opndat",
width: "120px",
},
{
label: "起息日",
prop: "valdat",
width: "120px",
},
{
label: "资金部负责人",
prop: "ownsur",
width: "120px",
},
{
label: "清算中心负责人",
prop: "usr",
width: "140px",
},
{
label: "定存拆借类型",
prop: "fttyp",
width: "120px",
},
{
label: "到期日",
prop: "matdat",
width: "120px",
},
{
label: "年利率",
prop: "rat",
width: "120px",
},
{
label: "计息方式",
prop: "cntfra",
width: "120px",
},
{
label: "银行类型",
prop: "bnktyp",
width: "120px",
},
],
data: [],
},
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
};
},
methods: {},
mounted: function () {},
};
</script>
<style lang="less" scoped>
::v-deep .c-content-scrollbar {
height: 100% !important;
}
.eibs-tabs /deep/ {
.m-table-search {
padding: 20px 0px 10px 0px;
}
}
.header-wrap {
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
font-size: 16px;
color: #000;
}
.close-btn {
padding: 3px;
cursor: pointer;
}
}
.m-list-btns {
height: 300px;
overflow: auto;
}
.medium_bcs {
border-radius: 5px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.pagination-box {
width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 10px;
background: #fff;
margin-top: 5px;
}
.el-dialog__body {
padding: 10px 5px 50px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</style>
<template>
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea"/>
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import infftd from "../model";
import event from "../event"
import Infsea from "./Infsea.vue"
export default {
name: "infftd",
components:{
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "infftd",
model: new infftd().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style scoped>
</style>
......@@ -33,7 +33,7 @@ export default {
...this.model.infcon,
opndatfrom : this.model.infcon.opndatfrom ? moment(this.model.infcon.opndatfrom).format("YYYY-MM-DD") : '',
opndatto : this.model.infcon.opndatto ? moment(this.model.infcon.opndatto).format("YYYY-MM-DD") : '',
branch : JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber,
branch : JSON.parse(sessionStorage.getItem('logininfo')).currentOrg.departmentNumber,
pageNumber: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
paytyp: 'O',
......@@ -65,7 +65,7 @@ export default {
},
//获取机构列表
async getBranchList() {
let branch = JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber
let branch = JSON.parse(sessionStorage.getItem('logininfo')).currentOrg.departmentNumber
let rtnmsg = await Api.post("/public/rptsel/getBranchList", branch)
if (rtnmsg.respCode === SUCCESS) {
this.bchtypList = rtnmsg.data.filter(item => (item.lev != 'A' && item.lev != 'B' ) )
......
......@@ -213,7 +213,7 @@
</c-col>
<c-col :span="20">
<el-form-item :label="$t('statics.所属全辖机构')" :label-width="formLabelWidth" prop="qxbranch">
<el-form-item :label="$t('statics.所属全辖机构')" :label-width="formLabelWidth" prop="qxbranch" :rules="[{required: dataForm.branch != dataForm.upbranch, message: this.$t('components.必输项') }]">
<c-input v-model="dataForm.qxbranch" autocomplete="off" placeholder="" >
</c-input>
</el-form-item>
......@@ -421,7 +421,7 @@
"pageSize":this.model.pageSize,
"pageNum":this.model.pageNum,
}
Api.post('/webapi/admin/bch/getBchListByRootWithFieldsPage',data).then(res => {
Api.post('/admin/bch/getBchListByRootWithFieldsPage',data).then(res => {
if (res.respCode == SUCCESS) {
const list = res.data.list
this.bchData = list
......@@ -452,7 +452,7 @@
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/bch/addBch',this.dataForm)
Api.post('/admin/bch/addBch',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("添加成功!");
......@@ -479,7 +479,7 @@
//查看弹窗
bchInfo(row) {
let tmp=row;
Api.post('/webapi/admin/bch/getBchById',{"id":row.id})
Api.post('/admin/bch/getBchById',{"id":row.id})
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
......@@ -493,7 +493,7 @@
//修改弹窗
bchEdit(row) {
Api.post('/webapi/admin/bch/getBchById',{"id":row.id})
Api.post('/admin/bch/getBchById',{"id":row.id})
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
......@@ -507,7 +507,7 @@
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/bch/updateBchById',this.dataForm)
Api.post('/admin/bch/updateBchById',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("修改成功!");
......@@ -536,7 +536,7 @@
type: "warning",
})
.then(() => {
Api.post('/webapi/admin/bch/deleteBchById',{"id":row.id})
Api.post('/admin/bch/deleteBchById',{"id":row.id})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("删除成功!");
......
......@@ -7,7 +7,7 @@ export default {
let params = {
rootBranch: JSON.parse(sessionStorage.getItem("currentOrg")).departmentNumber
}
let rtnmsg = await Api.post("/webapi/admin/bch/getBchTreeByRoot", params);
let rtnmsg = await Api.post("/admin/bch/getBchTreeByRoot", params);
if (rtnmsg.respCode == SUCCESS) {
this.orgTree = rtnmsg.data
this.orgTree.forEach((item) => {
......@@ -22,7 +22,7 @@ export default {
let params = {
id: data.id
}
let rtnmsg = await Api.post("/webapi/admin/bch/getBchById", params);
let rtnmsg = await Api.post("/admin/bch/getBchById", params);
if (rtnmsg.respCode == SUCCESS) {
this.bchInfo = rtnmsg.data
}
......
......@@ -177,7 +177,7 @@ export const Pattern = {
{ "max": 62, "message": "最大长度62个字符", "trigger": "blur" }
],
"qxbranch": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
......
......@@ -140,6 +140,13 @@
</c-input>
</el-form-item>
</c-col>
<c-col :span="20">
<el-form-item :label="$t('statics.备注')">
<c-input :value="$t('statics.已启用此行')">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-right: 20px;">
......@@ -215,7 +222,7 @@
</c-col>
<c-col :span="20">
<el-form-item :label="$t('statics.所属全辖机构')" prop="qxbranch">
<el-form-item :label="$t('statics.所属全辖机构')" prop="qxbranch" :rules="[{required: bchInfo.branch != bchInfo.upbranch, message: this.$t('components.必输项') }]">
<c-input v-model="bchInfo.qxbranch" autocomplete="off" >
</c-input>
</el-form-item>
......@@ -291,7 +298,7 @@ export default {
orgTree: [],
defaultProps: {
children: 'children',
label: 'bchname'
label: this.$i18n.locale === 'zh' ? 'bchname':'namen',
},
bchInfo: new BchModel().data.bchInfo,
......@@ -335,7 +342,7 @@ export default {
let $this = this
if (this.bchInfo.id ==null ||this.bchInfo.id==""){
//新增
uri='/webapi/admin/bch/addBch'
uri='/admin/bch/addBch'
Api.post(uri, this.bchInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success("添加成功!");
......@@ -360,7 +367,7 @@ export default {
)
}else{
//修改
uri='/webapi/admin/bch/updateBchById'
uri='/admin/bch/updateBchById'
Api.post(uri, this.bchInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success("修改成功!");
......@@ -455,7 +462,7 @@ export default {
})
.then(() => {
//发送删除请求
Api.post('/webapi/admin/bch/deleteBchById', { "id": data.id }).then(
Api.post('/admin/bch/deleteBchById', { "id": data.id }).then(
(res) => {
if (res.respCode == SUCCESS) {
this.$notify.success("删除成功!");
......
......@@ -3,7 +3,7 @@ import Api from "~/service/Api"
export default {
async getMenuTree() {
let rtnmsg = await Api.post("/webapi/admin/menu/getMenuTree", {});
let rtnmsg = await Api.post("/admin/menu/getMenuTree", {});
if (rtnmsg.respCode == SUCCESS) {
this.menuTree = rtnmsg.data
this.menuTree.forEach((item) => {
......@@ -17,7 +17,7 @@ export default {
let params = {
"id": data.id
}
let rtnmsg = await Api.post("/webapi/admin/menu/getMenuById", params);
let rtnmsg = await Api.post("/admin/menu/getMenuById", params);
if (rtnmsg.respCode == SUCCESS) {
this.menuInfo = rtnmsg.data
......
......@@ -28,7 +28,7 @@
<span class="top">
<!-- <el-tooltip effect="light" content="" placement="bottom"> -->
<span class="el-tree-node__label">
{{ node.label }}
{{ $t('menu.'+node.label )}}
</span>
<!-- </el-tooltip> -->
<span>
......@@ -74,7 +74,8 @@
<c-col :span="24">
<el-form-item :label="$t('statics.菜单名称')" prop="name">
<c-input v-model="menuInfo.name"> </c-input>
<c-input v-model="menuInfo.name" v-if="$i18n.locale == 'zh'"></c-input>
<c-input v-if="$i18n.locale == 'en'" :value="$t('menu.'+this.menuInfo.name)"></c-input>
</el-form-item>
</c-col>
......@@ -228,7 +229,7 @@ export default {
let $this = this
if (this.menuInfo.id ==null ||this.menuInfo.id==""){
//新增
uri='/webapi/admin/menu/addMenu'
uri='/admin/menu/addMenu'
Api.post(uri, this.menuInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success(this.$t('statics.添加成功!'));
......@@ -274,7 +275,7 @@ export default {
)
}else{
//修改
uri='/webapi/admin/menu/updateMenuById'
uri='/admin/menu/updateMenuById'
Api.post(uri, this.menuInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success(this.$t('statics.修改成功!'));
......@@ -381,7 +382,7 @@ export default {
})
.then(() => {
//发送删除请求
Api.post('/webapi/admin/menu/deleteMenuById', { "id": data.id }).then(
Api.post('/admin/menu/deleteMenuById', { "id": data.id }).then(
(res) => {
if (res.respCode == SUCCESS) {
this.$notify.success(this.$t('statics.删除成功!'));
......
......@@ -30,8 +30,34 @@
</c-col>
<c-col :span="24">
<c-paging-table :data="roleData" :columns="roleColumns" :pageNumber="model.pageNum" :pageSize="model.pageSize"
<c-paging-table :data="roleData" :pageNumber="model.pageNum" :pageSize="model.pageSize"
:total="model.total" v-on:queryFunc="queryFunc" :border="true" @sort-change="sortChange" sortable="custom">
<el-table-column prop="cod" :label="$t('statics.角色代码')" width="auto">
</el-table-column>
<el-table-column v-if="$i18n.locale == 'zh'" prop="name" :label="$t('statics.角色名称')" width="auto">
<template slot-scope="scope">
{{scope.row.name}}
</template>
</el-table-column>
<el-table-column v-else-if="$i18n.locale == 'en'" prop="extfield1" :label="$t('statics.角色名称')" width="auto">
<template slot-scope="scope">
{{ scope.row.extfield1}}
</template>
</el-table-column>
<el-table-column v-if="$i18n.locale == 'zh'" prop="description" :label="$t('statics.角色描述')" width="auto">
<template slot-scope="scope">
{{ scope.row.description }}
</template>
</el-table-column>
<el-table-column v-else-if="$i18n.locale == 'en'" prop="extfield2" :label="$t('statics.角色描述')" width="auto">
<template slot-scope="scope">
{{ scope.row.extfield2}}
</template>
</el-table-column>
<el-table-column prop="bchlev" :label="$t('statics.适用范围')" width="auto">
</el-table-column>
<el-table-column prop="state" :label="$t('statics.角色状态')" width="auto">
</el-table-column>
<c-table-column fixed="right" prop="op" :label="$t('statics.操作')" width="280px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 5px" size="small" type="" ref="roleDisplayBtn" @click="roleInfo(scope.row)">
......@@ -81,7 +107,7 @@
<c-col :span="20">
<el-form-item :label="$t('statics.扩展信息2')" :label-width="formLabelWidth" prop="extfield2">
<el-form-item :label="$t('statics.角色描述EN')" :label-width="formLabelWidth" prop="extfield2">
<c-input v-model="dataForm.extfield2" autocomplete="off">
</c-input>
</el-form-item>
......@@ -113,7 +139,7 @@
<c-col :span="20">
<el-form-item :label="$t('statics.扩展信息1')" :label-width="formLabelWidth" prop="extfield2">
<el-form-item :label="$t('statics.角色名称EN')" :label-width="formLabelWidth" prop="extfield2">
<c-input v-model="dataForm.extfield1" autocomplete="off">
</c-input>
</el-form-item>
......@@ -150,7 +176,11 @@
<c-col :span="24">
<el-form-item :label="$t('statics.角色名称')" :label-width="formLabelWidth" prop="name">
<c-input v-model="menuForm.name" autocomplete="off" :disabled="true">
<c-input v-if="$i18n.locale == 'zh'" v-model="menuForm.name" autocomplete="off" :disabled="true">
{{$t('statics.'+name)}}
</c-input>
<c-input v-if="$i18n.locale == 'en'" v-model="menuForm.extfield1" autocomplete="off" :disabled="true">
{{extfield1}}
</c-input>
</el-form-item>
</c-col>
......@@ -179,8 +209,11 @@
:props="treeData.defaultProps"
:filter-node-method="filterNode"
@check-change="handleCheckChange"
/>
>
<span slot-scope="{ node }">
{{ $t('menu.'+node.label )}}
</span>
</el-tree>
</div>
</c-row>
......@@ -217,33 +250,33 @@
model: new Role().data,
roleData: [],
roleColumns: [{
label: '角色代码',
prop: 'cod',
width: 'auto'
},
{
label: '角色名称',
prop: 'name',
width: 'auto'
},
{
label: '角色描述',
prop: 'description',
width: 'auto'
},
{
label: '适用范围',
prop: 'bchlev',
width: 'auto'
},
{
label: '角色状态',
prop: 'state',
width: 'auto'
},
// roleColumns: [{
// label: '角色代码',
// prop: 'cod',
// width: 'auto'
// },
// {
// label: '角色名称',
// prop: 'name',
// width: 'auto'
// },
// {
// label: '角色描述',
// prop: 'description',
// width: 'auto'
// },
// {
// label: '适用范围',
// prop: 'bchlev',
// width: 'auto'
// },
// {
// label: '角色状态',
// prop: 'state',
// width: 'auto'
// },
],
// ],
dataForm: new Role().data,
menuForm: new Role().data,
......@@ -394,7 +427,7 @@
onDblroleSearch() {
this.searchLoading = true;
Api.post('/webapi/admin/role/getRoleListWithPage',this.model).then(res => {
Api.post('/admin/role/getRoleListWithPage',this.model).then(res => {
if (res.respCode == "AAAAAA") {
const list = res.data.list
......@@ -452,7 +485,7 @@
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/role/addRole',this.dataForm)
Api.post('/admin/role/addRole',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.添加成功!'));
......@@ -483,7 +516,7 @@
console.log("-------",tmp)
let id=row.id
console.log("-------",row.id)
Api.post('/webapi/admin/role/getRoleById',{"id":row.id})
Api.post('/admin/role/getRoleById',{"id":row.id})
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
......@@ -497,7 +530,7 @@
//修改弹窗
roleEdit(row) {
Api.post('/webapi/admin/role/getRoleById',{"id":row.id})
Api.post('/admin/role/getRoleById',{"id":row.id})
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
......@@ -511,7 +544,7 @@
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/role/updateRoleById',this.dataForm)
Api.post('/admin/role/updateRoleById',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.修改成功!'));
......@@ -540,7 +573,7 @@
type: "warning",
})
.then(() => {
Api.post('/webapi/admin/role/deleteRoleById',{"id":row.id})
Api.post('/admin/role/deleteRoleById',{"id":row.id})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.删除成功'));
......@@ -572,7 +605,7 @@
this.menuForm=row;
this.treeData.defaultCheckedKeys=[];
Api.post('/webapi/admin/menu/getMenuTree',{})
Api.post('/admin/menu/getMenuTree',{})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
//获取所有菜单树
......@@ -583,7 +616,7 @@
});
Api.post('/webapi/admin/role/getRoleMenuListByRoleId',{"id":row.id,"leafOnly":true})
Api.post('/admin/role/getRoleMenuListByRoleId',{"id":row.id,"leafOnly":true})
.then((res) => {
//获取该角色已绑定的菜单
......@@ -610,7 +643,7 @@
this.$refs['menuForm'].validate((valid) => {
if (valid) {
this.menuForm.menuList=this.$refs.treeRef.getCheckedNodes(false,true)
Api.post('/webapi/admin/role/updateRoleMenuListByRoleId',this.menuForm)
Api.post('/admin/role/updateRoleMenuListByRoleId',this.menuForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.修改成功!'));
......
......@@ -252,7 +252,7 @@
onDblparamSearch() {
this.searchLoading = true;
Api.post('/webapi/admin/sysparam/listSysparm',this.model).then(res => {
Api.post('/admin/sysparam/listSysparm',this.model).then(res => {
if (res.respCode == SUCCESS) {
const list = res.data.list
this.paramData = list
......@@ -283,20 +283,20 @@
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/sysparam/addSysparm',this.dataForm)
Api.post('/admin/sysparam/addSysparm',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("添加成功!");
this.$notify.success(this.$t('statics.添加成功!'));
this.dialogFlg = false;
this.onDblparamSearch();
} else {
this.$notify.error("添加失败!");
this.$notify.error(this.$t('statics.添加失败!'));
}
})
.catch((err) => {
this.$notify.error("添加失败!");
this.$notify.error(this.$t('statics.添加失败!'));
});
} else {
this.$notify.error({
......@@ -314,7 +314,7 @@
console.log("-------",tmp)
let id=row.id
console.log("-------",row.id)
Api.post('/webapi/admin/sysparam/detailSysparm',{"id":row.id})
Api.post('/admin/sysparam/detailSysparm',{"id":row.id})
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
......@@ -328,7 +328,7 @@
//修改弹窗
paramEdit(row) {
Api.post('/webapi/admin/sysparam/detailSysparm',{"id":row.id})
Api.post('/admin/sysparam/detailSysparm',{"id":row.id})
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
......@@ -342,7 +342,7 @@
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/sysparam/updateSysparm',this.dataForm)
Api.post('/admin/sysparam/updateSysparm',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
......@@ -372,7 +372,7 @@
type: "warning",
})
.then(() => {
Api.post('/webapi/admin/sysparam/deleteSysparm',{"id":row.id})
Api.post('/admin/sysparam/deleteSysparm',{"id":row.id})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("删除成功!");
......
<template>
<div style="height:100%;padding:3px 8px;overflow: auto;">
<!--通讯,1-->
<div id="userData">
</div>
<!--通讯,1-->
<!--通讯,2-->
<div id="delUser">
</div>
<!--通讯,2-->
<!--通讯,3-->
<div id="status">
</div>
<!--通讯,3-->
<div v-show="hideChild">
<!--卡片,1-->
<div v-show="hideChild" style="height: 100%;">
<el-card shadow="always">
<!--表单,1-->
<el-form ref="userSearch" tokenKey="userSearch" label-width="200px">
<!--布局,1-->
<el-row ref="a1">
<!--col,1-->
<el-col :span="11" :xs="10" :sm="10" :md="11" :lg="11" :xl="11">
<!--表单行,1-->
<el-form-item :label="$t('statics.姓名:')" prop="name">
<!--输入框,1-->
<el-input event-render="loadText" v-model.trim="name" type="text" :disabled="false">
</el-input>
<!--输入框,1-->
</el-form-item>
<!--表单行,1-->
</el-col>
<!--col,1-->
<!--col,2-->
<el-col :span="11" :xs="10" :sm="10" :md="11" :lg="11" :xl="11">
<!--表单行,2-->
<el-form-item :label="$t('statics.登录名:')" prop="logname">
<!--输入框,2-->
<el-input event-render="loadText" v-model.trim="logname" type="text"
:disabled="false">
</el-input>
<!--输入框,2-->
</el-form-item>
<!--表单行,2-->
</el-col>
<!--col,2-->
</el-row>
<!--布局,1-->
<!--布局,2-->
<c-row ref="a2">
<!--col,3-->
<c-col :span="24">
<span style="float: left">
<el-button size="small" :loading="false" ref="addUser" type="primary" v-if="btnA"
......@@ -63,53 +38,39 @@
</el-button>
</span>
</c-col>
<!--col,4-->
</c-row>
<!--布局,2-->
</el-form>
<!--表单,1-->
</el-card>
<!--卡片,1-->
<!--卡片,2-->
<el-card shadow="always">
<div style="height: 100%;">
<el-table
ref="userTable"
:border="true"
:data="userdata"
style="width:100%;"
size="small"
height="calc(100% - 52px)"
:highlight-current-row="true"
@selection-change="handleSelectionChange"
>
<!--分页表格,1-->
<c-paging-table event-render="pagingTable" ref="userTable" :data="userdata" stripe border :pagination="true"
<!-- <c-paging-table event-render="pagingTable" ref="userTable" :data="userdata" stripe border :pagination="true"
paging-side="server" :limit-default="10" :pager-count="7" :page-sizes="[10, 20, 30, 40, 50, 100]" :background="true"
highlight-current-row :need-loading="false">
<!--分页表格列,1-->
highlight-current-row :need-loading="false" :total="Number(pagination.total)"
:page-size="pagination.pageSize"
:current-page="pagination.pageNum"> -->
<el-table-column :filter-multiple="true" type="index" align="center">
</el-table-column>
<!--分页表格列,1-->
<!--分页表格列,2-->
<el-table-column :filter-multiple="true" label="ID" prop="id" align="center">
</el-table-column>
<!--分页表格列,2-->
<!--分页表格列,3-->
<el-table-column :filter-multiple="true" :label="$t('statics.姓名')" prop="nam" align="center">
</el-table-column>
<!--分页表格列,3-->
<!--分页表格列,4-->
<el-table-column :filter-multiple="true" :label="$t('statics.登录名称')" prop="extkey" align="center">
</el-table-column>
<!--分页表格列,4-->
<!--分页表格列,5-->
<!-- <el-table-column :filter-multiple="true" :label="$t('statics.性别')" prop="sex" :formatter="sexformatter"-->
<!-- align="center">-->
<!-- </el-table-column>-->
<!--分页表格列,5-->
<!--分页表格列,6-->
<el-table-column :filter-multiple="true" :label="$t('statics.状态')" prop="secsta" :formatter="stateformatter" align="center">
</el-table-column>
<!--分页表格列,6-->
<!--分页表格列,7-->
<el-table-column :filter-multiple="true" prop="state" align="center" :label="$t('buttons.操作')">
<template slot-scope="scope">
<c-button style="margin-left: 5px" size="small" type="" @click="handleInfo(scope.row)">{{ $t('buttons.详情')
......@@ -122,11 +83,18 @@
@click="handleDelete(scope.row)">{{ $t('buttons.删除') }}</c-button>
</template>
</el-table-column>
<!--分页表格列,7-->
</c-paging-table>
<!--分页表格,1-->
</el-card>
<!--卡片,2-->
<!-- </c-paging-table> -->
</el-table>
<el-pagination
layout="total, sizes, prev, pager, next, jumper"
:page-sizes="[5, 10, 20, 50, 100]"
:total="Number(pagination.total)"
:page-size="pagination.pageSize"
:current-page="pagination.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange" >
</el-pagination>
</div>
</div>
<!--routerView,1-->
<router-view v-if="$store.state.common.refreshRoute">
......@@ -141,7 +109,7 @@ import commonFunctions from "@/mixin/commonFunctions.js";
import Api from "@/service/Api";
import { userData } from "@/service/tempdata/userData";
export default {
name: "userSearch",
name: "userManage",
computed: {
userData() {
return userData
......@@ -157,6 +125,12 @@ export default {
btnA: true,
btnB: true,
hideChild: true,
mulSelected: [],
pagination: {
pageNum: 1,
pageSize: 10,
total: 0
},
}
},
components: {
......@@ -177,6 +151,10 @@ export default {
// this.getHiddenButtonVue();
// }
},
activated() {
this.$refs.userTable.clearSelection();
this.searchUser();
},
methods: {
getHiddenButtonVue() {
const loading = this.loading();
......@@ -238,19 +216,30 @@ export default {
let params = {
extkey: this.logname,
nam: this.name,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize
};
const loading = this.loading();
let res = await Api.post('/webapi/admin/usr/listusr', params);
let res = await Api.post('/admin/usr/listusr', params);
if (res.respCode == SUCCESS) {
loading.close();
this.userdata = res.data;
this.userdata = res.data.list || [];
this.pagination = {
pageNum: res.data.pageNum || 1,
pageSize: res.data.pageSize || 10,
total: res.data.total ? Number(res.data.total) : 0
};
}
},
handleAddBtn() {
this.$router.push({ name: 'userAdd' });
},
handleEdit(row) {
this.$router.push({ name: 'userAdd', query: { id: row.id } });
//this.$router.push({ name: 'userAdd', query: { id: row.id } });
this.routerPush({
path:"/iscOrganization/userManage/userAdd",
query: { id: row.id }
})
},
handleInfo(row) {
this.$router.push({ name: 'userInfo', query: { id: row.id, btnType: "info" } });
......@@ -266,7 +255,7 @@ export default {
extkey: row.extkey,
};
const loading = this.loading();
res = await Api.post('/webapi/admin/usr/deleteusr', params);
res = await Api.post('/admin/usr/deleteusr', params);
if (res.respCode == SUCCESS) {
loading.close();
}
......@@ -275,7 +264,20 @@ export default {
restUser() {
this.logname = "";
this.name = "";
}
},
handleSelectionChange(val) {
this.mulSelected = val
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.searchUser();
},
handleCurrentChange(val){
this.pagination.pageNum = val
this.searchUser()
}
}
}
</script>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -71,10 +71,11 @@
<el-option
v-for="item in branchlist"
:key="item.branch"
:label="item.branch+'-'+item.bchname"
:label="$i18n.locale === 'zh' ? item.branch +' - '+ item.bchname : item.branch +' - '+ item.namen"
:value="item.branch"
>
<span >{{ item.branch +' - ' + item.bchname }}</span>
<span style="float: left" v-if="$i18n.locale === 'zh'">{{ item.branch }} - {{ item.bchname }}</span>
<span style="float: left" v-if="$i18n.locale === 'en'">{{ item.branch }} - {{ item.namen }}</span>
</el-option>
</el-select>
</el-form-item>
......@@ -239,9 +240,10 @@
<el-option
v-for="item in branchlist"
:key="item.branch"
:label="item.branch+'-'+item.bchname"
:label="$i18n.locale == 'zh' ? item.branch +' - '+ item.bchname : item.branch +' - '+ item.namen"
:value="item.branch">
<span >{{ item.branch +' - ' + item.bchname }}</span>
<span style="float: left" v-if="$i18n.locale === 'zh'">{{ item.branch }} - {{ item.bchname }}</span>
<span style="float: left" v-if="$i18n.locale === 'en'">{{ item.branch }} - {{ item.namen }}</span>
</el-option>
</el-select>
</el-form-item>
......@@ -254,10 +256,11 @@
<el-option
v-for="item2 in rolelist"
:key="item2.id"
:label="item2.id+'-'+item2.name"
:label="$i18n.locale == 'zh' ? item2.id +' - '+ item2.name : item2.id +' - '+ item2.extfield1"
:value="item2.id"
>
<span >{{ item2.id +' - ' + item2.name }}</span>
<span style="float: left" v-if="$i18n.locale === 'zh'">{{ item2.id }} - {{ item2.name }}</span>
<span style="float: left" v-if="$i18n.locale === 'en'">{{ item2.id }} - {{ item2.extfield1 }}</span>
</el-option>
</el-select>
</el-form-item>
......@@ -451,7 +454,7 @@ export default {
saveGroup:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/group/relation/put"},
getNation:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/nation"},
saveRole:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/role/relation/put"},
showUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/webapi/admin/usr/userdetail/userid/{id}"},
showUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/admin/usr/userdetail/userid/{id}"},
getDeptTreeChild:{"fileName":"department.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/department/find/treeNode/{departmentNumber}"},
saveUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/usr/saveUsr"},
delPost:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/post/relation/{userid}/{postid}"},
......@@ -565,14 +568,14 @@ this.role_init();
let bchList=responseData.data.branchList;
let tmpList=[]
bchList.forEach((item) => {
tmpList.push(item.branch);
tmpList.push(item.BRANCH);
});
$this.user.branchcode=tmpList;
let roleList=responseData.data.roleList;
let tmpList2=[]
roleList.forEach((item2) => {
tmpList2.push(item2.roleid);
tmpList2.push(item2.ROLEID);
});
$this.user.rolecode=tmpList2;
$this.user.id= responseData.data.id;
......@@ -614,13 +617,13 @@ this.role_init();
methods : {
bch_init(){
Api.post('/webapi/admin/bch/getBchListForUsr',{}).then(res=>{
Api.post('/admin/bch/getBchListForUsr',{}).then(res=>{
this.branchlist = res.data;
}
)
},
role_init(){
Api.post('/webapi/admin/role/getRoleList',{}).then(res=>{
Api.post('/admin/role/getRoleList',{}).then(res=>{
this.rolelist = res.data;
}
)
......
......@@ -303,6 +303,10 @@ export default {
"logininfo",
JSON.stringify(data.data.loginInfo)
);
sessionStorage.setItem(
"currentOrg",
JSON.stringify(data.data.loginInfo.currentOrg)
);
sessionStorage.setItem("token", data.data.uuid);
console.log(data.data);
// let loginModel = new LoginModel.data()
......
......@@ -2,20 +2,20 @@ import Api from "~/service/Api"
// 列表分页查询交易模板信息
export function queryByPage(data) {
return Api.post("/tdTmpl/listPagingInfo", data);
return Api.post("/manager/tdTmpl/listPagingInfo", data);
}
// 保存交易模板信息
export function saveInfo(data){
return Api.post("/tdTmpl/saveInfo",data);
return Api.post("/manager/tdTmpl/saveInfo",data);
}
// 查看交易模板信息
export function getInfo(data){
return Api.post("/tdTmpl/getInfo",data);
return Api.post("/manager/tdTmpl/getInfo",data);
}
// 删除交易模板信息
export function deleteInfo(data){
return Api.post("/tdTmpl/deleteInfo",data);
return Api.post("/manager/tdTmpl/deleteInfo",data);
}
\ 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