Commit 06f11746 by WH

修复letdrw缺陷

parent e7f3dafb
...@@ -260,8 +260,8 @@ let checkObj = { ...@@ -260,8 +260,8 @@ let checkObj = {
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"ledgrp.rec.tenmaxday":[ "ledgrp.rec.tenmaxday":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{type: "number",max: 9999,message:"长度不能超过4"} {type: "string",max: 9999,message:"长度不能超过4"}
], ],
"ledgrp.rec.porloa":[ "ledgrp.rec.porloa":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
......
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="受益人参考号" prop="ledgrp.ben.pts.ref"> <el-form-item label="受益人参考号" prop="ledgrp.ben.pts.ref">
<c-input <c-input
v-model="model.ledgrp.ben.pts.ref" v-model="modelben"
maxlength="16" maxlength="16"
placeholder="请输入受益人参考号" placeholder="请输入受益人参考号"
disabled disabled
...@@ -402,7 +402,7 @@ ...@@ -402,7 +402,7 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="单据金额" prop="bedgrp.cbs.max.cur"> <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
<c-input <c-input
v-model="model.bedgrp.cbs.max.cur" v-model="maxcur"
maxlength="3" maxlength="3"
placeholder="请输入币种" placeholder="请输入币种"
></c-input> ></c-input>
...@@ -411,7 +411,7 @@ ...@@ -411,7 +411,7 @@
<c-col :span="11"> <c-col :span="11">
<el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt"> <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
<c-input <c-input
v-model="model.bedgrp.cbs.max.amt" v-model="maxamt"
class="m-input-currency" class="m-input-currency"
placeholder="请输入金额" placeholder="请输入金额"
></c-input> ></c-input>
...@@ -446,7 +446,7 @@ ...@@ -446,7 +446,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="交单行" prop="bedgrp.rec.docprbrol"> <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
<c-select <c-select
v-model="model.bedgrp.rec.docprbrol" v-model="docprbrol"
style="width: 100%" style="width: 100%"
placeholder="请选择交单行" placeholder="请选择交单行"
:code="codes.rolall" :code="codes.rolall"
...@@ -495,12 +495,28 @@ export default { ...@@ -495,12 +495,28 @@ export default {
return this.model.ledgrp.cbs.opn1.cur return this.model.ledgrp.cbs.opn1.cur
}, },
opn1amt(){ opn1amt(){
this.model.ledgrp.cbs.opn1.amt = this.model.ledgrp.cbs.nom1.amt * (1+this.model.ledgrp.rec.nomtop/100) this.model.ledgrp.cbs.opn1.amt = parseFloat(this.model.ledgrp.cbs.nom1.amt * (1+this.model.ledgrp.rec.nomtop/100)).toFixed(2)
return this.model.ledgrp.cbs.opn1.amt return this.model.ledgrp.cbs.opn1.amt
}, },
getDoctypcod(){ getDoctypcod(){
this.model.bedgrp.rec.doctypcod = this.model.ledgrp.rec.avbby this.model.bedgrp.rec.doctypcod = this.model.ledgrp.rec.avbby
return this.model.bedgrp.rec.doctypcod return this.model.bedgrp.rec.doctypcod
},
maxcur(){
this.model.ledgrp.cbs.max.cur = this.model.ledgrp.cbs.opn1.cur
return this.model.ledgrp.cbs.max.cur
},
maxamt(){
this.model.ledgrp.cbs.max.amt = this.model.ledgrp.cbs.opn1.amt
return this.model.ledgrp.cbs.max.amt
},
docprbrol(){
this.model.bedgrp.rec.docprbrol = 'BEB'
return this.model.bedgrp.rec.docprbrol
},
modelben(){
this.model.bedgrp.prb.pts = this.model.ledgrp.ben.pts
return this.model.ledgrp.ben.pts
} }
} }
} }
......
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