Commit fc79d218 by javaHeight

gtx

parents 89410d2e 8f6a2001
......@@ -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());
......
......@@ -7499,9 +7499,13 @@ const CodeTable = {
{ label: "TP 国际结算临时帐", value: "TP" },
],
jyzt: [
{ label: '01', value: '01' },
{ label: '02', value: '02' },
{ label: '03', value: '03' },
{ label: '01银行自身', value: '01' },
{ label: '02金融机构', value: '02' },
{ label: '03中资机构', value: '03' },
{ label: '04外资机构', value: '04' },
{ label: '05居民个人', value: '05' },
{ label: '06非居民个人', value: '06' },
{ label: '99境外机构', value: '99' },
],
jzllgz: [
{ label: '央视基准', value: '0' },
......
......@@ -10,7 +10,6 @@ export default {
}else{
result = await this.executeRule(rulePath);
}
// let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({
title: "成功",
......
......@@ -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: "",
......
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)
}
......
......@@ -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-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-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
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>
<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>
......@@ -26,12 +26,6 @@ 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: '客户新增' } },
......@@ -61,12 +55,6 @@ 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