Commit fba28e0f by xionglin

静态交易pty

parent 472db58d
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/pty/queryByPage", data)
return Api.post("/service/pty/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/manager/pty/queryDetailById?inr=${inr}`)
return Api.post(`/service/pty/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/pty/add", data)
return Api.post("/service/pty/add", data)
}
export function edit(data) {
return Api.post("/manager/pty/edit", data)
return Api.post("/service/pty/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/pty/deleteById?inr=${inr}`)
return Api.post(`/service/pty/deleteById?inr=${inr}`)
}
export function addAdrData(inr, data) {
return Api.post(`/manager/pty/addAdrData?inr=${inr}`, data)
return Api.post(`/service/pty/addAdrData?inr=${inr}`, data)
}
export function updateAdrData(inr, data) {
return Api.post(`/manager/pty/updateAdrData?inr=${inr}`, data)
return Api.post(`/service/pty/updateAdrData?inr=${inr}`, data)
}
export function deleteAdrData(data) {
return Api.post(`/manager/pty/deleteAdrData`, data)
return Api.post(`/service/pty/deleteAdrData`, data)
}
......@@ -344,11 +344,11 @@ import Dbagtx from "~/views/Statics/Gtx/views/Dbagtx";
import Dbegtx from "~/views/Statics/Gtx/views/Dbegtx";
import Dbdgtx from "~/views/Statics/Gtx/views/Dbdgtx";
import Infpty from "~/views/Statics/Infpty";
import Dbipty from "~/views/Statics/Dbipty";
import Dbapty from "~/views/Statics/Dbapty";
import Dbepty from "~/views/Statics/Dbepty";
import Dbdpty from "~/views/Statics/Dbdpty";
import Infpty from "~/views/Statics/Pty/views/Infpty";
import Dbipty from "~/views/Statics/Pty/views/Dbipty";
import Dbapty from "~/views/Statics/Pty/views/Dbapty";
import Dbepty from "~/views/Statics/Pty/views/Dbepty";
import Dbdpty from "~/views/Statics/Pty/views/Dbdpty";
import Infety from "~/views/Statics/ety/views/Infety";
import Dbiety from "~/views/Statics/ety/views/Dbiety";
......
export default class Pty {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
bic: "",
bicaut: "",
bid: "",
blz: "",
clc: "",
dpt: "",
eml: "",
fax1: "",
fax2: "",
nam1: "",
nam2: "",
nam3: "",
str1: "",
str2: "",
loczip: "",
loctxt: "",
loc2: "",
loccty: "",
cortyp: "",
pob: "",
pobzip: "",
pobtxt: "",
tel1: "",
tel2: "",
tid: "",
tlx: "",
tlxaut: "",
uil: "",
ver: "",
manmod: "",
rtgflg: "",
tarflg: "",
dtacid: "",
dtecid: "",
etgextkey: "",
adr1: "",
adr2: "",
adr3: "",
adr4: "",
discod: "",
namelc: "",
adrelc: "",
dtgcid: "",
// pat
inrpat: "",
ptyinrpat: "",
nampat: "",
pripat: "",
enopat: "",
objtyppat: "",
objinrpat: "",
objkeypat: "",
usgpat: "",
verpat: "",
bicpat: "",
adrstapat: "",
ptytyppat: "",
ptyextkeypat: "",
tidpat: "",
etgextkeypat: "",
branchinrpat: "",
bchkeyinrpat: "",
nam1pat: "",
issbchinfpat: "",
opnflgpat: "",
}
}
}
export const Pattern = {
"usgpat": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"adrstapat": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 16, "message": "最大长度16个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"bic": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 11, "message": "最大长度11个字符", "trigger": "blur" }
],
"bicaut": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"blz": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"clc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"dpt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"eml": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
"fax1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"fax2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"nam1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"nam2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"nam3": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"str1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"str2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"loczip": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"loctxt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 25, "message": "最大长度25个字符", "trigger": "blur" }
],
"loc2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"loccty": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"cortyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"pob": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"pobzip": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"pobtxt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 25, "message": "最大长度25个字符", "trigger": "blur" }
],
"tel1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"tel2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"tid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
],
"tlx": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"tlxaut": [
{ "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" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"manmod": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"rtgflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"tarflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"dtacid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
],
"dtecid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"adr1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"adr2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"adr3": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"adr4": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"discod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"namelc": [
{ "type": "string", "trigger": "blur" },
{ "max": 216, "message": "最大长度216个字符", "trigger": "blur" }
],
"adrelc": [
{ "type": "string", "trigger": "blur" },
{ "max": 216, "message": "最大长度216个字符", "trigger": "blur" }
],
"dtgcid": [
{ "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
]
}
export default class Pty {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
ptytyp: "",
accusr: "",
hbkaccflg: "",
hbkconflg: "",
hbkinr: "",
heqaccflg: "",
heqconflg: "",
heqinr: "",
prfctr: "",
resusr: "",
rskcls: "",
rskcty: "",
rsktxt: "",
uil: "",
ver: "",
akkbra: "",
akkcom: "",
akkreg: "",
lidcndflg: "",
lidmaxdur: "",
trdcndflg: "",
trdtentot: "",
trdtenini: "",
trdtenext: "",
trdextnmb: "",
badcndflg: "",
badtenext: "",
adrsta: "",
seltyp: "",
buytyp: "",
sla: "",
etgextkey: "",
nam1: "",
juscod: "",
bilvvv: "",
cunqii: "",
idcode: "",
idtype: "",
bchkeyinr: "",
clscty: "",
procod: "",
trnman: "",
speeco: "",
selrat: "",
buyrat: "",
bngcod: "",
ecifno: "",
dshflg: "",
crmtyp: "",
ecifnam1: "",
ecifjuscod: "",
qygmgb: "",
khbsdt: "",
ptaList: [],
actList: [],
ptcList: [],
fecList: [],
ptyratList: [],
}
}
}
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": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"ptytyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"accusr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"hbkaccflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"hbkconflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"hbkinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"heqaccflg": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"heqconflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"heqinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"prfctr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"resusr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"rskcls": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"rskcty": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"rsktxt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"uil": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"akkbra": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"akkcom": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"akkreg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"lidcndflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"lidmaxdur": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,4}$/, "message": "整数不能超过4位", "trigger": "blur" }
],
"trdcndflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"trdtentot": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"trdtenini": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"trdtenext": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"trdextnmb": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"badcndflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"badtenext": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,4}$/, "message": "整数不能超过4位", "trigger": "blur" }
],
"adrsta": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"seltyp": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"buytyp": [
{ "required": false, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"sla": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"nam1": [
{ "type": "string", "trigger": "blur" },
{ "max": 102, "message": "最大长度102个字符", "trigger": "blur" }
],
"juscod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"bilvvv": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,8}(\.\d{1,5})?$/, "message": "整数不能超过8位,小数不能超过5位", "trigger": "blur" }
],
"cunqii": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"idcode": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 32, "message": "最大长度32个字符", "trigger": "blur" }
],
"idtype": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bchkeyinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"clscty": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"procod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"trnman": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"speeco": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"selrat": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}(\.\d{1,2})?$/, "message": "整数不能超过5位,小数不能超过2位", "trigger": "blur" }
],
"buyrat": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}(\.\d{1,2})?$/, "message": "整数不能超过5位,小数不能超过2位", "trigger": "blur" }
],
"bngcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"ecifno": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"dshflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"crmtyp": [
{ "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"ecifnam1": [
{ "type": "string", "trigger": "blur" },
{ "max": 100, "message": "最大长度100个字符", "trigger": "blur" }
],
"ecifjuscod": [
{ "type": "string", "trigger": "blur" },
{ "max": 50, "message": "最大长度50个字符", "trigger": "blur" }
],
"qygmgb": [
{ "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"khbsdt": [
{ "type": "string", "trigger": "blur" }
]
}
<template>
<m-pty ref="pty" title="dbapty" type="add"></m-pty>
</template>
<script>
import Dbipty from "~/views/Statics/Pty/views/Dbipty";
export default {
name: "StaticsDbapty",
components: {
"m-pty": Dbipty
},
data() {
return {};
},
mounted() {
this.$refs.pty.rules['ptaList'] = [
{ type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-pty title="dbdpty" type="delete"></m-pty>
</template>
<script>
import Dbipty from "~/views/Statics/Pty/views/Dbipty";
export default {
name: "StaticsDbdpty",
components: {
"m-pty": Dbipty
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-pty title="dbepty" type="edit"></m-pty>
</template>
<script>
import Dbipty from "~/views/Statics/Pty/views/Dbipty";
export default {
name: "StaticsDbepty",
components: {
"m-pty": Dbipty
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.actList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ['model'],
data() {
return {
columns: [
{ label: "账号类型", prop: "typ", width: "auto" },
{ label: "账号币种", prop: "cur", width: "auto" },
{ label: "账号", prop: "extkey", width: "auto" },
{ label: "科目代码", prop: "trmtyp", width: "auto" },
{ label: "账号名称", prop: "nam", width: "auto" },
],
};
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<el-form
ref="modelForm"
label-width="170px"
size="small"
label-position="right"
:model="adr"
:rules="rules"
:validate-on-rule-change="false"
:disabled="operate === 'details'"
>
<c-col :span="8" class="col-left">
<c-col :span="24">
<el-form-item label="地址使用代码" prop="usgpat">
<c-select v-model="adr.usgpat" style="width: 100%" placeholder="请选择地址使用代码" :code="getCodesByKey('usgpat')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址关键字" prop="extkey">
<c-input v-model="adr.extkey" placeholder="请输入地址关键字"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址名称" prop="nam">
<c-input v-model="adr.nam" placeholder="请输入地址名称"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="通知行SWIFT代码" prop="bic">
<c-input v-model="adr.bic" placeholder="请输入通知行SWIFT代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="SWIFT连接标志" prop="bicaut">
<c-input v-model="adr.bicaut" placeholder="请输入SWIFT连接标志"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="支行权限" prop="bid">
<c-input v-model="adr.bid" placeholder="请输入支行权限"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dtgcid" prop="dtgcid">
<c-input v-model="adr.dtgcid" placeholder="请输入dtgcid"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="德国的空代码" prop="blz">
<c-input v-model="adr.blz" placeholder="请输入德国的空代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="国家的空代码" prop="clc">
<c-input v-model="adr.clc" placeholder="请输入国家的空代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="机构" prop="dpt">
<c-input v-model="adr.dpt" placeholder="请输入机构"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="邮件信箱" prop="eml">
<c-input v-model="adr.eml" placeholder="请输入邮件信箱"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="电传1" prop="fax1">
<c-input v-model="adr.fax1" placeholder="请输入电传1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="电传2" prop="fax2">
<c-input v-model="adr.fax2" placeholder="请输入电传2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="名称1" prop="nam1">
<c-input v-model="adr.nam1" placeholder="请输入名称1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="名称2" prop="nam2">
<c-input v-model="adr.nam2" placeholder="请输入名称2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="名称3" prop="nam3">
<c-input v-model="adr.nam3" placeholder="请输入名称3"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="8" class="col-left col-right">
<c-col :span="24">
<el-form-item label="地址状态" prop="adrstapat">
<c-input v-model="adr.adrstapat" placeholder="请输入地址状态"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="街道1" prop="str1">
<c-input v-model="adr.str1" placeholder="请输入街道1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="街道2" prop="str2">
<c-input v-model="adr.str2" placeholder="请输入街道2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="邮政编码" prop="loczip">
<c-input v-model="adr.loczip" placeholder="请输入邮政编码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="城市名称" prop="loctxt">
<c-input v-model="adr.loctxt" placeholder="请输入城市名称"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="城市区域" prop="loc2">
<c-input v-model="adr.loc2" placeholder="请输入城市区域"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="住址" prop="loccty">
<c-input v-model="adr.loccty" placeholder="请输入住址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="通信方式" prop="cortyp">
<c-input v-model="adr.cortyp" placeholder="请输入通信方式"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="邮箱号码" prop="pob">
<c-input v-model="adr.pob" placeholder="请输入邮箱号码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="邮政编码" prop="pobzip">
<c-input v-model="adr.pobzip" placeholder="请输入邮政编码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="国家名称" prop="pobtxt">
<c-input v-model="adr.pobtxt" placeholder="请输入国家名称"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="电话1" prop="tel1">
<c-input v-model="adr.tel1" placeholder="请输入电话1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="电话2" prop="tel2">
<c-input v-model="adr.tel2" placeholder="请输入电话2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收单行机构代码" prop="tid">
<c-input v-model="adr.tid" placeholder="请输入收单行机构代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="电报号码" prop="tlx">
<c-input v-model="adr.tlx" placeholder="请输入电报号码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="电报权限修改" prop="tlxaut">
<c-select v-model="adr.tlxaut" style="width: 100%" placeholder="请选择电报权限修改" :code="getCodesByKey('tlxaut')"> </c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="8" class="col-right">
<c-col :span="24">
<el-form-item label="默认语种" prop="uil">
<c-select v-model="adr.uil" style="width: 100%" placeholder="请选择默认语种" :code="getCodesByKey('gtxuil')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="手动更改标志" prop="manmod">
<c-select v-model="adr.manmod" style="width: 100%" placeholder="请选择手动更改标志" :code="getCodesByKey('manmod')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="RTGS标志" prop="rtgflg">
<c-select v-model="adr.rtgflg" style="width: 100%" placeholder="请选择RTGS标志" :code="getCodesByKey('rtgflg')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="TARGET标志" prop="tarflg">
<c-select v-model="adr.tarflg" style="width: 100%" placeholder="请选择TARGET标志" :code="getCodesByKey('tarflg')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="DTA messages的客户地址" prop="dtacid">
<c-input v-model="adr.dtacid" placeholder="请输入DTA messages的客户地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="DTE messages的客户地址" prop="dtecid">
<c-input v-model="adr.dtecid" placeholder="请输入DTE messages的客户地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用户组别关键字" prop="etgextkey">
<c-input v-model="adr.etgextkey" placeholder="请输入用户组别关键字">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址1" prop="adr1">
<c-input v-model="adr.adr1" placeholder="请输入地址1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址2" prop="adr2">
<c-input v-model="adr.adr2" placeholder="请输入地址2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址3" prop="adr3">
<c-input v-model="adr.adr3" placeholder="请输入地址3"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址4" prop="adr4">
<c-input v-model="adr.adr4" placeholder="请输入地址4"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="discod" prop="discod">
<c-input v-model="adr.discod" placeholder="请输入discod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="namelc" prop="namelc">
<c-input v-model="adr.namelc" placeholder="请输入namelc"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adrelc" prop="adrelc">
<c-input v-model="adr.adrelc" placeholder="请输入adrelc"> </c-input>
</el-form-item>
</c-col>
</c-col>
</el-form>
</div>
</template>
<script>
import { Pattern } from "../../model/Adr.js";
import codes from "~/config/CodeTable";
export default {
name: "",
props: ['adr', 'operate'],
data() {
return {
rules: Pattern,
};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</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="adrAdd()"> 新增 </c-button>
</div>
<el-form-item label="" label-width="0" prop="ptaList">
<c-table :columnsConfig="columns" :list="model.ptaList">
<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="adrInfo(scope.$index, scope.row)"
>
<span>详情</span>
</button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="adrEdit(scope.$index, scope.row)"
>
修改
</c-button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="adrDelete(scope.$index, scope.row)"
>
删除
</c-button>
</template>
</c-table-column>
</c-table>
</el-form-item>
<el-dialog
:title="
'地址信息:' +
(operate === 'details' ? '详情' : operate === 'edit' ? '修改' : '新增')
"
:visible.sync="adrDialog"
top="10vh"
width="80%"
:destroy-on-close="true"
:before-close="handleClose"
>
<m-adr-info ref="adr" :adr="adr" :operate="operate"></m-adr-info>
<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="editAdr" v-if="operate === 'edit'"
>保 存</c-button
>
<c-button type="primary" @click="saveAdr" v-if="operate === 'add'"
>保 存</c-button
>
</span>
</el-dialog>
</div>
</template>
<script>
import Adr from "../../model/Adr.js";
import AdrInfo from "./AdrInfo.vue";
import {
addAdrData,
updateAdrData,
deleteAdrData,
} from "~/service/test/pty.js";
export default {
name: "AdrList",
components: {
"m-adr-info": AdrInfo,
},
inject: ["root"],
props: ["model"],
data() {
return {
adrDialog: false,
adr: null,
operate: "",
operateIdx: 0,
columns: [
{ label: "地址使用代码", prop: "usgpat", width: "auto" },
{ label: "地址状态", prop: "adrstapat", width: "auto" },
{ label: "地址关键字", prop: "extkey", width: "auto" },
{ label: "通知行SWIFT代码", prop: "bic", width: "auto" },
{ label: "名称1", prop: "nam1", width: "auto" },
{ label: "名称2", prop: "nam2", width: "auto" },
{ label: "名称3", prop: "nam3", width: "auto" },
{ label: "街道1", prop: "str1", width: "auto" },
{ label: "街道2", prop: "str2", width: "auto" },
{ label: "地址1", prop: "adr1", width: "auto" },
{ label: "地址2", prop: "adr2", width: "auto" },
{ label: "地址3", prop: "adr3", width: "auto" },
],
};
},
methods: {
/**
* 详情
*/
adrInfo(index, row) {
this.adr = { ...row };
this.operate = "details";
this.operateIdx = index;
this.adrDialog = true;
},
/**
* 新增
*/
adrAdd() {
this.adr = new Adr().data;
this.operate = "add";
this.adrDialog = true;
},
/**
* 修改
*/
adrEdit(index, row) {
this.adr = { ...row };
this.operate = "edit";
this.operateIdx = index;
this.adrDialog = true;
},
/**
* 删除
*/
adrDelete(index, row) {
this.$confirm("是否真的删除?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then((res) => {
deleteAdrData(row).then((res) => {
if (res) {
this.model.ptaList.splice(index, 1);
this.$message.success("删除成功!");
} else {
this.$message.error("删除失败!");
}
});
});
},
cancel() {
this.handleClose();
},
editAdr() {
this.$refs.adr.$refs.modelForm.validate((validated) => {
if (validated) {
updateAdrData(this.model.inr, this.adr)
.then((res) => {
if (res.inr) {
this.$message.success("修改地址信息成功!");
// this.model.ptaList.splice(this.operateIdx, 1, this.adr);
this.model.ptaList = res.ptaList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("修改地址信息失败!");
});
}
});
},
/**
* Adr新增有2种情况
* 1. pty的新增界面下,此时pty的inr为空,adr需要在pty插入之后,才能执行新增,
* 所以我们在这里不能直接调用新增接口,将adr添加到ptaList中,随着这个pty一起传入接口。
* 2. pty的修改界面下,可直接新增 ;
*/
saveAdr() {
for (const key in this.adr) {
if (Object.hasOwnProperty.call(this.adr, key)) {
const v = this.adr[key];
if (typeof v === 'string' && v === '') {
this.adr[key] = " "
}
}
}
if (this.root.type === "add") {
this.model.ptaList.push(this.adr);
this.handleClose();
} else {
this.$refs.adr.$refs.modelForm.validate((validated) => {
if (validated) {
addAdrData(this.model.inr, this.adr)
.then((res) => {
if (res && res.inr) {
this.$message.success("保存地址信息成功!");
this.model.ptaList = res.ptaList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("保存地址信息失败!");
});
}
});
}
},
handleClose(done) {
this.adrDialog = false;
if (done && typeof done === "function") {
done();
}
},
},
};
</script>
<style>
.paginationLable {
display:none;
}
</style>
<template>
<div class="eibs-tab">
<c-table :list="model.ptcList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
columns: [
{ label: "性别", prop: "gen", width: "auto" },
{ label: "联系人名称", prop: "nam", width: "auto" },
{ label: "部门", prop: "dep", width: "auto" },
{ label: "办公电话", prop: "teloff", width: "auto" },
{ label: "电子邮箱地址", prop: "eml", width: "auto" },
{ label: "电传", prop: "telfax", width: "auto" },
],
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="客户号" prop="extkey">
<c-input v-model="model.extkey" placeholder="请输入客户号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户名称" prop="nam">
<c-input v-model="model.nam" placeholder="请输入客户名称"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户类型" prop="ptytyp">
<c-select v-model="model.ptytyp" style="width: 100%" placeholder="请选择客户类型" :code="getCodesByKey('ptytype')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用户帐户的ID" prop="accusr">
<c-input v-model="model.accusr" placeholder="请输入用户帐户的ID"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Housebank帐户标志" prop="hbkaccflg">
<c-select v-model="model.hbkaccflg" style="width: 100%" placeholder="请选择Housebank帐户标志" :code="getCodesByKey('hbkaccflg')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Housebank用户环境标志" prop="hbkconflg">
<c-input v-model="model.hbkconflg" placeholder="请输入Housebank用户环境标志">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="银行INR" prop="hbkinr">
<c-input v-model="model.hbkinr" placeholder="请输入银行INR"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="总行帐户标志" prop="heqaccflg">
<c-select v-model="model.heqaccflg" style="width: 100%" placeholder="请选择总行帐户标志" :code="getCodesByKey('hbkaccflg')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="总行环境标志" prop="heqconflg">
<c-input v-model="model.heqconflg" placeholder="请输入总行环境标志">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="总行INR" prop="heqinr">
<c-input v-model="model.heqinr" placeholder="请输入总行INR"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收益中心" prop="prfctr">
<c-input v-model="model.prfctr" placeholder="请输入收益中心"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户经理" prop="resusr">
<c-input v-model="model.resusr" placeholder="请输入客户经理"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="风险等级" prop="rskcls">
<c-input v-model="model.rskcls" placeholder="请输入风险等级"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="风险国家" prop="rskcty">
<c-input v-model="model.rskcty" placeholder="请输入风险国家"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="风险文本描述" prop="rsktxt">
<c-input v-model="model.rsktxt" placeholder="请输入风险文本描述"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="AKK商业区域" prop="akkbra">
<c-input v-model="model.akkbra" placeholder="请输入AKK商业区域"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="AKK公司ID" prop="akkcom">
<c-input v-model="model.akkcom" placeholder="请输入AKK公司ID"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="AKK地区编号" prop="akkreg">
<c-input v-model="model.akkreg" placeholder="请输入AKK地区编号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="特别L/C情况" prop="lidcndflg">
<c-input v-model="model.lidcndflg" placeholder="请输入特别L/C情况">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="L/C最大期限日" prop="lidmaxdur">
<c-input v-model="model.lidmaxdur" placeholder="请输入L/C最大期限日">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="特别交易情况" prop="trdcndflg">
<c-input v-model="model.trdcndflg" placeholder="请输入特别交易情况标识">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇票的最大期限日" prop="trdtentot">
<c-input v-model="model.trdtentot" placeholder="请输入汇票的最大期限日">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="最初汇票期限Initial" prop="trdtenini">
<c-input v-model="model.trdtenini" placeholder="请输入最初汇票期限Initial">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇票的最大延期日" prop="trdtenext">
<c-input v-model="model.trdtenext" placeholder="请输入汇票的最大延期日">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇票最大延期数" prop="trdextnmb">
<c-input v-model="model.trdextnmb" placeholder="请输入汇票最大延期数">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="特别BA情况" prop="badcndflg">
<c-input v-model="model.badcndflg" placeholder="请输入特别BA情况标识">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BA最大期限日" prop="badtenext">
<c-input v-model="model.badtenext" placeholder="请输入BA最大期限日">
</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="uil">
<c-select v-model="model.uil" style="width: 100%" placeholder="请选择默认语种" :code="getCodesByKey('gtxuil')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址状态" prop="adrsta">
<c-select v-model="model.adrsta" style="width: 100%" placeholder="请选择地址状态" :code="getCodesByKey('adrsta1')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户信贷利率" prop="seltyp">
<c-select v-model="model.seltyp" style="width: 100%" placeholder="请选择客户信贷利率" :code="getCodesByKey('seltyp')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户借贷利率" prop="buytyp">
<c-select v-model="model.buytyp" style="width: 100%" placeholder="请选择客户借贷利率" :code="getCodesByKey('buytyp')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="服务等级" prop="sla">
<c-input v-model="model.sla" placeholder="请输入服务等级"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体组" prop="etgextkey">
<c-input v-model="model.etgextkey" placeholder="请输入实体组">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="中文名称" prop="nam1">
<c-input v-model="model.nam1" placeholder="请输入中文名称"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="技术监督局编号" prop="juscod">
<c-input v-model="model.juscod" placeholder="请输入技术监督局编号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="上浮比率" prop="bilvvv">
<c-input v-model="model.bilvvv" placeholder="请输入上浮比率"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="流动资金贷款利率档次" prop="cunqii">
<c-input v-model="model.cunqii" placeholder="请输入流动资金贷款利率档次"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="身份证号码" prop="idcode">
<c-input v-model="model.idcode" placeholder="请输入身份证号码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户类别" prop="idtype">
<c-select v-model="model.idtype" style="width: 100%" placeholder="请选择客户类别" :code="getCodesByKey('persontype')"> </c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="所属分行INR" prop="bchkeyinr">
<c-input v-model="model.bchkeyinr" placeholder="请输入所属分行INR">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="国家的信用等级Credit" prop="clscty">
<c-input v-model="model.clscty" placeholder="请输入国家的信用等级Credit"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="区域代码Province" prop="procod">
<c-input v-model="model.procod" placeholder="请输入区域代码Province"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易主体" prop="trnman">
<c-select
v-model="model.trnman"
style="width: 100%"
placeholder="请选择交易主体"
:code="getCodesByKey('jyzt')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="特殊经济区域" prop="speeco">
<c-input v-model="model.speeco" placeholder="请输入特殊经济区域"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="selrat" prop="selrat">
<c-input v-model="model.selrat" placeholder="请输入selrat"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="buyrat" prop="buyrat">
<c-input v-model="model.buyrat" placeholder="请输入buyrat"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bngcod" prop="bngcod">
<c-input v-model="model.bngcod" placeholder="请输入bngcod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ecifno" prop="ecifno">
<c-input v-model="model.ecifno" placeholder="请输入ecifno"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dshflg" prop="dshflg">
<c-input v-model="model.dshflg" placeholder="请输入dshflg"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="crmtyp" prop="crmtyp">
<c-input v-model="model.crmtyp" placeholder="请输入crmtyp"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ecifnam1" prop="ecifnam1">
<c-input v-model="model.ecifnam1" placeholder="请输入ecifnam1">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ecifjuscod" prop="ecifjuscod">
<c-input v-model="model.ecifjuscod" placeholder="请输入ecifjuscod">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="qygmgb" prop="qygmgb">
<c-input v-model="model.qygmgb" placeholder="请输入qygmgb"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="khbsdt" prop="khbsdt">
<c-date-picker
v-model="model.khbsdt"
placeholder="请输入khbsdt"
style="width: 100%"
>
</c-date-picker>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<div>汇率信息</div>
</c-col>
<c-col :span="24">
<c-table :list="model.ptyratList" :columnsConfig="ptyratColumns"></c-table>
</c-col>
<c-col :span="24">
<div>费率信息</div>
</c-col>
<c-col :span="24">
<c-table :list="model.fecList" :columnsConfig="fecColumns"></c-table>
</c-col>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
ptyratColumns: [
{ label: "币种", prop: "cur", width: "auto" },
{ label: "买价优惠类型", prop: "buytyp", width: "auto" },
{ label: "买价优惠比例", prop: "buyrat", width: "auto" },
{ label: "卖价优惠类型", prop: "seltyp", width: "auto" },
{ label: "卖价优惠比例", prop: "selrat", width: "auto" },
],
fecColumns: [
{ label: "费用代码", prop: "codFee", width: "auto" },
{ label: "起始日期", prop: "begdat", width: "auto" },
{ label: "终止日期", prop: "enddat", width: "auto" },
{ label: "费用计算基准金额", prop: "calcbs", width: "auto" },
{ label: "最小金额的币种", prop: "mincur", width: "auto" },
{ label: "最小金额", prop: "minamt", width: "auto" },
{ label: "最大金额", prop: "maxamt", width: "auto" },
{ label: "每份的费用金额", prop: "untamt", width: "auto" },
{ label: "计算费率", prop: "ratcal", 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="160px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="pty">
<c-content>
<m-pty-info :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="地址信息" name="pta,adr">
<c-content>
<m-adr-list :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="账号信息" name="act">
<c-content>
<m-act-info :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="联系人信息" name="ptc">
<c-content>
<m-ptc-info :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="汇率/费率信息" name="ptyrat,fec,fee">
<c-content>
<m-rat-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Pty, { Pattern } from "../../model/Pty.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,queryById, 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: "dbipty"
}
},
data() {
return {
model: new Pty().data,
tabVal: "pty",
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: "StaticsInfpty", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label=" Name" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入External Visible Name"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Street" prop="str1">
<c-input
v-model="model.str1"
maxlength="35"
placeholder="请输入Street/SWIFT Line 3"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="City" prop="loctxt">
<c-input
v-model="model.loctxt"
maxlength="25"
placeholder="请输入Textpart of City/Second Part of SWIFT Line 4"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- PTY.IDTYPE -->
<el-form-item label="客户类别" prop="idtype">
<c-select
v-model="model.idtype"
style="width: 100%"
placeholder="请选择客户类别"
:code="getCodesByKey('persontype')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- PTA.BRANCHINR -->
<el-form-item label="支行行号" prop="branchinr">
<c-select
v-model="model.branchinr"
style="width: 100%"
placeholder="请选择支行行号"
:code="getCodesByKey('zhbchinr')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="Party No." prop="extkey">
<c-input
v-model="model.extkey"
maxlength="24"
placeholder="请输入Party No."
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC " prop="bic">
<c-input
v-model="model.bic"
maxlength="11"
placeholder="请输入BIC "
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ZIP Code" prop="loczip">
<c-input
v-model="model.loczip"
maxlength="10"
placeholder="请输入ZIP Code"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- PTY.TRNMAN -->
<el-form-item label="交易主体" prop="trnman">
<c-select
v-model="model.trnman"
style="width: 100%"
placeholder="请选择交易主体"
:code="getCodesByKey('jyzt')"
>
</c-select>
</el-form-item>
<c-col :span="24">
<!-- PTY.IDCODE -->
<el-form-item label="统一社会信用代码" prop="idcode">
<c-input
v-model="model.idcode"
maxlength="18"
placeholder="请输入统一社会信用代码"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<!-- PTY.PTYTYP -->
<el-form-item label="Type" prop="ptytyp">
<c-col :span="2">
<c-checkbox v-model="seatyph" @change="ptytypeChange('H')"
>海关</c-checkbox
>
</c-col>
<c-col :span="4">
<c-checkbox v-model="seatypo" @change="ptytypeChange('O')"
>Other</c-checkbox
>
</c-col>
<c-col :span="4">
<c-checkbox v-model="seatypa" @change="ptytypeChange('A')"
>Own Address</c-checkbox
>
</c-col>
<c-col :span="4">
<c-checkbox
v-model="seatypb"
:checked="model.ptytyp === 'B'"
@change="ptytypeChange('B')"
>Bank</c-checkbox
>
</c-col>
<c-col :span="4">
<c-checkbox v-model="seatypc" @change="ptytypeChange('C')"
>Client</c-checkbox
>
</c-col>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="ptyAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="ptyData"
:columns="ptyColumns"
: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="ptyInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="ptyEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="ptyDelete(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/pty.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
ptyData: [],
ptyColumns: [
{ label: '客户号', prop: 'extkey', width: '120' },
{ label: '中文名称', prop: 'nam1', width: '150' },
{ label: 'Name', prop: 'nam', width: '200' },
{ label: '客户类别', prop: 'idtype', width: '100' },
{ label: 'Street', prop: 'str', width: '200' },
{ label: '支行名称', prop: 'bchname', width: '98' },
{ label: 'ZIP', prop: 'loczip', width: '98' },
{ label: '支行行号', prop: 'branch', width: '200' },
{ label: 'City', prop: 'loctxt', width: '120' },
{ label: '组织机构代码', prop: 'juscod', width: '200' },
{ label: 'BIC', prop: 'bic', width: '70' },
{ label: '统一社会信用代码', prop: 'idcode', width: '200' },
{ label: '交易主体', prop: 'trnman', width: '98' },
],
};
},
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() {
const { update } = this.$route.params
if (update) {
this.onInfptySearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfptySearch();
},
onInfptySearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.ptyData = 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.onInfptySearch()
},
ptytypeChange(val) {
this.model.ptytyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
ptyAdd() {
this.$router.push(`/statics/dbapty`)
},
ptyInfo(index, row) {
this.$router.push(`/statics/dbipty/${row.inr}`)
},
ptyEdit(index, row) {
this.$router.push(`/statics/dbepty/${row.inr}`)
},
ptyDelete(index, row) {
this.$router.push(`/statics/dbdpty/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}</style>
<template>
<div class="eContainer">
<c-page title="客户信息查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="客户查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfpty",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// pty
nam: "",
extkey: "",
idtype: "",
trnman: "",
idcode: "",
ptytyp: "C",
// adr
loczip: "",
bic: "",
str1: "",
loctxt: "",
// pta
branchinr: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
import Infpty from "./Infpty";
import Dbipty from "./Dbipty";
import Dbapty from "./Dbapty";
import Dbepty from "./Dbepty";
import Dbdpty from "./Dbdpty";
import Infpty from "./Pty/views/Infpty";
import Dbipty from "./Pty/views/Dbipty";
import Dbapty from "./Pty/views/Dbapty";
import Dbepty from "./Pty/views/Dbepty";
import Dbdpty from "./Pty/views/Dbdpty";
import Dbatrl from "./Trl/views/Dbatrl";
import Dbdtrl from "./Trl/views/Dbdtrl";
import Dbetrl from "./Trl/views/Dbetrl";
......@@ -56,6 +56,7 @@ import Dbipts from "./Pts/views/Dbipts"
import Dbepts from "./Pts/views/Dbepts"
import Dbaswm from "./Swm/views/Dbaswm";
import Dbdswm from "./Swm/views/Dbdswm";
import Dbeswm from "./Swm/views/Dbeswm";
......
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