Commit 0ff18868 by liaoxing

bptopn功能测试 解决缺陷

parent 81c1be34
......@@ -15,9 +15,10 @@ export default {
}
},
async onFinmodCal(){
let rtnmsg = await this.executeRule("finmod.cal")
let rtnmsg = await this.executeRule("bptmod.finmod.cal")
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
}
......@@ -50,7 +51,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInvpDet(){
async onBu3pDet(){
let rtnmsg = await this.executeRule("invp.det")
if(rtnmsg.respCode == SUCCESS)
{
......@@ -74,7 +75,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBptcodSelbut1(){
async onBu3pDet(){
let rtnmsg = await this.executeRule("bptcod.selbut1")
if(rtnmsg.respCode == SUCCESS)
{
......@@ -86,7 +87,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmisamt(){
async onBu3pDet(){
let rtnmsg = await this.executeRule("liaall.butmisamt")
if(rtnmsg.respCode == SUCCESS)
{
......@@ -98,7 +99,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmissig(){
async onBu3pDet(){
let rtnmsg = await this.executeRule("liaall.butmissig")
if(rtnmsg.respCode == SUCCESS)
{
......@@ -110,7 +111,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaccvAdd(){
async onBu3pDet(){
let rtnmsg = await this.executeRule("liaccv.add")
if(rtnmsg.respCode == SUCCESS)
{
......
......@@ -264,7 +264,7 @@
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bdtset/Event"
import Event from "~/model/Bptcan/Event"
export default {
inject: ['root'],
......
......@@ -11,7 +11,7 @@
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000016 -->
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
......@@ -34,7 +34,7 @@
<m-engp :model="model" :codes="codes" />
</el-collapse-item> -->
<el-collapse-item title="结算" name="setpan">
<!-- 结算 -费用及账务-->
<!-- 结算 -->
<m-setpan :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="会计分录" name="glepan">
......@@ -155,7 +155,6 @@ export default {
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
activeNames: ["setpan"],
tabVal: "ovwp",
trnName: "bptcan",
model: new Bptcan().data,
......@@ -165,11 +164,13 @@ export default {
rules: null,
codes: {
...CodeTable,
}
},
activeNames: ["setpan"],
}
},
methods:{
tabClick(){
myTabClick(tab){
this.tabClick(tab)
}
},
created:async function() {
......
......@@ -78,7 +78,7 @@
placeholder=""
disabled
></c-input>
<template slot="footer"> </template>
<!-- <template slot="footer"> </template> -->
</el-form-item>
</c-col>
</c-col>
......@@ -325,6 +325,7 @@
v-model="model.bpdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择融资币种"
@keyup.enter.native="maxCurEvent"
>
<el-option
v-for="item in codes.curtxt1"
......@@ -338,7 +339,7 @@
</c-col>
<c-col :span="12">
<el-form-item label="融资金额" prop="bpdgrp.cbs.max.amt">
<el-form-item label="" prop="bpdgrp.cbs.max.amt" label-width="5px">
<c-input
v-model="model.bpdgrp.cbs.max.amt"
placeholder="请输入融资金额"
......@@ -854,7 +855,7 @@
:disabled="model.bptmod.finmod.ovdinttyp!='1'"
v-model="model.bptmod.finmod.ovdintrat"
placeholder="请输入罚息比率"
></c-input>
>%</c-input>
</el-form-item>
</c-col>
</c-row>
......@@ -993,6 +994,7 @@ export default {
zmqflg: null,
};
},
watch: {},
methods: {
...Event,
onSeainf(data) {
......
......@@ -214,8 +214,19 @@
</c-col>
<c-col :span="4">
<c-checkbox v-model="model.mtabut.clsflg" maxlength="17" disabled>抹账</c-checkbox>
</c-col>
<c-checkbox
v-model="model.clsflg"
:disabled="checkDate(model.bpdgrp.rec.opndat)"
@change="change(model.clsflg)">抹账</c-checkbox>
</c-col>
<!-- <c-col :span="4">
<c-checkbox
v-model="model.clsflg"
:disabled="checkDate(model.trdgrp.rec.stttendat)"
@change="change(model.clsflg)"
>{{ $t("抹账") }}</c-checkbox
>
</c-col> -->
<c-col :span="24">
......@@ -417,11 +428,11 @@
</c-form-item>
</c-col>
<c-col :span="4">
<c-form-item prop="bptmod.finmodcal" label-width="5px">
<c-form-item prop="bptmod.finmod.cal" label-width="5px">
<c-button
size="small"
type="primary"
@click="onSeainf"
@click="onFinmodCal"
>
计算
</c-button>
......@@ -456,8 +467,10 @@
<el-form-item label="还款方式" prop="bptmod.finmod.reptyp">
<c-select
v-model="model.bptmod.finmod.reptyp"
:disabled="model.clsflg == 'X'"
style="width: 100%"
placeholder="还款方式"
@change="selChange(model.bptmod.finmod.reptyp)"
placeholder="请选择还款方式"
>
<el-option
v-for="item in codes.reptyp"
......@@ -566,7 +579,7 @@
<!-- SG000118 : 执行利率 -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="19">
<c-col :span="20">
<c-form-item label="执行利率" prop="bpdgrp.rec.tolrat">
<c-input
v-model="model.bpdgrp.rec.tolrat"
......@@ -575,8 +588,13 @@
></c-input>
</c-form-item>
</c-col>
<c-col :span="5">
<c-checkbox v-model="model.mtabut.clsflg" maxlength="17" disabled>已结算合约</c-checkbox>
<c-col :span="4">
<!-- <c-checkbox v-model="model.mtabut.clsflg" maxlength="17" disabled>闭卷</c-checkbox> -->
<c-checkbox v-model="model.mtabut.clsflg"
true-label="C" false-label="O"
:disabled="flag1">{{
$t("闭卷")
}}</c-checkbox>
</c-col>
</c-col>
<!-- </c-col> -->
......@@ -614,13 +632,48 @@ export default {
codes: {
...CodeTable,
},
flag1:true,
flag2:false
};
},
methods: {
// ...Event
...Event,
onSeainf(data) {
this.$emit("onSeainf", data);
},
checkDate(date) {
var d = new Date().getDate();
var m = new Date().getMonth();
var y = new Date().getFullYear();
var dd = new Date(this.model.bpdgrp.rec.opndat).getDate();
var mm = new Date(this.model.bpdgrp.rec.opndat).getMonth();
var yy = new Date(this.model.bpdgrp.rec.opndat).getFullYear();
if (d != dd || m != mm || y != yy) {
return true;
} else {
return false;
}
},
change(a){
this.executeRule("clsflg").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
if (a = 'X'){
this.model.bptmod.finmod.reptyp = "1"
if(this.flag1 == true){
this.flag1 = false
this.model.mtabut.clsflg = "C"
}
}
},
selChange(b){
if(b == '2'||this.flag2 == false){
this.model.mtabut.clsflg = 'O'
this.flag1 = true
}
},
},
created() {
// 初始化下拉框
......
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