Commit a77eb278 by s_guodong

Merge remote-tracking branch 'origin/develop' into develop

parents 7e38208a 5d499edb
......@@ -2003,6 +2003,11 @@ const CodeTable = {
{ label: "线下清算登记", value: "OFLN" },
{ label: "线上清算申请", value: "ONLN" },
],
clrtyp1: [
{ label: "汇入清算", value: "I" },
{ label: "汇出清算", value: "O" },
],
clsflg: [
{ label: "全部", value: "A" },
{ label: "只打开", value: "" },
......
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.crdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
ownref: model.crdgrp.rec.ownref,
},
cbsMap: {
MAX: model.crdgrp.cbs.max,
NOM1: model.crdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
......@@ -3,6 +3,280 @@ import moment from "moment";
export default {
methods: {
async handleSearch() {
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/funds/crtsel/list" , {
...this.model.infcon,
pageNumber: this.pagination.pageNumber <= 0 ? 1 : this.pagination.pageNumber,
pageSize: this.pagination.pageSize <= 0 ? 10 : this.pagination.pageSize,
opndatfrom: moment(opndatfrom).format("YYYY-MM-DD"),
opndatto: moment(opndatto).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
console.log(this.stmData)
this.pagination.total = rtnmsg.data.total;
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.infcon.seaownref = "";
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.nam = "";
this.model.infcon.seacur = "";
this.model.infcon.eaamtfr = "";
this.model.infcon.eaamtto = "";
this.model.infcon.ownusr = "";
this.model.infcon.usr = "";
this.model.infcon.acc = "";
this.model.infcon.acc2 = "";
this.model.infcon.searef = "";
this.model.infcon.ptyextkey = "";
this.model.infcon.ptynam = "";
this.model.infcon.seapty = "";
this.model.infcon.searol = "";
this.model.infcon.usrextkey = "";
this.model.infcon.seasta = "";
this.model.infcon.accmng = "";
this.model.infcon.seapaytyp = "";
this.model.infcon.msgtyp = "";
},
//首字母大写
toTitleCase(str) {
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
},
// 处理
async handler(row) {
this.handleModel = row;
this.trnUrl = "funds";
this.inifrm = "crtsel";
this.initdialog = true;
},
//双击表格数据
async TableDblRow(row) {
this.handler(row);
},
//点击页签
async handleClickTab() {
// switch (this.activeTab) {
// case "jsh":
// this.titleNam = "结售汇交易列表";
// break;
// case "dhpp":
// this.titleNam = "外币兑换平盘交易列表";
// break;
// default:
// this.titleNam = "交易列表";
// break;
// }
},
//单击表格数据
TableRowClick(row) {
this["selectedModel" ] = row;
},
changeOwnref() {},
async handleClick(btn, row) {
this.routerPush({
path: "/business/" + btn.code.toLowerCase(),
query: { inr: row.inr, pntinr: row.pntinr },
});
this.initdialog = false;
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNumber = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNumber = val;
this.handleSearch();
},
toCrtcri() {
this.routerPush({
path: "/business/crtcri",
});
},
toCrtcro() {
this.routerPush({
path: "/business/crtcro",
});
},
// 详情
async details(row) {
const params = {
ownref: row.ownref,
shgref: row.shgref ? row.shgref.trim() : "",
};
const res = await Api.post("/manager/trn/getTrnListByOwnref", params);
if (res.respCode === SUCCESS) {
if (res.data.length === 1) {
if (this.oldRefId && this.$refs[this.oldRefId]) {
this.$refs[this.oldRefId].showPopper = false;
}
this.display(res.data[0]);
} else {
this.trnData.data = res.data;
this.oldRefId = "popover_" + row.inr;
this.$refs[this.oldRefId].showPopper = true;
}
}
},
closeDisplayDialog() {
if (this.oldRefId && this.$refs[this.oldRefId]) {
this.$refs[this.oldRefId].showPopper = false;
}
},
//Info
toInfo(row, objtyp, subobjtyp) {
this.routerPush({
path: "/business/crdinf",
query: {
inr: row.inr,
objtyp: objtyp,
pntinr: row.pntinr,
subobjtyp: subobjtyp,
},
});
},
// 关闭详情弹框
closeDetailsDialog(refId) {
if (refId && this.$refs[refId]) {
this.$refs[refId].showPopper = false;
}
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开详情页面
* @param row
*/
display(row) {
if (this.oldRefId && this.$refs[this.oldRefId]) {
this.$refs[this.oldRefId].showPopper = false;
}
// 历史快照
if (row.inr.length == 8) {
this.routerPush({
path: "/business/HistoryRecord",
query: {
businessInr: row.inr,
businessType: "TRN",
type: "view",
},
});
} else if (row.inr.length == 16) {
this.routerPush({
path: `/display/${row.inifrm.toLowerCase()}`,
query: {
businessInr: row.inr,
businessType: "TRN",
},
});
}
},
checkData(row) {
this.routerPush({
path: "/business-new/litdck",
query: {
inr: this.handleModel.inr,
brdinr: row.inr,
},
});
this.litdckdialog = false;
this.$options.methods.closeHandlerDialog.call(this);
},
//修改弹窗状态
changeBtn(isVisible) {
this.initdialog = isVisible;
},
//获取码表数据
getCodeTable(tbl, uil, value) {
if (uil) {
uil = "EN";
}
let localCodes = localStorage.getItem("localCodes");
if (localCodes) {
let codeobj = JSON.parse(localCodes)[tbl + "_" + uil + "_COD"];
if (codeobj) {
let codeobj = codeobj.filter((m) => m.value === value);
return codeobj ? codeobj.label : value;
} else {
return value;
}
} else {
return value;
}
},
//获取码表数据
getCodelabel(value, codenam) {
const codeobj = this.model.dbCodes[codenam].find(
(obj) => obj.value === value
);
return codeobj ? codeobj.label : value;
},
async getdbCode(codeType, uil, codeNam) {
let params = {
codeType: codeType,
uil: uil ? uil : "EN",
};
let rtnmsg = await Api.post("/manager/dic/listDicInfo", params);
if (rtnmsg.respCode === SUCCESS) {
let curList = rtnmsg.data.map((item) => ({
value: item.codeValue,
label: item.codeName,
}));
this.model.dbCodes[codeNam] = curList;
}
},
},
};
export default {
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.snd.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recpan.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.sndp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.snd.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.sndp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"crdgrp.snd.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.snd.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.rec.msgref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.rec.msgact":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
"crdgrp.acc.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recpan.accp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.acc.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.accp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.rec.errmsg":[
{type: "string", required: true, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.acc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.acc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recpan.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
import Api from "~/service/Api";
export default class Infcrd {
export default class infcrd {
constructor() {
this.data = {
crdgrp: {
cbs: {
max: {
cur: "", // 清算币种及金额 .crdgrp.cbs.max.cur
amt: "", // 清算币种及金额 .crdgrp.cbs.max.amt
},
},
rec: {
msgact: "", // 汇款账号(Tag59) .crdgrp.rec.msgact
ownref: "", // 业务编号 .crdgrp.rec.ownref
nam: "", // 名称 .crdgrp.rec.nam
msgref: "", // 本行业务编号 .crdgrp.rec.msgref
rcvobjtyp: "", // 业务种类 .crdgrp.rec.rcvobjtyp
rcvbchinr: "", // 归属机构 .crdgrp.rec.rcvbchinr
errmsg: "", // 出错信息 .crdgrp.rec.errmsg
custyp: "", // 客户类型 .crdgrp.rec.custyp
},
snd: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.snd.dbfadrblkcn
},
acc: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.acc.dbfadrblkcn
},
},
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
recpan: {
recget: {
sdamod: {
seainf: "", // .recpan.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
usr: {
extkey: "", // 经办柜员 .recpan.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .recpan.usrget.sdamod.seainf
},
},
sndp: {
ptsget: {
sdamod: {
seainf: "", // .recpan.sndp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.sndp.ptsget.sdamod.dadsnd
},
},
},
accp: {
ptsget: {
sdamod: {
seainf: "", // .recpan.accp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.accp.ptsget.sdamod.dadsnd
},
},
},
valdat: "", // 起息日 .recpan.valdat
forare: "", // USE FOR ARE AMTOUNT .recpan.forare
},
pageId: "" // ctx的key
infcon: {
seaownref: "", // 业务编号 .infcon.seaownref
seanam: "", // 业务名称 .infcon.nam
opndat: "", //
opndatfrom: new Date(new Date().getTime() - 7 * 24 * 60 * 60 * 1000), // 有效日期自 .infcon.opndatfrom
opndatto: new Date(), // Open Date to .infcon.opndatto
seacur: "", // 币种 .infcon.seacur
seaamtfr: "", // 金额自 .infcon.seaamtfr
seaamtto: "", // Amount to .infcon.seaamtto
ownusr: "",
usr: "",
acc: "",
acc2: "",
}
searef: "",
ptyextkey: "", // 选择一个参与方 .infcon.pty.extkey
ptynam: "", // External Visible Name .infcon.pty.nam
seapty: "", // 参与方名称/BIC .infcon.seapty
searol: "",
usrextkey: "", // User ID .infcon.usr.extkey
seasta: "", // Status .infcon.seasta
accmng: "", // Account manager .infcon.accmng
seapaytyp: "", //类型
msgtyp: "", //类型
},
infbut: {
dspstm: "", // display stream .infbut.dspstm
},
//fttyp: "", // Funds Trans. Type .fttyp
pageId: "", // ctx的key
dbCodes: {
TRAINT: [],
TRAOUT: [],
},
};
}
}
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ==================左边================ -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000005 : 业务编号 -->
<c-col :span="24">
<c-form-item :label="$t('crdgrp.业务编号')" prop="crdgrp.rec.ownref">
<c-input v-model="model.crdgrp.rec.ownref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000026 : 清算币种及金额 -->
<c-col :span="24" class="custom-box-wrap">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.cur">
<c-select-cur v-model="model.crdgrp.cbs.max.cur" style="width: 115px" placeholder="请选择币种" dbCode="curtxt">
</c-select-cur>
</el-form-item>
<div class="box-3">
<el-form-item label-width="5px" prop="crdgrp.cbs.max.amt">
<c-input-currency v-model="model.crdgrp.cbs.max.amt" :currency="model.crdgrp.cbs.max.cur"
style="width: 100%">
</c-input-currency>
</el-form-item>
</div>
</c-col>
<!-- S0000014 : 本行业务编号 -->
<c-col :span="24">
<c-form-item :label="$t('crdgrp.报文编号')" prop="crdgrp.rec.msgref">
<c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000056 : 起息日 -->
<c-col :span="24">
<el-form-item :label="$t('crdgrp.清算时间')" prop="recpan.valdat">
<c-date-picker type="date" v-model="model.recpan.valdat" style="width: 100%"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap-ext
:argadr="{
title: '发报行',
grp: 'crdgrp',
rol: 'snd',
}"
:requiredExtkey="true"
:isFieldLabelVisible="true"
:refVisiable="true"
:isAdrblk="true"
:disabled="true"
:model="model" ptytyp="B"
></c-ptap-ext>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000015 : 业务种类 -->
<c-col :span="24">
<el-form-item :label="$t('crdgrp.清算类型')" prop="crdgrp.rec.rcvobjtyp">
<c-select v-model="model.crdgrp.rec.rcvobjtyp" style="width: 100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('crdgrp.业务类型')" prop="crdgrp.rec.custyp">
<c-select v-model="model.crdgrp.rec.custyp" style="width: 100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000004 : 汇款账号(Tag59) -->
<c-col :span="24">
<c-form-item :label="$t('crdgrp.报文中账号')" prop="crdgrp.rec.msgact">
<c-input v-model="model.crdgrp.rec.msgact" maxlength="21"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : 名称 -->
<c-col :span="24">
<c-form-item :label="$t('crdgrp.简略信息')" prop="crdgrp.rec.nam">
<c-input v-model="model.crdgrp.rec.nam" maxlength="40"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-ptap-ext
:argadr="{
title: '收报行',
grp: 'crdgrp',
rol: 'acc',
}"
:requiredExtkey="true"
:isFieldLabelVisible="true"
:refVisiable="true"
:isAdrblk="true"
:disabled="true"
:model="model" ptytyp="C"
></c-ptap-ext>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [Event],
data() {
return {};
},
methods: {},
created: function () { },
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="业务编号"
prop="seaownref"
style="width: 100%"
>
<c-input
v-model="model.infcon.seaownref"
maxlength="40"
placeholder="请输入业务编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="交易有效日期"
prop="opndatfrom"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatfrom"
style="width: 100%"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatto"
style="width: 100%"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务名称" prop="seanam" style="width: 100%">
<c-input
v-model="model.infcon.seanam"
maxlength="40"
placeholder="请填写业务名称"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="客户" prop="ptyextkey" style="width: 100%">
<c-input
v-model="model.infcon.ptyextkey"
maxlength="20"
placeholder="请输入客户编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="客户名称" prop="ptynam" style="width: 100%">
<c-input
v-model="model.infcon.ptynam"
maxlength="40"
placeholder="请输入客户名称"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="账户经理" prop="accmng" style="width: 100%">
<c-input
v-model="model.infcon.accmng"
maxlength="40"
placeholder="请输入账户经理名称"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="付款类型" prop="seapaytyp" style="width: 100%"
>
<c-select
v-model="model.infcon.seapaytyp"
style="width: 100%"
placeholder="请选择类型"
:code="codes.seapaytyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="SWIFT类型" prop="msgtyp" style="width: 100%"
>
<c-select
v-model="model.infcon.msgtyp"
style="width: 100%"
placeholder="请选择类型"
:code="codes.msgtyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="是否闭卷" prop="isClosed" style="width: 100%">
<c-select v-model="model.infcon.isClosed" dbCode='cxmflg' placeholder="请选择是否闭卷">
</c-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
</template>
</c-list-search>
<c-col :span="24" style="margin-top: 10px; margin-bottom: 10px">
<c-button
class="medium_bcs"
size="medium"
type="primary"
style="margin-top: 10px; margin-bottom: 10px"
title="CRTCRI"
@click="toCrtcri"
>
汇入清算
</c-button>
<c-button
class="medium_bcs"
size="medium"
type="primary"
style="margin-left: 20px"
title="CRTCRO"
@click="toCrtcro"
>
汇出清算
</c-button>
</c-col>
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="清算查询" name="crtsel">
<el-table
:data="stmData.data"
:columns="stmData.columns"
v-loading="load"
style="width: 100%"
size="small"
:border="true"
height="calc(100vh - 480px)"
:highlight-current-row="true"
>
<el-table-column
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:min-width="item.width"
>
<template slot-scope="scope">
<div
style="text-align: center"
v-if="item.prop.indexOf('crtyp') >= 0"
>
{{
findCodeLabel(
codes.crt_crtyp,
scope.row[item.prop].trim()
)
}}
</div>
<div
style="text-align: center"
v-else-if="item.prop.indexOf('trnman') >= 0"
>
{{
findCodeLabel(codes.trnman, scope.row[item.prop].trim())
}}
</div>
<div
style="text-align: center"
v-else-if="item.prop.indexOf('trdint') >= 0"
>
{{ getCodelabel(scope.row[item.prop].trim(), "TRAINT") }}
</div>
<div
style="text-align: center"
v-else-if="item.prop.indexOf('trdout') >= 0"
>
{{ getCodelabel(scope.row[item.prop].trim(), "TRAOUT") }}
</div>
<div v-else>{{ scope.row[item.prop] }}</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
prop="op"
label="操作"
width="180px"
>
<template slot="header">
<c-col :span="11" style="text-align: center">
<span>操作</span>
</c-col>
</template>
<template slot-scope="scope">
<c-button
style="margin-right: 5px"
size="small"
type="text"
@click="handler(scope.row)"
>处理
</c-button>
<span> </span>
<el-popover
trigger="manual"
v-clickOutside="closeDisplayDialog"
placement="top-end"
title="历史信息"
width="1200"
:ref="'popover_' + scope.row.inr"
>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
>
<span
class="el-icon-close"
style="cursor: pointer"
@click="
closeDetailsDialog('popover_' + scope.row.inr)
"
></span>
</div>
<el-table
:data="trnData.data"
:columns="trnData.columns"
:showButtonFlg="true"
>
<el-table-column
v-for="(item, key) in trnData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:width="item.width"
>
<template slot-scope="scope">
<div>{{ scope.row[item.prop] }}</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
prop="op"
label="操作"
width="100px"
>
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.row)"
>快照
</c-button>
</template>
</el-table-column>
</el-table>
<c-button
style="margin-left: 0"
type="text"
size="small"
slot="reference"
@click="details(scope.row)"
>
快照
</c-button>
<c-button
style="margin-left: 0"
type="text"
size="small"
slot="reference"
@click="toInfo(scope.row, 'CRD')"
>
Info
</c-button>
</el-popover>
</template>
</el-table-column>
</el-table>
<div class="pagination-box" style="display: block">
<el-pagination
layout="total, sizes, prev, pager, next, jumper"
:total="Number(pagination.total)"
:page-size="pagination.pageSize"
:current-page.sync="pagination.pageNumber"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
>
</el-pagination>
</div>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
<!-- 点击处理弹框 -->
<el-dialog
v-dialogDrag
v-if="initdialog"
:visible.sync="initdialog"
:title="titleNam"
append-to-body
width="70%"
>
<m-busbtn
ref="childs"
:trnUrl="trnUrl"
:inifrm="inifrm"
:activeTab="activeTab"
:model="handleModel"
@onChoose="handleClick"
></m-busbtn>
</el-dialog>
<!--业务锁及待处理数据弹窗-->
<m-chklap ref="lockAndPending" @changeBtn="changeBtn"></m-chklap>
</div>
</template>
<script>
import event from "../event";
import BusNavbar from "~/components/business/BusNavbar1";
import CheckLockAndPending from "~/components/business/CheckLockAndPending";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
components: {
"m-busbtn": BusNavbar,
"m-chklap": CheckLockAndPending,
},
data() {
return {
activeTab: "crtsel",
load: false,
sptVisible: false,
dealSptData: [],
selectedModelCr: {},
handleModel: {},
queryCon: {},
trnUrl: "",
inifrm: "",
oldRefId: "",
load: false,
titleNam: "清算交易列表",
stmData: {
columns: [
{
label: "类型",
prop: "clrtyp",
width: "180px",
},
{
label: "业务编号",
prop: "ownref",
width: "180px",
},
{
label: "业务名称",
prop: "nam",
width: "180px",
},
{
label: "清算币种",
prop: "maxcur",
width: "180px",
},
{
label: "清算金额",
prop: "maxamt",
width: "180px",
},
{
label: "发报方",
prop: "sndExtkey",
width: "180px",
},
{
label: "收报方",
prop: "rcvExtkey",
width: "180px",
},
{
label: "账户行",
prop: "accExtkey",
width: "180px",
},
{
label: "经办人",
prop: "ownusr",
width: "120px",
},
{
label: "清算日期",
prop: "opndat",
width: "120px",
},
{
label: "闭卷日期",
prop: "clsdat",
width: "120px",
},
],
data: [],
},
// 快照
trnData: {
columns: [
{
label: "业务编号",
prop: "ownref",
width: "160",
},
{
label: "交易名称",
prop: "inifrmname",
width: "220",
},
{
label: "交易码",
prop: "inifrm",
width: "100",
},
{
label: "交易时间",
prop: "inidattim",
width: "160",
},
{
label: "状态",
prop: "relflgName",
width: "100",
},
{
label: "币种",
prop: "reloricur",
width: "100",
},
{
label: "金额",
prop: "reloriamt",
width: "150",
},
],
data: [],
},
// 处理
initdialog: false,
handlerDataList: [],
pagination: {
pageNumber: 1,
pageSize: 10,
total: 0,
},
};
},
methods: {},
mounted() {
this.getdbCode("TRAINT", "EN", "TRAINT");
this.getdbCode("TRAOUT", "EN", "TRAOUT");
},
created: function () {},
};
</script>
<style lang="less" scoped>
::v-deep .c-content-scrollbar {
height: 100% !important;
}
.eibs-tabs /deep/ {
.m-table-search {
padding: 20px 0px 10px 0px;
}
}
.header-wrap {
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
font-size: 16px;
color: #000;
}
.close-btn {
padding: 3px;
cursor: pointer;
}
}
.m-list-btns {
height: 300px;
overflow: auto;
}
.medium_bcs {
border-radius: 5px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.pagination-box {
width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 10px;
background: #fff;
margin-top: 5px;
}
.el-dialog__body {
padding: 10px 5px 50px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</style>
<template>
<div class="eContainer">
<c-page title="清算入口交易">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<el-tab-pane label="业务信息" name="infconp">
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-infconp :model="model" :codes="codes" />
<m-infsea :model="model" :codes="codes" ref="infsea"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infcrd from "../model"
import Infconp from "./Infconp"
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event/index.js";
import Check from "../model/Check.js";
import buildFn from "../event/buildCommons.js";
import CodeTable from "~/config/CodeTable";
import infcrd from "../model";
import event from "../event"
import Infsea from "./Infsea.vue"
export default {
name: "Infcrd",
components: {
"m-infconp": Infconp,
name: "infcrd",
components:{
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infconp",
tabVal: "infsea",
trnName: "infcrd",
trnType: "",
model: new Infcrd().data,
rules: Check,
codes: { ...CodeTable },
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
model: new infcrd().data,
rules: null,
codes:{...CodeTable},
};
},
created: async function () {
console.log("进入infcrd交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
methods:{},
created:async function() {},
};
</script>
<style></style>
<style scoped>
</style>
......@@ -4,12 +4,14 @@ import Dblbch1 from "./Bch1/Dblbch/views";
import Dblmenu from "./Menu/Dblmenu/views";
import Dblbch from "./Bch/Dblbch";
import Dblrole from "./Role/Dblrole";
import Dblety from "./Ety/Dblety/views";
const AdminRouter = [
{ path: 'Sysparam', component: Sysparam, name: 'Sysparam', meta: { keepAlive: true, title: '系统参数查询' } },
{ path: 'DblBch', component: Dblbch, name: 'DblBch', meta: { keepAlive: true, title: '机构查询v1.0' } },
{ path: 'DblBch1', component: Dblbch1, name: 'DblBch1', meta: { keepAlive: true, title: '机构查询v1.1' } },
{ path: 'Dblmenu', component: Dblmenu, name: 'Dblmenu', meta: { keepAlive: true, title: '菜单查询' } },
{ path: 'Dblrole', component: Dblrole, name: 'Dblrole', meta: { keepAlive: true, title: '角色查询' } },
{ path: 'Dblety', component: Dblety, name: 'Dblety', meta: { keepAlive: true, title: '实体查询' } },
]
export default AdminRouter
import Api from "~/service/Api"
export default {
}
export default class Ety {
constructor() {
this.data = {
id :0,
inr :"",
extkey :"",
nam :"",
etg :"",
offlog :"",
letlog :"",
userpic :"",
defico :"",
ver :"",
ownptainr :"",
defrouusg :"",
etaextkey :"",
ownbic :"",
owntid :"",
admusr :"",
timzon :"",
clearid :"",
ptyextkey :"",
ptanam :"",
pageSize:PageSize,
pageNum: 1,
total: 0
}
}
}
export const Pattern = {
"extkey": [
{ "required": true, "message": "请输入实体代码"},
{ "max": 8, "message": "最大长度8个字符"}
],
"nam": [{ "required": true, "message": "请输入实体名称"}],
"etg": [{ "required": true, "message": "请选择实体组"}],
//offlog
//letlog
//userpic
//defico
"ptyextkey": [{ "required": true, "message": "请选择关联的业务当事人"}],
"ownptainr": [{ "required": true, "message": "请选择关联的业务当事人和地址"}],
//defrouusg
"etaextkey": [{ "required": true, "message": "请选择实体地址代码"}],
//ownbic
//owntid
//admusr
"timzon": [{ "required": true, "message": "请选择所属时区"}],
//clearid
}
\ 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="$t('statics.实体代码')" prop="extkey">
<c-input v-model="model.extkey" style="width: 100%" >
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item :label="$t('statics.实体名称')" prop="nam">
<c-input v-model="model.nam" ></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<span style="float: left">
<el-button type="primary" size="small" ref="etyInsertBtn" v-if="true" @click="etyAdd">{{$t('statics.新增')}}</el-button>
</span>
<span style="float: right">
<el-button size="small" @click="handleReset">{{$t('statics.重置')}}</el-button>
<el-button type="primary" icon="el-icon-search" size="small" :loading="searchLoading" @click="onSearch()">{{$t('statics.查询')}}
</el-button>
</span>
</c-col>
<c-col :span="24">
<c-paging-table :data="etyData" :pageNumber="model.pageNum" :pageSize="model.pageSize"
:total="model.total" v-on:queryFunc="queryFunc" :border="true" @sort-change="sortChange" sortable="custom">
<el-table-column prop="extkey" :label="$t('statics.实体代码')" width="auto">
</el-table-column>
<el-table-column prop="nam" :label="$t('statics.实体名称')" width="auto">
<template slot-scope="scope">
{{scope.row.nam}}
</template>
</el-table-column>
<el-table-column prop="etg" :label="$t('statics.所属实体组代码')" width="auto">
<template slot-scope="scope">
{{scope.row.etg}}
</template>
</el-table-column>
<!--
<el-table-column prop="offlog" :label="$t('statics.OFFICE界面LOGO路径')" width="auto">
<template slot-scope="scope">
{{scope.row.offlog}}
</template>
</el-table-column>
<el-table-column prop="letlog" :label="$t('statics.信函头LOGO路径')" width="auto">
<template slot-scope="scope">
{{scope.row.letlog}}
</template>
</el-table-column>
<el-table-column prop="userpic" :label="$t('statics.OFFICE界面使用图片路径')" width="auto">
<template slot-scope="scope">
{{scope.row.userpic}}
</template>
</el-table-column>
<el-table-column prop="defico" :label="$t('statics.实体默认图标路径')" width="auto">
<template slot-scope="scope">
{{scope.row.defico}}
</template>
</el-table-column>
<el-table-column prop="ver" :label="$t('statics.版本号')" width="auto">
<template slot-scope="scope">
{{scope.row.ver}}
</template>
</el-table-column>
-->
<el-table-column prop="ownptainr" :label="$t('statics.关联的业务当事人客户号')" width="auto">
<template slot-scope="scope">
{{scope.row.ptyextkey}}
</template>
</el-table-column>
<el-table-column prop="ownptainr" :label="$t('statics.关联的业务当事人地址描述')" width="auto">
<template slot-scope="scope">
{{scope.row.ptanam}}
</template>
</el-table-column>
<el-table-column prop="ownptainr" :label="$t('statics.关联的实体地址表主键INR')" width="auto" v-show="false">
<template slot-scope="scope">
{{scope.row.ownptainr}}
</template>
</el-table-column>
<!-- <el-table-column prop="defrouusg" :label="$t('statics.默认分配用户组')" width="auto">
<template slot-scope="scope">
{{scope.row.defrouusg}}
</template>
</el-table-column> -->
<el-table-column prop="etaextkey" :label="$t('statics.实体地址代码')" width="auto">
<template slot-scope="scope">
{{scope.row.etaextkey}}
</template>
</el-table-column>
<el-table-column prop="ownbic" :label="$t('statics.实体的BIC')" width="auto">
<template slot-scope="scope">
{{scope.row.ownbic}}
</template>
</el-table-column>
<el-table-column prop="owntid" :label="$t('statics.实体的TRADE CONNECT代码')" width="auto">
<template slot-scope="scope">
{{scope.row.owntid}}
</template>
</el-table-column>
<el-table-column prop="admusr" :label="$t('statics.应用管理员')" width="auto">
<template slot-scope="scope">
{{scope.row.admusr}}
</template>
</el-table-column>
<el-table-column prop="timzon" :label="$t('statics.所属时区')" width="auto">
<template slot-scope="scope">
{{scope.row.timzon}}
</template>
</el-table-column>
<el-table-column prop="clearid" :label="$t('statics.清算编号')" width="auto">
<template slot-scope="scope">
{{ scope.row.clearid}}
</template>
</el-table-column>
<c-table-column fixed="right" prop="op" :label="$t('statics.操作')" width="280px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 5px" size="small" type="" ref="etyDisplayBtn" @click="etyInfo(scope.row)">
{{$t('statics.详情')}}</c-button>
<c-button style="margin-left: 5px" size="small" type="primary" ref="etyUpdateBtn"
@click="etyEdit(scope.row)">{{$t('statics.修改')}}</c-button>
<c-button style="margin-left: 5px" size="small" type="primary" v-if="true" ref="etyDeleteBtn"
@click="etyDelete(scope.row)">{{$t('statics.删除')}}</c-button>
<!-- <c-button style="margin-left: 5px" size="small" type="primary" v-if="true" ref="etyMenuBtn"-->
<!-- @click="etyMenuEdit(scope.row)">{{$t('statics.菜单')}}</c-button>-->
</template>
</c-table-column>
</c-paging-table>
</c-col>
<el-dialog :title="$t('statics.' + dialogNam[operaTyp])" :visible.sync="dialogFlg" :modal-append-to-body="false"
:close-on-click-modal="false" width="70%">
<el-form :model="dataForm" :rules="rules" ref="dataForm" label-suffix=":" :disabled="isDisabled">
<c-col :span="24" style="padding-right: 20px;">
<c-col :span="12">
<el-form-item :label="$t('statics.实体代码')" :label-width="formLabelWidth" prop="extkey">
<c-input v-model="dataForm.extkey" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体名称')" :label-width="formLabelWidth" prop="nam">
<c-input v-model="dataForm.nam" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.所属实体组代码')" :label-width="formLabelWidth" prop="etg">
<el-select v-model="dataForm.etg" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in etgList"
:key="item.inr"
:label="item.extkey+'('+item.nam+')'"
:value="item.extkey"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.OFFICE界面LOGO路径')" :label-width="formLabelWidth" prop="offlog">
<c-input v-model="dataForm.offlog" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.信函头LOGO路径')" :label-width="formLabelWidth" prop="letlog">
<c-input v-model="dataForm.letlog" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.OFFICE界面使用图片路径')" :label-width="formLabelWidth" prop="userpic">
<c-input v-model="dataForm.userpic" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体默认图标路径')" :label-width="formLabelWidth" prop="defico">
<c-input v-model="dataForm.defico" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item :label="$t('statics.版本号')" :label-width="formLabelWidth" prop="ver">
<c-input v-model="dataForm.ver" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col> -->
<c-col :span="12">
<el-form-item :label="$t('statics.关联的业务当事人客户号')" :label-width="formLabelWidth" prop="ptyextkey">
<el-select v-model="dataForm.ptyextkey" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in ptaList"
:key="item.inr"
:label="item.ptyextkey"
:value="item.ptyextkey"
@click.native="selectPtyExtkey(item)""
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.关联的业务当事人地址描述')" :label-width="formLabelWidth" prop="ptanam">
<c-input v-model="dataForm.ptanam" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.关联的实体地址表主键INR')" :label-width="formLabelWidth" prop="ownptainr" v-show="false">
<c-input v-model="dataForm.ownptainr" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.默认分配用户组')" :label-width="formLabelWidth" prop="defrouusg">
<c-input v-model="dataForm.defrouusg" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体地址代码')" :label-width="formLabelWidth" prop="etaextkey">
<el-select v-model="dataForm.etaextkey" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in etaList"
:key="item.inr"
:label="item.extkey+'('+item.nam+')'"
:value="item.extkey"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体的BIC')" :label-width="formLabelWidth" prop="ownbic">
<c-input v-model="dataForm.ownbic" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体的TRADE CONNECT代码')" :label-width="formLabelWidth" prop="owntid">
<c-input v-model="dataForm.owntid" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.应用管理员')" :label-width="formLabelWidth" prop="admusr">
<c-input v-model="dataForm.admusr" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.所属时区')" :label-width="formLabelWidth" prop="timzon">
<el-select v-model="dataForm.timzon" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in timzonList"
:key="item.inr"
:label="item.cod+'('+item.txt+')'"
:value="item.cod"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.清算编号')" :label-width="formLabelWidth" prop="clearid">
<c-input v-model="dataForm.clearid" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="commitAdd" v-if="operaTyp == 'add'">{{$t('statics.提 交')}}</el-button>
<el-button type="primary" @click="commitEdit" v-if="operaTyp == 'edit'">{{$t('statics.提 交')}}</el-button>
<el-button @click="dialogFlg = false" v-if="operaTyp != 'info'">{{$t('statics.取 消')}}</el-button>
<el-button @click="dialogFlg = false" v-if="operaTyp == 'info'">{{$t('statics.返 回')}}</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import Ety, {
Pattern
} from "../model/index.js";
import commonFunctions from "~/mixin/commonFunctions.js";
import Api from "~/service/Api";
import { getPtaTableDtat } from "~/service/business/common";
export default {
mixins: [commonFunctions],
props: ["data"],
inject: ["root"],
data() {
return {
rules: Pattern,
model: new Ety().data,
//下拉列表选项
etgList: [],
etaList: [],
timzonList: [],
ptaList: [],
etyData: [],
// roleColumns: [{
// label: '角色代码',
// prop: 'cod',
// width: 'auto'
// },
// {
// label: '角色名称',
// prop: 'name',
// width: 'auto'
// },
// {
// label: '角色描述',
// prop: 'description',
// width: 'auto'
// },
// {
// label: '适用范围',
// prop: 'bchlev',
// width: 'auto'
// },
// {
// label: '角色状态',
// prop: 'state',
// width: 'auto'
// },
// ],
dataForm: new Ety().data,
menuForm: new Ety().data,
dialogNam: {
'add': '实体信息--新增',
'edit': '实体信息--修改',
'info': '实体信息--详情',
},
operaTyp: "",
isDisabled: false,
showDisplayBtn: false,
showInsertBtn: false,
showUpdateBtn: false,
showDeleteBtn: false,
dialogFlg: false,
dialogFlgMenu:false,
formLabelWidth: "150px",
searchLoading: false,
};
},
//初始化查询
created() {
},
watch :{
},
activated() {
},
mounted() {
this.etgListInit();
this.etaListInit();
this.timzonListInit();
this.ptaListInit();
},
computed: {
},
methods: {
etgListInit(){
Api.post('/admin/dblety/etg/getEtgList',{}).then(res=>{
this.etgList = res.data;
}
)
},
etaListInit(){
Api.post('/admin/dblety/eta/getEtaList',{}).then(res=>{
this.etaList = res.data;
}
)
},
timzonListInit(){
Api.post('/admin/dblety/stb/getTimzonList',{
"uil": "EN"
}).then(res=>{
this.timzonList = res.data;
}
)
},
ptaListInit(){
Api.post('/admin/dblety/pta/getPtaList',{}).then(res=>{
this.ptaList = res.data;
}
)
},
selectPtyExtkey(item){
this.dataForm.ptanam=item.nam;
this.dataForm.ownptainr=item.inr;
console.log(this.dataForm.ownptainr);
},
handleCheckChange(){
console.log ("-1--",this.$refs.treeRef);
console.log ("-2------",this.$refs.treeRef.getCheckedNodes(false,true));
console.log ("-3------",this.$refs.treeRef.getCheckedKeys(false));
},
handleReset() {
//this.root.$refs.modelForm.resetFields();
this.model.extkey="";
this.model.nam="";
this.model.etg="";
this.model.offlog="";
this.model.letlog="";
this.model.userpic="";
this.model.defico="";
this.model.ver="";
this.model.ownptainr="";
this.model.defrouusg="";
this.model.etaextkey="";
this.model.ownbic="";
this.model.owntid="";
this.model.admusr="";
this.model.timzon="";
this.model.clearid="";
this.model.ptyextkey="";
this.model.ptanam="";
this.onDbletySearch();
},
onSearch() {
this.model.pageSize = PageSize;
this.model.pageNum = 1;
this.onDbletySearch();
},
onDbletySearch() {
this.searchLoading = true;
Api.post('/admin/dblety/ety/listety',this.model).then(res => {
if (res.respCode == "AAAAAA") {
const list = res.data.list
this.etyData = list
this.model.pageNum = res.data.pageNum
this.model.pageSize = res.data.pageSize
this.model.total = res.data.total
this.searchLoading = false;
} else {
this.searchLoading = false;
this.$notify.error(this.$t('statics.查询失败'));
this.$notify.error()
}
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onDbletySearch()
},
//新增弹窗
etyAdd() {
this.isDisabled = false;
this.operaTyp = "add";
this.dialogFlg = true;
this.dataForm = new Ety().data;
},
//新增提交
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/admin/dblety/ety/addety',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.添加成功!'));
this.dialogFlg = false;
this.onDbletySearch();
} else {
this.$notify.error(this.$t('statics.添加失败!'));
}
})
.catch((err) => {
this.$notify.error(this.$t('statics.添加失败!'));
});
} else {
this.$notify.error({
title: this.$t('statics.失败'),
message: this.$t('statics.请检查必输项!')
});
}
});
},
//查看弹窗
etyInfo(row) {
let tmp=row;
console.log("-------",row)
console.log("-------",tmp)
let id=row.id
console.log("-------",row.id)
Api.get('/admin/dblety/ety/etydetail/etyid/'+row.id)
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
this.dataForm = res.data;
this.dialogFlg = true;
})
.catch((err) => {
this.$notify.error(this.$t('statics.数据查询失败'));
});
},
//修改弹窗
etyEdit(row) {
Api.get('/admin/dblety/ety/etydetail/etyid/'+row.id)
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
this.operaTyp = "edit"
this.dialogFlg = true;
})
.catch((err) => {
this.$notify.error(this.$t('statics.数据查询失败'));
});
},
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/admin/dblety/ety/updateety',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.修改成功!'));
this.dialogFlg = false;
this.onDbletySearch();
} else {
this.$notify.error(this.$t('statics.修改失败!'));
}
})
.catch((err) => {
this.$notify.error(this.$t('statics.修改失败!'));
});
} else {
this.$notify.error(validMsg);
return false;
}
});
},
etyDelete(row) {
this.$confirm(this.$t('statics.是否确认删除?'), this.$t('statics.提示'), {
confirmButtonText: this.$t('statics.确定'),
cancelButtonText: this.$t('statics.取消'),
type: "warning",
})
.then(() => {
Api.post('/admin/dblety/ety/deleteety?id='+row.id)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.删除成功'));
this.dialogFlg = false;
this.onDbletySearch();
} else {
this.$notify.error(this.$t('statics.删除失败'));
}
})
.catch((err) => {
this.$notify.error(this.$t('statics.删除失败'));
});
})
.catch(() => {
this.$message({
type: "info",
message: this.$t('statics.已取消删除'),
});
});
},
sortChange(obj) {
}
},
};
</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;
}
.el-dialog {
min-height: 70%;
}
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="$t('statics.多实体维护')">
<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="$t('statics.多实体维护')" 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: "Param",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
code: "",
name: "",
// paging
pageNum: 1,
pageSize:PageSize,
total: 0
},
};
},
};
</script>
<style></style>
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