Commit 67436e86 by Wuyuqiu

gctfre交易转换

parent 16ffee3d
......@@ -65,7 +65,7 @@ export default {
/* overflow: hidden; */
border: 1px solid rgba(0,0,0,0);
border-radius: 5px;
margin: -1px;
/* margin: -1px; */
}
.c-highlight-content.change-light {
border: 1px solid rgb(201, 171, 1);
......
import Utils from "~/utils"
/**
* Gctfre Check规则
*/
let checkObj = {
"fremsg.relmt" :null,
"fremsg.othcc.pts.extkey" :null,
"fremsg.strinf" :null,
"gcdgrp.rec.newexpdat" :null,
"gcdgrp.int.pts.nam" :null,
"fremsg.det" :null,
"fremsg.othcc.pts.adrblk" :null,
"fremsg.tag23h" :null,
"gcdgrp.awi.pts.extkey" :null,
"fremsg.ccrol" :null,
"fremsg.fulmt" :null,
"fremsg.othmsg.pts.adrblk" :null,
"fremsg.iss.namelc" :null,
"fremsg.sndmt" :null,
"fremsg.iss.pts.extkey" :null,
"fremsg.reldat" :null,
"fremsg.iss.pts.adrblk" :null,
"fremsg.iss.adrelc" :null,
"fremsg.othmsg.adrelc" :null,
"fremsg.msgrol" :null,
"fremsg.swiadd.newmatdat" :null,
"mtabut.coninf.conexedat" :null,
"fremsg.othmsg.pts.extkey" :null,
"fremsg.tag22d" :null,
"fremsg.othcc.adrelc" :null,
"gcdgrp.int.pts.extkey" :null,
"fremsg.othmsg.namelc" :null,
"gcdgrp.awi.pts.nam" :null,
"fremsg.tag45d" :null,
"fremsg.othcc.namelc" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Gctfre Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"gcdgrp.int.pts.extkey" :Utils.defaultFunction,
"gidgrp.rec.ownref" :Utils.defaultFunction,
"fremsg.strinf" :Utils.defaultFunction,
"fremsg.prttitle" :Utils.defaultFunction,
"fremsg.sndmt" :Utils.defaultFunction,
"fremsg.msgrol" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
"trnmod.trndoc.shwinc" :Utils.defaultFunction,
"trnmod.trndoc.shwout" :Utils.defaultFunction,
"fremsg.issrol" :Utils.defaultFunction,
"gidgrp.rec.liadat" :Utils.defaultFunction,
"gcdgrp.awi.pts.nam" :Utils.defaultFunction,
"gidgrp.rec.gartyp" :Utils.defaultFunction,
"gcdgrp.apl.pts.nam" :Utils.defaultFunction,
"fremsg.othcc.pts.adrblk" :Utils.defaultFunction,
"fremsg.iss.pts.extkey" :Utils.defaultFunction,
"fremsg.iss.adrelc" :Utils.defaultFunction,
"fremsg.iss.namelc" :Utils.defaultFunction,
"fremsg.iss.dbfadrblkcn" :Utils.defaultFunction,
"gcdgrp.awi.pts.extkey" :Utils.defaultFunction,
"fremsg.othcc.pts.extkey" :Utils.defaultFunction,
"fremsg.othcc.adrelc" :Utils.defaultFunction,
"fremsg.othcc.namelc" :Utils.defaultFunction,
"fremsg.othcc.dbfadrblkcn" :Utils.defaultFunction,
"gcdgrp.ben.pts.nam" :Utils.defaultFunction,
"gcdgrp.cbs.opn1.amt" :Utils.defaultFunction,
"gcdgrp.rec.clmdat" :Utils.defaultFunction,
"gcdgrp.cbs.opn1.cur" :Utils.defaultFunction,
"fremsg.othmsg.pts.adrblk" :Utils.defaultFunction,
"fremsg.othmsg.pts.extkey" :Utils.defaultFunction,
"fremsg.ccrol" :Utils.defaultFunction,
"extpay" :Utils.defaultFunction,
"gcdgrp.rec.ownref" :Utils.defaultFunction,
"fremsg.tag22d" :Utils.defaultFunction,
"gcdgrp.int.pts.nam" :Utils.defaultFunction,
"fremsg.othmsg.adrelc" :Utils.defaultFunction,
"fremsg.othmsg.namelc" :Utils.defaultFunction,
"fremsg.othmsg.dbfadrblkcn" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"gidgrp.rec.expdat" :Utils.defaultFunction,
"fremsg.fulmt" :Utils.defaultFunction,
"fremsg.tag20ref" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"fremsg.iss.pts.adrblk" :Utils.defaultFunction,
"fremsg.reldir" :Utils.defaultFunction,
"gcdgrp.cbs.max.cur" :Utils.defaultFunction,
"gctp0.aplmullab" :Utils.defaultFunction,
"fremsg.tag23h" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onIntpDet(){
let rtnmsg = await this.executeRule("intp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAwipDet(){
let rtnmsg = await this.executeRule("awip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOthmsgpDet(){
let rtnmsg = await this.executeRule("othmsgp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxtfreButtxmsel(){
let rtnmsg = await this.executeRule("txtfre.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOthccpDet(){
let rtnmsg = await this.executeRule("othccp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onIsspDet(){
let rtnmsg = await this.executeRule("issp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButshw(){
let rtnmsg = await this.executeRule("trndoc.butshw")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButadd(){
let rtnmsg = await this.executeRule("trndoc.butadd")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButnew(){
let rtnmsg = await this.executeRule("trndoc.butnew")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButattto(){
let rtnmsg = await this.executeRule("trndoc.butattto")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButdel(){
let rtnmsg = await this.executeRule("trndoc.butdel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButatt(){
let rtnmsg = await this.executeRule("trndoc.butatt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Gctfre{
constructor () {
this.data = {
gcdgrp:{
rec:{
demstat:"", // Demand Statement .gcdgrp.rec.demstat
newexpdat:"", // Validity Requested .gcdgrp.rec.newexpdat
ownref:"", // Claim Number .gcdgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .gcdgrp.rec.nam
clmdat:"", // Date of Claim .gcdgrp.rec.clmdat
},
blk:{
addamtinf:"", // Add. Amt. Information .gcdgrp.blk.addamtinf
presentdet:"", // Present. Compl. Det. .gcdgrp.blk.presentdet
},
int:{
pts:new Pts().data,
},
awi:{
pts:new Pts().data,
},
cbs:{
max:{
cur:"", // Amount Claimed .gcdgrp.cbs.max.cur
amt:"", // Balance .gcdgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .gcdgrp.cbs.opn1.cur
amt:"", // Balance .gcdgrp.cbs.opn1.amt
},
},
apl:{
pts:new Pts().data,
},
ben:{
pts:new Pts().data,
},
},
clmtxts20:"", // Demand Statem. Text .clmtxts20
gctp0:{
intp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .gctp0.intp.ptsget.sdamod.dadsnd
seainf:"", // .gctp0.intp.ptsget.sdamod.seainf
},
},
},
awip:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .gctp0.awip.ptsget.sdamod.dadsnd
seainf:"", // .gctp0.awip.ptsget.sdamod.seainf
},
},
},
aplmullab:"", // Label, that is set, if there are multiple applicants .gctp0.aplmullab
liafldlab:"", // Label for Field Liability .gctp0.liafldlab
expfldlab:"", // Label for Field Validity .gctp0.expfldlab
explab:"", // Label unlimited Validity .gctp0.explab
lialab:"", // Label unlimited Liability .gctp0.lialab
gidget:{
sdamod:{
seainf:"", // .gctp0.gidget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .gctp0.gidget.sdamod.dadsnd
},
},
recget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .gctp0.recget.sdamod.dadsnd
seainf:"", // .gctp0.recget.sdamod.seainf
},
},
adaflg:"", // Add. Amount .gctp0.adaflg
},
extpay:"", // Extend or Pay .extpay
gidgrp:{
rec:{
ownref:"", // Guarantee .gidgrp.rec.ownref
expdat:"", // Valid until .gidgrp.rec.expdat
gartyp:"", // Type of Undertaking .gidgrp.rec.gartyp
liadat:"", // Liability until .gidgrp.rec.liadat
},
cbs:{
opn1:{
cur:"", // Open Guar. Amt. .gidgrp.cbs.opn1.cur
amt:"", // Balance .gidgrp.cbs.opn1.amt
},
},
},
fremsg:{
reldatlab:"", // label for date .fremsg.reldatlab
strinflab:"", // label for tag 79 .fremsg.strinflab
sndmt:"", // 发报类型 .fremsg.sndmt
fulmt:"", // 报文类型 .fremsg.fulmt
prttitle:"", // 标题 .fremsg.prttitle
relmt:"", // 相关报文 .fremsg.relmt
reldat:"", // from .fremsg.reldat
reldir:"", // relevant message sent/received .fremsg.reldir
strinf:"", // Narrative .fremsg.strinf
tag20lab:"", // MT799 tag20 .fremsg.tag20lab
tag20ref:"", // tag 20 Ref. .fremsg.tag20ref
flg:"", // FLG FOR GITFRE .fremsg.flg
msgrol:"", // 收报行 .fremsg.msgrol
ccrol:"", // 副本的收报行 .fremsg.ccrol
othmsg:{
pts:new Pts().data,
namelc:"", // 名称 .fremsg.othmsg.namelc
adrelc:"", // 地址 .fremsg.othmsg.adrelc
dbfadrblkcn:"", // Chinese address .fremsg.othmsg.dbfadrblkcn
},
othmsgp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.othmsgp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.othmsgp.ptsget.sdamod.dadsnd
},
},
},
othcc:{
pts:new Pts().data,
namelc:"", // 名称 .fremsg.othcc.namelc
adrelc:"", // 地址 .fremsg.othcc.adrelc
dbfadrblkcn:"", // Chinese address .fremsg.othcc.dbfadrblkcn
},
othccp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.othccp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.othccp.ptsget.sdamod.dadsnd
},
},
},
det:"", // Query/ Answer .fremsg.det
tag77a:"", // Narrative (77A) .fremsg.tag77a
tag22d:"", // Form of Undertaking .fremsg.tag22d
tag23:"", // Undertaking Number .fremsg.tag23
issrol:"", // Issuer of Undertak. .fremsg.issrol
iss:{
pts:new Pts().data,
namelc:"", // 名称 .fremsg.iss.namelc
adrelc:"", // 地址 .fremsg.iss.adrelc
dbfadrblkcn:"", // Chinese address .fremsg.iss.dbfadrblkcn
},
issp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.issp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.issp.ptsget.sdamod.dadsnd
},
},
},
tag23h:"", // Function .fremsg.tag23h
tag45d:"", // Details of Request .fremsg.tag45d
swiadd:{
newmatdat:"", // New Maturity Date .fremsg.swiadd.newmatdat
},
},
trnmod:{
trndoc:{
doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout
condocstm:"", // Connected Documents .trnmod.trndoc.condocstm
rcvatt:{
seainf:"", // .trnmod.trndoc.rcvatt.seainf
},
filrecv:"", // File Receiver .trnmod.trndoc.filrecv
advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
advnam:"", // 国内证落款 .trnmod.trndoc.advnam
amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
},
},
mtabut:{
coninf:{
oitinf:{
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit:{
inftxt:"", // Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev:"", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
},
},
oitset:{
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit:{
inftxt:"", // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev:"", // Infotext Level .mtabut.coninf.oitset.oit.inflev
},
},
conexedat:"", // 执行日期 .mtabut.coninf.conexedat
usr:{
extkey:"", // User ID .mtabut.coninf.usr.extkey
},
},
},
pageId: "", // ctx的key
gctfrel1blk:"",
gctfrel2blk:"",
gct752l1blk:"",
}
}
}
\ No newline at end of file
......@@ -222,6 +222,7 @@ import Getfre from "./Getfre"
import Gitfre from "./Gitfre"
import Gctrop from "./Gctrop"
import Gctfre from "./Gctfre"
import Trtrcl from "./Trtrcl"
......@@ -540,6 +541,7 @@ const BusRouter = [
{ path: 'gitdla', component: Gitdla, name: 'Gitdla', meta: { title: '减额后处理' } },
{ path: 'getfee', component: Getfee, name: 'Getfee', meta: { title: '费用结算' } },
{ path: 'gitrop', component: Gitrop, name: 'Gitrop', meta: { title: '保函注销后激活' } },
{ path: 'gctfre', component: Gctfre, name: 'Gctfre', meta: { title: '普通报文' } },
{ path: 'ditdav', component: Ditdav, name: 'Ditdav', meta: { title: '信用证收单' } },
......
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import Utils from "~/utils";
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {
...Event,
handleChange(val) {
console.log(val);
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- SF000077 : Query/ Answer -->
<c-col :span="12">
<c-form-item label="需求/答复" prop="fremsg.det">
<c-input type="textarea" v-model="model.fremsg.det" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fremsg.SF000077')" ></c-input>
</c-form-item>
</c-col>
<!-- SF000078 : Narrative (77A) -->
<c-col :span="12">
<c-form-item label="叙述内容" prop="fremsg.tag77a">
<c-input type="textarea" v-model="model.fremsg.tag77a" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fremsg.SF000078')" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Gctfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs">
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="需求声明" prop="gcdgrp.rec.demstat">
<c-select
v-model="model.gcdgrp.rec.demstat"
style="width: 100%"
placeholder="请选择需求声明"
:code="demstat"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="需求声明文本 " prop="clmtxts20">
<c-input
type="textarea"
v-model="model.clmtxts20"
maxlength="65"
rows="10"
show-word-limit
placeholder="请输入需求声明文本 "
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="附加金额附言" prop="gcdgrp.blk.addamtinf">
<c-input
type="textarea"
v-model="model.gcdgrp.blk.addamtinf"
maxlength="65"
rows="10"
show-word-limit
placeholder="请输入附加金额附言"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="Present. Compl. Det." prop="gcdgrp.blk.presentdet">
<c-input
type="textarea"
v-model="model.gcdgrp.blk.presentdet"
maxlength="35"
rows="9"
show-word-limit
placeholder="请输入Present. Compl. Det."
:disabled="model.gcdgrp.rec.demstat != 'INCP'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="中间行" prop="gcdgrp.int.pts.extkey">
<c-fullbox>
<c-input
v-model="model.gcdgrp.int.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog(
'gcdgrp.int.pts.extkey'
)
"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
>
<i class="el-icon-info"></i>
</c-button>
<c-button size="small" type="primary" @click="onIntpDet">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="gcdgrp.int.pts.nam">
<c-input
type="textarea"
v-model="model.gcdgrp.int.pts.nam"
rows="4"
maxlength="100"
show-word-limit
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="帐户行" prop="gcdgrp.awi.pts.extkey">
<c-fullbox>
<c-input
v-model="model.gcdgrp.awi.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog('gcdgrp.awi.pts.extkey')
"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
>
<i class="el-icon-info"></i>
</c-button>
<c-button size="small" type="primary" @click="onAwipDet">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="gcdgrp.awi.pts.nam">
<c-input
type="textarea"
v-model="model.gcdgrp.awi.pts.nam"
rows="4"
maxlength="100"
show-word-limit
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gctfre/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
demstat: [
{
label:
"COMP 完整需求,没有其他单据伴随或跟踪此消息",
value: "COMP",
},
{
label:
"INCP 不完整需求,支持单据单独提交",
value: "INCP",
},
],
};
},
methods: { ...Event },
created: function () {},
computed: {
flag() {
return this.model.didgrp.apl.pts.extkey == "";
},
},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- SF000256 : Form of Undertaking -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="承诺形式" prop="fremsg.tag22d">
<c-select v-model="model.fremsg.tag22d" style="width:100%" :code="codes.legfrm3" placeholder="">
</c-select>
</el-form-item>
</c-col>
<!-- SF000257 : Undertaking Number -->
<c-col :span="24">
<c-form-item label="企业编号" prop="fremsg.tag23">
<c-input v-model="model.fremsg.tag23" maxlength="16" placeholder=""></c-input>
</c-form-item>
</c-col>
<!-- SF000258 : Issuer of Undertak. -->
<c-col :span="24">
<el-form-item label="发行人" prop="fremsg.issrol">
<c-select v-model="model.fremsg.issrol" style="width: 100%" placeholder="请选择发行人" :code="codes.payrol"
@change="eventFunction('fremsg.issrol')"
>
<!-- <el-option v-for="item in codes.docprbrol" :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="" prop="fremsg.iss.pts.extkey">
<c-fullbox>
<c-input v-model="model.fremsg.iss.pts.extkey" maxlength="16" placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog('fremsg.iss.pts.extkey')
"></c-input>
<template slot="footer">
<c-button style="margin: 0 10px 0 10px; padding: 0 12px" size="small" type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button style="margin: 0 0" size="small" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="fremsg.iss.pts.adrblk">
<c-input :rows="4" type="textarea" v-model="model.fremsg.iss.pts.adrblk"
maxlength="300" show-word-limit placeholder="请输入">
</c-input>
</el-form-item>
</c-col>
<!-- SF000259 : Function -->
<c-col :span="24">
<el-form-item label="功能" prop="fremsg.tag23h">
<c-select v-model="model.fremsg.tag23h" style="width:100%" :code="codes.tag23h" placeholder="">
</c-select>
</el-form-item>
</c-col>
<!-- SF000260 : Details of Request -->
<c-col :span="24">
<c-form-item label="请求的详细信息" prop="fremsg.tag45d">
<!-- :code="tag45d" -->
<c-input type="textarea" v-model="model.fremsg.tag45d" :rows="5" maxlength="65" show-word-limit placeholder="" ></c-input>
</c-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Gctfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="免税报文" name="frep">
<m-frep :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="报文详情 " name="Fredet" v-if="model.fremsg.sndmt=='95'||model.fremsg.sndmt=='96'" >
<m-fredet :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="详情" name="gitdetp" >
<m-gitdetp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Mt759p" name="Mt759p" v-if="model.fremsg.sndmt=='59'">
<m-mt759p :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import commonProcess from "~/mixin/commonProcess";
import Event from "~/model/Getamc/Event";
import Frep from "./Frep";
import Fredet from "./Fredet";
import Mt759p from "./Mt759p";
import Gitdetp from "./Gitdetp";
export default {
components: {
"m-frep": Frep,
"m-fredet": Fredet,
"m-mt759p": Mt759p,
"m-gitdetp": Gitdetp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["ovwp1"],
};
},
methods: { ...Event, handleChange() {} },
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<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"
>
<!--getfre PD000141 Common Messages -->
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--setmod PD000000 Settlement -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Gctfre from "~/model/Gctfre"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs"
import Check from "~/model/Gctfre/Check"
import Default from "~/model/Gctfre/Default"
import Pattern from "~/model/Gctfre/Pattern"
import Ovwp from "./Ovwp"
import Addbcb from "./Addbcb.vue"
import Gitdetp from "./Gitdetp"
import Frep from "./Frep"
import Fredet from "./Fredet"
import Mt759p from "./Mt759p"
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
export default {
name: "Gctfre",
components:{
"m-ovwp" : Ovwp,
"m-doctre" : Doctre,
"m-docpan" : Docpan,
"m-coninfp" : Coninfp,
"m-addbcb" : Addbcb,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "ovwp",
trnName: "gctfre",
model: new Gctfre().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入gctfre交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -97,7 +97,6 @@ export default {
return {
tabVal: "ovwp",
trnName: "getfre",
trnType: "",
model: new Getfre().data,
checkRules: Check,
defaultRules: Default,
......@@ -120,6 +119,9 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
......
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