Commit 6df058de by taojinrui

临时提交

parent 664734fa
<template>
<div class="eContainer-table-block">
<div style="text-align: left" v-if="showButtonFlg" class="buttonDiv">
<c-button
icon="el-icon-s-tools"
@click="clounmSetting"
style=""
></c-button
></div>
<c-button
icon="el-icon-s-tools"
@click="clounmSetting"
style=""
></c-button>
</div>
<el-table
ref="table"
:data="
......@@ -16,7 +16,10 @@
class="eContainer-table"
@selection-change="handleSelectionChange"
:row-key="getRowKey"
:header-cell-style="{ background: 'rgb(235, 235, 235)', color: 'rgb(51, 51, 51)' }"
:header-cell-style="{
background: 'rgb(235, 235, 235)',
color: 'rgb(51, 51, 51)',
}"
:highlight-current-row="true"
@row-click="rowClick"
:border="true"
......@@ -27,7 +30,7 @@
v-if="showSelection"
:reserve-selection="true"
></el-table-column>
<c-table-column
v-for="(item, key) in tableColumns"
:key="key"
......@@ -37,13 +40,15 @@
sortable
>
<template v-slot="{ scope }">
<!-- <template slot-scope="{ scope }"> -->
<span>{{!item.render ? scope.row[item.prop] : item.render(item,scope)}}</span>
<!-- <template slot-scope="{ scope }"> -->
<span>{{
!item.render ? scope.row[item.prop] : item.render(item, scope)
}}</span>
</template>
</c-table-column>
<slot></slot>
</el-table>
<el-dialog
class="showColumnDialog"
:visible.sync="setColumnFlg"
......@@ -65,7 +70,10 @@
<span slot="footer">
<el-checkbox
class="selectAllClass"
:indeterminate="columnGroup.length > 0 && columnGroup.length < tableColumnsOrigin.length"
:indeterminate="
columnGroup.length > 0 &&
columnGroup.length < tableColumnsOrigin.length
"
v-model="selectAll"
@change="setAll"
>全选</el-checkbox
......@@ -74,27 +82,27 @@
</span>
</el-dialog>
<c-col :span="16">
<el-pagination
v-if="paginationShow"
class="eContainer-pagination"
layout="prev, pager, next, jumper"
:page-sizes="pageSizes"
:page-size="pageSize"
:current-page="currentPage"
:total="tableData.length"
@size-change="sizeChange"
@current-change="currentChange"
></el-pagination>
<el-pagination
v-if="paginationShow"
class="eContainer-pagination"
layout="prev, pager, next, jumper"
:page-sizes="pageSizes"
:page-size="pageSize"
:current-page="currentPage"
:total="tableData.length"
@size-change="sizeChange"
@current-change="currentChange"
></el-pagination>
</c-col>
<c-col :span="8">
<div class="paginationLable" v-if="paginationShow">
当前显示第 {{ (currentPage - 1) * pageSize + 1 }}-{{
currentPage * pageSize > tableData.length
? tableData.length
: currentPage * pageSize
}}
条,共 {{ tableData.length }} 条
</div>
<div class="paginationLable" v-if="paginationShow">
当前显示第 {{ (currentPage - 1) * pageSize + 1 }}-{{
currentPage * pageSize > tableData.length
? tableData.length
: currentPage * pageSize
}}
条,共 {{ tableData.length }} 条
</div>
</c-col>
</div>
</template>
......@@ -130,12 +138,12 @@ export default {
type: Boolean,
required: false,
default: false,
}
},
},
watch: {
columns() {
this.generateColumns();
}
},
},
computed: {
tableData() {
......@@ -159,14 +167,14 @@ export default {
.join("\n");
}
it["IDX"] = i;
it['INR'] = items[0];
if(it['INR'].length < 8){
it['INR'] = items[1];
it["INR"] = items[0];
if (it["INR"].length < 8) {
it["INR"] = items[1];
}
it.srcStr = d;
arr.push(it);
}
this.currentPage=1
this.currentPage = 1;
return arr;
},
},
......@@ -180,9 +188,9 @@ export default {
selectAll: true,
columnGroup: [],
setColumnFlg: false,
codes:{
...CodeTable
}
codes: {
...CodeTable,
},
};
},
mounted() {
......@@ -196,24 +204,25 @@ export default {
const obj = {};
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
if(typeof line === "object" ){
if (typeof line === "object") {
//如果是对象,支持自定义处理
//{width,position,index,label,pattern,render}
let {width,position,index,label,pattern,render,...rest} = line
position += ''
let { width, position, index, label, pattern, render, ...rest } =
line;
position += "";
if (!obj[position]) {
obj[position] = [];
}
obj[position].push({
idx:index,
prop:label,
idx: index,
prop: label,
// width:width+'px',
width:width === 'auto' ? width : width +'px',
width: width === "auto" ? width : width + "px",
pattern,
render,
...rest
})
continue
...rest,
});
continue;
}
if (etyReg.test(line)) {
const gs = line.match(etyReg);
......@@ -228,7 +237,8 @@ export default {
idx: colPropArr[0],
prop: columnName,
// width: colPropArr[3] + 'px',
width: colPropArr[3] === 'auto' ? colPropArr[3] : colPropArr[3] + 'px',
width:
colPropArr[3] === "auto" ? colPropArr[3] : colPropArr[3] + "px",
});
}
}
......@@ -243,14 +253,14 @@ export default {
// width: "auto",
index: k,
children: o,
}
};
//支持自定义处理
if(o.length == 1){
if(o[0].pattern && this[o[0].pattern]){
colInfo.render = this[o[0].pattern]
colInfo.code = o[0].code
}else if(o[0].render){
colInfo.render = o[0].render
if (o.length == 1) {
if (o[0].pattern && this[o[0].pattern]) {
colInfo.render = this[o[0].pattern];
colInfo.code = o[0].code;
} else if (o[0].render) {
colInfo.render = o[0].render;
}
}
columnArr.push(colInfo);
......@@ -299,68 +309,75 @@ export default {
},
saveColumnEvent() {
this.setColumnFlg = false;
const arr = this.columnGroup.map(idx => parseInt(idx));
arr.sort((a,b) => a - b);
const arr = this.columnGroup.map((idx) => parseInt(idx));
arr.sort((a, b) => a - b);
this.columnGroup = arr;
this.tableColumns = this.columnGroup.map(
(index) => this.tableColumnsOrigin[parseInt(index) - 1]
);
},
setAll(val) {
this.columnGroup = val ? this.tableColumnsOrigin.map((item) => parseInt(item.index)) : [];
this.columnGroup = val
? this.tableColumnsOrigin.map((item) => parseInt(item.index))
: [];
},
handleColumnChange() {
this.selectAll = this.tableColumnsOrigin.length === this.columnGroup.length;
this.selectAll =
this.tableColumnsOrigin.length === this.columnGroup.length;
},
//补充自定义列处理函数
//去掉日期的时分秒毫秒
date(item,scope){
let value = scope.row[item.prop]
if(!value){
return ""
date(item, scope) {
let value = scope.row[item.prop];
if (!value) {
return "";
}
let idx = value.indexOf(" ")
if(idx > 0)
return value.substring(0,idx)
return value
let idx = value.indexOf(" ");
if (idx > 0) return value.substring(0, idx);
return value;
},
//code映射
code(item,scope){
let value = scope.row[item.prop]
let code = item.code
if(typeof code == 'string'){
code = this.codes[code]
code(item, scope) {
let value = scope.row[item.prop];
let code = item.code;
if (typeof code == "string") {
code = this.codes[code];
}
if(!value || !code){
return ""
if (!value || !code) {
return "";
}
let em = code.find(item=>item.value.trim() == value.trim())
if(!em){
return value
let em = code.find((item) => item.value.trim() == value.trim());
if (!em) {
return value;
}
return em.label
return em.label;
},
//去掉时间的毫秒
time(item,scope){
time(item, scope) {
let value = scope.row[item.prop];
if(!value){
return ""
if (!value) {
return "";
}
let idx = value.indexOf(".");
if(idx>0)
return value.substring(0,idx);
return value
if (idx > 0) return value.substring(0, idx);
return value;
},
//日期格式化
dateFormat(item,scope){
dateFormat(item, scope) {
let value = scope.row[item.prop];
if(!value){
return ""
if (!value) {
return "";
}
return value.substring(0,4)+"-"+value.substring(4,6)+"-"+value.substring(6)
return (
value.substring(0, 4) +
"-" +
value.substring(4, 6) +
"-" +
value.substring(6)
);
},
}
},
};
</script>
......@@ -398,13 +415,13 @@ export default {
.eContainer-table-block >>> .el-table .cell {
white-space: pre-wrap;
}
.buttonDiv{
.buttonDiv {
text-align: left;
display: inline-block;
margin: 0;
position: absolute;
z-index: 999;
right: 5px;
padding-top: 3px;
display: inline-block;
margin: 0;
position: absolute;
z-index: 999;
right: 5px;
padding-top: 3px;
}
</style>
\ No newline at end of file
......@@ -2,151 +2,154 @@ import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public"
export default class Cptrel{
constructor () {
this.data = {
trncorco:{
usfmod:{
labtxt:"", // Text of Label .trncorco.usfmod.labtxt
usftxt:"", // Text of Selection Text .trncorco.usfmod.usftxt
flt:"", // Filter .trncorco.usfmod.flt
selusg:"", // Selected User Group .trncorco.usfmod.selusg
selusgset:"", // Selected User Group Set .trncorco.usfmod.selusgset
usr:{
extkey:"", // User ID .trncorco.usfmod.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .trncorco.usfmod.usrget.sdamod.seainf
},
},
selusb:"", // Select user branch .trncorco.usfmod.selusb
},
ownref:"", // Reference .trncorco.ownref
relflg:"", // Status .trncorco.relflg
inidatfro:"", // Date of entry of Transaction .trncorco.inidatfro
inidattil:"", // Date of entry of Transaction until .trncorco.inidattil
trnstm:"", // List of transaction sfor display .trncorco.trnstm
trntyp:"", // 汇款性�'� .trncorco.trntyp
export default class Cptrel {
constructor() {
this.data = {
// infcon: {
// objinr: "",
// },
trncorco: {
usfmod: {
labtxt: "", // Text of Label .trncorco.usfmod.labtxt
usftxt: "", // Text of Selection Text .trncorco.usfmod.usftxt
flt: "", // Filter .trncorco.usfmod.flt
selusg: "", // Selected User Group .trncorco.usfmod.selusg
selusgset: "", // Selected User Group Set .trncorco.usfmod.selusgset
usr: {
extkey: "", // User ID .trncorco.usfmod.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .trncorco.usfmod.usrget.sdamod.seainf
},
atp:{
cod:"", // Transaction Type .atp.cod
},
atpget:{
sdamod:{
seainf:"", // .atpget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .atpget.sdamod.dadsnd
},
},
numtrn:"", // # of transactions .numtrn
relcur:"", // Curr. .relcur
amt1:"", // Amount .amt1
amt2:"", // Amount .amt2
ptyextkey:"", // Party extkey .ptyextkey
branch:"", // branch .branch
recpan:{
cpltxt:"", // Completion text .recpan.cpltxt
spt:{
sta:"", // Status .recpan.spt.sta
},
ord:{
sta:"", // Status .recpan.ord.sta
},
recget:{
sdamod:{
seainf:"", // Ident No. .recpan.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
atp:{
cod:"", // Transaction ID .recpan.atp.cod
},
atpget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.atpget.sdamod.dadsnd
seainf:"", // Transaction .recpan.atpget.sdamod.seainf
},
},
smhstm:"", // Documents .recpan.smhstm
usr:{
extkey:"", // User ID .recpan.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .recpan.usrget.sdamod.seainf
},
},
trsstm:"", // Signatures .recpan.trsstm
con:"", // Reference .recpan.con
cretrs:{
usr:"", // Entered by .recpan.cretrs.usr
dattim:"", // Timestamp .recpan.cretrs.dattim
},
ackgrp:{
rec:{
sndref:"", // Send to SOP/CASmf reference .recpan.ackgrp.rec.sndref
},
},
wfestm:"", // WFEs for transaction for display .recpan.wfestm
trostm:"", // TROs for transaction for display .recpan.trostm
glestm:"", // GLEs for transaction .recpan.glestm
transcode:"", // Transaction Code .recpan.transcode
amt:"", // Amount .recpan.amt
pinno:"", // Pin No .recpan.pinno
userid:"", // UserID .recpan.userid
acttyp:"", // UserID .recpan.acttyp
accno:"", // Pin No. .recpan.accno
rescode:"", // Response Code .recpan.rescode
},
trn:{
ownref:"", // Reference .trn.ownref
inr:"", // Transaction Key .trn.inr
objnam:"", // External Readable Object Identification .trn.objnam
reloricur:"", // Relevant Amount .trn.reloricur
reloriamt:"", // Relevant Amount for Release in Original Currency .trn.reloriamt
relflg:"", // Release Status of Transaction .trn.relflg
usr:"", // Responsible .trn.usr
usg:"", // Responsible Group .trn.usg
relreq:"", // Signatures Required/Obtained .trn.relreq
relres:"", // Applied Signatures .trn.relres
cortrninr:"", // Based on Ident No. .trn.cortrninr
exedat:"", // Execution Date .trn.exedat
inftxt:"", // Infotext .trn.inftxt
infdsp:"", // Infoflag .trn.infdsp
},
wfmmod:{
wfs:{
objnam:"", // External Readable Object Identification .wfmmod.wfs.objnam
objtyp:"", // Table Used to Store Associated Object .wfmmod.wfs.objtyp
objinr:"", // Object .wfmmod.wfs.objinr
},
},
mtabut: new Pub().data.Mtabut,
coninf:{
oitinf:{
labinftxt:"", // Label for INFTXT .coninf.oitinf.labinftxt
oit:{
inftxt:"", // Infotext .coninf.oitinf.oit.inftxt
inflev:"", // Infotext Level .coninf.oitinf.oit.inflev
},
},
oitset:{
labinftxt:"", // Label for INFTXT .coninf.oitset.labinftxt
oit:{
inftxt:"", // Infotext .coninf.oitset.oit.inftxt
inflev:"", // Infotext Level .coninf.oitset.oit.inflev
},
},
conexedat:"", // 执行日期 .coninf.conexedat
usr:{
extkey:"", // User ID .coninf.usr.extkey
},
},
subp:{
subpenablk:"", // XMLPanel subpena的内置block .subp.subpenablk
},
orestr:"", // stream of ore records .orestr
pageId: "" // ctx的key
}
}
},
selusb: "", // Select user branch .trncorco.usfmod.selusb
},
ownref: "", // Reference .trncorco.ownref
relflg: "", // Status .trncorco.relflg
inidatfro: "", // Date of entry of Transaction .trncorco.inidatfro
inidattil: "", // Date of entry of Transaction until .trncorco.inidattil
trnstm: "", // List of transaction sfor display .trncorco.trnstm
trntyp: "", // 汇款性�'� .trncorco.trntyp
},
atp: {
cod: "", // Transaction Type .atp.cod
},
atpget: {
sdamod: {
seainf: "", // .atpget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .atpget.sdamod.dadsnd
},
},
numtrn: "", // # of transactions .numtrn
relcur: "", // Curr. .relcur
amt1: "", // Amount .amt1
amt2: "", // Amount .amt2
ptyextkey: "", // Party extkey .ptyextkey
branch: "", // branch .branch
recpan: {
cpltxt: "", // Completion text .recpan.cpltxt
spt: {
sta: "", // Status .recpan.spt.sta
},
ord: {
sta: "", // Status .recpan.ord.sta
},
recget: {
sdamod: {
seainf: "", // Ident No. .recpan.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
atp: {
cod: "", // Transaction ID .recpan.atp.cod
},
atpget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .recpan.atpget.sdamod.dadsnd
seainf: "", // Transaction .recpan.atpget.sdamod.seainf
},
},
smhstm: "", // Documents .recpan.smhstm
usr: {
extkey: "", // User ID .recpan.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .recpan.usrget.sdamod.seainf
},
},
trsstm: "", // Signatures .recpan.trsstm
con: "", // Reference .recpan.con
cretrs: {
usr: "", // Entered by .recpan.cretrs.usr
dattim: "", // Timestamp .recpan.cretrs.dattim
},
ackgrp: {
rec: {
sndref: "", // Send to SOP/CASmf reference .recpan.ackgrp.rec.sndref
},
},
wfestm: "", // WFEs for transaction for display .recpan.wfestm
trostm: "", // TROs for transaction for display .recpan.trostm
glestm: "", // GLEs for transaction .recpan.glestm
transcode: "", // Transaction Code .recpan.transcode
amt: "", // Amount .recpan.amt
pinno: "", // Pin No .recpan.pinno
userid: "", // UserID .recpan.userid
acttyp: "", // UserID .recpan.acttyp
accno: "", // Pin No. .recpan.accno
rescode: "", // Response Code .recpan.rescode
},
trn: {
ownref: "", // Reference .trn.ownref
inr: "", // Transaction Key .trn.inr
objnam: "", // External Readable Object Identification .trn.objnam
reloricur: "", // Relevant Amount .trn.reloricur
reloriamt: "", // Relevant Amount for Release in Original Currency .trn.reloriamt
relflg: "", // Release Status of Transaction .trn.relflg
usr: "", // Responsible .trn.usr
usg: "", // Responsible Group .trn.usg
relreq: "", // Signatures Required/Obtained .trn.relreq
relres: "", // Applied Signatures .trn.relres
cortrninr: "", // Based on Ident No. .trn.cortrninr
exedat: "", // Execution Date .trn.exedat
inftxt: "", // Infotext .trn.inftxt
infdsp: "", // Infoflag .trn.infdsp
},
wfmmod: {
wfs: {
objnam: "", // External Readable Object Identification .wfmmod.wfs.objnam
objtyp: "", // Table Used to Store Associated Object .wfmmod.wfs.objtyp
objinr: "", // Object .wfmmod.wfs.objinr
},
},
mtabut: new Pub().data.Mtabut,
coninf: {
oitinf: {
labinftxt: "", // Label for INFTXT .coninf.oitinf.labinftxt
oit: {
inftxt: "", // Infotext .coninf.oitinf.oit.inftxt
inflev: "", // Infotext Level .coninf.oitinf.oit.inflev
},
},
oitset: {
labinftxt: "", // Label for INFTXT .coninf.oitset.labinftxt
oit: {
inftxt: "", // Infotext .coninf.oitset.oit.inftxt
inflev: "", // Infotext Level .coninf.oitset.oit.inflev
},
},
conexedat: "", // 执行日期 .coninf.conexedat
usr: {
extkey: "", // User ID .coninf.usr.extkey
},
},
subp: {
subpenablk: "", // XMLPanel subpena的内置block .subp.subpenablk
},
orestr: "", // stream of ore records .orestr
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -91,11 +91,11 @@
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot="header">
<c-col :span="11" style="text-align: left"><span>操作</span></c-col>
<!-- <template slot="header">
<c-col :span="11" style="text-align: left"><span>操作</span></c-col> -->
<!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
</template>
</el-table-column>
<!-- </template>-->
</el-table-column>
</c-istream-table>
</c-col>
......
......@@ -47,7 +47,7 @@
:disabled="model.bopmod.szflg==='3' ||model.bopmod.szflg===''"
>
<el-option
v-for="item in codes.ownextkey"
v-for="item in codes.ownextkey1"
:key="item.value"
:label="item.label"
:value="item.value"
......
<template>
<div class="eibs-tab">
<!--=================顶部================= -->
<div class="eibs-tab">
<!--=================顶部================= -->
<!-- <c-col :span="24" style="height: 24px">
<!-- <c-col :span="24" style="height: 24px">
<el-form-item label="基本信息" class="messageLabel"> </el-form-item>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col> -->
<c-col :span="24" style="margin-top: 0">
<c-col :span="11">
<el-form-item
label="业务编号"
prop="cpdgrp.rec.ownref"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.cpdgrp.rec.ownref"
maxlength="16"
placeholder="请输入Reference"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0px 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
>
<span
style="
font-family: '宋体';
font-weight: bold;
"
>i</span
>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="this.flag"
@click="onOpnpButgetref"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Name" prop="cpdgrp.rec.nam">
<c-input
v-model="model.cpdgrp.rec.nam"
maxlength="16"
placeholder=""
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="11" :offset="1">
<c-col :span="24" style="margin-top: 0">
<c-col :span="11">
<el-form-item
label="业务编号"
prop="cpdgrp.rec.ownref"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.cpdgrp.rec.ownref"
maxlength="16"
placeholder="请输入Reference"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0px 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
>
<span style="font-family: '宋体'; font-weight: bold">i</span>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="this.flag"
@click="onOpnpButgetref"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Name" prop="cpdgrp.rec.nam">
<c-input
v-model="model.cpdgrp.rec.nam"
maxlength="16"
placeholder=""
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="11" :offset="1">
<el-form-item label="Our Reference">
<c-input
v-model="model.cpdgrp.rec.ownref"
......@@ -72,7 +66,7 @@
</el-form-item>
</c-col> -->
<!-- <c-col :span="9">
<!-- <c-col :span="9">
<el-form-item label="">
<c-input
v-model="model.cptp.recget.sdamod.seainf"
......@@ -91,370 +85,394 @@
</el-form-item>
</c-col> -->
<c-col>
<!-- ===================中部--左==================== -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="清算编号" prop="cpdgrp.rec.sysno">
<c-input
v-model="model.cpdgrp.rec.sysno"
maxlength="21"
placeholder="请输入清算编号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<c-form-item
label="汇款金额"
previewLabel="汇款金额币种"
prop="cpdgrp.cbs.nom1.cur"
>
<c-select
v-model="model.cpdgrp.cbs.nom1.cur"
style="width: 100%"
placeholder=""
@change="commonExecuteRule('cpdgrp.cbs.nom1.cur')"
>
<el-option
v-for="item in codes.currencycode"
:key="item.value"
:label="item.value+item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="11">
<c-form-item
label=""
previewLabel="汇款金额"
label-width="8px"
prop="cpdgrp.cbs.nom1.amt"
>
<c-input
class="m-input-currency"
v-model="model.cpdgrp.cbs.nom1.amt"
placeholder="请输入汇款金额"
@keyup.enter.native="defaultFunction('cpdgrp.cbs.nom1.amt', model.cpdgrp.cbs.nom1.amt)"
></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="所属行" prop="cpdgrp.rec.othbch">
<c-input
v-model="model.cpdgrp.rec.othbch"
maxlength="8"
placeholder=""
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="汇款语种" label-width="40%">
<c-select
v-model="model.cptp.payuil"
placeholder="请选择汇款语种"
@change="onPayuilChange"
style="width:100%"
>
<el-option
v-for="item in codes.payuil"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="是否需要核验"
prop="cpdgrp.rec.ischktyp"
>
<c-select
v-model="model.cpdgrp.rec.ischktyp"
style="width: 100%"
placeholder=""
>
<el-option
v-for="item in codes.ischktyp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col>
<!-- ===================中部--左==================== -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="清算编号" prop="cpdgrp.rec.sysno">
<c-input
v-model="model.cpdgrp.rec.sysno"
maxlength="21"
placeholder="请输入清算编号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label="预计核验日期"
prop="cpdgrp.rec.paydat"
label-width="40%"
>
<c-date-picker
type="date"
v-model="model.cpdgrp.rec.paydat"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder=""
:disabled=this.flag1
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<c-form-item
label="汇款金额"
previewLabel="汇款金额币种"
prop="cpdgrp.cbs.nom1.cur"
>
<c-select
v-model="model.cpdgrp.cbs.nom1.cur"
style="width: 100%"
placeholder=""
@change="commonExecuteRule('cpdgrp.cbs.nom1.cur')"
>
<el-option
v-for="item in codes.currencycode"
:key="item.value"
:label="item.value + item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="11">
<c-form-item
label=""
previewLabel="汇款金额"
label-width="8px"
prop="cpdgrp.cbs.nom1.amt"
>
<c-input
class="m-input-currency"
v-model="model.cpdgrp.cbs.nom1.amt"
placeholder="请输入汇款金额"
@keyup.enter.native="
defaultFunction(
'cpdgrp.cbs.nom1.amt',
model.cpdgrp.cbs.nom1.amt
)
"
></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="我行费用负担">
<c-select
v-model="model.cpdgrp.rec.detchgcod"
style="width: 100%"
placeholder=""
>
<el-option
v-for="item in codes.detchgcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物类型">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物类型"
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="所属行" prop="cpdgrp.rec.othbch">
<c-input
v-model="model.cpdgrp.rec.othbch"
maxlength="8"
placeholder=""
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="汇款语种" label-width="40%">
<c-select
v-model="model.cptp.payuil"
placeholder="请选择汇款语种"
@change="onPayuilChange"
style="width: 100%"
>
<el-option
v-for="item in codes.payuil"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="是否需要核验" prop="cpdgrp.rec.ischktyp">
<c-select
v-model="model.cpdgrp.rec.ischktyp"
style="width: 100%"
placeholder=""
>
<el-option
v-for="item in codes.ischktyp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<!-- ===================中部--右==================== -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-col :span="13">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select
v-model="model.cpdgrp.rec.trntyp"
placeholder="请选择汇款性质"
style="width: 100%"
>
<el-option
v-for="item in trntyp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item
label="汇款方式"
prop="cpdgrp.rec.paytype"
label-width="40%"
>
<c-select
v-model="model.cpdgrp.rec.paytype"
placeholder="请选择汇款方式"
style="width:100%"
>
<el-option
v-for="item in codes.paytype"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
</c-col>
<c-col :span="11">
<el-form-item
label="预计核验日期"
prop="cpdgrp.rec.paydat"
label-width="40%"
>
<c-date-picker
type="date"
v-model="model.cpdgrp.rec.paydat"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder=""
:disabled="this.flag1"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="汇款对象" prop="cpdgrp.rec.gors">
<c-select
v-model="model.cpdgrp.rec.gors"
placeholder="请选择汇款对象"
style="width:100%"
>
<el-option
v-for="item in codes.gors"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="收支类型" prop="cpdgrp.rec.sztyp" label-width="40%">
<c-select
v-model="model.cpdgrp.rec.sztyp"
placeholder="请选择收支类型"
style="width:100%"
>
<el-option
v-for="item in codes.sztyp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="我行费用负担">
<c-select
v-model="model.cpdgrp.rec.detchgcod"
style="width: 100%"
placeholder=""
>
<el-option
v-for="item in codes.detchgcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物类型">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物类型"
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
<c-select
v-model="model.cpdgrp.rec.clityp"
placeholder="请选择客户类型"
style="width:100%"
>
<el-option
v-for="item in codes.clityp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="报文类型" prop="cpdgrp.rec.swftyp" label-width="40%">
<c-select
style="width: 100%"
placeholder=""
v-model="model.cpdgrp.rec.swftyp"
:disabled=this.flag2
@change="swftypChange"
>
<!-- :disabled="model.cptp.liqtyp != 'C' && model.cptp.liqtyp != 'S' && model.cptp.liqtyp != ''" -->
<el-option
v-for="item in this.swftypOpnp"
:label="item.label"
:value="item.value"
:key="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
</c-col>
<!-- ===================中部--右==================== -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-col :span="13">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select
v-model="model.cpdgrp.rec.trntyp"
placeholder="请选择汇款性质"
style="width: 100%"
>
<el-option
v-for="item in trntyp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item
label="汇款方式"
prop="cpdgrp.rec.paytype"
label-width="40%"
>
<c-select
v-model="model.cpdgrp.rec.paytype"
placeholder="请选择汇款方式"
style="width: 100%"
>
<el-option
v-for="item in codes.paytype"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-fullbox>
<c-col :span="20">
<c-col :span="21">
<el-form-item
label="收款人常驻国家/地区代码"
prop="cptp.payeecountcode">
<c-input
v-model="model.cptp.payeecountcode"
maxlength="3"
placeholder="请输入收款人常驻国家/地区代码"
@keyup.enter.native="
showGridPromptDialog('cptp.payeecountcode')
"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
<c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="showGridPromptDialog('cptp.selbut1', null, null,{TXT: 'cptp.payeecountcode'}, {TXT: false},'doxpDialog')"
              > </c-button>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="汇款对象" prop="cpdgrp.rec.gors">
<c-select
v-model="model.cpdgrp.rec.gors"
placeholder="请选择汇款对象"
style="width: 100%"
>
<el-option
v-for="item in codes.gors"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item
label="收支类型"
prop="cpdgrp.rec.sztyp"
label-width="40%"
>
<c-select
v-model="model.cpdgrp.rec.sztyp"
placeholder="请选择收支类型"
style="width: 100%"
>
<el-option
v-for="item in codes.sztyp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
</c-col>
<c-col :span="4" style="float: right">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" label-width="150px" >同名划转</c-checkbox>
</c-col>
</c-fullbox>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
<c-select
v-model="model.cpdgrp.rec.clityp"
placeholder="请选择客户类型"
style="width: 100%"
>
<el-option
v-for="item in codes.clityp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item
label="报文类型"
prop="cpdgrp.rec.swftyp"
label-width="40%"
>
<c-select
style="width: 100%"
placeholder=""
v-model="model.cpdgrp.rec.swftyp"
:disabled="this.flag2"
@change="swftypChange"
>
<!-- :disabled="model.cptp.liqtyp != 'C' && model.cptp.liqtyp != 'S' && model.cptp.liqtyp != ''" -->
<el-option
v-for="item in this.swftypOpnp"
:label="item.label"
:value="item.value"
:key="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="14">
<el-form-item
label="清算模式"
v-if="model.cpdgrp.cbs.nom1.cur === 'CNY'">
<c-select
v-model="model.cptp.liqtyp"
style="width: 100%"
placeholder="请选择清算模式"
:disabled="model.cpdgrp.cbs.nom1.amt === '0.000'"
:code=this.liqtypOptions
@change="swftypChange"
>
<el-option
v-for="item in liqtypOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
<el-form-item
label=""
v-if="!(model.cpdgrp.cbs.nom1.cur === 'CNY')"
></el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-fullbox>
<c-col :span="20">
<c-col :span="21">
<el-form-item
label="收款人常驻国家/地区代码"
prop="cptp.payeecountcode"
>
<c-input
v-model="model.cptp.payeecountcode"
maxlength="3"
placeholder="请输入收款人常驻国家/地区代码"
@keyup.enter.native="
showGridPromptDialog('cptp.payeecountcode')
"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="
showGridPromptDialog(
'cptp.selbut1',
null,
null,
{ TXT: 'cptp.payeecountcode' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="货物类型">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物类型"
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="4" style="float: right">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" label-width="150px"
>同名划转</c-checkbox
>
</c-col>
</c-fullbox>
</c-col>
<c-col :span="24">
<c-col :span="14">
<el-form-item
label="清算模式"
v-if="model.cpdgrp.cbs.nom1.cur === 'CNY'"
>
<c-select
v-model="model.cptp.liqtyp"
style="width: 100%"
placeholder="请选择清算模式"
:disabled="model.cpdgrp.cbs.nom1.amt === '0.000'"
:code="this.liqtypOptions"
@change="swftypChange"
>
<el-option
v-for="item in liqtypOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
<el-form-item
label=""
v-if="!(model.cpdgrp.cbs.nom1.cur === 'CNY')"
></el-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="货物类型">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物类型"
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- <c-col :span="24" style="height: 24px">
<!-- <c-col :span="24" style="height: 24px">
<el-form-item label="*****信息" class="messageLabel">
</el-form-item>
</c-col> -->
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<CptOpnp1Common :model="model" :codes="codes" v-on:onSndpDet="onSndpDet"></CptOpnp1Common>
</div>
<CptOpnp1Common
:model="model"
:codes="codes"
v-on:onSndpDet="onSndpDet"
></CptOpnp1Common>
</div>
</template>
<script>
import Api from "~/service/Api";
......@@ -467,143 +485,150 @@ import Infpta from "~/views/Business/Infpta";
import CptOpnp1Common from "./CptOpnp1Common";
export default {
inject: ["root"],
props: ["model", "codes"],
components: { Infpta, CptOpnp1Common },
mixins: [commonProcess],
data() {
return {
trntyp: [
{ value: "0", label: "贸易" },
{ value: "1", label: "非贸易" },
{ value: "2", label: "资本" },
{ value: "3", label: "其他" },
],
liqtypOptions: [
{ value: "C", label: "代理行模式" },
{ value: "O", label: "Other" },
{ value: "S", label: "CIPS系统" },
],
swftypOpnp: [
{ label: 'MT103', value: '103' },
{ label: 'Mt202 COV', value: '202' },
{ label: 'MT202', value: '200' },
{ label: 'Other', value: 'OTH' },
],
flag1:true,
flag2:true,
};
inject: ["root"],
props: ["model", "codes"],
components: { Infpta, CptOpnp1Common },
mixins: [commonProcess],
data() {
return {
trntyp: [
{ value: "0", label: "贸易" },
{ value: "1", label: "非贸易" },
{ value: "2", label: "资本" },
{ value: "3", label: "其他" },
],
liqtypOptions: [
{ value: "C", label: "代理行模式" },
{ value: "O", label: "Other" },
{ value: "S", label: "CIPS系统" },
],
swftypOpnp: [
{ label: "MT103", value: "103" },
{ label: "Mt202 COV", value: "202" },
{ label: "MT202", value: "200" },
{ label: "Other", value: "OTH" },
],
flag1: true,
flag2: true,
};
},
methods: {
...Event,
onCptpGetref() {},
onCptpGetmod() {},
commonExecuteRule(ruleName) {
this.executeRule(ruleName).then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
methods: {
...Event,
onCptpGetref() {},
onCptpGetmod() {},
commonExecuteRule(ruleName) {
this.executeRule(ruleName).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
},
watch: {
"model.cpdgrp.rec.ischktyp": {
immediate: true,
handler(val, oldVal) {
if (
this.model.cpdgrp.rec.ischktyp == "N" ||
this.model.cpdgrp.rec.ischktyp == ""
) {
this.flag1 = true;
this.model.cpdgrp.rec.paydat = "";
} else {
this.flag1 = false;
}
},
},
watch:{
"model.cpdgrp.rec.ischktyp":{
immediate:true,
handler(val ,oldVal){
if(this.model.cpdgrp.rec.ischktyp == 'N' || this.model.cpdgrp.rec.ischktyp == ''){
this.flag1=true;
this.model.cpdgrp.rec.paydat="";
}
else{
this.flag1=false;
}
}
},
"model.cptp.liqtyp":{
immediate:true,
handler(val ,oldVal){
//清除数据
if(this.model.cptp.liqtyp != 'C'){
//清除liqtyp = C时填写的数据
this.model.cptp.cleage="";
this.model.cptp.evebch="";
this.model.cptp.coract="";
}else if(this.model.cptp.liqtyp != 'O'){
this.model.cpdgrp.blk.contag70="";
}else if(this.model.cptp.liqtyp != 'S'){
this.model.cptp.orcnam="";
this.model.cptp.orcadr="";
this.model.cptp.pyenam="";
this.model.cptp.pyeadr="";
this.model.cptp.reconebch="";
this.model.cptp.reconebchnam="";
this.model.cptp.cptp.bustyp="";
this.model.cptp.commetr="";
}
"model.cptp.liqtyp": {
immediate: true,
handler(val, oldVal) {
//清除数据
if (this.model.cptp.liqtyp != "C") {
//清除liqtyp = C时填写的数据
this.model.cptp.cleage = "";
this.model.cptp.evebch = "";
this.model.cptp.coract = "";
} else if (this.model.cptp.liqtyp != "O") {
this.model.cpdgrp.blk.contag70 = "";
} else if (this.model.cptp.liqtyp != "S") {
this.model.cptp.orcnam = "";
this.model.cptp.orcadr = "";
this.model.cptp.pyenam = "";
this.model.cptp.pyeadr = "";
this.model.cptp.reconebch = "";
this.model.cptp.reconebchnam = "";
this.model.cptp.cptp.bustyp = "";
this.model.cptp.commetr = "";
}
if(this.model.cptp.liqtyp == 'C'){
this.model.cpdgrp.rec.swftyp="103";
this.swftypOpnp=[
{ label: 'MT103', value: '103' },
{ label: 'MT202', value: '200' },
]
this.flag2 = false;
}else if(this.model.cptp.liqtyp == 'O'){
//同步切换报文类型的值
this.model.cpdgrp.rec.swftyp= "OTH";
this.flag2 = true;
}else if(this.model.cptp.liqtyp == 'S'){
this.flag2 = false;
//同步切换报文类型的值
this.model.cpdgrp.rec.swftyp= "CIU";
this.swftypOpnp=[
{ label: "cips111", value: "CIU" },
{ label: "cips112", value: "CIV" },
]
}else{
//当为空时,恢复下拉选的选项
this.swftypOpnp=[
{ label: 'MT103', value: '103' },
{ label: 'Mt202 COV', value: '202' },
{ label: 'MT202', value: '200' },
{ label: 'Other', value: 'OTH' },
]
}
}
},
"model.cpdgrp.cbs.nom1.amt":{
immediate:true,
handler(val ,oldVal){
if(this.model.cpdgrp.cbs.nom1.amt !== '0.000' && this.model.cpdgrp.cbs.nom1.cur !='CNY'){
this.flag2 = false;
}else{
this.flag2 = true;
}
}
},
"model.cpdgrp.cbs.nom1.cur":{
immediate:true,
handler(val ,oldVal){
if(this.model.cpdgrp.cbs.nom1.amt !== '0.000' && this.model.cpdgrp.cbs.nom1.cur !='CNY'){
this.flag2 = false;
}else{
this.flag2 = true;
}
}
}
if (this.model.cptp.liqtyp == "C") {
this.model.cpdgrp.rec.swftyp = "103";
this.swftypOpnp = [
{ label: "MT103", value: "103" },
{ label: "MT202", value: "200" },
];
this.flag2 = false;
} else if (this.model.cptp.liqtyp == "O") {
//同步切换报文类型的值
this.model.cpdgrp.rec.swftyp = "OTH";
this.flag2 = true;
} else if (this.model.cptp.liqtyp == "S") {
this.flag2 = false;
//同步切换报文类型的值
this.model.cpdgrp.rec.swftyp = "CIU";
this.swftypOpnp = [
{ label: "cips111", value: "CIU" },
{ label: "cips112", value: "CIV" },
];
} else {
//当为空时,恢复下拉选的选项
this.swftypOpnp = [
{ label: "MT103", value: "103" },
{ label: "Mt202 COV", value: "202" },
{ label: "MT202", value: "200" },
{ label: "Other", value: "OTH" },
];
}
},
},
created: function () {},
computed: {
flag() {
return (
this.model.cpdgrp.orc.pts.extkey == ""
// && this.model.cpdgrp.rec.ownref != ""
);
},
"model.cpdgrp.cbs.nom1.amt": {
immediate: true,
handler(val, oldVal) {
if (
this.model.cpdgrp.cbs.nom1.amt !== "0.000" &&
this.model.cpdgrp.cbs.nom1.cur != "CNY"
) {
this.flag2 = false;
} else {
this.flag2 = true;
}
},
},
"model.cpdgrp.cbs.nom1.cur": {
immediate: true,
handler(val, oldVal) {
if (
this.model.cpdgrp.cbs.nom1.amt !== "0.000" &&
this.model.cpdgrp.cbs.nom1.cur != "CNY"
) {
this.flag2 = false;
} else {
this.flag2 = true;
}
},
},
},
created: function () {},
computed: {
flag() {
return (
this.model.cpdgrp.orc.pts.extkey == ""
// && this.model.cpdgrp.rec.ownref != ""
);
},
},
};
</script>
<style scoped>
</style>
......@@ -12,24 +12,22 @@
<c-col :span="24">
<c-col :span="8">
<c-fullbox>
<el-form-item
label="Selection of User"
prop="trncorco.usfmod.flt"
style="width: 100%"
>
<c-col :span="16">
<c-input
v-model="model.trncorco.usfmod.flt"
maxlength="16"
placeholder="请输入Selection of User"
>
</c-input>
</c-col>
<c-button size="small" type="primary"
>Show_Set</c-button
<el-form-item
label="Selection of User"
prop="trncorco.usfmod.flt"
style="width: 100%"
>
</el-form-item>
<c-col :span="16">
<c-input
v-model="model.trncorco.usfmod.flt"
maxlength="16"
placeholder="请输入Selection of User"
>
</c-input>
</c-col>
<c-button size="small" type="primary">Show_Set</c-button>
</el-form-item>
</c-fullbox>
</c-col>
......@@ -122,11 +120,7 @@
</c-col>
<c-col :span="8">
<el-form-item
label="Amount between"
prop=""
style="width: 100%"
>
<el-form-item label="Amount between" prop="" style="width: 100%">
<c-col :span="11">
<c-input-currency
v-model="model.amt1"
......@@ -189,16 +183,11 @@
</c-col>
<c-col :span="8">
<el-form-item
label="branch"
prop="branch"
style="width: 100%"
>
<el-form-item label="branch" prop="branch" style="width: 100%">
<c-input
v-model="model.branch"
maxlength="24"
placeholder="请输入Select Single Party"
>
</c-input>
</el-form-item>
......@@ -237,12 +226,50 @@
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" label="操作" width="150px">
<template slot="header">
<c-col :span="11" style="text-align: left"><span>操作</span></c-col>
<!-- <c-col :span="12" style="text-align: right">
<c-button icon="el-icon-s-tools"></c-button>
</c-col> -->
</template>
<!-- <template slot-scope="scope">
<el-popover placement="top-start" title="历史信息" width="800" trigger="click" :ref="'popover_' + scope.row.IDX">
<div style="text-align: right; margin-top: -30px;margin-right: 5px; font-size: 16px;">
<span class="el-icon-close" @click="closeTrn('popover_' + scope.row.IDX)"/>
</div>
<c-istream-table :list="trnData.data" :columns="trnData.columns">
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button style="margin-left: 0" size="small" @click="display(scope.row['INR'])" >详情</c-button>
</template>
</el-table-column>
</c-istream-table>
<c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
>详情</c-button
>
</el-popover>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
>处理
</c-button>
</template> -->
</el-table-column>
</c-istream-table>
</c-col>
<m-busbtn ref="childs" :ownref="ownref" trnCode="cptsel" :model="CptselModel" ownrefPath="cpdgrp" @onChoose="onChoose" >11</m-busbtn>
<!-- ======================================原码=================================================== -->
<!-- <c-col :span="12">
......@@ -459,13 +486,18 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrel/Event";
import BusNavbar from "~/views/Public/BusNavbar";
import CptselModel from "~/model/Cptsel"
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
components: { "m-busbtn": BusNavbar },
data() {
return {
CptselModel: new CptselModel().data,
ownref: "",
stmData: {
columns: [
// '0 1 "业务编号" 110',
......@@ -476,50 +508,78 @@ export default {
// '5 6 "业务发生日期" 150 20 30 1',
// '6 7 "复核状态" 120 1 0:0 1 RELSTA',
// "10 1 \"TRN\" 50 1 0:0 3 ATPTXT",
// "11 2:1 \"Own Reference\" 186",
// "17 2:2 \"Message Type\" 186",
// "12 3 \"Cur\" 137",
// "13 4 \"Relevant Amount\" 80 2 8:1 2 5",
// "14 5 \"Entry\" 104 20 30 1",
// "9 6:1 \"Req\" 135",
// "2 6:2 \"Sig\" 135",
// "6 8:1 \"Rq0\" 135",
// "3 8:2 \"Rel0\" 135",
// "7 9:1 \"Rq1\" 135",
// "4 9:2 \"Rel1\" 135",
// "8 10:1 \"Rq2\" 135",
// "5 10:2 \"Rel2\" 135",
// "16 11:1 \"User\" 160",
// "18 11:2 \"\" 60",
// "0 12 \"Status\" 54 1 0:0 1 RELSTA",
// "15 13 \"Branch\" 142",
"10 1 \"TRN\" 100 1 0:0 3 ATPTXT",
"11 2 \"Own Reference\" 186",
"17 3 \"Message Type\" 186",
"12 4 \"Cur\" 137",
"13 5 \"Relevant Amount\" 80 2 8:1 2 5",
"14 6 \"Entry\" 104 20 30 1",
"9 7 \"Req\" 135",
"2 8 \"Sig\" 135",
"6 9 \"Rq0\" 135",
"3 10 \"Rel0\" 135",
"7 11 \"Rq1\" 135",
"4 12 \"Rel1\" 135",
"8 13 \"Rq2\" 135",
"5 14 \"Rel2\" 135",
"16 15 \"User\" 160",
"18 16 \"\" 60",
"0 17 \"Status\" 54 1 0:0 1 RELSTA",
"15 18 \"Branch\" 142",
'10 1 "TRN" 100 1 0:0 3 ATPTXT',
'11 2 "Own Reference" 186',
'17 3 "Message Type" 186',
'12 4 "Cur" 137',
'13 5 "Relevant Amount" 80 2 8:1 2 5',
'14 6 "Entry" 104 20 30 1',
'9 7 "Req" 135',
'2 8 "Sig" 135',
'6 9 "Rq0" 135',
'3 10 "Rel0" 135',
'7 11 "Rq1" 135',
'4 12 "Rel1" 135',
'8 13 "Rq2" 135',
'5 14 "Rel2" 135',
'16 15 "User" 160',
'18 16 "" 60',
'0 17 "Status" 54 1 0:0 1 RELSTA',
'15 18 "Branch" 142',
],
data: [],
},
searchToggle: true
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 130',
// '3 3 "日期" 200',
{ index: 3, position: 3, width: 110, pattern: "date", label: "日期" },
// '4 4 "状态" 50',
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "状态",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "金额" 100',
],
data: [],
},
searchToggle: true,
};
},
methods: { ...Event },
methods: {
...Event,
async getTrnInfo(idx, row) {
this.model.objinr = row["INR"];
this.model.inr = row["INR"];
this.model.infcon.chksubcon = "X";
this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infcon.chksubcon");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
}
},
closeTrn(refId) {
this.$refs[refId].doClose();
},
async getButtons(ownref) {
this.ownref = ownref;
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.$refs.childs.initdialog = false;
},
},
created: function () {},
};
</script>
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="recget.sdamod.dadsnd">
<c-input v-model="model.recget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<!-- SF000160 : Reference -->
<c-col :span="12">
<c-form-item :label="$t('cptsel.SF000160')" prop="cpdgrp.rec.ownref">
<c-input v-model="model.cpdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('cptsel.SF000160')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="recget.sdamod.seainf">
<c-input v-model="model.recget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.clsflg">{{$t('cptsel.CF000202')}}</c-checkbox>
</c-col>
<!-- SF000161 : Name -->
<c-col :span="12">
<c-form-item label="Externally Displayed Name to Identify the Contract" prop="cpdgrp.rec.nam">
<c-input v-model="model.cpdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Externally Displayed Name to Identify the Contract'"></c-input>
</c-form-item>
</c-col>
<!-- S0000188 : Payment Amount -->
<c-col :span="12">
<c-form-item :label="$t('cptsel.S0000188')" prop="cpdgrp.cbs.nom1.cur">
<c-input v-model="model.cpdgrp.cbs.nom1.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('cptsel.S0000188')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="cpdgrp.cbs.nom1.amt">
<c-input v-model="model.cpdgrp.cbs.nom1.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- S0000194 : Ordering Customer -->
<c-col :span="12">
<c-form-item label="Name of Party" prop="cpdgrp.orc.pts.nam">
<c-input v-model="model.cpdgrp.orc.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- S0000189 : Received Amount -->
<c-col :span="12">
<c-form-item :label="$t('cptsel.S0000189')" prop="cpdgrp.cbs.max.cur">
<c-input v-model="model.cpdgrp.cbs.max.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('cptsel.S0000189')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="cpdgrp.cbs.max.amt">
<c-input v-model="model.cpdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- S0000192 : Value Date -->
<c-col :span="12">
<el-form-item :label="$t('cptsel.S0000192')" prop="cpdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('cptsel.S0000192')"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF000198 : Paying Bank -->
<c-col :span="12">
<c-form-item label="Name of Party" prop="cpdgrp.pyb.pts.nam">
<c-input v-model="model.cpdgrp.pyb.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- SF000201 : Payment Type -->
<c-col :span="12">
<el-form-item :label="$t('cptsel.SF000201')" prop="cpdgrp.rec.paytyp">
<c-select v-model="model.cpdgrp.rec.paytyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('cptsel.SF000201')">
</c-select>
</el-form-item>
</c-col>
<!-- SF000200 : Payee -->
<c-col :span="12">
<c-form-item label="Name of Party" prop="cpdgrp.pye.pts.nam">
<c-input v-model="model.cpdgrp.pye.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Bitmap for folder" prop="cfgfil.bitmap">
<c-input v-model="model.cfgfil.bitmap" :placeholder="$t('other.please_enter')+'Bitmap for folder'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside1">
<c-input v-model="model.cfgfil.regside1" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg1" prop="cfgfil.hotreg1">
<c-input v-model="model.cfgfil.hotreg1" :placeholder="$t('other.please_enter')+'hotspot reg1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside5">
<c-input v-model="model.cfgfil.regside5" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg5" prop="cfgfil.hotreg5">
<c-input v-model="model.cfgfil.hotreg5" :placeholder="$t('other.please_enter')+'hotspot reg5'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside9">
<c-input v-model="model.cfgfil.regside9" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg9" prop="cfgfil.hotreg9">
<c-input v-model="model.cfgfil.hotreg9" :placeholder="$t('other.please_enter')+'hotspot reg9'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt1" data-path=".cfgfil.regtxt1" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt5" data-path=".cfgfil.regtxt5" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt9" data-path=".cfgfil.regtxt9" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub1">
<c-input v-model="model.cfgfil.hotsub1" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt1" data-path=".cfgfil.subtxt1" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn1" data-path=".cfgfil.subtrn1" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub2">
<c-input v-model="model.cfgfil.hotsub2" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt2" data-path=".cfgfil.subtxt2" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn2" data-path=".cfgfil.subtrn2" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt3" data-path=".cfgfil.subtxt3" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub3">
<c-input v-model="model.cfgfil.hotsub3" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside2">
<c-input v-model="model.cfgfil.regside2" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg2" prop="cfgfil.hotreg2">
<c-input v-model="model.cfgfil.hotreg2" :placeholder="$t('other.please_enter')+'hotspot reg2'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside6">
<c-input v-model="model.cfgfil.regside6" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg6" prop="cfgfil.hotreg6">
<c-input v-model="model.cfgfil.hotreg6" :placeholder="$t('other.please_enter')+'hotspot reg6'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside10">
<c-input v-model="model.cfgfil.regside10" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg10" prop="cfgfil.hotreg10">
<c-input v-model="model.cfgfil.hotreg10" :placeholder="$t('other.please_enter')+'hotspot reg10'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt2" data-path=".cfgfil.regtxt2" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt6" data-path=".cfgfil.regtxt6" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt10" data-path=".cfgfil.regtxt10" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn3" data-path=".cfgfil.subtrn3" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub4">
<c-input v-model="model.cfgfil.hotsub4" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt4" data-path=".cfgfil.subtxt4" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn4" data-path=".cfgfil.subtrn4" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.selbut.dsppndram" data-path=".selbut.dsppndram" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub5">
<c-input v-model="model.cfgfil.hotsub5" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt5" data-path=".cfgfil.subtxt5" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn5" data-path=".cfgfil.subtrn5" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub6">
<c-input v-model="model.cfgfil.hotsub6" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt6" data-path=".cfgfil.subtxt6" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn6" data-path=".cfgfil.subtrn6" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside3">
<c-input v-model="model.cfgfil.regside3" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg3" prop="cfgfil.hotreg3">
<c-input v-model="model.cfgfil.hotreg3" :placeholder="$t('other.please_enter')+'hotspot reg3'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside7">
<c-input v-model="model.cfgfil.regside7" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg7" prop="cfgfil.hotreg7">
<c-input v-model="model.cfgfil.hotreg7" :placeholder="$t('other.please_enter')+'hotspot reg7'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside11">
<c-input v-model="model.cfgfil.regside11" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg11" prop="cfgfil.hotreg11">
<c-input v-model="model.cfgfil.hotreg11" :placeholder="$t('other.please_enter')+'hotspot reg11'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt3" data-path=".cfgfil.regtxt3" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt7" data-path=".cfgfil.regtxt7" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt11" data-path=".cfgfil.regtxt11" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt7" data-path=".cfgfil.subtxt7" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub7">
<c-input v-model="model.cfgfil.hotsub7" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn7" data-path=".cfgfil.subtrn7" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub8">
<c-input v-model="model.cfgfil.hotsub8" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt8" data-path=".cfgfil.subtxt8" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn8" data-path=".cfgfil.subtrn8" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt9" data-path=".cfgfil.subtxt9" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub9">
<c-input v-model="model.cfgfil.hotsub9" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn9" data-path=".cfgfil.subtrn9" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg4" prop="cfgfil.hotreg4">
<c-input v-model="model.cfgfil.hotreg4" :placeholder="$t('other.please_enter')+'hotspot reg4'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.selbut.sptpenlab_descr" data-path=".selbut.sptpenlab_descr" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside4">
<c-input v-model="model.cfgfil.regside4" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside8">
<c-input v-model="model.cfgfil.regside8" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg8" prop="cfgfil.hotreg8">
<c-input v-model="model.cfgfil.hotreg8" :placeholder="$t('other.please_enter')+'hotspot reg8'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Regside" prop="cfgfil.regside12">
<c-input v-model="model.cfgfil.regside12" :placeholder="$t('other.please_enter')+'Regside'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot reg12" prop="cfgfil.hotreg12">
<c-input v-model="model.cfgfil.hotreg12" :placeholder="$t('other.please_enter')+'hotspot reg12'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt4" data-path=".cfgfil.regtxt4" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt8" data-path=".cfgfil.regtxt8" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.regtxt12" data-path=".cfgfil.regtxt12" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub10">
<c-input v-model="model.cfgfil.hotsub10" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt10" data-path=".cfgfil.subtxt10" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn10" data-path=".cfgfil.subtrn10" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.selbut.sptpenlab" data-path=".selbut.sptpenlab" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.selbut.dspclsdat" data-path=".selbut.dspclsdat" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtrn11" data-path=".cfgfil.subtrn11" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfgfil.subtxt11" data-path=".cfgfil.subtxt11" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="hotspot submenu 1" prop="cfgfil.hotsub11">
<c-input v-model="model.cfgfil.hotsub11" :placeholder="$t('other.please_enter')+'hotspot submenu 1'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.selbut.trnpenlab_descr" data-path=".selbut.trnpenlab_descr" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.selbut.trnpenlab" data-path=".selbut.trnpenlab" > </span>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptsel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<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">
<!--cptsel PD000125 Menu -->
<el-tab-pane :label="$t('cptsel.PD000125')" name="sel">
<m-sel :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Cptsel from "~/model/Cptsel"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Cptsel/Check"
import Default from "~/model/Cptsel/Default"
import Pattern from "~/model/Cptsel/Pattern"
import Sel from "./Sel"
export default {
name: "Cptsel",
components:{
"m-sel" : Sel,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "cptsel",
trnType: "",
model: new Cptsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入cptsel交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -111,7 +111,7 @@
v-model="model.infcon.pty.extkey"
maxlength="24"
placeholder="请输入Select Single Party"
:disabled=this.flag1
:disabled="this.flag1"
>
</c-input>
</el-form-item>
......@@ -144,7 +144,7 @@
v-model="model.infcon.seapty"
maxlength="24"
placeholder="请输入Party Name/BIC"
:disabled=this.flag2
:disabled="this.flag2"
></c-input>
</el-form-item>
</c-col>
......@@ -193,7 +193,11 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="Currency" prop="infcon.seacur" style="width: 100%" >
<el-form-item
label="Currency"
prop="infcon.seacur"
style="width: 100%"
>
<c-select
v-model="model.infcon.seacur"
style="width: 100%"
......@@ -305,19 +309,43 @@
<!-- </c-infsearch-group> -->
<c-col style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0"
@click="toCptopn">swift汇入</c-button
<c-button
class="medium_bcs"
size="medium"
type="primary"
style="margin-left: 0"
@click="toCptopn"
>swift汇入</c-button
>
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0"
@click="toCptadv">swift汇出</c-button
<c-button
class="medium_bcs"
size="medium"
type="primary"
style="margin-left: 0"
@click="toCptadv"
>swift汇出</c-button
>
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0"
@click="toCptati">境内外币汇入</c-button
<c-button
class="medium_bcs"
size="medium"
type="primary"
style="margin-left: 0"
@click="toCptati"
>境内外币汇入</c-button
>
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0"
@click="toCptato">境内外币汇出</c-button
<c-button
class="medium_bcs"
size="medium"
type="primary"
style="margin-left: 0"
@click="toCptato"
>境内外币汇出</c-button
>
<c-button class="medium_bcs" size="medium" type="primary" style="float:right;margin-right:10px;"
<c-button
class="medium_bcs"
size="medium"
type="primary"
style="float: right; margin-right: 10px"
>导Excel</c-button
>
<!-- <c-button size="small" type="primary" style="margin-left: 0"
......@@ -329,7 +357,11 @@
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<!-- <template slot="header">
<c-col :span="11" style="text-align: left">
......@@ -406,8 +438,15 @@
</c-istream-table>
</c-col>
<m-busbtn ref="childs" :ownref="ownref" trnCode="cptsel" :model="cptselModel" ownrefPath="cpdgrp" @onChoose="onChoose" >11</m-busbtn>
<m-busbtn
ref="childs"
:ownref="ownref"
trnCode="cptsel"
:model="cptselModel"
ownrefPath="cpdgrp"
@onChoose="onChoose"
>11</m-busbtn
>
</div>
</template>
<script>
......@@ -416,8 +455,7 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infcpd/Event";
import BusNavbar from "~/views/Public/BusNavbar";
import CptselModel from "~/model/Cptsel"
import CptselModel from "~/model/Cptsel";
export default {
inject: ["root"],
......@@ -426,22 +464,22 @@ export default {
components: { "m-busbtn": BusNavbar },
data() {
return {
flag1:false,
flag2:false,
searol:[
{ label: "Ordering Customer", value: "ORC" },
{ label: "Ordering Institution", value: "ORI" },
{ label: "Paying Bank", value: "PYB" },
{ label: "Payee", value: "PYE" },
{ label: "Reimb. Bank Transfer", value: "RMT" },
],
swftyp:[
{ label: "MT103", value: "103" },
{ label: "MT202", value: "202" },
{ label: "MT910", value: "910" },
{ label: "CMT100", value: "CMT" },
{ label: "境内外币清算", value: "100" },
{ label: "Other", value: "OTH" },
flag1: false,
flag2: false,
searol: [
{ label: "Ordering Customer", value: "ORC" },
{ label: "Ordering Institution", value: "ORI" },
{ label: "Paying Bank", value: "PYB" },
{ label: "Payee", value: "PYE" },
{ label: "Reimb. Bank Transfer", value: "RMT" },
],
swftyp: [
{ label: "MT103", value: "103" },
{ label: "MT202", value: "202" },
{ label: "MT910", value: "910" },
{ label: "CMT100", value: "CMT" },
{ label: "境内外币清算", value: "100" },
{ label: "Other", value: "OTH" },
],
cptselModel: new CptselModel().data,
searchToggle: true,
......@@ -516,24 +554,23 @@ export default {
},
};
},
watch:{
"model.infcon.seapty": function () {
if (this.model.infcon.seapty == '') {
this.flag1 = false;
} else {
this.flag1 = true;
this.model.infcon.pty.extkey="";
}
},
"model.infcon.pty.extkey":function(){
if(this.model.infcon.pty.extkey == ''){
this.flag2 = false;
} else {
this.flag2 = true;
this.model.infcon.seapty="";
}
}
watch: {
"model.infcon.seapty": function () {
if (this.model.infcon.seapty == "") {
this.flag1 = false;
} else {
this.flag1 = true;
this.model.infcon.pty.extkey = "";
}
},
"model.infcon.pty.extkey": function () {
if (this.model.infcon.pty.extkey == "") {
this.flag2 = false;
} else {
this.flag2 = true;
this.model.infcon.seapty = "";
}
},
},
methods: {
...Event,
......@@ -547,48 +584,48 @@ export default {
callback();
}, 1000);
}, */
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.cpdgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
async getButtons(ownref) {
this.ownref = ownref;
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.$refs.childs.initdialog = false;
},
async getDitSelInfo(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.$refs.childs.initdialog = false;
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.cpdgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infcon.chksubcon");
this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infcon.chksubcon");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
}
},
closeTrn(refId){
this.$refs[refId].doClose();
},
toCptopn(){
this.$router.history.push("/business/cptopn")
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
}
},
closeTrn(refId) {
this.$refs[refId].doClose();
},
toCptopn() {
this.$router.history.push("/business/cptopn");
},
toCptadv() {
this.$router.history.push("/business/cptadv");
},
toCptadv(){
this.$router.history.push("/business/cptadv")
toCptati() {
this.$router.history.push("/business/cptati");
},
toCptati(){
this.$router.history.push("/business/cptati")
toCptato() {
this.$router.history.push("/business/cptato");
},
toCptato(){
this.$router.history.push("/business/cptato")
}
},
created: function () {},
};
......
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