Commit c4f8908e by wangna

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents 9c6a766b b9a21959
......@@ -7,7 +7,10 @@ export default {
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
console.log(rtnmsg.data);
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.stmData.data = rtnmsg.data.msgstm.rows;
}
else
{
......
......@@ -471,7 +471,7 @@ export default {
{max: 32,message:"长度不能超过32"}
],
"bopmod.dbbgrp.bas.fcyamt":[
{type: "number", required: false, message: "必输项"} ],
{type: "string", required: false, message: "必输项"} ],
"bopmod.dbbgrp.bas.fcyacc":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
......
......@@ -25,13 +25,13 @@ export default {
"cptp.cleage" :Utils.defaultFunction,
"cptp.evebch" :Utils.defaultFunction,
"cptp.coract" :Utils.defaultFunction,
// "cpdgrp.pye.pts.extkey" :Utils.defaultFunction,
"cpdgrp.pye.pts.extkey" :Utils.defaultFunction,
"cpdgrp.rec.trntyp" :Utils.defaultFunction,
"cpdgrp.orc.pts.adrblk" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
// "cpdgrp.rec.orcact" :Utils.defaultFunction,
"cpdgrp.rec.orcact" :Utils.defaultFunction,
"cptp.resbch" :Utils.defaultFunction,
"cptp.secmod" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/test/usr/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/test/usr/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/test/usr/add", data)
}
export function edit(data) {
return Api.post("/test/usr/edit", data)
}
export function deleteById(inr) {
return Api.post(`/test/usr/deleteById?inr=${inr}`)
}
// export function addAdrData(inr, data) {
// return Api.post(`/test/usr/addAdrData?inr=${inr}`, data)
// }
//
// export function updateAdrData(inr, data) {
// return Api.post(`/test/usr/updateAdrData?inr=${inr}`, data)
// }
//
// export function deleteAdrData(data) {
// return Api.post(`/test/usr/deleteAdrData`, data)
// }
\ No newline at end of file
......@@ -79,11 +79,12 @@ export default {
columns: [
//{index:3,position:3,width:110,pattern:'date',label:'日期'},
//{index:4,position:4,width:100,pattern:'code',label:'状态',code:this.codes.relstaEN},
'0 1 "申报编号" 150 ',
'1 2 "临时编号" 150',
'2 3 "收付汇日期" 100',
'3 4 "数据类型" 90',
'4 5 "申报类型" 200',
'0 1 "申报编号" 180 ',
'1 2 "临时编号" 180',
//'2 3 "收付汇日期" 100',
{index:2,position:3,width:150,pattern:'date',label:'收付汇日期'},
'3 4 "数据类型" 120',
'4 5 "申报类型" 250',
'5 6 "状态" 80',
],
data: [],
......
......@@ -2,7 +2,7 @@
<div class="eibs">
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<el-form-item label="申报类型" label-width="120px">
<el-form-item label="申报类型" label-width="120px" prop="bopmod.szflg">
<c-select v-model="model.bopmod.szflg"
style="width:100%"
placeholder="请选择申报类型"
......
......@@ -272,7 +272,6 @@
>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
......
......@@ -13,7 +13,7 @@
<c-col :span="24">
<el-form-item label="操作类型" prop="bopmod.dbdgrp.bas.actiontype">
<c-input placeholder="请选择操作类型" v-model="model.bopmod.dbdgrp.bas.actiontype" disabled>
<c-input placeholder="请选择操作类型" v-model="model.bopmod.dbdgrp.bas.actiontype" disabled :code="codes.actiontype">
</c-input>
</el-form-item>
</c-col>
......
......@@ -65,7 +65,7 @@
v-model="model.bopmod.dbbgrp.bas.custnm"
maxlength="63"
show-word-limit
placeholder="请输入款人名称"
placeholder="请输入款人名称"
></c-input>
</el-form-item>
</c-col>
......@@ -110,7 +110,7 @@
<c-select
v-model="model.bopmod.dbbgrp.bas.txccy"
style="width: 100%"
placeholder="请选择款币种及金额"
placeholder="请选择款币种及金额"
:code="codes.curtxt"
disabled
>
......@@ -184,9 +184,7 @@
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
</c-col>
<c-col :span="24"> </c-col>
<c-col :span="24">
<el-form-item label="购汇汇率" prop="bopmod.dbbgrp.bas.exrate">
......@@ -206,7 +204,6 @@
>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -257,7 +254,7 @@ import Api from "~/service/Api";
import Utils from "~/utils/index";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtset/Event";
import Event from "~/model/Cptato/Event";
export default {
inject: ["root"],
......@@ -270,7 +267,7 @@ export default {
created: function () {
this.executeRule("bopmod.dbbp.basp").then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(res.data);
this.updateModel(res.data);
}
});
},
......
......@@ -263,7 +263,7 @@ import Api from "~/service/Api";
import Utils from "~/utils/index";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtset/Event";
import Event from "~/model/Cptato/Event";
export default {
inject: ["root"],
......
......@@ -66,17 +66,12 @@
v-model="model.cpdgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入汇款金额"
@keyup.enter.native="
defaultFunction(
'cpdgrp.cbs.nom1.amt',
model.cpdgrp.cbs.nom1.amt
)
"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="是否需要核验" prop="cpdgrp.rec.ischktyp">
......@@ -334,6 +329,7 @@
<el-form-item label="地址信息" prop="cpdgrp.orc.pts.adrblk">
<c-input
type="textarea"
:rows="3"
v-model="model.cpdgrp.orc.pts.adrblk"
maxlength="235"
show-word-limit
......@@ -611,10 +607,12 @@
<el-form-item label="地址信息" prop="cpdgrp.pye.pts.adrblk">
<c-input
type="textarea"
:rows="3"
v-model="model.cpdgrp.pye.pts.adrblk"
maxlength="35"
show-word-limit
placeholder="请输入地址信息"
disabled
></c-input>
</el-form-item>
</c-col>
......
......@@ -37,12 +37,16 @@
</el-tab-pane>
<!-- 报文和面函 -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<!--PD000000 -->
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<!--附件 -->
<m-doctre :model="model" :codes="codes" />
</c-content>>
</el-tab-pane>
</c-tabs>
......@@ -63,7 +67,9 @@ import CodeTable from "~/config/CodeTable";
import Cptato from "~/model/Cptato";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from '~/model/Cptato/Check'
import Pattern from "~/model/Cptato/Pattern";
import Default from "~/model/Cptato/Default";
import Ovwp from "./Ovwp";
import Cnyp from "./Cnyp";
......@@ -100,8 +106,11 @@ export default {
tabVal: "ovwp",
trnName: "cptato",
model: new Cptato().data,
rules: Pattern,
pattern: Pattern,
checkRules: Check,
defaultRules: Default,
activeNames: ["setpan"],
rules: null,
codes: { ...CodeTable },
};
},
......@@ -118,6 +127,7 @@ export default {
console.log("进入cptato交易");
let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
......
......@@ -39,7 +39,7 @@
</c-col>
<c-col :span="24" v-if="model.cptp.qsfysd === '1'">
<el-form-item label="服务提供银行">
<el-form-item label="服务提供银行" prop="cptp.fwtgyh">
<c-input
v-model="model.cptp.fwtgyh"
placeholder=""
......
......@@ -2,7 +2,7 @@
<div class="eibs">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2101表" label-width="180px">
<el-form-item label="是否报送跨境人民币2101表" label-width="180px" prop="cnybop.cnyflg">
<c-select
v-model="model.cnybop.cnyflg"
style="width: 100%"
......@@ -20,7 +20,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2107表" label-width="180px">
<el-form-item label="是否报送跨境人民币2107表" label-width="180px" prop="cnybop.traflg">
<c-select
v-model="model.cnybop.traflg"
style="width: 100%"
......@@ -59,7 +59,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2106表" label-width="180px">
<el-form-item label="是否报送跨境人民币2106表" label-width="180px" prop="cnybop.libflg">
<c-select
v-model="model.cnybop.libflg"
style="width: 100%"
......@@ -77,7 +77,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2122表" label-width="180px">
<el-form-item label="是否报送跨境人民币2122表" label-width="180px" prop="cnybop.vouflg">
<c-select
v-model="model.cnybop.vouflg"
placeholder="请选择"
......
......@@ -662,7 +662,6 @@
<c-input
type="textarea"
placeholder=""
readonly
rows="3"
v-model="model.cpdgrp.blk.contag70"
></c-input>
......@@ -730,6 +729,7 @@
v-model="model.cpdgrp.pye.pts.adrblk"
show-word-limit
placeholder="请输入"
:disabled="model.cpdgrp.pye.pts.extkey!=''"
></c-input>
</el-form-item>
</c-col>
......
......@@ -485,7 +485,7 @@ export default {
created: function () {
this.executeRule("bopmod.dbbp.basp").then((res) => {
if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data);
this.updateModel(res.data);
}
});
},
......
......@@ -9,7 +9,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="贷款业务号" prop="trdgrp.rec.ownref">
<c-input v-model="model.trdgrp.rec.ownref" maxlength="16" placeholder="" disabled></c-input>
<c-input v-model="model.trdgrp.rec.ownref" maxlength="16" placeholder=""></c-input>
</el-form-item>
</c-col>
</c-col>
......
......@@ -119,7 +119,7 @@
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="汇款语种">
<el-form-item label="汇款语种" prop="cptp.payuil">
<c-select
v-model="model.cptp.payuil"
placeholder="请选择汇款语种"
......@@ -175,7 +175,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="我行费用负担">
<el-form-item label="我行费用负担" prop="cpdgrp.rec.detchgcod">
<c-select
v-model="model.cpdgrp.rec.detchgcod"
style="width: 100%"
......@@ -365,7 +365,7 @@
<c-col :span="24">
<c-col :span="13">
<el-form-item label="货物类型">
<el-form-item label="货物类型" prop="cpdgrp.rec.stagod">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
......@@ -384,6 +384,7 @@
<c-col :span="11">
<el-form-item
label="清算模式"
prop="cptp.liqtyp"
v-if="model.cpdgrp.cbs.nom1.cur === 'CNY'"
>
<c-select
......
......@@ -226,6 +226,13 @@ export default {
options: [],
};
},
created: function () {
this.executeRule("cnybop.outp").then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
},
};
</script>
......
......@@ -490,7 +490,7 @@ export default {
...Event,
async getButtons(ownref) {
this.ownref = ownref;
this.litselModel.lidget.clsflg = 'C'
// this.litselModel.lidget.clsflg = 'C'
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......
<template>
<m-usr ref="usr" title="dbausr" type="add"></m-usr>
</template>
<script>
import DbiUsr from "~/views/Statics/Dbiusr";
export default {
name: "StaticsDbausr",
components: {
"m-usr": DbiUsr
},
data() {
return {};
},
mounted() {
// this.$refs.usr.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-usr title="dbdusr" type="delete"></m-usr>
</template>
<script>
import DbiUsr from "~/views/Statics/Dbiusr";
export default {
name: "StaticsDbdusr",
components: {
"m-usr": DbiUsr
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-usr title="dbeusr" type="edit"></m-usr>
</template>
<script>
import DbiUsr from "~/views/Statics/Dbiusr";
export default {
name: "StaticsDbeusr",
components: {
"m-usr": DbiUsr
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.ubrList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
columns: [
{ label: 'inr', prop: 'inr', width: 'auto' },
{ label: 'usrinr', prop: 'usrinr', width: 'auto' },
{ label: 'bussec', prop: 'bussec', width: 'auto' },
{ label: 'relcur', prop: 'relcur', width: 'auto' },
{ label: 'relamt', prop: 'relamt', width: 'auto' },
{ label: 'relamt2nd', prop: 'relamt2nd', width: 'auto' },
{ label: 'relgrp', prop: 'relgrp', width: 'auto' },
{ label: 'trncod', prop: 'trncod', width: 'auto' },
{ label: 'branchinr', prop: 'branchinr', width: 'auto' },
{ label: 'autcur', prop: 'autcur', width: 'auto' },
{ label: 'autamt', prop: 'autamt', width: 'auto' },
],
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.uclList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
columns: [
{ label: 'usrdef', prop: 'usrdef', width: 'auto' },
{ label: 'usr', prop: 'usr', width: 'auto' },
{ label: 'mannam', prop: 'mannam', width: 'auto' },
{ label: 'branchinr', prop: 'branchinr', width: 'auto' },
{ label: 'objlst', prop: 'objlst', width: 'auto' },
{ label: 'assignflg', prop: 'assignflg', width: 'auto' },
],
};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Pty {
constructor() {
this.data = {
"inr": "",
"extkey": "",
"nam": "",
"lgiflg": "",
"ssnbegdattim": "",
"ssninr": "",
"ver": "",
"pri": "",
"ety": "",
"usg": "",
"lstdiadat": "",
"relcur": "",
"relamt": "",
"relamt2nd": "",
"relgrp": "",
"tel": "",
"fax": "",
"eml": "",
"quepow": "",
"etyextkey": "",
"oenr": "",
"etaextkey": "",
"resusrflg": "",
"secsta": "",
"letoenr": "",
"ubrList": [],
"uclList": [],
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"lgiflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"ssnbegdattim": [ {"type": "string", "trigger": "blur"}
],
"ssninr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"pri": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"ety": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"usg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"lstdiadat": [
{ "type": "string", "trigger": "blur" }
],
"relcur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"relamt": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"relamt2nd": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"relgrp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"tel": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 30, "message": "最大长度30个字符", "trigger": "blur" }
],
"fax": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 30, "message": "最大长度30个字符", "trigger": "blur" }
],
"eml": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
"quepow": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,6}(\.\d{1,2})?$/, "message": "整数不能超过6位,小数不能超过2位", "trigger": "blur" }
],
"etyextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"oenr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"etaextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"resusrflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"secsta": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="inr" prop="inr">
<c-input
v-model="model.inr"
placeholder="请输入inr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="extkey" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入extkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入nam"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lgiflg" prop="lgiflg">
<c-input
v-model="model.lgiflg"
placeholder="请输入lgiflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ssnbegdattim" prop="ssnbegdattim">
<c-date-picker
v-model="model.ssnbegdattim"
placeholder="请输入ssnbegdattim"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ssninr" prop="ssninr">
<c-input
v-model="model.ssninr"
placeholder="请输入ssninr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ver" prop="ver">
<c-input
v-model="model.ver"
placeholder="请输入ver"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="pri" prop="pri">
<c-input
v-model="model.pri"
placeholder="请输入pri"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ety" prop="ety">
<c-input
v-model="model.ety"
placeholder="请输入ety"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="usg" prop="usg">
<c-input
v-model="model.usg"
placeholder="请输入usg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lstdiadat" prop="lstdiadat">
<c-date-picker
v-model="model.lstdiadat"
placeholder="请输入lstdiadat"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relcur" prop="relcur">
<c-input
v-model="model.relcur"
placeholder="请输入relcur"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relamt" prop="relamt">
<c-input
v-model="model.relamt"
placeholder="请输入relamt"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relamt2nd" prop="relamt2nd">
<c-input
v-model="model.relamt2nd"
placeholder="请输入relamt2nd"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="relgrp" prop="relgrp">
<c-input
v-model="model.relgrp"
placeholder="请输入relgrp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tel" prop="tel">
<c-input
v-model="model.tel"
placeholder="请输入tel"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="fax" prop="fax">
<c-input
v-model="model.fax"
placeholder="请输入fax"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="eml" prop="eml">
<c-input
v-model="model.eml"
placeholder="请输入eml"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="quepow" prop="quepow">
<c-input
v-model="model.quepow"
placeholder="请输入quepow"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etyextkey" prop="etyextkey">
<c-input
v-model="model.etyextkey"
placeholder="请输入etyextkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="oenr" prop="oenr">
<c-input
v-model="model.oenr"
placeholder="请输入oenr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etaextkey" prop="etaextkey">
<c-input
v-model="model.etaextkey"
placeholder="请输入etaextkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="resusrflg" prop="resusrflg">
<c-input
v-model="model.resusrflg"
placeholder="请输入resusrflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="secsta" prop="secsta">
<c-input
v-model="model.secsta"
placeholder="请输入secsta"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="letoenr" prop="letoenr">
<c-input
v-model="model.letoenr"
placeholder="请输入letoenr"
>
</c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="24">-->
<!-- <el-form-item label="ubrList" prop="ubrList">-->
<!-- <c-input-->
<!-- v-model="model.ubrList"-->
<!-- placeholder="请输入ubrList"-->
<!-- >-->
<!-- </c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
<!-- <c-col :span="24">-->
<!-- <el-form-item label="uclList" prop="uclList">-->
<!-- <c-input-->
<!-- v-model="model.uclList"-->
<!-- placeholder="请输入uclList"-->
<!-- >-->
<!-- </c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
</c-col>
</div>
</template>
<script>
export default {
name: "",
props: ["model"],
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="120px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="usr">
<c-content>
<m-usr-info :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="柜员权限信息" name="ubr">
<c-content>
<m-ubr-list :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="柜员组" name="ucl">
<c-content>
<m-ucl-list :model="model" />
</c-content>
</el-tab-pane>
<!-- <el-tab-pane label="联系人信息" name="ptc">-->
<!-- <c-content>-->
<!-- <m-ptc-info :model="model" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="汇率/费率信息" name="ptyrat,fec,fee">-->
<!-- <c-content>-->
<!-- <m-rat-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 Usr, { Pattern } from "./Usr.js";
import UsrInfo from "./UsrInfo";
import UBrInfo from "./UbrInfo";
import UclInfo from "./UclInfo";
import { add, edit, deleteById, queryDetailById } from "~/service/test/usr";
export default {
name: "StaticsDbiusr",
components: {
"m-usr-info": UsrInfo,
"m-ubr-list": UBrInfo,
"m-ucl-list": UclInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiusr"
}
},
data() {
return {
model: new Usr().data,
tabVal: "usr",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
// this.model.inr = this.$route.params.inr;
console.log(inr);
queryDetailById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("柜员不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infusr的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfusr", 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="User-id" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入user-id"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="Name" prop="name">
<c-input
v-model="model.nam"
placeholder="请输入name"
></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="usrAdd">新增</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="onInfusrSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="usrData"
:columns="usrColumns"
: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="usrInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="usrEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="usrDelete(scope.$index, scope.row)"
>删除</c-button
>
<!-- <el-popover placement="top-start" width="50" trigger="click">-->
<!-- <ul class="table-button-item-list">-->
<!-- <li>-->
<!-- <c-button size="small" style="margin-left: 0">指派</c-button>-->
<!-- </li>-->
<!-- <li>-->
<!-- <c-button size="small" style="margin-left: 0">删除</c-button>-->
<!-- </li>-->
<!-- </ul>-->
<!-- <a-->
<!-- slot="reference"-->
<!-- href="javascript:void(0)"-->
<!-- style="margin-left: 5px"-->
<!-- >-->
<!-- <i class="el-icon-more"></i>-->
<!-- </a>-->
<!-- </el-popover>-->
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import { queryByPage } from "~/service/test/usr.js";
export default {
name: "infsea",
props: ["model"],
inject: ["root"],
data() {
return {
usrData: [],
usrColumns: [
{ label: 'inr', prop: 'inr', width: 'auto' },
{ label: 'extkey', prop: 'extkey', width: 'auto' },
{ label: 'nam', prop: 'nam', width: 'auto' },
{ label: 'lgiflg', prop: 'lgiflg', width: 'auto' },
{ label: 'ssnbegdattim', prop: 'ssnbegdattim', width: 'auto' },
{ label: 'ssninr', prop: 'ssninr', width: 'auto' },
{ label: 'ver', prop: 'ver', width: 'auto' },
{ label: 'pri', prop: 'pri', width: 'auto' },
{ label: 'ety', prop: 'ety', width: 'auto' },
{ label: 'usg', prop: 'usg', width: 'auto' },
{ label: 'lstdiadat', prop: 'lstdiadat', width: 'auto' },
{ label: 'relcur', prop: 'relcur', width: 'auto' },
{ label: 'relamt', prop: 'relamt', width: 'auto' },
{ label: 'relamt2nd', prop: 'relamt2nd', width: 'auto' },
{ label: 'relgrp', prop: 'relgrp', width: 'auto' },
{ label: 'tel', prop: 'tel', width: 'auto' },
{ label: 'fax', prop: 'fax', width: 'auto' },
{ label: 'eml', prop: 'eml', width: 'auto' },
{ label: 'quepow', prop: 'quepow', width: 'auto' },
{ label: 'etyextkey', prop: 'etyextkey', width: 'auto' },
{ label: 'oenr', prop: 'oenr', width: 'auto' },
{ label: 'etaextkey', prop: 'etaextkey', width: 'auto' },
{ label: 'resusrflg', prop: 'resusrflg', width: 'auto' },
{ label: 'secsta', prop: 'secsta', width: 'auto' },
{ label: 'letoenr', prop: 'letoenr', width: 'auto' },
{ label: 'ubrList', prop: 'ubrList', width: 'auto' },
{ label: 'uclList', prop: 'uclList', width: 'auto' },
],
};
},
computed: {
seatypb: {
get: function () {
return this.model.ptytyp === "B";
},
set: function (val) {
this.model.ptytyp = val ? "B" : "";
},
},
seatypc: {
get: function () {
return this.model.ptytyp === "C";
},
set: function (val) {
this.model.ptytyp = val ? "C" : "";
},
},
seatypa: {
get: function () {
return this.model.ptytyp === "A";
},
set: function (val) {
this.model.ptytyp = val ? "A" : "";
},
},
seatypo: {
get: function () {
return this.model.ptytyp === "O";
},
set: function (val) {
this.model.ptytyp = val ? "O" : "";
},
},
seatyph: {
get: function () {
return this.model.ptytyp === "H";
},
set: function (val) {
this.model.ptytyp = val ? "H" : "";
},
},
},
// activated:已进入页面便可触发
activated() {
const { update } = this.$route.params
if (update) {
this.onInfusrSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onInfusrSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total:
* totalPage: 0
*/
const list = res.list
this.usrData = 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.onInfusrSearch()
},
// ptytypeChange(val) {
// this.model.ptytyp = val;
// },
// getCodesByKey(key) {
// return codes[key] ?? [];
// },
usrAdd() {
this.$router.push(`/statics/dbausr`)
},
usrInfo(index, row) {
this.$router.push(`/statics/dbiusr/${row.inr}`)
},
usrEdit(index, row) {
this.$router.push(`/statics/dbeusr/${row.inr}`)
},
usrDelete(index, row) {
this.$router.push(`/statics/dbdusr/${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: "StaticsInfusr",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// condition
nam: "",
extkey: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -8,6 +8,11 @@ import Dbitrl from "./Dbitrl";
import Dbatrl from "./Dbatrl";
import Dbetrl from "./Dbetrl";
import Dbdtrl from "./Dbdtrl";
import Infusr from "./Infusr";
import Dbausr from "./Dbausr";
import Dbiusr from "./Dbiusr";
import Dbeusr from "./Dbeusr";
import Dbdusr from "./Dbdusr";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
......@@ -20,6 +25,12 @@ const StaticsRouter = [
{ path: 'dbitrl/:inr', component: Dbitrl, name: 'StaticsDbitrl', meta: { title: (tag) => { return '复核级别详情: ' + tag.params.inr } } },
{ path: 'dbetrl/:inr', component: Dbetrl, name: 'StaticsDbetrl', meta: { title: (tag) => { return '复核级别修改: ' + tag.params.inr } } },
{ path: 'dbdtrl/:inr', component: Dbdtrl, name: 'StaticsDbdtrl', meta: { title: (tag) => { return '复核级别删除: ' + tag.params.inr } } },
{ path: 'infusr', component: Infusr, name: 'StaticsInfusr', meta: { title: '柜员查询' } },
{ path: 'dbausr', component: Dbausr, name: 'StaticsDbausr', meta: { title: '柜员新增' } },
{ path: 'dbiusr/:inr', component: Dbiusr, name: 'StaticsDbiusr', meta: { title: (tag) => { return '柜员详情: ' + tag.params.inr } } },
{ path: 'dbeusr/:inr', component: Dbeusr, name: 'StaticsDbeusr', meta: { title: (tag) => { return '柜员修改: ' + tag.params.inr } } },
{ path: 'dbdusr/:inr', component: Dbdusr, name: 'StaticsDbdusr', meta: { title: (tag) => { return '柜员删除: ' + tag.params.inr } } },
]
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