Commit 6c26839d by liuxin

getset交易转换

parent 5477995b
......@@ -5447,6 +5447,8 @@ const CodeTable = {
{ label: "PAYMENT GUARANTEE付款保函", value: "J" },
{ label: "银行授信额度保函", value: "T" },
{ label: "GUARANTEE FOR PROCESSING来料加工保函", value: "M" },
{ label: "农民工工资保函", value: "1" },
],
typsel: [
{ label: "Database Table", value: "TBL" },
......
......@@ -142,11 +142,11 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "gidgrp.cbs.opn1.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"gcdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
......
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public"
import Dids from "../Public/Dids"
export default class Getset{
constructor () {
this.data = {
setmod:{
docamttyplab:"", // settled amount description as label .setmod.docamttyplab
retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
ref:"", // our reference .setmod.ref
doccur:"", // document currency .setmod.doccur
docamt:"", // document amount .setmod.docamt
dspflg:"", // Type of settlement .setmod.dspflg
xreflg:"", // Recalculate Rates .setmod.xreflg
setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
},
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
glemod:{
gleshwstm:"", // Booking stream to Display .setmod.glemod.gleshwstm
},
setfeg:{
setfel:[]
},
setfog:{
setfol:[]
},
},
liaall:{
misamt:"", // Amount not yet assigned .liaall.misamt
concur:"", // External Booking Amount .liaall.concur
outpct:"", // Sight Amount Percentage .liaall.outpct
outamt:"", // Sight Amount .liaall.outamt
exttotoldamt:"", // Old Amount booked externally .liaall.exttotoldamt
exttotamt:"", // Total booking amount external assinged .liaall.exttotamt
limmod:{
limpts:{
wrklab:"", // Label .liaall.limmod.limpts.wrklab
othlab:"", // Label .liaall.limmod.limpts.othlab
othlabss:"", // Label .liaall.limmod.limpts.othlabss
wrk:{
pts:new Pts().data,
},
oth:{
pts:new Pts().data,
},
lsh:"", // 合同流�'号 .liaall.limmod.limpts.lsh
nonrevflg1:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg1
pfcod1:"", // 合同流�'号 .liaall.limmod.limpts.pfcod1
nonrevflg2:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg2
pfcod2:"", // 合同流�'号 .liaall.limmod.limpts.pfcod2
},
wrkp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .liaall.limmod.wrkp.ptsget.sdamod.dadsnd
seainf:"", // .liaall.limmod.wrkp.ptsget.sdamod.seainf
},
},
},
othp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .liaall.limmod.othp.ptsget.sdamod.dadsnd
seainf:"", // .liaall.limmod.othp.ptsget.sdamod.seainf
},
},
},
ownref:"", // 国结业务编号 .liaall.limmod.ownref
comamt:"", // 业务余额 .liaall.limmod.comamt
ccvamt:"", // 保证金余额 .liaall.limmod.ccvamt
ecifno:"", // ECIFNO .liaall.limmod.ecifno
},
},
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
},
},
clsflg:"", // Close Flag .mtabut.clsflg
},
trnmod:{
trndoc:{
advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
advnam:"", // 国内证落款 .trnmod.trndoc.advnam
amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
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
doceot:[],
},
},
// setmod:{
// docamttyplab:"", // settled amount description as label .setmod.docamttyplab
// retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
// ref:"", // our reference .setmod.ref
// doccur:"", // document currency .setmod.doccur
// docamt:"", // document amount .setmod.docamt
// dspflg:"", // Type of settlement .setmod.dspflg
// xreflg:"", // Recalculate Rates .setmod.xreflg
// setglg:{
// labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
// },
// zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
// zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
// glemod:{
// gleshwstm:"", // Booking stream to Display .setmod.glemod.gleshwstm
// },
// setfeg:{
// setfel:[]
// },
// setfog:{
// setfol:[]
// },
// },
// liaall:{
// misamt:"", // Amount not yet assigned .liaall.misamt
// concur:"", // External Booking Amount .liaall.concur
// outpct:"", // Sight Amount Percentage .liaall.outpct
// outamt:"", // Sight Amount .liaall.outamt
// exttotoldamt:"", // Old Amount booked externally .liaall.exttotoldamt
// exttotamt:"", // Total booking amount external assinged .liaall.exttotamt
// limmod:{
// limpts:{
// wrklab:"", // Label .liaall.limmod.limpts.wrklab
// othlab:"", // Label .liaall.limmod.limpts.othlab
// othlabss:"", // Label .liaall.limmod.limpts.othlabss
// wrk:{
// pts:new Pts().data,
// },
// oth:{
// pts:new Pts().data,
// },
// lsh:"", // 合同流�'号 .liaall.limmod.limpts.lsh
// nonrevflg1:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg1
// pfcod1:"", // 合同流�'号 .liaall.limmod.limpts.pfcod1
// nonrevflg2:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg2
// pfcod2:"", // 合同流�'号 .liaall.limmod.limpts.pfcod2
// },
// wrkp:{
// ptsget:{
// sdamod:{
// dadsnd:"", // Drag Drop Sender .liaall.limmod.wrkp.ptsget.sdamod.dadsnd
// seainf:"", // .liaall.limmod.wrkp.ptsget.sdamod.seainf
// },
// },
// },
// othp:{
// ptsget:{
// sdamod:{
// dadsnd:"", // Drag Drop Sender .liaall.limmod.othp.ptsget.sdamod.dadsnd
// seainf:"", // .liaall.limmod.othp.ptsget.sdamod.seainf
// },
// },
// },
// ownref:"", // 国结业务编号 .liaall.limmod.ownref
// comamt:"", // 业务余额 .liaall.limmod.comamt
// ccvamt:"", // 保证金余额 .liaall.limmod.ccvamt
// ecifno:"", // ECIFNO .liaall.limmod.ecifno
// },
// },
// 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
// },
// },
// clsflg:"", // Close Flag .mtabut.clsflg
// },
// trnmod:{
// trndoc:{
// advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
// amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
// advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
// advnam:"", // 国内证落款 .trnmod.trndoc.advnam
// amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
// 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
// doceot:[],
// },
// },
bopmod:{
szflg:"", // 申报类型 .bopmod.szflg
basflg:"", // 基础数据 .bopmod.basflg
......@@ -234,7 +235,12 @@ export default class Getset{
vercerref:"", // Verification Certificate Number .lendoc.vercerref
decnum:"", // Declaration Number .lendoc.decnum
},
pageId: "" // ctx的key
pageId: "", // ctx的key
didgrp: new Dids().data.Didgrp,
liaall: new Pub().data.Liaall,
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
}
}
}
\ No newline at end of file
......@@ -15,15 +15,13 @@
</c-col> -->
<c-col :span="24">
<el-form-item
label="Guarantee"
prop="gidgrp.rec.ownref"
>
<el-form-item label="Guarantee" prop="gidgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入Guarantee"
disabled
></c-input>
<template slot="footer">
<c-button
......@@ -58,15 +56,13 @@
</c-col>
<c-col :span="24">
<el-form-item
label="Claim Number"
prop="gcdgrp.rec.ownref"
>
<el-form-item label="Claim Number" prop="gcdgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.gcdgrp.rec.ownref"
maxlength="16"
placeholder="请输入Claim Number"
disabled
></c-input>
<template slot="footer">
<c-button
......@@ -98,17 +94,19 @@
v-model="model.gcdgrp.cbs.max.cur"
maxlength="3"
placeholder="请输入Amount Claimed"
disabled
></c-input>
</c-col>
<c-col :span="13" style="margin-left: 5px">
<c-input
v-model="model.gcdgrp.cbs.max.amt"
placeholder="请输入Balance"
disabled
></c-input>
</c-col>
</c-col>
<c-col :span="6" style="text-align: right">
<c-checkbox v-model="model.gctp.adaflg"
<c-checkbox v-model="model.gctp.adaflg" disabled
>Add. Amount</c-checkbox
>
</c-col>
......@@ -123,6 +121,7 @@
v-model="model.gcdgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择Currency"
disabled
>
<el-option
v-for="item in codes.cur"
......@@ -137,6 +136,7 @@
<c-input
v-model="model.gcdgrp.cbs.opn1.amt"
placeholder="请输入信用证最大金额"
disabled
></c-input>
</c-col>
</c-col>
......@@ -152,17 +152,22 @@
v-model="model.gidgrp.rec.gartyp"
style="width: 100%"
placeholder="请选择Type of Undertaking"
disabled
>
<el-option v-for="item in codes.typgar" :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="LIAFLDLAB" prop="gctp.liafldlab">
<el-form-item label="LIAFLDLAB" prop="gctp.lialab">
<c-input
v-model="model.gctp.liafldlab"
v-model="model.gctp.lialab"
maxlength="40"
placeholder="请输入Name of Party"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -174,6 +179,7 @@
v-model="model.gcdgrp.rec.clmdat"
style="width: 100%"
placeholder="请选择Date of Claim"
disabled
></c-date-picker>
</el-form-item>
</c-col>
......@@ -247,6 +253,7 @@
v-model="model.gcdgrp.rec.nam"
maxlength="40"
placeholder="请输入Externally Displayed Name to Identify the Contract"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -260,6 +267,7 @@
v-model="model.gcdgrp.apl.pts.ref"
maxlength="16"
placeholder="请输入Applicant"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -270,6 +278,7 @@
v-model="model.gcdgrp.apl.pts.nam"
maxlength="40"
placeholder="请输入Name of Party"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -293,6 +302,7 @@
v-model="model.gcdgrp.ben.pts.nam"
maxlength="40"
placeholder="请输入Name of Party"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -311,12 +321,14 @@
<c-input
v-model="model.gcdgrp.cbs.max.cur"
placeholder="请输入"
disabled
></c-input>
</c-col>
<c-col :span="13" style="margin-left: 5px">
<c-input
v-model="model.gcdgrp.cbs.max.amt"
placeholder="请输入Balance"
disabled
></c-input>
</c-col>
</c-col>
......@@ -333,12 +345,14 @@
<c-input
v-model="model.gcdgrp.cbs.opn2.cur"
placeholder="请输入"
disabled
></c-input>
</c-col>
<c-col :span="13" style="margin-left: 5px">
<c-input
v-model="model.gcdgrp.cbs.max.amt"
v-model="model.gcdgrp.cbs.max2.amt"
placeholder="请输入Balance"
disabled
></c-input>
</c-col>
</c-col>
......@@ -346,19 +360,19 @@
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.gcdgrp.rec.cannowflg"
<c-checkbox v-model="cannowflg"
>Payment under Cancelation of Guarantee</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.mtabut.clsflg"
<c-checkbox v-model="clsflg"
>Close Flag</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.gcdgrp.rec.frepayflg"
<c-checkbox v-model="frepayflg"
>free of payment flag</c-checkbox
>
</c-col>
......@@ -371,6 +385,7 @@
v-model="model.gcdgrp.rec.docprbrol"
style="width: 100%"
placeholder="请选择Presented by"
disabled
>
</c-select>
</el-form-item>
......@@ -382,6 +397,7 @@
v-model="model.gcdgrp.prb.pts.ref"
maxlength="16"
placeholder="请输入Reference"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -396,6 +412,7 @@
v-model="model.gcdgrp.prb.pts.extkey"
maxlength="14"
placeholder="请输入External Key of Address"
disabled
></c-input>
</el-form-item>
<template slot="footer">
......@@ -421,13 +438,16 @@
<c-col :span="24">
<el-form-item label="">
<c-input
v-model="model.gcdgrp.prb.namelc"
type="textarea"
:rows="4"
v-model="model.gcdgrp.prb.pts.adrblk"
maxlength="16"
placeholder="请输入External Key of Address"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<el-form-item label="">
<c-input
v-model="model.gcdgrp.prb.adrelc"
......@@ -435,7 +455,7 @@
placeholder="请输入External Key of Address"
></c-input>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item label="Payer" prop="gcdgrp.rec.payrol">
......@@ -443,7 +463,11 @@
v-model="model.gcdgrp.rec.payrol"
style="width: 100%"
placeholder="请选择Payer"
disabled
>
<el-option v-for="item in codes.rolall" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
......@@ -458,6 +482,7 @@
v-model="model.gcdgrp.oth.pts.extkey"
maxlength="14"
placeholder="请输入External Key of Address"
disabled
></c-input>
</el-form-item>
<template slot="footer">
......@@ -483,13 +508,16 @@
<c-col :span="24">
<el-form-item label="">
<c-input
v-model="model.gcdgrp.oth.namelc"
type="textarea"
:rows="4"
v-model="model.gcdgrp.oth.pts.adrblk"
maxlength="16"
placeholder="请输入External Key of Address"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<el-form-item label="">
<c-input
v-model="model.gcdgrp.oth.adrelc"
......@@ -497,7 +525,7 @@
placeholder="请输入External Key of Address"
></c-input>
</el-form-item>
</c-col>
</c-col> -->
</c-col>
</div>
</template>
......@@ -515,6 +543,32 @@ export default {
return {};
},
methods: { ...Event },
computed: {
cannowflg: {
get() {
return this.model.gcdgrp.rec.cannowflg != ''
},
set(val) {
this.model.gcdgrp.rec.cannowflg = val ? "X" : "0"
}
},
clsflg: {
get() {
return this.model.mtabut.clsflg != ''
},
set(val) {
this.model.mtabut.clsflg = val ? "C" : ""
}
},
frepayflg: {
get() {
return this.model.gcdgrp.rec.frepayflg != ''
},
set(val) {
this.model.gcdgrp.rec.frepayflg = val ? "X" : ""
}
},
},
created: function () {},
};
</script>
......
......@@ -117,8 +117,8 @@ export default {
},
created:async function(){
//伪数据
this.model.gidgrp.rec.ownref = 'AG3500220005AA'
this.model.gcdgrp.rec.ownref = 'AG3500220005AA01'
// this.model.gidgrp.rec.ownref = 'AG3500220005AA'
// this.model.gcdgrp.rec.ownref = 'AG3500220005AA01'
console.log("进入getset交易");
let rtnmsg = await this.init({})
......@@ -126,7 +126,7 @@ export default {
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
this.restoreDisplay();
}
else
{
......
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