Commit e4348366 by lianyang

letopn/letdrw的指定银行事件修改

parent 0c8810df
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
"ledgrp.blk.mixdet":[ "ledgrp.blk.mixdet":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
], ],
"letp.avbp.ptsget.sdamod.dadsnd":[ "letp.avbp.ptsget.sdamod.dadsnd":[
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
], ],
"ledgrp.avb.pts.adrblk":[ "ledgrp.avb.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
], ],
"ledgrp.avb.dbfadrblkcn":[ "ledgrp.avb.dbfadrblkcn":[
...@@ -250,17 +250,17 @@ export default { ...@@ -250,17 +250,17 @@ export default {
], ],
"ledgrp.blk.defdet":[ "ledgrp.blk.defdet":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
], ],
"ledgrp.blk.feetxt":[ "ledgrp.blk.feetxt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 210,message:"长度不能超过210"} {max: 210,message:"长度不能超过210"}
], ],
"ledgrp.blk.dftat":[ "ledgrp.blk.dftat":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 105,message:"长度不能超过105"}
], ],
"letp.drwp.ptsget.sdamod.dadsnd":[ "letp.drwp.ptsget.sdamod.dadsnd":[
...@@ -281,7 +281,7 @@ export default { ...@@ -281,7 +281,7 @@ export default {
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
], ],
"ledgrp.drw.pts.adrblk":[ "ledgrp.drw.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
], ],
"ledgrp.drw.dbfadrblkcn":[ "ledgrp.drw.dbfadrblkcn":[
......
...@@ -845,58 +845,6 @@ export default { ...@@ -845,58 +845,6 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
// avbbykeyEvent() {
// if (this.model.ledgrp.rec.avbby == 'P') {
// this.model.ledgrp.rec.tenmaxday = 0
// this.model.ledgrp.blk.defdet = ''
// }
// if (this.model.ledgrp.rec.avbby == 'D'||this.model.ledgrp.rec.avbby =='M') {
// this.model.ledgrp.blk.defdet = '' //汇票期限置空
// this.model.ledgrp.drw.pts.extkey = ''//付款人置空
// this.model.ledgrp.drw.pts.adrblk = '' //名称地址置空.pts.adrblk
// }
// this.executeCheck('ledgrp.rec.avbby').then((res) => {
// if (res.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, res.data)
// }
// })
// },
openRevolvingDetails(val){
if(val ==='' && !(this.model.ledgrp.rec.revtyp ===''&& this.model.ledgrp.rec.revtimes == '0' && this.model.ledgrp.rec.revdat ===''
&&this.model.ledgrp.rec.revcum ===''&&this.model.ledgrp.blk.revcls ===''&&this.model.ledgrp.blk.revnotes ==='') ){
this.$confirm('Are you sure you want to delete the entered Revolving Details?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(() => {//yes的执行在这里写
this.executeRule('ledgrp.rec.revflg').then(res => {
if (res.respCode == SUCCESS) {
this.model.ledgrp.rec.revdat ='';//后端在事件中把日期置为null而不是nullstr,导致日期实际并没有清空,故在此加清空日期
this.updateModel(res.data)
}
})
// this.model.ledgrp.rec.revtyp ='';
// this.model.ledgrp.rec.revtimes = '0';
// this.model.ledgrp.rec.revdat ='';
// this.model.ledgrp.rec.revcum ='';
// this.model.ledgrp.blk.revcls ='';
// this.model.ledgrp.blk.revnotes ='';
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).catch(() => {//No的功能在这里写
this.model.ledgrp.rec.revflg ='X'
// this.$message({
// type: 'info',
// message: '已取消'
// });
});
}
}
}, },
created: function () {}, created: function () {},
computed: { computed: {
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
style="width: 100%" style="width: 100%"
placeholder="请选择指定银行" placeholder="请选择指定银行"
:code="codes.avbwth" :code="codes.avbwth"
@change="avbwthEvent"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -19,10 +18,10 @@ ...@@ -19,10 +18,10 @@
<c-col :span="24"> <c-col :span="24">
<c-ptap <c-ptap
v-if="model.ledgrp.rec.avbwth!='O'" v-if="model.ledgrp.rec.avbwth != 'O'"
:model="model" :model="model"
:argadr="{ :argadr="{
title: '指定银行', title: '',
grp: 'ledgrp', grp: 'ledgrp',
rol: 'avb', rol: 'avb',
}" }"
...@@ -35,8 +34,27 @@ ...@@ -35,8 +34,27 @@
</c-ptap> </c-ptap>
</c-col> </c-col>
<!-- 名称地址 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="名称地址" prop="ledgrp.blk.avbwthtxt"> <el-form-item
label=""
prop="ledgrp.avb.pts.adrblk"
v-if="model.ledgrp.rec.avbwth != 'O'"
>
<c-input
type="textarea"
:rows="3"
v-model="model.ledgrp.avb.pts.adrblk"
maxlength="140"
show-word-limit
placeholder="请输入Address Block"
:disabled="model.ledgrp.rec.avbwth!=''"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="ledgrp.blk.avbwthtxt"
v-if="model.ledgrp.rec.avbwth == 'O'">
<c-input <c-input
type="textarea" type="textarea"
:rows="3" :rows="3"
...@@ -44,21 +62,9 @@ ...@@ -44,21 +62,9 @@
maxlength="140" maxlength="140"
show-word-limit show-word-limit
placeholder="请输入名称地址" placeholder="请输入名称地址"
:disabled="model.ledgrp.rec.avbwth!='O'"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- <c-col :span="12">
<el-form-item label="Address Block" prop="ledgrp.avb.pts.adrblk">
<c-input
type="textarea"
v-model="model.ledgrp.avb.pts.adrblk"
maxlength="35"
show-word-limit
placeholder="请输入Address Block"
></c-input>
</el-form-item>
</c-col> -->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="兑付方式" prop="ledgrp.rec.avbby"> <el-form-item label="兑付方式" prop="ledgrp.rec.avbby">
...@@ -67,7 +73,6 @@ ...@@ -67,7 +73,6 @@
style="width: 100%" style="width: 100%"
placeholder="请选择兑付方式" placeholder="请选择兑付方式"
:code="codes.avbby0" :code="codes.avbby0"
@change="avbbykeyEvent"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -389,30 +394,25 @@ export default { ...@@ -389,30 +394,25 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
avbwthEvent(){ // avbwthEvent(){
if (this.model.ledgrp.rec.avbwth != 'A'||this.model.ledgrp.rec.avbwth != 'O') { // if (this.model.ledgrp.rec.avbwth != 'A'||this.model.ledgrp.rec.avbwth != 'O') {
this.model.ledgrp.avb.pts.extkey = '' // this.model.ledgrp.avb.pts.extkey = ''
this.model.ledgrp.blk.avbwthtxt = '' // this.model.ledgrp.blk.avbwthtxt = ''
} // }
}, // },
avbbykeyEvent() { // avbbykeyEvent() {
if (this.model.ledgrp.rec.avbby == 'P') { // if (this.model.ledgrp.rec.avbby == 'P') {
this.model.ledgrp.rec.tenmaxday = 0 // this.model.ledgrp.rec.tenmaxday = 0
this.model.ledgrp.blk.defdet = '' // this.model.ledgrp.blk.defdet = ''
} // }
if (this.model.ledgrp.rec.avbby == 'D'||this.model.ledgrp.rec.avbby =='M') { // if (this.model.ledgrp.rec.avbby == 'D'||this.model.ledgrp.rec.avbby =='M') {
this.model.ledgrp.blk.defdet = '' //汇票期限置空 // this.model.ledgrp.blk.defdet = '' //汇票期限置空
this.model.ledgrp.drw.pts.extkey = ''//付款人置空 // this.model.ledgrp.drw.pts.extkey = ''//付款人置空
this.model.ledgrp.drw.pts.adrblk = '' //名称地址置空.pts.adrblk // this.model.ledgrp.drw.pts.adrblk = '' //名称地址置空.pts.adrblk
} // }
this.executeCheck('ledgrp.rec.avbby').then((res) => { // },
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data)
}
})
},
}, },
created: function () {}, created: function () {},
...@@ -421,7 +421,8 @@ export default { ...@@ -421,7 +421,8 @@ export default {
get() { get() {
return ( return (
this.model.ledgrp.rec.avbwth == 'A' || this.model.ledgrp.rec.avbwth == 'A' ||
this.model.ledgrp.rec.avbwth == 'S' this.model.ledgrp.rec.avbwth == 'S' ||
this.model.ledgrp.rec.avbwth == ''
) )
}, },
}, },
......
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