Commit 31cdcf20 by nanrui

clttra优化

parent 461bdba2
......@@ -17,13 +17,13 @@ export default {
],
"cldgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cldgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public"
export default class Clttra{
constructor () {
this.data = {
export default class Clttra {
constructor() {
this.data = {
bptbckg: [],
liaall: new Pub().data.Liaall,
trnmod: new Pub().data.Trnmod,
cldgrp:{
rec:{
ownref:"", // Batch No. .cldgrp.rec.ownref
colref:"", // Coll.bank ref. .cldgrp.rec.colref
colptynam:"", // Coll.bank name .cldgrp.rec.colptynam
credat:"", // Date of creation .cldgrp.rec.credat
count:"", // Item Count .cldgrp.rec.count
chktyp:"", // Type of Draft .cldgrp.rec.chktyp
colflg:"", // Payemnt Disposition .cldgrp.rec.colflg
},
cbs:{
max:{
cur:"", // Draft Amount .cldgrp.cbs.max.cur
amt:"", // Draft Amount .cldgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .cldgrp.cbs.opn1.cur
amt:"", // Open Amount .cldgrp.cbs.opn1.amt
},
},
},
cltp0:{
recget:{
sdamod:{
seainf:"", // .cltp0.recget.sdamod.seainf
},
},
},
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
setfog:{
setfol:[]
},
setfeg:{
setfel:[]
},
glemod:{
gleshwstm: {}
},
},
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
}
}
cldgrp: {
rec: {
ownref: "", // Batch No. .cldgrp.rec.ownref
colref: "", // Coll.bank ref. .cldgrp.rec.colref
colptynam: "", // Coll.bank name .cldgrp.rec.colptynam
credat: "", // Date of creation .cldgrp.rec.credat
count: "", // Item Count .cldgrp.rec.count
chktyp: "", // Type of Draft .cldgrp.rec.chktyp
colflg: "", // Payemnt Disposition .cldgrp.rec.colflg
},
cbs: {
max: {
cur: "", // Draft Amount .cldgrp.cbs.max.cur
amt: "", // Draft Amount .cldgrp.cbs.max.amt
},
opn1: {
cur: "", // Open Amount .cldgrp.cbs.opn1.cur
amt: "", // Open Amount .cldgrp.cbs.opn1.amt
},
},
},
cltp0: {
recget: {
sdamod: {
seainf: "", // .cltp0.recget.sdamod.seainf
},
},
},
// 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
// setfog: {
// setfol: []
// },
// setfeg: {
// setfel: []
// },
// glemod: {
// gleshwstm: {}
// },
// },
setmod: new Pub().data.Setmod,
// 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
// },
// },
// },
mtabut: new Pub().data.Mtabut,
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -3,7 +3,8 @@
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Batch No." prop="cldgrp.rec.ownref">
<c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入Batch No." disabled></c-input>
<c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入Batch No." disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
......@@ -27,8 +28,8 @@
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="" label-width="0" prop="cldgrp.cbs.max.amt" style="width:100%">
<c-input v-model.number="model.cldgrp.cbs.max.amt" style="width:100%"
placeholder="请输入Open Amount" disabled></c-input>
<c-input v-model="model.cldgrp.cbs.max.amt" style="width:100%" placeholder="请输入Open Amount"
disabled></c-input>
</el-form-item>
</c-col>
</c-col>
......@@ -101,6 +102,11 @@
</c-col>
</c-col>
<c-col :span="24">
<c-edit-table :model="model" v-bind="docgrd">
</c-edit-table>
</c-col>
</div>
</template>
<script>
......@@ -111,15 +117,55 @@ import Event from "~/model/Clttra/Event"
export default {
inject: ['root'],
props:["model","codes"],
props: ["model", "codes"],
mixins: [commonProcess],
data(){
data() {
return {
docgrd: {
columns: [
{
title: "Our Reference",
width: "150px",
dataIndex: "ownref",
show: "text",
},
{
title: "Name of CC contact",
width: "200px",
dataIndex: "nam",
show: "text",
},
{
title: "Presenter",
width: "200px",
dataIndex: "prenam",
show: "text",
},
{
title: "cur",
width: "100px",
dataIndex: "cur",
show: "text",
},
{
title: "balance",
width: "200px",
dataIndex: "amt",
show: "text",
},
{
title: "Pay To",
width: "200px",
dataIndex: "paytoamt",
show: "input",
},
],
urls: "bptbckg.docgrd",
},
}
},
methods:{...Event},
created:function(){
methods: { ...Event },
created: function () {
}
}
......
......@@ -18,21 +18,7 @@
<el-tab-pane label="内容" name="Sel">
<m-Sel :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="表外信息" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="分录信息" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="面函及报文" name="docpan">
<m-docpan :model="model" :codes="codes" />
......@@ -47,6 +33,24 @@
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<!-- <el-tab-pane label="表外信息" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000001 -->
<!-- <el-tab-pane label="分录信息" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" />
</el-tab-pane> -->
</c-tabs>
</el-form>
</div>
......@@ -112,7 +116,9 @@ export default {
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.model.bptbckg.docgrd = rtnmsg.data.ccdbatg;
console.log(this.model.bptbckg.docgrd);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
......@@ -121,4 +127,5 @@ export default {
}
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment