Commit 461bdba2 by nanrui

cltset优化

parent 8ae71e0f
...@@ -17,13 +17,13 @@ export default { ...@@ -17,13 +17,13 @@ export default {
], ],
"cldgrp.cbs.max.amt":[ "cldgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"cldgrp.cbs.opn1.amt":[ "cldgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
{type: "date", required: false, message: "输入正确的日期"} {type: "date", required: false, message: "输入正确的日期"}
], ],
"cldgrp.rec.count":[ "cldgrp.rec.count":[
{type: "string", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"setmod.ref":[ "setmod.ref":[
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "../Common/Pts" import Pts from "../Common/Pts"
import Pub from "../Public" import Pub from "../Public"
export default class Cltset{ export default class Cltset {
constructor () { constructor() {
this.data = { this.data = {
bptbckg:[],
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
cldgrp:{ cldgrp: {
rec:{ rec: {
ownref:"", // Batch No. .cldgrp.rec.ownref ownref: "", // Batch No. .cldgrp.rec.ownref
colref:"", // Coll.bank ref. .cldgrp.rec.colref colref: "", // Coll.bank ref. .cldgrp.rec.colref
colptynam:"", // Coll.bank name .cldgrp.rec.colptynam colptynam: "", // Coll.bank name .cldgrp.rec.colptynam
credat:"", // Date of creation .cldgrp.rec.credat credat: "", // Date of creation .cldgrp.rec.credat
count:"", // Item Count .cldgrp.rec.count count: "", // Item Count .cldgrp.rec.count
chktyp:"", // Type of Draft .cldgrp.rec.chktyp chktyp: "", // Type of Draft .cldgrp.rec.chktyp
colflg:"", // Payemnt Disposition .cldgrp.rec.colflg colflg: "", // Payemnt Disposition .cldgrp.rec.colflg
}, },
cbs:{ cbs: {
max:{ max: {
cur:"", // Draft Amount .cldgrp.cbs.max.cur cur: "", // Draft Amount .cldgrp.cbs.max.cur
amt:"", // Draft Amount .cldgrp.cbs.max.amt amt: "", // Draft Amount .cldgrp.cbs.max.amt
}, },
opn1:{ opn1: {
cur:"", // Open Amount .cldgrp.cbs.opn1.cur cur: "", // Open Amount .cldgrp.cbs.opn1.cur
amt:"", // Open Amount .cldgrp.cbs.opn1.amt amt: "", // Open Amount .cldgrp.cbs.opn1.amt
}, },
}, },
}, },
cltp0:{ cltp0: {
recget:{ recget: {
sdamod:{ sdamod: {
seainf:"", // .cltp0.recget.sdamod.seainf seainf: "", // .cltp0.recget.sdamod.seainf
},
}, },
}, },
setmod:{ },
docamttyplab:"", // settled amount description as label .setmod.docamttyplab // setmod: {
retmsg:"", // Label showing Retry overflow condition .setmod.retmsg // docamttyplab: "", // settled amount description as label .setmod.docamttyplab
ref:"", // our reference .setmod.ref // retmsg: "", // Label showing Retry overflow condition .setmod.retmsg
doccur:"", // document currency .setmod.doccur // ref: "", // our reference .setmod.ref
docamt:"", // document amount .setmod.docamt // doccur: "", // document currency .setmod.doccur
dspflg:"", // Type of settlement .setmod.dspflg // docamt: "", // document amount .setmod.docamt
xreflg:"", // Recalculate Rates .setmod.xreflg // dspflg: "", // Type of settlement .setmod.dspflg
setglg:{ // xreflg: "", // Recalculate Rates .setmod.xreflg
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg // setglg: {
}, // labdspflg: "", // Label for Type of Settlement .setmod.setglg.labdspflg
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab // },
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc // zmqacclab: "", // 主�'�号LABEL .setmod.zmqacclab
setfog:{ // zmqacc: "", // 自�'�区主�'�号 .setmod.zmqacc
setfol:[] // setfog: {
}, // setfol: []
setfeg:{ // },
setfel:[] // setfeg: {
}, // setfel: []
glemod:{ // },
gleshwstm: {} // glemod: {
}, // gleshwstm: {}
// },
},
// },
trnmod:{ setmod: new Pub().data.Setmod,
trndoc:{
advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel // trnmod:{
amdnam:"", // AMDNAM .trnmod.trndoc.amdnam // trndoc:{
advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc // advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
advnam:"", // 国内证落款 .trnmod.trndoc.advnam // amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl // advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl // advnam:"", // 国内证落款 .trnmod.trndoc.advnam
doctrestm:"", // Document tree .trnmod.trndoc.doctrestm // amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc // doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout // doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
condocstm:"", // Connected Documents .trnmod.trndoc.condocstm // shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
rcvatt:{ // shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout
seainf:"", // .trnmod.trndoc.rcvatt.seainf // condocstm:"", // Connected Documents .trnmod.trndoc.condocstm
}, // rcvatt:{
filrecv:"", // File Receiver .trnmod.trndoc.filrecv // seainf:"", // .trnmod.trndoc.rcvatt.seainf
}, // },
}, // filrecv:"", // File Receiver .trnmod.trndoc.filrecv
mtabut:{ // },
coninf:{ // },
oitinf:{ trnmod: new Pub().data.Trnmod,
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt // mtabut: {
oit:{ // coninf: {
inftxt:"", // Infotext .mtabut.coninf.oitinf.oit.inftxt // oitinf: {
inflev:"", // Infotext Level .mtabut.coninf.oitinf.oit.inflev // labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
}, // oit: {
}, // inftxt: "", // Infotext .mtabut.coninf.oitinf.oit.inftxt
oitset:{ // inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitset.labinftxt // },
oit:{ // },
inftxt:"", // Infotext .mtabut.coninf.oitset.oit.inftxt // oitset: {
inflev:"", // Infotext Level .mtabut.coninf.oitset.oit.inflev // labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
}, // oit: {
}, // inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt
conexedat:"", // 执行日期 .mtabut.coninf.conexedat // inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
usr:{ // },
extkey:"", // User ID .mtabut.coninf.usr.extkey // },
}, // conexedat: "", // 执行日期 .mtabut.coninf.conexedat
}, // usr: {
}, // extkey: "", // User ID .mtabut.coninf.usr.extkey
pageId: "" // ctx的key // },
} // },
} // },
mtabut: new Pub().data.Mtabut,
pageId: "" // ctx的key
}
}
} }
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24">
<c-col :span="12"> <c-col :span="11">
<el-form-item label="Batch No." prop="cldgrp.rec.ownref"> <el-form-item label="Batch No." prop="cldgrp.rec.ownref">
<c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入Batch No."></c-input> <c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入Batch No." disabled>
</el-form-item> </c-input>
</c-col> </el-form-item>
</c-col>
<c-col :span="12"> <c-col :span="11" :offset="1">
<el-form-item label="" prop="cltp0.recget.sdamod.seainf"> <el-form-item label="Type of Draft" prop="cldgrp.rec.chktyp">
<c-input v-model="model.cltp0.recget.sdamod.seainf" placeholder="请输入"></c-input> <c-select v-model="model.cldgrp.rec.chktyp" style="width: 100%" placeholder="请输入Type of Draft"
</el-form-item> disabled>
</c-col> <el-option v-for="item in codes.chktyp" :key="item.value" :label="item.label"
:value="item.value">
<c-col :span="12"> </el-option>
<el-form-item label="Type of Draft" prop="cldgrp.rec.chktyp"> </c-select>
<c-input v-model="model.cldgrp.rec.chktyp" maxlength="1" placeholder="请输入Type of Draft"></c-input> </el-form-item>
</el-form-item> </c-col>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12"> <c-col :span="11">
<el-form-item label="Payemnt Disposition" prop="cldgrp.rec.colflg"> <c-col :span="12">
<c-input v-model="model.cldgrp.rec.colflg" maxlength="1" placeholder="请输入Payemnt Disposition"></c-input> <el-form-item label="Draft Amount" prop="cldgrp.cbs.max.cur">
</el-form-item> <c-input v-model="model.cldgrp.cbs.max.cur" style="width:100%" placeholder="请选择Draft Amount"
</c-col> disabled>
</c-input>
<c-col :span="12"> </el-form-item>
<el-form-item label="Draft Amount" prop="cldgrp.cbs.max.cur"> </c-col>
<c-select v-model="model.cldgrp.cbs.max.cur" style="width:100%" placeholder="请选择Draft Amount"> <c-col :span="11" :offset="1">
</c-select> <el-form-item label="" label-width="0" prop="cldgrp.cbs.max.amt" style="width:100%">
</el-form-item> <c-input v-model.number="model.cldgrp.cbs.max.amt" style="width:100%"
</c-col> placeholder="请输入Open Amount" disabled></c-input>
</el-form-item>
<c-col :span="12"> </c-col>
<el-form-item label="Draft Amount" prop="cldgrp.cbs.max.amt"> </c-col>
<c-input v-model="model.cldgrp.cbs.max.amt" placeholder="请输入Draft Amount"></c-input> <c-col :span="11" :offset="1">
</el-form-item> <el-form-item label="Payemnt Disposition" prop="cldgrp.rec.colflg">
</c-col> <c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" placeholder="请输入Payemnt Disposition"
disabled>
<c-col :span="12"> <el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
<el-form-item label="Open Amount" prop="cldgrp.cbs.opn1.cur"> :value="item.value">
<c-select v-model="model.cldgrp.cbs.opn1.cur" style="width:100%" placeholder="请选择Open Amount"> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="12">
<el-form-item label="Open Amount" prop="cldgrp.cbs.opn1.amt"> <c-col :span="24">
<c-input v-model="model.cldgrp.cbs.opn1.amt" placeholder="请输入Open Amount"></c-input> <c-col :span="11">
</el-form-item> <c-col :span="12">
</c-col> <el-form-item label="Open Amount" prop="cldgrp.cbs.opn1.cur">
<c-input v-model="model.cldgrp.cbs.opn1.cur" style="width:100%" placeholder="请选择Open Amount"
<c-col :span="12"> disabled>
<el-form-item label="Coll.bank ref." prop="cldgrp.rec.colref"> </c-input>
<c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入Coll.bank ref."></c-input> </el-form-item>
</el-form-item> </c-col>
</c-col> <c-col :span="11" :offset="1">
<el-form-item label-width="0" prop="cldgrp.cbs.opn1.amt">
<c-col :span="12"> <c-input v-model="model.cldgrp.cbs.opn1.amt" placeholder="请输入Open Amount" disabled></c-input>
<el-form-item label="Coll.bank name" prop="cldgrp.rec.colptynam"> </el-form-item>
<c-input v-model="model.cldgrp.rec.colptynam" maxlength="40" placeholder="请输入Coll.bank name"></c-input> </c-col>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> </c-col>
<el-form-item label="Date of creation" prop="cldgrp.rec.credat">
<c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%" placeholder="请选择Date of creation"></c-date-picker> <c-col :span="24">
</el-form-item> <c-col :span="11">
</c-col> <el-form-item label="Coll.bank ref." prop="cldgrp.rec.colref">
<c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入Coll.bank ref." disabled>
<c-col :span="12"> </c-input>
<el-form-item label="Item Count" prop="cldgrp.rec.count"> </el-form-item>
<c-input v-model="model.cldgrp.rec.count" placeholder="请输入Item Count"></c-input> </c-col>
</el-form-item> </c-col>
</c-col>
</div> <c-col :span="24">
<c-col :span="11">
<el-form-item label="Coll.bank name" prop="cldgrp.rec.colptynam">
<c-input v-model="model.cldgrp.rec.colptynam" maxlength="40" placeholder="请输入Coll.bank name"
disabled>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Date of creation" prop="cldgrp.rec.credat">
<c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
placeholder="请选择Date of creation" disabled></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Item Count" prop="cldgrp.rec.count">
<c-input v-model="model.cldgrp.rec.count" placeholder="请输入Item Count" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-edit-table :model="model" v-bind="docgrd">
</c-edit-table>
</c-col>
</div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
...@@ -84,15 +115,62 @@ import Event from "~/model/Cltset/Event" ...@@ -84,15 +115,62 @@ import Event from "~/model/Cltset/Event"
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {
docgrd: {
columns: [
{
title: "Our Reference",
width: "150px",
dataIndex: "ownref",
show: "text",
},
{
title: "Description",
width: "200px",
dataIndex: "nam",
show: "text",
},
{
title: "Presenter Name",
width: "200px",
dataIndex: "prenam",
show: "text",
},
{
title: "cur",
width: "100px",
dataIndex: "cur",
show: "text",
},
{
title: "Amount",
width: "200px",
dataIndex: "amt",
show: "text",
},
{
title: "Pay To",
width: "200px",
dataIndex: "paytoamt",
show: "input",
},
{
title: "Select it",
width: "100px",
dataIndex: "selflg",
show: "checkbox",
},
],
urls: "bptbckg.docgrd",
},
} }
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {
} }
} }
......
...@@ -19,23 +19,6 @@ ...@@ -19,23 +19,6 @@
<m-sel :model="model" :codes="codes" /> <m-sel :model="model" :codes="codes" />
</el-tab-pane> </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 --> <!--PD000529 -->
<el-tab-pane label="面函及报文" name="docpan"> <el-tab-pane label="面函及报文" name="docpan">
<m-docpan :model="model" :codes="codes" /> <m-docpan :model="model" :codes="codes" />
...@@ -50,79 +33,107 @@ ...@@ -50,79 +33,107 @@
<el-tab-pane label="附言" name="coninfp"> <el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" /> <m-coninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="分录信息" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<!-- <el-tab-pane label="表外信息" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane> -->
<!-- <el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000546 -->
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog>
</div> </div>
</c-page> </c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils/index"; import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Cltset from "~/model/Cltset"; import Cltset from "~/model/Cltset";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs"; import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Cltset/Check"; import Check from "~/model/Cltset/Check";
import Default from "~/model/Cltset/Default"; import Default from "~/model/Cltset/Default";
import Pattern from "~/model/Cltset/Pattern"; import Pattern from "~/model/Cltset/Pattern";
import Sel from "./Sel"; import Sel from "./Sel";
import Setpan from "~/views/Public/Setpan"; import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan"; import Docpan from "~/views/Public/Docpan";
import Engp from "~/views/Public/Engp"; import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan"; import Glepan from "~/views/Public/Glepan";
import Ccvpan from "~/views/Public/Ccvpan"; import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
import Doctre from "./Doctre"; import Doctre from "~/views/Public/Doctre";
export default { export default {
name: "Cltset", name: "Cltset",
components: { components: {
"m-sel": Sel, "m-sel": Sel,
"m-setpan": Setpan, "m-setpan": Setpan,
"m-engp": Engp, "m-engp": Engp,
"m-glepan": Glepan, "m-glepan": Glepan,
"m-docpan": Docpan, "m-docpan": Docpan,
"m-doctre": Doctre, "m-doctre": Doctre,
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
"m-ccvpan": Ccvpan, "m-ccvpan": Ccvpan,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "", tabVal: "sel",
trnName: "cltset", trnName: "cltset",
model: new Cltset().data, model: new Cltset().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
}, ...CodeTable,
} },
}, }
methods: { },
tabClick() { methods: {
} // tabClick() {
}, // }
created: async function () { },
console.log("进入cltset交易"); created: async function () {
let rtnmsg = await this.init({}) console.log("进入cltset交易");
if (rtnmsg.respCode == SUCCESS) { let rtnmsg = await this.init({})
//TODO 处理数据逻辑 if (rtnmsg.respCode == SUCCESS) {
} //TODO 处理数据逻辑
else { this.updateModel(rtnmsg.data);
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.model.bptbckg.docgrd = rtnmsg.data.ccdbatg;
} console.log(this.model.bptbckg.docgrd);
}
} }
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
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