Commit 5a4f90b5 by panziyi

bot交易修改

parent 81d1cb91
...@@ -38,6 +38,7 @@ export default class Botacc { ...@@ -38,6 +38,7 @@ export default class Botacc {
opndat:'', opndat:'',
expdat:'', expdat:'',
branchinr:'', branchinr:'',
ver: '',
}, },
drr: { drr: {
pts: new Pts().data pts: new Pts().data
......
...@@ -41,6 +41,7 @@ export default class Botame{ ...@@ -41,6 +41,7 @@ export default class Botame{
shpto:"", // For Transportation to .bodgrp.rec.shpto shpto:"", // For Transportation to .bodgrp.rec.shpto
inr: "", inr: "",
branchinr: '', branchinr: '',
ver: '',
}, },
cbs:{ cbs:{
max:{ max:{
......
...@@ -20,6 +20,7 @@ export default class Botcan { ...@@ -20,6 +20,7 @@ export default class Botcan {
docsta:"", // Document Set Status .bodgrp.rec.docsta docsta:"", // Document Set Status .bodgrp.rec.docsta
matdat:"", // Maturity Date .bodgrp.rec.matdat matdat:"", // Maturity Date .bodgrp.rec.matdat
branchinr:"", branchinr:"",
ver: '',
}, },
cbs:{ cbs:{
max:{ max:{
......
...@@ -44,6 +44,7 @@ export default class Botdav { ...@@ -44,6 +44,7 @@ export default class Botdav {
branchinr: '', branchinr: '',
inr: '', inr: '',
ownusr: '', ownusr: '',
ver: '',
}, },
cbs: { cbs: {
max: { max: {
......
...@@ -28,6 +28,7 @@ export default class Botdcr { ...@@ -28,6 +28,7 @@ export default class Botdcr {
wairmtcod: "", // Waive Remitting Bank Charges .bodgrp.rec.wairmtcod wairmtcod: "", // Waive Remitting Bank Charges .bodgrp.rec.wairmtcod
othins: "", // Defer Payment until .bodgrp.rec.othins othins: "", // Defer Payment until .bodgrp.rec.othins
lescom: "", // Warehouse/Insurance .bodgrp.rec.lescom lescom: "", // Warehouse/Insurance .bodgrp.rec.lescom
ver: '',
}, },
cbs: { cbs: {
max: { max: {
......
...@@ -76,6 +76,7 @@ export default class Botacc { ...@@ -76,6 +76,7 @@ export default class Botacc {
issdat: "", // Issued on .bodgrp.rec.issdat issdat: "", // Issued on .bodgrp.rec.issdat
ccdndrflg: "", // Truncation - Physical Document Kept w OWN .bodgrp.rec.ccdndrflg ccdndrflg: "", // Truncation - Physical Document Kept w OWN .bodgrp.rec.ccdndrflg
ccdpurflg: "", // Payment Under Reserve .bodgrp.rec.ccdpurflg ccdpurflg: "", // Payment Under Reserve .bodgrp.rec.ccdpurflg
ver: '',
}, },
cbs: { cbs: {
max: { max: {
......
...@@ -143,6 +143,7 @@ export default class Botset { ...@@ -143,6 +143,7 @@ export default class Botset {
nam: '', nam: '',
focflg: '', focflg: '',
branchinr:'', branchinr:'',
ver: '',
}, },
col: { col: {
pts: new Pts().data pts: new Pts().data
......
...@@ -14,7 +14,7 @@ let checkObj = { ...@@ -14,7 +14,7 @@ let checkObj = {
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
], ],
"cldgrp.rec.colflg":[ "cldgrp.rec.colflg":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
], ],
"cldgrp.rec.valdat":[ "cldgrp.rec.valdat":[
...@@ -23,10 +23,10 @@ let checkObj = { ...@@ -23,10 +23,10 @@ let checkObj = {
"cldgrp.rec.credat":[ "cldgrp.rec.credat":[
{type: "string", required: true, message: "必输项"} {type: "string", required: true, message: "必输项"}
], ],
// "rowcntr":[ "cur":[
// {type: "number", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
// {max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
// ], ],
"cldgrp.rec.regref":[ "cldgrp.rec.regref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
...@@ -34,8 +34,13 @@ let checkObj = { ...@@ -34,8 +34,13 @@ let checkObj = {
], ],
"amount":[ "amount":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
// {max: 16,message:"整数位不能超过12位"}, {max: 16,message:"整数位不能超过12位"},
// {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":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"整数位不能超过12位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
// "cldgrp.rec.count":[ // "cldgrp.rec.count":[
// {type: "number", required: false, message: "必输项"}, // {type: "number", required: false, message: "必输项"},
...@@ -53,7 +58,7 @@ let checkObj = { ...@@ -53,7 +58,7 @@ let checkObj = {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cldgrp.col.pts.extkey":[ "cldgrp.col.pts.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
// "cltp.colp.ptsget.sdamod.seainf":[ // "cltp.colp.ptsget.sdamod.seainf":[
......
...@@ -16,6 +16,7 @@ export default class Cltdav { ...@@ -16,6 +16,7 @@ export default class Cltdav {
branchinr:"00000047", branchinr:"00000047",
ownref: "", // Batch No. .cldgrp.rec.ownref ownref: "", // Batch No. .cldgrp.rec.ownref
valdat: "", // Value Date .cldgrp.rec.valdat valdat: "", // Value Date .cldgrp.rec.valdat
opndat: "",
credat: "", // Date of creation .cldgrp.rec.credat credat: "", // Date of creation .cldgrp.rec.credat
colflg: "", // Payemnt Disposition .cldgrp.rec.colflg colflg: "", // Payemnt Disposition .cldgrp.rec.colflg
regref: "", // Register Ref. .cldgrp.rec.regref regref: "", // Register Ref. .cldgrp.rec.regref
...@@ -25,6 +26,16 @@ export default class Cltdav { ...@@ -25,6 +26,16 @@ export default class Cltdav {
creact: "", // Credit to Account .cldgrp.rec.creact creact: "", // Credit to Account .cldgrp.rec.creact
acno: "", // A/C NO. .cldgrp.rec.acno acno: "", // A/C NO. .cldgrp.rec.acno
}, },
cbs: {
max: {
cur: "",
amt: "",
},
opn1: {
cur: "",
amt: "",
},
},
col: { col: {
pts: new Pts().data, pts: new Pts().data,
}, },
...@@ -34,7 +45,7 @@ export default class Cltdav { ...@@ -34,7 +45,7 @@ export default class Cltdav {
}, },
rowcntr: Number(), // Total Row Count .rowcntr rowcntr: Number(), // Total Row Count .rowcntr
cur: "", // currency .cur cur: "", // currency .cur
amount: "0.00", // AMOUNT .amount amount: "", // AMOUNT .amount
items: Number(), // Item Count .items items: Number(), // Item Count .items
colbnk: "", // Collection Bank .colbnk colbnk: "", // Collection Bank .colbnk
cltp: { cltp: {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<template slot="footer"> <template slot="footer">
<c-button size="small" type="primary" @click="queryOwnref" <c-button size="small" type="primary" @click="queryOwnref"
style="margin-left: 10px; padding: 0 12px" style="margin-left: 10px; padding: 0 12px"
:disabled="model.cldgrp.rec.ownref !== ''"> :disabled="model.cldgrp.col.pts.extkey == ''">
获取 获取
</c-button> </c-button>
</template> </template>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="选中光票金额和" prop="amount" style="width: 100%"> <el-form-item label="选中光票金额和" prop="amount" style="width: 100%">
<c-input v-model="model.amount" placeholder="请输入" disabled></c-input> <c-input-currency v-model="model.amount" placeholder="请输入" ></c-input-currency >
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -257,6 +257,16 @@ export default { ...@@ -257,6 +257,16 @@ export default {
} }
} }
}, },
"model.amount":{
immediate: true,
handler(val,oldval){
if(this.model.amount!== "" ){
this.model.cldgrp.cbs.opn1.cur= this.model.cur;
this.model.cldgrp.cbs.opn1.amt= this.model.amount;
}
}
},
} }
} }
</script> </script>
......
...@@ -44,7 +44,7 @@ let checkObj = { ...@@ -44,7 +44,7 @@ let checkObj = {
// {type: "date", required: false, message: "输入正确的日期"} // {type: "date", required: false, message: "输入正确的日期"}
], ],
"cldgrp.rec.count":[ "cldgrp.rec.count":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"} // {max: 3,message:"长度不能超过3"}
], ],
} }
......
...@@ -14,7 +14,7 @@ export default class Clttra { ...@@ -14,7 +14,7 @@ export default class Clttra {
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: "0", // 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
}, },
......
...@@ -79,11 +79,11 @@ export default { ...@@ -79,11 +79,11 @@ export default {
} }
}, },
toBotdav() { toCltdav() {
// 点击开立,清空从待经办进来的时候带的行参数 // 点击开立,清空从待经办进来的时候带的行参数
localStorage.setItem('row_botdav', null) localStorage.setItem('row_cltdav', null)
localStorage.setItem('review_botdav',null) localStorage.setItem('review_cltdav',null)
this.$router.history.push('/business-new/bottdav'); this.$router.history.push('/business-new/cltdav');
}, },
// 关闭详情弹框 // 关闭详情弹框
......
...@@ -452,7 +452,7 @@ export default { ...@@ -452,7 +452,7 @@ export default {
// }, // },
toCltdav() { toCltdav() {
this.$router.history.push("/business/cltdav") this.$router.history.push("/business-new/cltdav")
} }
}, },
created: function () { 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