Commit 36100273 by lixinyi

cltdav金额修改

parent 74dc1a29
...@@ -34,8 +34,8 @@ export default { ...@@ -34,8 +34,8 @@ export default {
oridre: model.cldgrp.rec.oridre, oridre: model.cldgrp.rec.oridre,
}, },
cbsMap: { cbsMap: {
// MAX: model.cldgrp.cbs.max, MAX: model.cldgrp.cbs.max,
// OPN1: model.cldgrp.cbs.opn1, OPN1: model.cldgrp.cbs.opn1,
// MAC: model.bcdgrp.cbs.mac, // MAC: model.bcdgrp.cbs.mac,
// MAC2: model.bcdgrp.cbs.mac2, // MAC2: model.bcdgrp.cbs.mac2,
// OPC2: model.bcdgrp.cbs.opc2, // OPC2: model.bcdgrp.cbs.opc2,
......
...@@ -23,7 +23,7 @@ let checkObj = { ...@@ -23,7 +23,7 @@ let checkObj = {
"cldgrp.rec.credat":[ "cldgrp.rec.credat":[
{type: "string", required: true, message: "必输项"} {type: "string", required: true, message: "必输项"}
], ],
"cur":[ "cldgrp.cbs.max.cur":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
...@@ -32,7 +32,7 @@ let checkObj = { ...@@ -32,7 +32,7 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"amount":[ "cldgrp.cbs.max.amt":[
{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位" }
......
...@@ -44,7 +44,7 @@ export default class Cltdav { ...@@ -44,7 +44,7 @@ export default class Cltdav {
}, },
}, },
rowcntr: Number(), // Total Row Count .rowcntr rowcntr: Number(), // Total Row Count .rowcntr
cur: "", // currency .cur //cur: "", // currency .cur
amount: "", // AMOUNT .amount amount: "", // AMOUNT .amount
items: Number(), // Item Count .items items: Number(), // Item Count .items
colbnk: "", // Collection Bank .colbnk colbnk: "", // Collection Bank .colbnk
...@@ -76,7 +76,7 @@ export default class Cltdav { ...@@ -76,7 +76,7 @@ export default class Cltdav {
// inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev // inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
// }, // },
// }, // },
// conexedat: "", // 执行日期 .mtabut.coninf.conexedat // conexedat: "", // 鎵ц鏃ユ湡 .mtabut.coninf.conexedat
// usr: { // usr: {
// extkey: "", // User ID .mtabut.coninf.usr.extkey // extkey: "", // User ID .mtabut.coninf.usr.extkey
// }, // },
...@@ -93,8 +93,8 @@ export default class Cltdav { ...@@ -93,8 +93,8 @@ export default class Cltdav {
// setglg: { // setglg: {
// labdspflg: "", // Label for Type of Settlement .setmod.setglg.labdspflg // labdspflg: "", // Label for Type of Settlement .setmod.setglg.labdspflg
// }, // },
// zmqacclab: "", // 主�'�号LABEL .setmod.zmqacclab // zmqacclab: "", // 涓伙拷'锟藉彿LABEL .setmod.zmqacclab
// zmqacc: "", // 自�'�区主�'�号 .setmod.zmqacc // zmqacc: "", // 鑷拷'锟藉尯涓伙拷'锟藉彿 .setmod.zmqacc
// setfog: { // setfog: {
// setfol: [] // setfol: []
// }, // },
...@@ -108,7 +108,7 @@ export default class Cltdav { ...@@ -108,7 +108,7 @@ export default class Cltdav {
// }, // },
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
modflg: "", // MODIFY .modflg modflg: "", // MODIFY .modflg
pageId: "", // ctx的key pageId: "", // ctx鐨刱ey
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
......
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
</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="cldgrp.cbs.max.amt" style="width: 100%">
<c-input-currency v-model="model.amount" placeholder="请输入" ></c-input-currency > <c-input-currency v-model="model.cldgrp.cbs.max.amt" placeholder="请输入" ></c-input-currency >
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -108,8 +108,8 @@ ...@@ -108,8 +108,8 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="币种" prop="cur" style="width:100%"> <el-form-item label="币种" prop="cldgrp.cbs.max.cur" style="width:100%">
<c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种"> <c-select v-model="model.cldgrp.cbs.max.cur" style="width: 100%" placeholder="请选择币种">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label" <el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
:value="item.value"> :value="item.value">
</el-option> </el-option>
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24" v-if="model.cur !== '' && model.cldgrp.rec.colflg !== ''"> <c-col :span="24" v-if="model.cldgrp.cbs.cur!== '' && model.cldgrp.rec.colflg !== ''">
<c-col :span="4" :offset="20" style="text-align:center"> <c-col :span="4" :offset="20" style="text-align:center">
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
</c-col> </c-col>
...@@ -252,18 +252,18 @@ export default { ...@@ -252,18 +252,18 @@ export default {
deep: true, deep: true,
handler(val,oldval){ handler(val,oldval){
// const res = this.model.cldgrp // const res = this.model.cldgrp
if(this.model.cur !== "" || this.model.amount !== "" || this.model.cldgrp.col.pts.adrblk !== ""){ if(this.model.cldgrp.cbs.max.cur !== "" || this.model.cldgrp.cbs.max.amt !== "" || this.model.cldgrp.col.pts.adrblk !== ""){
this.model.cldgrp.rec.nam = this.model.amount+this.model.cldgrp.col.pts.adrblk.substring(0,16)+this.model.cur this.model.cldgrp.rec.nam = this.model.cldgrp.cbs.max.amt+this.model.cldgrp.col.pts.adrblk.substring(0,16)+this.model.cldgrp.cbs.max.cur
} }
} }
}, },
"model.amount":{ "model.cldgrp.cbs.max.amt":{
immediate: true, immediate: true,
handler(val,oldval){ handler(val,oldval){
if(this.model.amount!== "" ){ if(this.model.cldgrp.cbs.max.amt!== "" ){
this.model.cldgrp.cbs.opn1.cur= this.model.cur; this.model.cldgrp.cbs.opn1.cur= this.model.cldgrp.cbs.max.cur;
this.model.cldgrp.cbs.opn1.amt= this.model.amount; this.model.cldgrp.cbs.opn1.amt= this.model.cldgrp.cbs.max.amt;
} }
} }
}, },
......
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