Commit 64537f5c by lianyang

letdrw交易L/C Details页面Detp.vue兑付方式方法修改

parent 494f0f84
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,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,11 +223,11 @@ export default { ...@@ -223,11 +223,11 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"ledgrp.blk.avbwthtxt":[ "ledgrp.blk.avbwthtxt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{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":[
...@@ -254,17 +254,17 @@ export default { ...@@ -254,17 +254,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":[
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"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":[
......
...@@ -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,7 +18,7 @@ ...@@ -19,7 +18,7 @@
<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: '',
...@@ -37,7 +36,25 @@ ...@@ -37,7 +36,25 @@
<!-- 名称地址 --> <!-- 名称地址 -->
<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"
...@@ -45,21 +62,9 @@ ...@@ -45,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> -->
<!-- 信用证兑付方式 Available by--> <!-- 信用证兑付方式 Available by-->
<c-col :span="24"> <c-col :span="24">
...@@ -69,7 +74,6 @@ ...@@ -69,7 +74,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>
...@@ -109,7 +113,16 @@ ...@@ -109,7 +113,16 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="showGridPromptDialog('letp.lcrdftat.buttxmsel', null, null,{TXT: 'ledgrp.blk.dftat'}, {TXT: false},'doxpDialog')" @click="
showGridPromptDialog(
'letp.lcrdftat.buttxmsel',
null,
null,
{ TXT: 'ledgrp.blk.dftat' },
{ TXT: false },
'doxpDialog'
)
"
:disabled="blkDftatFlag" :disabled="blkDftatFlag"
> >
... ...
...@@ -131,6 +144,7 @@ ...@@ -131,6 +144,7 @@
:onlySearch="false" :onlySearch="false"
@onSeainf="onSeainf" @onSeainf="onSeainf"
@onAplpDet="onDrwpDet" @onAplpDet="onDrwpDet"
:disabledExtkey="blkDftatFlag"
:disabled="blkDftatFlag" :disabled="blkDftatFlag"
> >
</c-ptap> </c-ptap>
...@@ -267,7 +281,6 @@ ...@@ -267,7 +281,6 @@
</el-form-item> </el-form-item>
</c-col>--> </c-col>-->
<!-- 交单期限 Days of presentation period--> <!-- 交单期限 Days of presentation period-->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="交单期限" prop="ledgrp.rec.prepers18"> <el-form-item label="交单期限" prop="ledgrp.rec.prepers18">
...@@ -282,8 +295,18 @@ ...@@ -282,8 +295,18 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="showGridPromptDialog('letp.preper.buttxmsel', null, null,{TXT: 'ledgrp.rec.prepers18'}, {TXT: false},'doxpDialog')" @click="
disabled > showGridPromptDialog(
'letp.preper.buttxmsel',
null,
null,
{ TXT: 'ledgrp.rec.prepers18' },
{ TXT: false },
'doxpDialog'
)
"
disabled
>
... ...
</c-button> </c-button>
</template> </template>
...@@ -319,7 +342,16 @@ ...@@ -319,7 +342,16 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="showGridPromptDialog('letp.charia.buttxmsel', null, null,{TXT: 'ledgrp.blk.feetxt'}, {TXT: false},'doxpDialog')" @click="
showGridPromptDialog(
'letp.charia.buttxmsel',
null,
null,
{ TXT: 'ledgrp.blk.feetxt' },
{ TXT: false },
'doxpDialog'
)
"
> >
... ...
</c-button> </c-button>
...@@ -797,6 +829,7 @@ import commonProcess from '~/mixin/commonProcess' ...@@ -797,6 +829,7 @@ import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable' import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letdrw/Event' import Event from '~/model/Letdrw/Event'
import Ptap from '~/views/Public/Ptap' import Ptap from '~/views/Public/Ptap'
import Utils from '~/utils'
export default { export default {
components: { components: {
...@@ -812,30 +845,58 @@ export default { ...@@ -812,30 +845,58 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
avbwthEvent(){ // avbbykeyEvent() {
if (this.model.ledgrp.rec.avbwth != 'A'||this.model.ledgrp.rec.avbwth != 'O') { // if (this.model.ledgrp.rec.avbby == 'P') {
this.model.ledgrp.avb.pts.extkey = '' // this.model.ledgrp.rec.tenmaxday = 0
this.model.ledgrp.blk.avbwthtxt = '' // this.model.ledgrp.blk.defdet = ''
} // }
}, // if (this.model.ledgrp.rec.avbby == 'D'||this.model.ledgrp.rec.avbby =='M') {
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.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) => { // this.executeCheck('ledgrp.rec.avbby').then((res) => {
if (res.respCode == SUCCESS) { // if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data) // 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: {
...@@ -843,7 +904,8 @@ export default { ...@@ -843,7 +904,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 == ''
) )
}, },
}, },
......
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
<c-checkbox <c-checkbox
v-model="model.letp.aamp.aammod.addamtflg" v-model="model.letp.aamp.aammod.addamtflg"
style="margin-left: 10px" style="margin-left: 10px"
@change="openAddAmount"
>附加金额</c-checkbox >附加金额</c-checkbox
> >
</c-col> </c-col>
...@@ -415,6 +416,7 @@ ...@@ -415,6 +416,7 @@
<c-col :span="12" class="centerLable marginLable"> <c-col :span="12" class="centerLable marginLable">
<c-checkbox v-model="model.ledgrp.rec.revflg" <c-checkbox v-model="model.ledgrp.rec.revflg"
@change="openRevolvingDetails"
>Revolving L/C</c-checkbox >Revolving L/C</c-checkbox
> >
</c-col> </c-col>
...@@ -1107,6 +1109,68 @@ export default { ...@@ -1107,6 +1109,68 @@ export default {
this.model.ledgrp.rec.apprultxt = '' this.model.ledgrp.rec.apprultxt = ''
} }
}, },
openAddAmount(val){
if(val ==='' && !(this.model.ledgrp.cbs.max2.amt =='0.000'&& this.model.ledgrp.blk.addamtcov === '') ){
this.$confirm('Do you really want to delete the additional amount of this contract?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(() => {//yes的执行在这里写
this.executeRule('letp.aamp.aammod.addamtflg').then(res => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data)
}
})
// this.model.ledgrp.cbs.max2.amt ='0.000';
// this.model.ledgrp.blk.addamtcov = '';
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).catch(() => {//No的功能在这里写
this.model.letp.aamp.aammod.addamtflg ='X'
// this.$message({
// type: 'info',
// message: '已取消'
// });
});
}
},
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 () {},
} }
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
:onlySearch="false" :onlySearch="false"
@onSeainf="onSeainf" @onSeainf="onSeainf"
@onAplpDet="onDrwpDet" @onAplpDet="onDrwpDet"
:disabledExtkey="blkDftatFlag"
:disabled="blkDftatFlag" :disabled="blkDftatFlag"
> >
</c-ptap> </c-ptap>
......
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