Commit 0e9aa709 by Wuyuqiu

bug解决,lttopn交易完善功能

parent bc5c673a
...@@ -255,7 +255,23 @@ export default { ...@@ -255,7 +255,23 @@ export default {
} }
}, },
onSeainf() {}, onSeainf() {},
onDetpButgetref() {}, async onDetpButgetref(){
let rtnmsg = await this.executeRule("butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
this.$message({
type: 'success',
message: '获取成功!'
});
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
onBenpDet() {}, onBenpDet() {},
} }
\ No newline at end of file
...@@ -44,6 +44,7 @@ export default class Letdrv { ...@@ -44,6 +44,7 @@ export default class Letdrv {
}, },
ledgrp: { ledgrp: {
rec: { rec: {
inr:"",
ownref: "", // Reference .ledgrp.rec.ownref ownref: "", // Reference .ledgrp.rec.ownref
nam: "", // 摘要 .ledgrp.rec.nam nam: "", // 摘要 .ledgrp.rec.nam
revflg: "", // Revolving Flag .ledgrp.rec.revflg revflg: "", // Revolving Flag .ledgrp.rec.revflg
......
...@@ -53,6 +53,8 @@ let checkObj = { ...@@ -53,6 +53,8 @@ let checkObj = {
"ltdgrp.rec.avbby" :null, "ltdgrp.rec.avbby" :null,
"ltdgrp.blk.preper" :null, "ltdgrp.blk.preper" :null,
"ltdgrp.rmt.namelc" :null, "ltdgrp.rmt.namelc" :null,
"ltdgrp.blk.addamtcov" :null,
"ltdgrp.cbs.max2.amt" :null,
"ltdgrp.rec.ownref" :null, "ltdgrp.rec.ownref" :null,
"ltdgrp.be2.adrelc" :null, "ltdgrp.be2.adrelc" :null,
"ltdgrp.adt.pts.adrblk" :null, "ltdgrp.adt.pts.adrblk" :null,
......
...@@ -105,5 +105,8 @@ export default { ...@@ -105,5 +105,8 @@ export default {
"ltdgrp.rec.shptrss18" :Utils.defaultFunction, "ltdgrp.rec.shptrss18" :Utils.defaultFunction,
"ltdgrp.rec.expplc" :Utils.defaultFunction, "ltdgrp.rec.expplc" :Utils.defaultFunction,
"ltdgrp.rec.cnfins" :Utils.defaultFunction, "ltdgrp.rec.cnfins" :Utils.defaultFunction,
"ltdgrp.cbs.max2.amt" :Utils.defaultFunction,
"ltdgrp.cbs.max2.cur" :Utils.defaultFunction,
"ltdgrp.blk.addamtcov" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -642,4 +642,19 @@ export default { ...@@ -642,4 +642,19 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"ltdgrp.cbs.max2.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ltdgrp.cbs.opn2.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ltdgrp.blk.addamtcov":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
} }
\ No newline at end of file
...@@ -298,8 +298,12 @@ ...@@ -298,8 +298,12 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
:disabled="this.flag"
@click="onDetpButgetref" @click="onDetpButgetref"
:disabled="
model.ledgrp.adv.pts.inr &&!model.bedgrp.rec.ownref
? false
: true
"
> >
Get Get
</c-button> </c-button>
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
type="primary" type="primary"
:disabled="!docdisflg" :disabled="!docdisflg"
@click="showGridPromptDialog('betp.docdis.buttxmsel',null,null,{TXT:'bedgrp.blk.docdis'},{TXT:false},'doxpDialog')" @click="showGridPromptDialog('betp.docdis.buttxmsel',null,null,{TXT:'bedgrp.blk.docdis'},{TXT:false},'doxpDialog')"
@change="defaultFunction('betp.folwupopt')"
> >
... ...
</c-button> </c-button>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
v-model="model.bedgrp.srm.djuusr" v-model="model.bedgrp.srm.djuusr"
maxlength="80" maxlength="80"
placeholder="请输入单据出具人" placeholder="请输入单据出具人"
:disabled="model.bedgrp.srm.djutyp==='D'" :disabled="model.bedgrp.srm.djutyp=='D'||model.bedgrp.srm.djutyp==''"
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
v-model="model.bedgrp.srm.djudat" v-model="model.bedgrp.srm.djudat"
style="width: 100%" style="width: 100%"
placeholder="请选择单据出具日期" placeholder="请选择单据出具日期"
:disabled="model.bedgrp.srm.djutyp==='D'" :disabled="model.bedgrp.srm.djutyp=='D'||model.bedgrp.srm.djutyp==''"
></c-date-picker> ></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
v-model="model.bedgrp.srm.djuref" v-model="model.bedgrp.srm.djuref"
maxlength="40" maxlength="40"
placeholder="请输入货权单据编号" placeholder="请输入货权单据编号"
:disabled="model.bedgrp.srm.djutyp==='D'" :disabled="model.bedgrp.srm.djutyp=='D'||model.bedgrp.srm.djutyp==''"
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
......
<template>
<div class="eibs-tab">
<c-col :span="11">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="Additional Amount" prop="ltdgrp.cbs.max2.cur">
<c-select
v-model="model.ltdgrp.cbs.max2.cur"
style="width: 100%"
placeholder="Please select cur"
disabled
:code="codes.curtxt1"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="20px" prop="ltdgrp.cbs.max2.amt">
<c-input-currency
v-model="model.ltdgrp.cbs.max2.amt"
style="width: 100%"
placeholder="Please input Additional Amount"
@keyup.enter.native="max2amtEvent"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="Open Add. Amount" prop="ltdgrp.cbs.opn2.cur">
<c-select
v-model="model.ltdgrp.cbs.opn2.cur"
style="width: 100%"
placeholder="Please select cur"
:code="codes.curtxt1"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="20px" prop="ltdgrp.cbs.opn2.amt">
<c-input-currency
v-model="model.ltdgrp.cbs.opn2.amt"
style="width: 100%"
placeholder="Please input Open Add. Amount"
disabled
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="Covered" prop="ltdgrp.blk.addamtcov">
<c-input
type="textarea"
v-model="model.ltdgrp.blk.addamtcov"
maxlength="35"
show-word-limit
placeholder="请输入Covered"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Additional Amount" prop="ltdgrp.cbs.max2.cur">
<c-select
v-model="model.ltdgrp.cbs.max2.cur"
style="width: 100%"
placeholder="请选择Additional Amount"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Additional Amount" prop="ltdgrp.cbs.max2.amt">
<c-input
v-model="model.ltdgrp.cbs.max2.amt"
placeholder="请输入Additional Amount"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Open Add. Amount" prop="ltdgrp.cbs.opn2.cur">
<c-select
v-model="model.ltdgrp.cbs.opn2.cur"
style="width: 100%"
placeholder="请选择Open Add. Amount"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Open Add. Amount" prop="ltdgrp.cbs.opn2.amt">
<c-input
v-model="model.ltdgrp.cbs.opn2.amt"
placeholder="请输入Open Add. Amount"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Covered" prop="ltdgrp.blk.addamtcov">
<c-input
type="textarea"
v-model="model.ltdgrp.blk.addamtcov"
maxlength="35"
show-word-limit
placeholder="请输入Covered"
></c-input>
</el-form-item>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letrsv/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event,
max2amtEvent() {
this.executeDefault("ltdgrp.cbs.max2.amt").then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
},
created: function () {},
};
</script>
<style>
</style>
...@@ -11,14 +11,13 @@ ...@@ -11,14 +11,13 @@
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.ledgrp.rec.ownref" v-model="model.ledgrp.rec.ownref"
maxlength="16" maxlength="8"
placeholder="Please input Reference" placeholder="Please input Reference"
style="width: 95%"
:disabled="true" :disabled="true"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 0; padding: 0 12px" style="margin-left:10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf" @click="onSeainf"
...@@ -32,15 +31,6 @@ ...@@ -32,15 +31,6 @@
>i</span >i</span
> >
</c-button> </c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="true"
@click="onLetpButgetref"
>
Get
</c-button>
</template> </template>
</c-fullbox> </c-fullbox>
</el-form-item> </el-form-item>
...@@ -58,6 +48,7 @@ ...@@ -58,6 +48,7 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<el-form-item <el-form-item
...@@ -93,8 +84,12 @@ ...@@ -93,8 +84,12 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
:disabled="true" :disabled="
@click="onLetpButgetref" !model.ltdgrp.rec.ownref
? false
: true
"
@click="onLttpButgetref"
> >
Get Get
</c-button> </c-button>
...@@ -198,7 +193,8 @@ ...@@ -198,7 +193,8 @@
<c-checkbox <c-checkbox
v-model="model.lttp.aamp.aammod.addamtflg" v-model="model.lttp.aamp.aammod.addamtflg"
style="margin-left: 10px" style="margin-left: 10px"
disabled :disabled="model.ltdgrp.cbs.max2.amt==''"
@change="openAddDetails"
>Add. Amount</c-checkbox >Add. Amount</c-checkbox
> >
</c-col> </c-col>
...@@ -845,6 +841,41 @@ export default { ...@@ -845,6 +841,41 @@ export default {
this.model.ltdgrp.rec.apprultxt = ""; this.model.ltdgrp.rec.apprultxt = "";
} }
}, },
openAddDetails(val){
if(val ==='' && !( this.model.ltdgrp.cbs.max2.amt == '0' && this.model.ltdgrp.cbs.opn2.amt == '0'
&&this.model.ltdgrp.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('lttp.aamp.aammod.addamtflg').then(res => {
if (res.respCode == SUCCESS) {
this.model.ltdgrp.cbs.max2.amt = '0';
this.model.ltdgrp.blk.addamtcov ='';
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.lttp.aamp.aammod.addamtflg ='X'
// this.$message({
// type: 'info',
// message: '已取消'
// });
});
}
}
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
<el-tab-pane label="Overview" name="ovwp"> <el-tab-pane label="Overview" name="ovwp">
<m-ovwp :model="model" :codes="codes" /> <m-ovwp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--aamp PD000001 Additional Amount -->
<el-tab-pane label="Additional Amount" name="aamp" v-if="model.lttp.aamp.aammod.addamtflg">
<m-aamp :model="model" :codes="codes"/>
</el-tab-pane>
<!--lttp PD000077 Details --> <!--lttp PD000077 Details -->
<el-tab-pane label="Details" name="detp"> <el-tab-pane label="Details" name="detp">
<c-content> <c-content>
...@@ -152,7 +156,8 @@ import Coninfp from "~/views/Public/Coninfp"; ...@@ -152,7 +156,8 @@ import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan"; import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre"; import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan"; import Glepan from "~/views/Public/Glepan";
import Doxp from '~/views/Public/Doxp' import Doxp from '~/views/Public/Doxp';
import Aamp from "./Aamp"
export default { export default {
name: "Lttopn", name: "Lttopn",
...@@ -170,6 +175,7 @@ export default { ...@@ -170,6 +175,7 @@ export default {
"m-detp": Detp, "m-detp": Detp,
'm-doxp': Doxp, 'm-doxp': Doxp,
'm-dogp': Dogp, 'm-dogp': Dogp,
"m-aamp" : Aamp,
}, },
provide() { provide() {
return { return {
......
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