Commit cf9f61fc by zhouqian

Merge branch 'development-202206' into 'development-202206'

Development 202206

See merge request zhouqian/vue-gjjs!1
parents dc8ad9f3 8e453fac
......@@ -4,8 +4,8 @@
"author": "psbc",
"private": true,
"scripts": {
"start": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve",
"build": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js build"
"build:prod": "node --max_old_space_size=102400 node_modules/@vue/cli-service/bin/vue-cli-service.js build",
"serve": "node --max_old_space_size=102400 node_modules/@vue/cli-service/bin/vue-cli-service.js serve --open"
},
"dependencies": {
"async-validator": "^3.5.2",
......
......@@ -88,10 +88,10 @@ export default {
// },
start: async function() {
this.handleSubmit && (await this.handleSubmit('bopbut.sav'));
this.handleSubmit && (await this.handleSubmit());
},
check: async function() {
this.handleCheck && (await this.handleCheck('bopbut.chk'));
this.handleCheck && (await this.handleCheck());
},
save: async function() {
this.handleStash && (await this.handleStash());
......
......@@ -4,13 +4,13 @@ export default {
methods: {
// 表单提交
async handleSubmit(rulePath) {
let result;
if(rulePath==""){
result = await this.save();
}else{
result = await this.executeRule(rulePath);
}
// let result = await this.save();
// let result;
// if(rulePath==""){
// result = await this.save();
// }else{
// result = await this.executeRule(rulePath);
// }
let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({
title: "成功",
......@@ -118,13 +118,13 @@ export default {
},
// 表单校验
async handleCheck(rulePath) {
let result;
if(rulePath==""){
result = await this.checkAll();
}else{
result = await this.executeRule(rulePath);
}
// let result = await this.checkAll();
// let result;
// if(rulePath==""){
// result = await this.checkAll();
// }else{
// result = await this.executeRule(rulePath);
// }
let result = await this.checkAll();
if (result.respCode == SUCCESS) {
const fieldErrors = result.fieldErrors;
this.updateModel(result.data);
......
......@@ -16,12 +16,16 @@ export default class Eadinf{
newdcl:"", // DCL数目 .cfabut.newdcl
newvrf:"", // VRF数目 .cfabut.newvrf
vrfflg:"", // 履约信息 .cfabut.vrfflg
paydat:"",
},
eblmod:{
ebl:{
reldat:"", // 授权日期 .eblmod.ebl.reldat
resamt:"", // 代付还代利息 .eblmod.ebl.resamt
},
wrkebl: {
reldat: "",
}
},
recgrp:{
bas:{
......@@ -54,6 +58,7 @@ export default class Eadinf{
pubp:{
creditcodwarn:"", // CREDITORCODE WARNING .recp.pubp.creditcodwarn
acp:"", // 确认 .recp.pubp.acp
exdebtcode: "",
},
dclp: {
exdebtcode: "",
......
......@@ -78,7 +78,7 @@ export default class Api
axios.post(url,data,{
headers,
method,
timeout: 50000,
timeout: 120000,
})
.then(response=>{
const {data} = response;
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/test/bch/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/test/bch/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/test/bch/add", data)
}
export function edit(data) {
return Api.post("/test/bch/edit", data)
}
export function deleteById(inr) {
return Api.post(`/test/bch/deleteById?inr=${inr}`)
}
......@@ -20,11 +20,11 @@ export function deleteById(inr) {
return Api.post(`/test/fec/deleteById?inr=${inr}`)
}
export function addFeeData(data) {
return Api.post(`/test/fec/addFeeData`, data)
export function addFeeData(inr,data) {
return Api.post(`/test/fec/addFeeData?inr=${inr}`, data)
}
export function editFeeData(data) {
export function editFeeData(inr,data) {
return Api.post(`/test/fec/editFeeData?inr=${inr}`, data)
}
......
......@@ -20,14 +20,25 @@ 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
export function addUbrData(inr, data) {
return Api.post(`/test/usr/addUbrData?inr=${inr}`, data)
}
export function updateUbrData(inr, data) {
return Api.post(`/test/usr/updateUbrData?inr=${inr}`, data)
}
export function deleteUbrData(data) {
return Api.post(`/test/usr/deleteUbrData`, data)
}
export function addUclData(inr, data) {
return Api.post(`/test/usr/addUclData?inr=${inr}`, data)
}
export function updateUclData(inr, data) {
return Api.post(`/test/usr/updateUclData?inr=${inr}`, data)
}
export function deleteUclData(data) {
return Api.post(`/test/usr/deleteUclData`, data)
}
\ No newline at end of file
......@@ -308,7 +308,8 @@ export default {
'0 1 "申报号码" 170 ',
'1 2 "客户" 100',
'16 3 "组织机构代码" 120',
'2 4 "基础" 80',
// '2 4 "基础" 80',
{index:2,position:4,width:80,pattern:'code',label:'基础',code:this.codes.staflg},
'5 5 "银行业务编号" 150',
//'6 6, "收付汇日期" 200',
{index:6,position:6,width:150,pattern:'date',label:'收付汇日期'},
......
......@@ -72,24 +72,49 @@
</el-form>
</template>
</c-list-search>
<c-col :span="24" style="">
<div style="border-bottom: 10px solid rgb(232, 232, 232)">
</div>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" style="margin-left: 0px" type="primary">导出Excel
</c-button>
<c-button class="medium_bcs" size="medium" type="primary">新增接口
</c-button>
<c-button class="medium_bcs" size="medium" type="primary">代付利息
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'EAD'" size="small" type="primary"
@click="toEadadd">新增外债海外代付
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'EAF'" size="small" type="primary"
@click="toEafadd">新增外债远期信用证
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'EBA'" size="small" type="primary"
@click="toEbaadd">新增对外担保
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'ECA'" size="small" type="primary"
@click="toEcaadd">新增国内外汇贷款
</c-button>
</c-col>
<div style="height:90%">
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<el-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
</template>
<template slot-scope="scope">
<!-- 申请一个弹出主键放在插槽,加工已渲染的数据 -->
<c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
slot="reference">
<c-button style="margin-left: 0" size="small" @click="getInfo(scope.$index, scope.row)">
详情
</c-button>
<c-button style="margin-left: 5px" size="small" type="primary"
@click="getButtons(scope.row['申报号码'])">
处理
<c-button style="margin-left: 3px" size="small" @click="getAmend(scope.$index, scope.row)">
修改
</c-button>
<c-button style="margin-left: 3px" size="small" @click="getDelete(scope.$index, scope.row)">
删除
</c-button>
</template>
</el-table-column>
......@@ -198,16 +223,16 @@ export default {
stmData: {
columns: [
"0 1 \"业务流水\" 100 1 0:2 1 ",
"2 2 \"申报号码\" 200 1 0:0 1 ",
"2 2 \"申报号码\" 220 1 0:0 1 ",
"3 3 \"业务参考号\" 150 1 0:0 1 ",
"4 4 \"柜员\" 100 1 0:2 1 ",
"5 5 \"日期\" 150 4 7:2 1 ",
// "6 6 \"申报类型\" 120 1 0:2 1 CFATYP",
{ index: 6, position: 6, width: 120, pattern: 'code', label: '申报类型', code: this.codes.cfatyp1 },
"7 7 \"信息类型\" 100 1 0:2 1 ",
"7 7 \"信息类型\" 120 1 0:2 1 ",
"8 8 \"操作类型\" 100 1 0:2 1 ",
// "9 9 \"状态\" 80 1 20:0 1 TransCFASTA",
{ index: 9, position: 9, width: 80, pattern: 'code', label: '状态', code: this.codes.staflg1 },
{ index: 9, position: 9, width: 100, pattern: 'code', label: '状态', code: this.codes.staflg1 },
],
data: [],
},
......@@ -271,6 +296,75 @@ export default {
// this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
// console.log(this.trnData.data);
// }
},
toEadadd() {
this.$router.history.push("/business/eadadd");
},
toEafadd() {
this.$router.history.push("/business/eafadd");
},
toEbaadd() {
this.$router.history.push("/business/ebaadd");
},
toEcaadd() {
this.$router.history.push("/business/ecaadd");
},
async getInfo(idx, row) {
console.log(row);
let business = row.申报类型.toLowerCase() + "inf";
let viewurl = "/business/" + business;
const selIds = [idx + 1];
console.log(selIds);
const selDst = "eblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
console.log(params);
this.executeRule("dtlbut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
},
async getAmend(idx, row) {
let business = row.申报类型.toLowerCase() + "ame";
let viewurl = "/business/" + business;
const selIds = [idx + 1];
const selDst = "eblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("amebut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
},
async getDelete(idx, row) {
let business = row.申报类型.toLowerCase() + "del";
let viewurl = "/business/" + business;
const selIds = [idx + 1];
const selDst = "eblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("delbut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
}
},
created: function () {
......
......@@ -26,10 +26,28 @@
<c-col :span="24">
<el-form-item label="收款人常驻国家/地区编号" prop="cnybop.cnyout.spayercountrycode">
<c-col :span="21">
<c-input v-model="model.cnybop.cnyout.spayercountrycode" maxlength="3" placeholder=""></c-input>
<c-input v-model="model.cnybop.cnyout.spayercountrycode" maxlength="3" placeholder=""
@keyup.enter.native="
showGridPromptDialog('cnybop.cnyout.spayercountrycode')
"
style="width: 100%"></c-input>
</c-col>
<c-col :span="3" style="text-align: right">
<c-button size="small" type="primary" icon="el-icon-search"></c-button>
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="
showGridPromptDialog(
'cnybop.outcty',
null,
null,
{ TXT: 'cnybop.cnyout.spayercountrycode' },
{ TXT: false },
'doxpDialog'
)
"
></c-button>
</c-col>
</el-form-item>
</c-col>
......
......@@ -30,7 +30,6 @@
v-model="model.recgrp.bas.ownextkey"
style="width: 100%"
placeholder="请选择地区机构号"
:code="codes.ownextkey3"
disabled
>
</c-select>
......@@ -166,6 +165,7 @@
v-model="model.recgrp.bas.issdate"
style="width: 100%"
placeholder="请选择开证日期"
:disabled="!(model.recgrp.bas.methods!='L'&&model.recgrp.bas.methods!='G')"
></c-date-picker>
</el-form-item>
</c-col>
......@@ -176,6 +176,7 @@
v-model="model.recgrp.bas.lcbgno"
maxlength="20"
placeholder="请输入信用证/保函编号"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -296,6 +297,7 @@
<c-input
v-model="model.recgrp.bas.tenor"
placeholder="请输入期限"
disabled
></c-input>
</el-form-item>
</c-col>
......
......@@ -23,6 +23,7 @@
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash"></c-function-btn>
</div>
</template>
<script>
......@@ -30,6 +31,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eadadd from "~/model/Eadadd"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Eadadd/Check"
import Default from "~/model/Eadadd/Default"
import Pattern from "~/model/Eadadd/Pattern"
......@@ -51,7 +53,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
......
......@@ -23,6 +23,7 @@
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash"></c-function-btn>
</div>
</template>
<script>
......@@ -30,6 +31,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eadame from "~/model/Eadame"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Eadame/Check"
import Default from "~/model/Eadame/Default"
import Pattern from "~/model/Eadame/Pattern"
......@@ -51,7 +53,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
......@@ -63,6 +65,7 @@ export default {
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
}
},
......
......@@ -23,6 +23,7 @@
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash"></c-function-btn>
</div>
</template>
<script>
......@@ -30,6 +31,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eaddel from "~/model/Eaddel"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Eaddel/Check"
import Default from "~/model/Eaddel/Default"
import Pattern from "~/model/Eaddel/Pattern"
......@@ -51,7 +53,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
......
......@@ -4,9 +4,9 @@
<c-col :span="12" style="padding-right: 20px">
<!-- S0000019 : 发生日期 -->
<c-col :span="24">
<el-form-item label="发生日期" prop="eblmod.ebl.reldat">
<c-date-picker type="date" v-model="model.eblmod.ebl.reldat" style="width:100%"
placeholder="请输入发生日期"></c-date-picker>
<el-form-item label="发生日期" prop="cfabut.paydat">
<c-date-picker type="date" v-model="model.cfabut.paydat" style="width:100%"
placeholder="请输入发生日期" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -137,10 +137,10 @@ export default {
methods: {
...Event,
toEadame () {
console.log('进入Eadame交易');
},
toEaddel () {
console.log('进入Eaddel交易');
}
},
created: function () {
......
......@@ -23,6 +23,7 @@
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash"></c-function-btn>
</div>
</template>
<script>
......@@ -30,6 +31,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eadinf from "~/model/Eadinf"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Eadinf/Check"
import Default from "~/model/Eadinf/Default"
import Pattern from "~/model/Eadinf/Pattern"
......@@ -51,7 +53,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
......
<template>
<m-bch ref="bch" title="dbabch" type="add"></m-bch>
</template>
<script>
import Dbibch from "~/views/Statics/Dbibch";
export default {
name: "StaticsDbabch",
components: {
"m-bch": Dbibch
},
data() {
return {};
},
mounted() {
this.$refs.bch.rules['ptaList'] = [
{ type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-gtx title="dbagtx" type="add"></m-gtx>
</template>
<script>
import Dbigtx from "~/views/Statics/Dbigtx";
export default {
name: "StaticsDbagtx",
components: {
"m-gtx": Dbigtx
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-bch title="dbdbch" type="delete"></m-bch>
</template>
<script>
import Dbibch from "~/views/Statics/Dbibch";
export default {
name: "StaticsDbdbch",
components: {
"m-bch": Dbibch
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-gtx title="dbdgtx" type="delete"></m-gtx>
</template>
<script>
import Dbigtx from "~/views/Statics/Dbigtx";
export default {
name: "StaticsDbdgtx",
components: {
"m-gtx": Dbigtx
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-bch title="dbebch" type="edit"></m-bch>
</template>
<script>
import Dbibch from "~/views/Statics/Dbibch";
export default {
name: "StaticsDbebch",
components: {
"m-bch": Dbibch
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-gtx title="dbegtx" type="edit"></m-gtx>
</template>
<script>
import Dbigtx from "~/views/Statics/Dbigtx";
export default {
name: "StaticsDbegtx",
components: {
"m-gtx": Dbigtx
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Bch {
constructor() {
this.data = {
inr: "",
etyexkey: "",
branch: "",
bchkey: "",
bchname: "",
lev: "",
upbranch: "",
bchtyp: "",
bchflg: "",
decnum: "",
tel: "",
fax: "",
adr: "",
swfcod: "",
adr2: "",
ver: "",
namen: "",
adren: "",
adren2: "",
ydjcod: "",
tid: "",
upbchkey: "",
accbch: "",
bchref: "",
bchusr: "",
sta: "",
lhanum: "",
lhanam: "",
bchgrp: "",
zmqflg: "",
bchlst: "",
bchusr2: "",
dzlhhh: "",
dzlhmc: "",
bchfzr: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"etyexkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"branch": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"bchkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"bchname": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 62, "message": "最大长度62个字符", "trigger": "blur" }
],
"lev": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"upbranch": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"bchtyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bchflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"decnum": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"tel": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"fax": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 16, "message": "最大长度16个字符", "trigger": "blur" }
],
"adr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"swfcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 12, "message": "最大长度12个字符", "trigger": "blur" }
],
"adr2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 60, "message": "最大长度60个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"namen": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 62, "message": "最大长度62个字符", "trigger": "blur" }
],
"adren": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"adren2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"ydjcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"tid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"upbchkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"accbch": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"bchref": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"bchusr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"sta": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"lhanum": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 12, "message": "最大长度12个字符", "trigger": "blur" }
],
"lhanam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 60, "message": "最大长度60个字符", "trigger": "blur" }
],
"bchgrp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"zmqflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bchlst": [
],
"bchusr2": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"dzlhhh": [
{ "type": "string", "trigger": "blur" },
{ "max": 12, "message": "最大长度12个字符", "trigger": "blur" }
],
"dzlhmc": [
{ "type": "string", "trigger": "blur" },
{ "max": 60, "message": "最大长度60个字符", "trigger": "blur" }
],
"bchfzr": [
{ "type": "string", "trigger": "blur" },
{ "max": 100, "message": "最大长度100个字符", "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="etyexkey" prop="etyexkey">
<c-input
v-model="model.etyexkey"
placeholder="请输入etyexkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="branch" prop="branch">
<c-input
v-model="model.branch"
placeholder="请输入branch"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchkey" prop="bchkey">
<c-input
v-model="model.bchkey"
placeholder="请输入bchkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchname" prop="bchname">
<c-input
v-model="model.bchname"
placeholder="请输入bchname"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lev" prop="lev">
<c-input
v-model="model.lev"
placeholder="请输入lev"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="upbranch" prop="upbranch">
<c-input
v-model="model.upbranch"
placeholder="请输入upbranch"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchtyp" prop="bchtyp">
<c-select
v-model="model.bchtyp"
placeholder="请输入bchtyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchflg" prop="bchflg">
<c-input
v-model="model.bchflg"
placeholder="请输入bchflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="decnum" prop="decnum">
<c-input
v-model="model.decnum"
placeholder="请输入decnum"
>
</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="adr" prop="adr">
<c-input
v-model="model.adr"
placeholder="请输入adr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="swfcod" prop="swfcod">
<c-input
v-model="model.swfcod"
placeholder="请输入swfcod"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adr2" prop="adr2">
<c-input
v-model="model.adr2"
placeholder="请输入adr2"
>
</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="namen" prop="namen">
<c-input
v-model="model.namen"
placeholder="请输入namen"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adren" prop="adren">
<c-input
v-model="model.adren"
placeholder="请输入adren"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="adren2" prop="adren2">
<c-input
v-model="model.adren2"
placeholder="请输入adren2"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ydjcod" prop="ydjcod">
<c-input
v-model="model.ydjcod"
placeholder="请输入ydjcod"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tid" prop="tid">
<c-input
v-model="model.tid"
placeholder="请输入tid"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="upbchkey" prop="upbchkey">
<c-input
v-model="model.upbchkey"
placeholder="请输入upbchkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="accbch" prop="accbch">
<c-input
v-model="model.accbch"
placeholder="请输入accbch"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchref" prop="bchref">
<c-input
v-model="model.bchref"
placeholder="请输入bchref"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchusr" prop="bchusr">
<c-input
v-model="model.bchusr"
placeholder="请输入bchusr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="sta" prop="sta">
<c-input
v-model="model.sta"
placeholder="请输入sta"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lhanum" prop="lhanum">
<c-input
v-model="model.lhanum"
placeholder="请输入lhanum"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lhanam" prop="lhanam">
<c-input
v-model="model.lhanam"
placeholder="请输入lhanam"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchgrp" prop="bchgrp">
<c-input
v-model="model.bchgrp"
placeholder="请输入bchgrp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="zmqflg" prop="zmqflg">
<c-input
v-model="model.zmqflg"
placeholder="请输入zmqflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchlst" prop="bchlst">
<c-input
type="textarea"
v-model="model.bchlst"
placeholder="请输入bchlst"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchusr2" prop="bchusr2">
<c-input
v-model="model.bchusr2"
placeholder="请输入bchusr2"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dzlhhh" prop="dzlhhh">
<c-input
v-model="model.dzlhhh"
placeholder="请输入dzlhhh"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dzlhmc" prop="dzlhmc">
<c-input
v-model="model.dzlhmc"
placeholder="请输入dzlhmc"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchfzr" prop="bchfzr">
<c-input
v-model="model.bchfzr"
placeholder="请输入bchfzr"
>
</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="eibs-tab">
<c-content>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="机构编码" prop="branch">
<c-input
v-model="model.branch"
placeholder="请输入机构编码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="中文名称" prop="bchname">
<c-input
v-model="model.bchname"
placeholder="请输入中文名称"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="核心机构号" prop="accbch">
<c-input
v-model="model.accbch"
placeholder="请输入核心机构号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="英文名称" prop="namen">
<c-input
v-model="model.namen"
placeholder="请输入英文名称"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="机构类型" prop="bchtyp">
<c-select
v-model="model.bchtyp"
placeholder="请输入机构类型"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<p style="font-size:12px;">(1-经办行;2-非经办行;3-总行押汇中心;4-押汇中心XX组﹔5-押汇中心XX1组;6-收单行)</p>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="经办行机构编码" prop="bchkey">
<c-input
v-model="model.bchkey"
placeholder="请输入经办行机构编码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<p style="font-size:12px;">(机构编码,如总行单证中心的机构编码为“08350000")</p>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="6">
<el-form-item label="上级行机构编码" prop="upbranch">
<c-input
v-model="model.upbranch"
placeholder="请输入上级行机构编码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="BIC码" prop="swfcod">
<c-input
v-model="model.swfcod"
placeholder="请输入BIC码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="所辖押汇中心" prop="upbchkey">
<c-input
v-model="model.upbchkey"
placeholder=""
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="" prop="bchgrp" label-width="10px">
<c-input
v-model="model.bchgrp"
placeholder=""
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="中文地址" prop="adr">
<c-input
v-model="model.adr"
placeholder=""
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<p style="font-size:12px;">(两行地址)</p>
</c-col>
</c-col>
<c-col>
<c-col :span="12">
<el-form-item label="" prop="adr2">
<c-input
v-model="model.adr2"
placeholder=""
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="英文地址" prop="adren">
<c-input
v-model="model.adren"
placeholder=""
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<p style="font-size:12px;">(两行地址)</p>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="adren2">
<c-input
v-model="model.adren2"
placeholder=""
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="国内地区码" prop="discod">
<c-input
v-model="model.discod"
placeholder="请输入国内地区码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="电话" prop="tel">
<c-input
v-model="model.tel"
placeholder="请输入电话"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="机构参考号" prop="bchref">
<c-input
v-model="model.bchref"
placeholder="请输入机构参考号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="传真" prop="fax">
<c-input
v-model="model.fax"
placeholder="请输入传真"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="核心柜员" prop="bchusr">
<c-input
v-model="model.bchusr"
placeholder="请输入核心柜员"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="核心柜员2" prop="bchusr2">
<c-input
v-model="model.bchusr2"
placeholder="请输入核心柜员2"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="收支申报号" prop="decnum">
<c-input
v-model="model.decnum"
placeholder="请输入收支申报号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="联行行号" prop="lhanum">
<c-input
v-model="model.lhanum"
placeholder="请输入联行行号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="印单局代码" prop="ydjcod">
<c-input
v-model="model.ydjcod"
placeholder="请输入印单局代码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="联行名称" prop="lhanam">
<c-input
v-model="model.lhanam"
placeholder="请输入联行名称"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="实体" prop="etyexkey">
<c-input
v-model="model.etyexkey"
placeholder="请输入实体"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="机构标识" prop="bchflg">
<c-input
v-model="model.bchflg"
placeholder="请输入机构标识"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<p style="font-size:12px;">经办行自身用“AA”标识,其他代办机构用“AB"等标识,代办机构标识符不要重复</p>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="机构层次" prop="lev">
<c-input
v-model="model.lev"
placeholder="请输入机构层次"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<p style="font-size:12px;">("0”-总行单证中心;“1”-分行或总行直属支行;“2”-二级分行或分行下属支行)</p>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="电证联行行号" prop="dzlhhh">
<c-input
v-model="model.dzlhhh"
placeholder="请输入电证联行行号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="电证联行名称" prop="dzlhmc">
<c-input
v-model="model.dzlhmc"
placeholder="请输入电证联行名称"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="机构负责人" prop="bchfzr">
<c-input
v-model="model.bchfzr"
placeholder="请输入机构负责人"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</c-content>
</div>
</template>
<script>
export default {
name: "",
props: ["model"],
data() {
return {};
},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-table :list="model.bchList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ['model'],
data() {
return {
columns: [
{ label: "client name", prop: "mannam", width: "auto" },
{ label: "BCHINR", prop: "bchinr", width: "auto" },
{ label: "Default Client", prop: "bchref", width: "auto" },
],
};
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="17" class="col-left" style="padding-right: 20px">
<c-table :list="model.bchpList" :columnsConfig="columns"></c-table>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="7" class="col-right" style="padding-left: 20px">
<p style="font-size:15px">交易属性说明</p>
<p style="font-size:15px">1.无论金额大小均须总行看,经办行为经办、复核、总经理三人操作,总行为经办、复核两人操作</p>
<p style="font-size:15px">⒉超过一定金额一定须总行看,不超过一定金额不须总行看,但是分行总经理需要授权。</p>
<p style="font-size:15px">3.无须总行看,未超过一定金额只需经办、复核两人操作,超过一定金额需经办、复核、总经理三人操作</p>
<p style="font-size:15px">4.需要OB两人即可授权业务。</p>
<p style="font-size:15px">5.无论金额大小均须总行看,经办行为经办、复核两人操作,总行为经办、复核两人操作。</p>
<p style="font-size:15px">空.无需总行看,经办行为经办、总经理两人操作OA。</p>
</c-col>
</c-col>
</div>
</template>
<script>
export default {
props: ['model'],
data() {
return {
columns: [
{ label: "机构编码", prop: "bchkey", width: "auto" },
{ label: "交易代码", prop: "trn", width: "auto" },
{ label: "授权货币", prop: "relcur", width: "auto" },
{ label: "授权金额", prop: "relamt", width: "auto" },
{ label: "交易属性", prop: "relflg", width: "auto" },
],
};
}
};
</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="BCH" name="bchp0">
<m-bchp0 :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="Related clients" name="bchp1">
<m-bchp1 :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="Authorization" name="bchp2">
<m-bchp2 :model="model" :codes="codes" />
</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 Bch, { Pattern } from "./Bch.js";
import Bchp0 from "./Bchp0.vue";
import Bchp1 from "./Bchp1.vue";
import Bchp2 from "./Bchp2.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/bch.js";
export default {
name: "StaticsDbibch",
components: {
"m-bchp0": Bchp0,
"m-bchp1": Bchp1,
"m-bchp2": Bchp2,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbibch"
}
},
data() {
return {
model: new Bch().data,
tabVal: "bch",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("客户不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.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 是否更新infbch的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfbch", params: { update } });
},
},
};
// export default {
// name: "StaticsDbibch",
// components: {
// "m-bchp0": Bchp0,
// "m-bchp1": Bchp1,
// "m-bchp2": Bchp2,
// },
// provide() {
// return {
// root: this,
// };
// },
// mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
// data() {
// return {
// tabVal: "bchp0",
// trnName: "dbibch",
// model: new Dbibch().data,
// checkRules: Check,
// defaultRules: Default,
// pattern: Pattern,
// rules: null,
// codes: { ...CodeTable },
// };
// },
// methods: {
// // tabClick(tab) {
// // this.tabClick();
// // }
// },
// created: async function () {
// console.log("进入dbibch交易");
// let rtnmsg = await this.init({});
// if (rtnmsg.respCode == SUCCESS) {
// this.updateModel(rtnmsg.data);
// //TODO 处理数据逻辑
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
// },
// };
</script>
<style>
</style>
export default class Pty {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
ver: "",
gidtxt: "",
gartyp: "",
hndtyp: "",
objtyp: "",
objinr: "",
gtxpri: "",
expflg: "",
uil: "",
laborcdat: "",
labaddinf: "",
legfrm: "",
covgodsrvdft: "",
etgextkey: "",
}
}
}
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": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 44, "message": "最大长度44个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"gidtxt": [
],
"gartyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"hndtyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"objtyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"objinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"gtxpri": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"expflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"uil": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"laborcdat": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"labaddinf": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"legfrm": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"covgodsrvdft": [
{ "type": "string", "trigger": "blur" },
{ "max": 420, "message": "最大长度420个字符", "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="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="gidtxt" prop="gidtxt">
<c-input
v-model="model.gidtxt"
placeholder="请输入gidtxt"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="gartyp" prop="gartyp">
<c-input
v-model="model.gartyp"
placeholder="请输入gartyp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="hndtyp" prop="hndtyp">
<c-input
v-model="model.hndtyp"
placeholder="请输入hndtyp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="objtyp" prop="objtyp">
<c-input
v-model="model.objtyp"
placeholder="请输入objtyp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="objinr" prop="objinr">
<c-input
v-model="model.objinr"
placeholder="请输入objinr"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="gtxpri" prop="gtxpri">
<c-input
v-model="model.gtxpri"
placeholder="请输入gtxpri"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="expflg" prop="expflg">
<c-input
v-model="model.expflg"
placeholder="请输入expflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="uil" prop="uil">
<c-input
v-model="model.uil"
placeholder="请输入uil"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="laborcdat" prop="laborcdat">
<c-input
v-model="model.laborcdat"
placeholder="请输入laborcdat"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="labaddinf" prop="labaddinf">
<c-input
v-model="model.labaddinf"
placeholder="请输入labaddinf"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="legfrm" prop="legfrm">
<c-input
v-model="model.legfrm"
placeholder="请输入legfrm"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="covgodsrvdft" prop="covgodsrvdft">
<c-input
v-model="model.covgodsrvdft"
placeholder="请输入covgodsrvdft"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etgextkey" prop="etgextkey">
<c-input
v-model="model.etgextkey"
placeholder="请输入etgextkey"
>
</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="gtx">
<c-content>
<!-- <m-pty-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 Gtx, { Pattern } from "./Gtx.js";
// import PtyInfo from "./PtyInfo.vue";
// import AdrList from "./AdrList.vue";
// import ActInfo from "./ActInfo.vue";
// import PtcInfo from "./PtcInfo.vue";
// import RatInfo from "./RatInfo.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/pty.js";
export default {
name: "StaticsDbipty",
components: {
// "m-pty-info": PtyInfo,
// "m-adr-list": AdrList,
// "m-act-info": ActInfo,
// "m-ptc-info": PtcInfo,
// "m-rat-info": RatInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbigtx"
}
},
data() {
return {
model: new Gtx().data,
tabVal: "gtx",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("客户不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.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 是否更新infpty的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfgtx", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Ubr {
constructor() {
this.data = {
usrinr: "",
bussec: "",
relcur: "",
relamt: "",
relamt2nd: "",
relgrp: "",
trncod: "",
branchinr: "",
autcur: "",
autamt: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"usrinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"bussec": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "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" }
],
"trncod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"branchinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"autcur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"autamt": [
],
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.ubrList" :columnsConfig="columns"></c-table>
<div class="eibs">
<el-form
ref="modelForm"
label-width="120px"
size="small"
label-position="right"
:model="ubr"
:rules="rules"
:validate-on-rule-change="false"
:disabled="operate === 'details'"
>
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="唯一ID" prop="inr">
<c-input
v-model="ubr.inr"
placeholder="请输入唯一ID"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用户ID" prop="usrinr">
<c-input
v-model="ubr.usrinr"
placeholder="请输入用户ID"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易名" prop="bussec">
<c-input
v-model="ubr.bussec"
placeholder="请输入交易名"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="授权币种" prop="relcur">
<c-input
v-model="ubr.relcur"
placeholder="请输入授权币种"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="授权金额" prop="relamt">
<c-input
v-model="ubr.relamt"
placeholder="请输入授权金额"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="第二授权金额" prop="relamt2nd">
<c-input
v-model="ubr.relamt2nd"
placeholder="请输入第二授权金额"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="授权状态" prop="relgrp">
<c-input
v-model="ubr.relgrp"
placeholder="请输入授权状态"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易代码" prop="trncod">
<c-input
v-model="ubr.trncod"
placeholder="请输入交易代码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易所属机构" prop="branchinr">
<c-input
v-model="ubr.branchinr"
placeholder="请输入交易所属机构"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="一次性授权" prop="autcur">
<c-input
v-model="ubr.autcur"
placeholder="请输入一次性授权"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="autamt" prop="autamt">
<c-input
v-model="ubr.autamt"
placeholder="请输入一次性释放授权"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-form>
</div>
</template>
<script>
import { Pattern } from "./Ubr";
export default {
props: ["model"],
name: "",
props: ['ubr', 'operate'],
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' },
],
rules: Pattern,
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<div style="text-align: right">
<c-button size="small" type="primary" @click="ubrAdd()"> 新增 </c-button>
</div>
<el-form-item label="" label-width="0" prop="ubrList">
<c-table :columnsConfig="columns" :list="model.ubrList">
<c-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot-scope="{ scope }">
<button
class="el-button el-button--default el-button--small"
style="margin-left: 0"
size="small"
:disabled="false"
@click.prevent="ubrInfo(scope.$index, scope.row)"
>
<span>详情</span>
</button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="ubrEdit(scope.$index, scope.row)"
>
修改
</c-button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="ubrDelete(scope.$index, scope.row)"
>
删除
</c-button>
</template>
</c-table-column>
</c-table>
</el-form-item>
<el-dialog
:title="
'柜员权限信息:' +
(operate === 'details' ? '详情' : operate === 'edit' ? '修改' : '新增')
"
:visible.sync="ubrDialog"
top="10vh"
width="80%"
:destroy-on-close="true"
:before-close="handleClose"
>
<m-ubr-inf ref="ubr" :ubr="ubr" :operate="operate"></m-ubr-inf>
<span slot="footer" class="dialog-footer">
<button
class="el-button el-button--default el-button--small"
style="margin-left: 0"
size="small"
:disabled="false"
@click.prevent="cancel"
>
<span>取 消</span>
</button>
<c-button type="primary" @click="cancel" v-if="operate === 'details'"
>确 定</c-button
>
<c-button type="primary" @click="editUbr" v-if="operate === 'edit'"
>保 存</c-button
>
<c-button type="primary" @click="saveUbr" v-if="operate === 'add'"
>保 存</c-button
>
</span>
</el-dialog>
</div>
</template>
<script>
import Ubr from "./Ubr";
import UbrInfo from "./UbrInfo";
import {
addUbrData,
updateUbrData,
deleteUbrData,
} from "~/service/test/usr";
export default {
name: "UbrList",
props: ["model"],
inject: ["root"],
components: {
"m-ubr-inf": UbrInfo,
},
data() {
return {
ubrDialog: false,
ubr: null,
operate: "",
operateIdx: 0,
columns: [
// 表结构说明:
// { label: '唯一ID', prop: 'inr', width: 'auto' },
{ label: '用户ID', prop: 'usrinr', width: 'auto' },
{ label: '交易名', prop: 'bussec', width: 'auto' },
{ label: '授权币种', prop: 'relcur', width: 'auto' },
{ label: '授权金额', prop: 'relamt', width: 'auto' },
{ label: '第二授权金额', prop: 'relamt2nd', width: 'auto' },
{ label: '授权状态', prop: 'relgrp', width: 'auto' },
{ label: '交易代码', prop: 'trncod', width: 'auto' },
{ label: '交易所属机构', prop: 'branchinr', width: 'auto' },
{ label: '一次性授权', prop: 'autcur', width: 'auto' },
{ label: '一次性释放授权', prop: 'autamt', width: 'auto' },
],
};
},
methods: {
/**
* 详情
*/
ubrInfo(index, row) {
this.ubr = { ...row };
this.operate = "details";
this.operateIdx = index;
this.ubrDialog = true;
},
/**
* 新增
*/
ubrAdd() {
this.ubr = new Ubr().data;
this.operate = "add";
this.ubrDialog = true;
},
/**
* 修改
*/
ubrEdit(index, row) {
this.ubr = { ...row };
this.operate = "edit";
this.operateIdx = index;
this.ubrDialog = true;
},
/**
* 删除
*/
ubrDelete(index, row) {
this.$confirm("是否真的删除?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then((res) => {
deleteUbrData(row).then((res) => {
if (res) {
this.model.ubrList.splice(index, 1);
this.$message.success("删除成功!");
} else {
this.$message.error("删除失败!");
}
});
});
},
cancel() {
this.handleClose();
},
editUbr() {
this.$refs.ubr.$refs.modelForm.validate((validated) => {
if (validated) {
updateUbrData(this.model.inr, this.ubr)
.then((res) => {
if (res.ubr) {
this.$message.success("修改柜员权限信息成功!");
this.model.ubrList = res.ubrList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("修改柜员权限信息失败!");
});
}
});
},
saveUbr() {
for (const key in this.ubr) {
if (Object.hasOwnProperty.call(this.ubr, key)) {
const v = this.ubr[key];
if (typeof v === 'string' && v === '') {
this.ubr[key] = " "
}
}
}
if (this.root.type === "add") {
this.model.ubrList.push(this.ubr);
this.handleClose();
} else {
this.$refs.ubr.$refs.modelForm.validate((validated) => {
if (validated) {
addUbrData(this.model.inr, this.ubr)
.then((res) => {
if (res && res.inr) {
this.$message.success("保存地址信息成功!");
this.model.ubrList = res.ubrList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("保存地址信息失败!");
});
}
});
}
},
handleClose(done) {
this.ubrDialog = false;
if (done && typeof done === "function") {
done();
}
},
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Ucl {
constructor() {
this.data = {
usrdef: "",
usr: "",
mannam: "",
branchinr: "",
objlst: "",
assignflg: "",
}
}
}
export const Pattern = {
"usrdef": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"usr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"mannam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"branchinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"objlst": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.uclList" :columnsConfig="columns"></c-table>
<div class="eibs">
<el-form
ref="modelForm"
label-width="120px"
size="small"
label-position="right"
:model="ucl"
:rules="rules"
:validate-on-rule-change="false"
:disabled="operate === 'details'"
>
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="默认的机构标志" prop="usrdef">
<c-input
v-model="ucl.usrdef"
placeholder="请输入默认的机构标志"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用户ID" prop="usr">
<c-input
v-model="ucl.usr"
placeholder="请输入用户ID"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用户所在机构和用户名称" prop="mannam">
<c-input
v-model="ucl.mannam"
placeholder="请输入用户所在机构和用户名称"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="机构INR" prop="branchinr">
<c-input
v-model="ucl.branchinr"
placeholder="请输入机构INR"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用户可作业务的列表" prop="objlst">
<c-input
v-model="ucl.objlst"
placeholder="请输入用户可作业务的列表"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否参与任务分配" prop="assignflg">
<c-input
v-model="ucl.assignflg"
placeholder="是否参与任务分配"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-form>
</div>
</template>
<script>
import { Pattern } from "./Ucl";
export default {
props: ["model"],
name: "",
props: ['ucl', 'operate'],
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' },
],
rules: Pattern,
};
},
};
</script>
<style>
</style>
\ No newline at end of file
}
}
</script>
\ No newline at end of file
<template>
<div class="eibs-tab">
<div style="text-align: right">
<c-button size="small" type="primary" @click="uclAdd()"> 新增 </c-button>
</div>
<el-form-item label="" label-width="0" prop="uclList">
<c-table :columnsConfig="columns" :list="model.uclList">
<c-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot-scope="{ scope }">
<button
class="el-button el-button--default el-button--small"
style="margin-left: 0"
size="small"
:disabled="false"
@click.prevent="uclInfo(scope.$index, scope.row)"
>
<span>详情</span>
</button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="uclEdit(scope.$index, scope.row)"
>
修改
</c-button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="uclDelete(scope.$index, scope.row)"
>
删除
</c-button>
</template>
</c-table-column>
</c-table>
</el-form-item>
<el-dialog
:title="
'柜员组信息:' +
(operate === 'details' ? '详情' : operate === 'edit' ? '修改' : '新增')
"
:visible.sync="uclDialog"
top="10vh"
width="80%"
:destroy-on-close="true"
:before-close="handleClose"
>
<m-ucl-inf ref="ucl" :ucl="ucl" :operate="operate"></m-ucl-inf>
<span slot="footer" class="dialog-footer">
<button
class="el-button el-button--default el-button--small"
style="margin-left: 0"
size="small"
:disabled="false"
@click.prevent="cancel"
>
<span>取 消</span>
</button>
<c-button type="primary" @click="cancel" v-if="operate === 'details'"
>确 定</c-button
>
<c-button type="primary" @click="editUcl" v-if="operate === 'edit'"
>保 存</c-button
>
<c-button type="primary" @click="saveUcl" v-if="operate === 'add'"
>保 存</c-button
>
</span>
</el-dialog>
</div>
</template>
<script>
import UclInfo from "./UclInfo";
import Ucl from "./Ucl";
import {
addUclData,
updateUclData,
deleteUclData,
} from "@/service/test/usr";
import {addAdrData, deleteAdrData, updateAdrData} from "@/service/test/pty";
export default {
name: "UclList",
inject: ["root"],
props: ["model"],
components: {
"m-ucl-inf": UclInfo,
},
data() {
return {
uclDialog: false,
ucl: null,
operate: "",
operateIdx: 0,
columns: [
{ label: '默认的机构标志', prop: 'usrdef', width: 'auto' },
{ label: '用户ID', prop: 'usr', width: 'auto' },
{ label: '用户所在机构和用户名称', prop: 'mannam', width: 'auto' },
{ label: '机构INR', prop: 'branchinr', width: 'auto' },
{ label: '用户可作业务的列表', prop: 'objlst', width: 'auto' },
{ label: '是否参与任务分配', prop: 'assignflg', width: 'auto' },
],
};
},
methods: {
/**
* 信息详情
*/
uclInfo(index, row) {
this.ucl = { ...row };
this.operate = "details";
this.operateIdx = index;
this.uclDialog = true;
},
/**
* 新增
*/
uclAdd() {
this.ucl = new Ucl().data;
this.operate = "add";
this.operateIdx = index;
this.uclDialog = true;
},
/**
* 修改
*/
uclEdit(index, row) {
this.ucl = { ...row };
this.operate = "edit";
this.operateIdx = index;
this.uclDialog = true;
},
/**
* 删除
*/
uclDelete(index, row) {
this.$confirm("是否真的删除?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then((res) => {
deleteUclData(row).then((res) => {
if (res) {
this.model.uclList.splice(index, 1);
this.$message.success("删除成功!");
} else {
this.$message.error("删除失败!");
}
});
});
},
cancel() {
this.handleClose();
},
editUcl() {
this.$refs.ucl.$refs.modelForm.validate((validated) => {
if (validated) {
updateAdrData(this.model.inr, this.ucl)
.then((res) => {
if (res.inr) {
this.$message.success("修改柜员组信息成功!");
this.model.uclList = res.uclList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("修改柜员组信息失败!");
});
}
});
},
saveUcl() {
for (const key in this.ucl) {
if (Object.hasOwnProperty.call(this.ucl, key)) {
const v = this.ucl[key];
if (typeof v === 'string' && v === '') {
this.ucl[key] = " "
}
}
}
if (this.root.type === "add") {
this.model.uclList.push(this.ucl);
this.handleClose();
} else {
this.$refs.ucl.$refs.modelForm.validate((validated) => {
if (validated) {
addUclData(this.model.inr, this.ucl)
.then((res) => {
if (res && res.inr) {
this.$message.success("保存地址信息成功!");
this.model.uclList = res.uclList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("保存地址信息失败!");
});
}
});
}
},
handleClose(done) {
this.uclDialog = false;
if (done && typeof done === "function") {
done();
}
},
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="inr" prop="inr">
<el-form-item label="ID" prop="inr">
<c-input
v-model="model.inr"
placeholder="请输入inr"
......@@ -11,7 +11,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="extkey" prop="extkey">
<el-form-item label="用户ID" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入extkey"
......@@ -20,7 +20,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam" prop="nam">
<el-form-item label="用户名" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入nam"
......@@ -29,7 +29,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lgiflg" prop="lgiflg">
<el-form-item label="禁止登录" prop="lgiflg">
<c-input
v-model="model.lgiflg"
placeholder="请输入lgiflg"
......@@ -38,7 +38,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ssnbegdattim" prop="ssnbegdattim">
<el-form-item label="最近登录时间" prop="ssnbegdattim">
<c-date-picker
v-model="model.ssnbegdattim"
placeholder="请输入ssnbegdattim"
......@@ -47,7 +47,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ssninr" prop="ssninr">
<el-form-item label="SSN ID" prop="ssninr">
<c-input
v-model="model.ssninr"
placeholder="请输入ssninr"
......@@ -55,17 +55,17 @@
</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="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">
<el-form-item label="实体标志" prop="pri">
<c-input
v-model="model.pri"
placeholder="请输入pri"
......@@ -74,7 +74,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ety" prop="ety">
<el-form-item label="实体" prop="ety">
<c-input
v-model="model.ety"
placeholder="请输入ety"
......@@ -83,7 +83,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="usg" prop="usg">
<el-form-item label="用户组" prop="usg">
<c-input
v-model="model.usg"
placeholder="请输入usg"
......@@ -92,7 +92,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lstdiadat" prop="lstdiadat">
<el-form-item label="最近DIA查看时间" prop="lstdiadat">
<c-date-picker
v-model="model.lstdiadat"
placeholder="请输入lstdiadat"
......@@ -101,7 +101,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relcur" prop="relcur">
<el-form-item label="授权币种" prop="relcur">
<c-input
v-model="model.relcur"
placeholder="请输入relcur"
......@@ -110,7 +110,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relamt" prop="relamt">
<el-form-item label="授权金额" prop="relamt">
<c-input
v-model="model.relamt"
placeholder="请输入relamt"
......@@ -119,7 +119,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relamt2nd" prop="relamt2nd">
<el-form-item label="第二授权金额" prop="relamt2nd">
<c-input
v-model="model.relamt2nd"
placeholder="请输入relamt2nd"
......@@ -131,7 +131,7 @@
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="relgrp" prop="relgrp">
<el-form-item label="授权组" prop="relgrp">
<c-input
v-model="model.relgrp"
placeholder="请输入relgrp"
......@@ -140,7 +140,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tel" prop="tel">
<el-form-item label="电话" prop="tel">
<c-input
v-model="model.tel"
placeholder="请输入tel"
......@@ -149,7 +149,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="fax" prop="fax">
<el-form-item label="传真" prop ="fax">
<c-input
v-model="model.fax"
placeholder="请输入fax"
......@@ -158,7 +158,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="eml" prop="eml">
<el-form-item label="电子邮箱" prop="eml">
<c-input
v-model="model.eml"
placeholder="请输入eml"
......@@ -167,7 +167,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="quepow" prop="quepow">
<el-form-item label="可用时间" prop="quepow">
<c-input
v-model="model.quepow"
placeholder="请输入quepow"
......@@ -176,7 +176,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etyextkey" prop="etyextkey">
<el-form-item label="实体名称" prop="etyextkey">
<c-input
v-model="model.etyextkey"
placeholder="请输入etyextkey"
......@@ -185,7 +185,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="oenr" prop="oenr">
<el-form-item label="组织" prop="oenr">
<c-input
v-model="model.oenr"
placeholder="请输入oenr"
......@@ -194,7 +194,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etaextkey" prop="etaextkey">
<el-form-item label="实体地址" prop="etaextkey">
<c-input
v-model="model.etaextkey"
placeholder="请输入etaextkey"
......@@ -203,7 +203,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="resusrflg" prop="resusrflg">
<el-form-item label="客户经理" prop="resusrflg">
<c-input
v-model="model.resusrflg"
placeholder="请输入resusrflg"
......@@ -212,7 +212,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="secsta" prop="secsta">
<el-form-item label="用户状态" prop="secsta">
<c-input
v-model="model.secsta"
placeholder="请输入secsta"
......@@ -221,7 +221,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="letoenr" prop="letoenr">
<el-form-item label="信件的组织单位" prop="letoenr">
<c-input
v-model="model.letoenr"
placeholder="请输入letoenr"
......
......@@ -71,8 +71,8 @@
import Utils from "~/utils";
import Usr, { Pattern } from "./Usr.js";
import UsrInfo from "./UsrInfo";
import UBrInfo from "./UbrInfo";
import UclInfo from "./UclInfo";
import UBrInfo from "./UbrList";
import UclInfo from "./UclList";
import { add, edit, deleteById, queryDetailById } from "~/service/test/usr";
......
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="机构编码" prop="branch">
<c-input
v-model="model.branch"
maxlength="8"
placeholder="请输入机构编码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体" prop="etyexkey">
<c-input
v-model="model.etyexkey"
maxlength="8"
placeholder="请输入实体关键字"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="经办行机构编码" prop="bchkey">
<c-input
v-model="model.bchkey"
maxlength="8"
placeholder="请输入经办行机构编码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="机构类型" prop="bchtyp">
<c-select
v-model="model.bchtyp"
style="width: 100%"
placeholder="请输入机构类型"
:code="getCodesByKey('bchtyp')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="bchAdd">新增</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="onInfBchSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="bchData"
:columns="bchColumns"
: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="bchInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="bchEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="bchDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/bch.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
bchData: [],
bchColumns: [
{ label: '机构编码', prop: 'branch', width: '120' },
{ label: '中文名称', prop: 'bchname', width: '150' },
{ label: '核心机构号', prop: 'accbch', width: '200' },
{ label: '机构类型', prop: 'bchtyp', width: '100' },
{ label: '经办行机构编码', prop: 'bchkey', width: '200' },
{ label: '上级行机构编码', prop: 'upbranch', width: '200' },
{ label: '收支申报号', prop: 'decnum', width: '200' },
{ label: '印单局代码', prop: 'ydjcod', width: '200' },
{ label: '实体', prop: 'etyexkey', width: '120' },
{ label: '机构标识', prop: 'bchflg', width: '200' },
{ label: '机构层次', prop: 'lev', width: '98' },
{ label: '电证联行行号', prop: 'dzlhhh', width: '200' },
{ label: '联行行号', prop: 'lhanum', width: '98' },
{ label: '联行名称', prop: 'lhanam', width: '98' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfBchSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onInfBchSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.bchData = 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.onInfBchSearch()
},
getCodesByKey(key) {
return codes[key] ?? [];
},
bchAdd() {
this.$router.push(`/statics/dbabch`)
},
bchInfo(index, row) {
this.$router.push(`/statics/dbibch/${row.inr}`)
},
bchEdit(index, row) {
this.$router.push(`/statics/dbebch/${row.inr}`)
},
bchDelete(index, row) {
this.$router.push(`/statics/dbdbch/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<c-page title="客户信息查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="客户查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfbch",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// bch
branch: "",
etyexkey: "",
bchkey: "",
bchtyp: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></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: "StaticsInfgtx",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// pty
nam: "",
extkey: "",
idtype: "",
trnman: "",
idcode: "",
ptytyp: "C",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -3,7 +3,7 @@
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="User-id" prop="extkey">
<el-form-item label="用户ID" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入user-id"
......@@ -14,7 +14,7 @@
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="Name" prop="name">
<el-form-item label="用户名" prop="name">
<c-input
v-model="model.nam"
placeholder="请输入name"
......@@ -106,78 +106,37 @@ export default {
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' },
// { label: 'inr', prop: 'inr', width: 'auto' },
{ label: '用户ID', prop: 'extkey', width: 'auto' },
{ label: '用户名称', prop: 'nam', width: 'auto' },
// { label: '禁止登录', prop: 'lgiflg', width: 'auto' },
// { label: '最近登录时间', prop: 'ssnbegdattim', width: 'auto' },
// { label: 'SSN ID', prop: 'ssninr', width: 'auto' },
// { label: '版本号', prop: 'ver', width: 'auto' },
// { label: '实体标志', prop: 'pri', width: 'auto' },
// { label: '实体', prop: 'ety', width: 'auto' },
{ label: '用户组', prop: 'usg', width: 'auto' },
// { label: '
// ', prop: 'lstdiadat', width: 'auto' },
{ label: '授权币种', prop: 'relcur', width: 'auto' },
{ label: '授权金额', prop: 'relamt', width: 'auto' },
// { label: '第二授权金额', prop: 'relamt2nd', width: 'auto' },
// { label: '授权组', prop: 'relgrp', width: 'auto' },
// { label: '电话', prop: 'tel', width: 'auto' },
// { label: '传真', prop: 'fax', width: 'auto' },
// { label: '电子信箱', prop: 'eml', width: 'auto' },
// { label: '可用时间', prop: 'quepow', width: 'auto' },
// { label: '实体名称', prop: 'etyextkey', width: 'auto' },
// { label: '组织', prop: 'oenr', width: 'auto' },
{ label: '实体地址', prop: 'etaextkey', width: 'auto' },
{ label: '客户经理', 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
......
......@@ -26,6 +26,12 @@ import Dbafec from "./Dbafec";
import Dbefec from "./Dbefec";
import Dbdfec from "./Dbdfec";
import Infgtx from "./Infgtx";
import Dbigtx from "./Dbigtx";
import Dbagtx from "./Dbagtx";
import Dbegtx from "./Dbegtx";
import Dbdgtx from "./Dbdgtx";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
{ path: 'dbapty', component: Dbapty, name: 'StaticsDbapty', meta: { title: '客户新增' } },
......@@ -55,6 +61,12 @@ const StaticsRouter = [
{ path: 'dbifec/:inr', component: Dbifec, name: 'StaticsDbifec', meta: { title: (tag) => { return '费率详情: ' + tag.params.inr } } },
{ path: 'dbefec/:inr', component: Dbefec, name: 'StaticsDbefec', meta: { title: (tag) => { return '费率修改: ' + tag.params.inr } } },
{ path: 'dbdfec/:inr', component: Dbdfec, name: 'StaticsDbdfec', meta: { title: (tag) => { return '费率删除: ' + tag.params.inr } } },
{ path: 'infgtx', component: Infgtx, name: 'StaticsInfgtx', meta: { title: '保函文本查询' } },
{ path: 'dbagtx', component: Dbagtx, name: 'StaticsDbagtx', meta: { title: '保函文本新增' } },
{ path: 'dbigtx/:inr', component: Dbigtx, name: 'StaticsDbigtx', meta: { title: (tag) => { return '保函文本详情: ' + tag.params.inr } } },
{ path: 'dbegtx/:inr', component: Dbegtx, name: 'StaticsDbegtx', meta: { title: (tag) => { return '保函文本修改: ' + tag.params.inr } } },
{ path: 'dbdgtx/:inr', component: Dbdgtx, name: 'StaticsDbdgtx', 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