Commit 0e9aa709 by Wuyuqiu

bug解决,lttopn交易完善功能

parent bc5c673a
......@@ -255,7 +255,23 @@ export default {
}
},
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() {},
}
\ No newline at end of file
......@@ -44,6 +44,7 @@ export default class Letdrv {
},
ledgrp: {
rec: {
inr:"",
ownref: "", // Reference .ledgrp.rec.ownref
nam: "", // 摘要 .ledgrp.rec.nam
revflg: "", // Revolving Flag .ledgrp.rec.revflg
......
......@@ -53,6 +53,8 @@ let checkObj = {
"ltdgrp.rec.avbby" :null,
"ltdgrp.blk.preper" :null,
"ltdgrp.rmt.namelc" :null,
"ltdgrp.blk.addamtcov" :null,
"ltdgrp.cbs.max2.amt" :null,
"ltdgrp.rec.ownref" :null,
"ltdgrp.be2.adrelc" :null,
"ltdgrp.adt.pts.adrblk" :null,
......
......@@ -105,5 +105,8 @@ export default {
"ltdgrp.rec.shptrss18" :Utils.defaultFunction,
"ltdgrp.rec.expplc" :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处理
......@@ -642,4 +642,19 @@ export default {
{type: "string", required: false, message: "必输项"},
{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 @@
style="margin: 0 0"
size="small"
type="primary"
:disabled="this.flag"
@click="onDetpButgetref"
:disabled="
model.ledgrp.adv.pts.inr &&!model.bedgrp.rec.ownref
? false
: true
"
>
Get
</c-button>
......
......@@ -24,6 +24,7 @@
type="primary"
:disabled="!docdisflg"
@click="showGridPromptDialog('betp.docdis.buttxmsel',null,null,{TXT:'bedgrp.blk.docdis'},{TXT:false},'doxpDialog')"
@change="defaultFunction('betp.folwupopt')"
>
...
</c-button>
......
......@@ -29,7 +29,7 @@
v-model="model.bedgrp.srm.djuusr"
maxlength="80"
placeholder="请输入单据出具人"
:disabled="model.bedgrp.srm.djutyp==='D'"
:disabled="model.bedgrp.srm.djutyp=='D'||model.bedgrp.srm.djutyp==''"
></c-input>
</c-form-item>
</c-col>
......@@ -46,7 +46,7 @@
v-model="model.bedgrp.srm.djudat"
style="width: 100%"
placeholder="请选择单据出具日期"
:disabled="model.bedgrp.srm.djutyp==='D'"
:disabled="model.bedgrp.srm.djutyp=='D'||model.bedgrp.srm.djutyp==''"
></c-date-picker>
</el-form-item>
</c-col>
......@@ -58,7 +58,7 @@
v-model="model.bedgrp.srm.djuref"
maxlength="40"
placeholder="请输入货权单据编号"
:disabled="model.bedgrp.srm.djutyp==='D'"
:disabled="model.bedgrp.srm.djutyp=='D'||model.bedgrp.srm.djutyp==''"
></c-input>
</c-form-item>
</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 @@
<c-fullbox>
<c-input
v-model="model.ledgrp.rec.ownref"
maxlength="16"
maxlength="8"
placeholder="Please input Reference"
style="width: 95%"
:disabled="true"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 0; padding: 0 12px"
style="margin-left:10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
......@@ -32,15 +31,6 @@
>i</span
>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="true"
@click="onLetpButgetref"
>
Get
</c-button>
</template>
</c-fullbox>
</el-form-item>
......@@ -58,6 +48,7 @@
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item
......@@ -93,8 +84,12 @@
style="margin: 0 0"
size="small"
type="primary"
:disabled="true"
@click="onLetpButgetref"
:disabled="
!model.ltdgrp.rec.ownref
? false
: true
"
@click="onLttpButgetref"
>
Get
</c-button>
......@@ -198,7 +193,8 @@
<c-checkbox
v-model="model.lttp.aamp.aammod.addamtflg"
style="margin-left: 10px"
disabled
:disabled="model.ltdgrp.cbs.max2.amt==''"
@change="openAddDetails"
>Add. Amount</c-checkbox
>
</c-col>
......@@ -845,6 +841,41 @@ export default {
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 () {},
};
......
......@@ -30,6 +30,10 @@
<el-tab-pane label="Overview" name="ovwp">
<m-ovwp :model="model" :codes="codes" />
</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 -->
<el-tab-pane label="Details" name="detp">
<c-content>
......@@ -152,7 +156,8 @@ import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan";
import Doxp from '~/views/Public/Doxp'
import Doxp from '~/views/Public/Doxp';
import Aamp from "./Aamp"
export default {
name: "Lttopn",
......@@ -170,6 +175,7 @@ export default {
"m-detp": Detp,
'm-doxp': Doxp,
'm-dogp': Dogp,
"m-aamp" : Aamp,
},
provide() {
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