Commit 5a4f90b5 by panziyi

bot交易修改

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