Commit 1324c63b by huangxin

botset,botdav处理bug

parent 2291a1e1
......@@ -4,24 +4,34 @@ import Utils from "~/utils"
* Botdav Check规则
*/
let checkObj = {
"liaall.misamt" :null,
"bodgrp.rec.matpertyp" :null,
"botp.recget.sdamod.dadsnd" :null,
"bodgrp.rec.doctypcod" :null,
"cnybop.cnylib.doccurdate" :null,
"bodgrp.dre.adrelc" :null,
"bodgrp.srm.djuusr" :null,
"cnybop.outflg" :null,
"cnybop.cnylib.sbankorgcode" :null,
"setmod.dspflg" :null,
"cnybop.cnylib.stermtype" :null,
"bodgrp.srm.djutyp" :null,
"bodgrp.col.pts.adrblk" :null,
"bodgrp.blk.dftins" :null,
"cnybop.cnylib.currencycode" :null,
"cnybop.cnyflg" :null,
"bodgrp.blk.delins" :null,
"cnybop.cnylib.dcreditenddate" :null,
"bodgrp.srm.djuref" :null,
"bodgrp.rec.stacty" :null,
"bodgrp.drr.adrelc" :null,
"bodgrp.rec.matpercnt" :null,
"bodgrp.dre.namelc" :null,
"cnybop.cnylib.famt" :null,
"cnybop.saddwordlib" :null,
"cnybop.cnylib.stransattr" :null,
"bodgrp.dre.pts.adrblk" :null,
"cnybop.sforeignorgname" :null,
"bodgrp.rec.invtyp" :null,
"bodgrp.drr.pts.extkey" :null,
"bodgrp.blk.setinsbo" :null,
......@@ -33,25 +43,33 @@ let checkObj = {
"bodgrp.cbs.max.amt" :null,
"cnybop.traflg" :null,
"botp.colp.ptsget.sdamod.dadsnd" :null,
"cnybop.sbankname" :null,
"bodgrp.drr.pts.ref" :null,
"bodgrp.col.adrelc" :null,
"bodgrp.rec.shpdat" :null,
"cnybop.cnylib.stranstype" :null,
"bodgrp.rec.ownref" :null,
"botp.drrp.ptsget.sdamod.dadsnd" :null,
"bodgrp.col.pts.extkey" :null,
"cnybop.cnylib.sbanktrano" :null,
"botp.usr.extkey" :null,
"cnybop.cnylib.sforbankswiftbic" :null,
"cnybop.cnylib.denddate" :null,
"bodgrp.rec.dircolflg" :null,
"cnybop.sorgname" :null,
"mtabut.coninf.conexedat" :null,
"bodgrp.col.namelc" :null,
"cnybop.libflg" :null,
"botp.drep.ptsget.sdamod.dadsnd" :null,
"cnybop.cnylib.sorgcode" :null,
"bodgrp.blk.colins" :null,
"cnybop.fexchangeamt" :null,
"setmod.docamt" :null,
"bodgrp.drr.namelc" :null,
"bodgrp.blk.othins" :null,
"bodgrp.dre.pts.extkey" :null,
"cnybop.cnylib.sforeigncountrycode" :null,
"cnybop.vouflg" :null,
// "bodgrp.cbs.max.cur" :null,
}
for (const key in checkObj) {
......
......@@ -79,5 +79,6 @@ export default {
"mtabut.coninf.conexedat" :Utils.defaultFunction,
"cnybop.outflg" :Utils.defaultFunction,
"bodgrp.rec.docsta" :Utils.defaultFunction,
"bopmod.outchargeamt" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -250,7 +250,7 @@
></c-input>
</el-form-item>
</c-col>
<c-col v-if="model.trnmod.swiadd.newmatpertyp!='M'" :span="1" style="margin-left:-10px">
<c-col v-if=" (model.trnmod.swiadd.newmatpertyp=='D')||(model.oldbodgrp.rec.matpertyp==''&&model.trnmod.swiadd.newmatpertyp=='')||(model.oldbodgrp.rec.matpertyp=='D' &&model.trnmod.swiadd.newmatpertyp=='')" :span="1" style="margin-left:-10px">
<el-form-item label="Days"> </el-form-item>
</c-col>
......
<template>
<div class="eibs-tab">
<!--===============左 =================== -->
<el-col :span="11">
<c-col :span="24">
<el-form-item label="业务主键" prop="cnybop.cnylib.spk">
<c-input
disabled
v-model="model.cnybop.cnylib.spk"
maxlength="20"
placeholder="请输入业务主键"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="银行机构代码" prop="cnybop.cnylib.sbankorgcode">
<c-input
disabled
v-model="model.cnybop.cnylib.sbankorgcode"
maxlength="12"
placeholder="请输入银行机构代码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务属性" prop="cnybop.cnylib.stransattr">
<c-select
v-model="model.cnybop.cnylib.stransattr"
style="width: 100%"
placeholder="请选择业务属性"
:code="codes.stransattr"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="境外对手行代码"
prop="cnybop.cnylib.sforbankswiftbic"
>
<c-input
v-model="model.cnybop.cnylib.sforbankswiftbic"
maxlength="11"
placeholder="请输入境外对手行代码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="境内企业机构代码" prop="cnybop.cnylib.sorgcode">
<c-input
v-model="model.cnybop.cnylib.sorgcode"
maxlength="18"
placeholder="请输入境内企业机构代码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="境外企业国别地区代码"
prop="cnybop.cnylib.sforeigncountrycode"
>
<c-fullbox>
<c-input
v-model="model.cnybop.cnylib.sforeigncountrycode"
maxlength="3"
placeholder="请输入境外企业国别地区代码"
@keyup.enter.native="eventFunction('cnybop.cnylib.sforeigncountrycode')"
></c-input>
<template slot="footer">
<!-- @click="showGridPromptDialog('cnybop.libcty.selbut1',null,null,{TXT:'cnybop.cnylib.sforeigncountrycode'},{TXT:false},'doxpDialog')" -->
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onLibctySelbut1"
>
?
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务到期日" prop="cnybop.cnylib.denddate">
<c-date-picker
type="date"
v-model="model.cnybop.cnylib.denddate"
style="width: 100%"
placeholder="请选择业务到期日"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="币种" prop="cnybop.cnylib.currencycode">
<c-select
v-model="model.cnybop.cnylib.currencycode"
style="width: 100%"
placeholder="请选择币种"
:code="codes.currencycode"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="期限条件" prop="cnybop.cnylib.stermtype">
<c-select
v-model="model.cnybop.cnylib.stermtype"
style="width: 100%"
placeholder="请选择期限条件"
:code="codes.stermtype"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="承兑日期" prop="cnybop.cnylib.dexchangedate">
<c-date-picker
type="date"
v-model="model.cnybop.cnylib.dexchangedate"
style="width: 100%"
placeholder="请选择承兑日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="承兑到期日" prop="cnybop.cnylib.dexchangeenddate">
<c-date-picker
type="date"
v-model="model.cnybop.cnylib.dexchangeenddate"
style="width: 100%"
placeholder="请选择承兑到期日"
></c-date-picker>
</el-form-item>
</c-col>
</el-col>
<!-- ===============右 ===========================-->
<el-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="银行业务编号" prop="cnybop.cnylib.sbanktrano">
<c-input
disabled
v-model="model.cnybop.cnylib.sbanktrano"
maxlength="22"
placeholder="请输入银行业务编号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="银行机构名称" prop="cnybop.sbankname">
<c-input
disabled
v-model="model.cnybop.sbankname"
maxlength="80"
placeholder="请输入银行机构名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务类型" prop="cnybop.cnylib.stranstype">
<c-select
v-model="model.cnybop.cnylib.stranstype"
style="width: 100%"
placeholder="请选择业务类型"
:code="codes.stranstype"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="境内企业名称" prop="cnybop.sorgname">
<c-input
v-model="model.cnybop.sorgname"
maxlength="80"
placeholder="请输入境内企业名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="境外企业名称" prop="cnybop.sforeignorgname">
<c-input
v-model="model.cnybop.sforeignorgname"
maxlength="80"
placeholder="请输入境外企业名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务发生日期" prop="cnybop.cnylib.doccurdate">
<c-date-picker
type="date"
v-model="model.cnybop.cnylib.doccurdate"
style="width: 100%"
placeholder="请选择业务发生日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="信用证到期日" prop="cnybop.cnylib.dcreditenddate">
<c-date-picker
type="date"
v-model="model.cnybop.cnylib.dcreditenddate"
style="width: 100%"
placeholder="请选择信用证到期日"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="金额" prop="cnybop.cnylib.famt">
<c-input
v-model="model.cnybop.cnylib.famt"
placeholder="请输入金额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="承兑金额" prop="cnybop.fexchangeamt">
<c-input
v-model="model.cnybop.fexchangeamt"
maxlength="20"
placeholder="请输入承兑金额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易附言" prop="cnybop.saddwordlib">
<c-input
v-model="model.cnybop.saddwordlib"
maxlength="80"
placeholder="请输入交易附言"
></c-input>
</el-form-item>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Betsnd/Event'
export default {
inject: ['root'],
props: ['model', 'codes'],
mixins: [commonProcess],
data() {
return {}
},
methods: { ...Event },
created: function () {},
}
</script>
<style></style>
......@@ -12,7 +12,7 @@
<c-col :span="1">
</c-col>
<c-col :span="3" style="text-align: right">
<c-button style="margin:0 0" size="small" type="primary" :disabled="this.flag" @click="onDitpButgetref">
<c-button style="margin:0 0" size="small" type="primary" :disabled="this.flag" @click="onBotpButgetref">
获取
</c-button>
</c-col>
......
......@@ -124,7 +124,7 @@
import Engp from "~/views/Public/Engp"
import Glepan from "~/views/Public/Glepan"
import Doctre from "~/views/Public/Doctre"
import Libp from '../Betsnd/Libp'
import Libp from './Libp'
export default {
......
......@@ -306,11 +306,11 @@ export default {
},
},
methods:{
async change() {
if(this.model.bopmod.szflg=="1"){
this.model.bopmod.dbagrp.bas.outchargeamt=this.model.bopmod.outchargeamt
}
}
// async change() {
// if(this.model.bopmod.szflg=="1"){
// this.model.bopmod.dbagrp.bas.outchargeamt=this.model.bopmod.outchargeamt
// }
// }
},
created:function(){
......
......@@ -323,13 +323,13 @@
label-width="5px"
prop="setmod.redamt"
>
<c-input
<c-input-currency
:disabled="model.bodgrp.rec.focflg == 'X'"
v-model="model.setmod.redamt"
style="text-align: left; width: 100%"
placeholder="请输入Reduction Amt"
@keyup.enter.native="showGridPromptDialog('setmod.redamt')"
></c-input>
@keyup.enter.native="defaultFunction('setmod.redamt', model.setmod.redamt)"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -364,13 +364,13 @@
label-width="5px"
prop="setmod.docamt"
>
<c-input
<c-input-currency
v-model="model.setmod.docamt"
style="text-align: left; width: 100%"
placeholder="请输入Settle Amt."
@change="change1"
@keyup.enter.native="showGridPromptDialog('setmod.docamt')"
></c-input>
@keyup.enter.native="defaultFunction('setmod.docamt', model.setmod.docamt)"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
......@@ -482,37 +482,36 @@ export default {
}
},
async multipleSelect(selection) {
if (selection.length > 1) {
this.$notify({
title: "error",
message: "You cannot select more than one tenor",
type: "error",
});
} else {
let selIds;
if (selection.length === 0) {
this.$notify({
title: "error",
message: "Please select at least one tenor",
type: "error",
});
selIds = [];
this.model.setmod.docamt = "0.000";
this.isDisabled = false;
} else {
selIds = [selection[0] + 1];
this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
this.isDisabled = true;
}
let params = { selDst: "liaall.tenstm", selIds };
const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}
},
if (selection.length > 1) {
this.$notify({
title: "error",
message: "You cannot select more than one tenor",
type: "error",
});
} else {
let chkIds;
if (selection.length === 0) {
chkIds = [];
this.$nextTick(async () => {
this.model.setmod.docamt = "0.000";
})
this.model.liaall.tensetstm.rows = [];
} else {
chkIds = [selection[0] + 1];
}
//
console.log(this.model.liaall.tensetstm);
let params = { chkDst: "liaall.tenstm", chkIds };
console.log(params);
const rtnmsg = await this.executeRule("liaall.tenstm", params);
console.log(rtnmsg);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}
},
},
created: function () {},
......
......@@ -94,11 +94,12 @@
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bopmod.outchargeamt">
<c-input
<c-input-currency
v-model="model.bopmod.outchargeamt"
placeholder="请输入国外银行扣费(涉外收入申报专用)"
:disabled="model.bopmod.szflg!='1' || model.lendoc.actflg!='X'"
></c-input>
@keyup.enter.native="defaultFunction('bopmod.outchargeamt', model.bopmod.outchargeamt)"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
......
......@@ -118,6 +118,9 @@
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData"
@select-ety="selectMsg">
</c-grid-ety-prompt-dialog>
</div>
</c-page>
</template>
......
......@@ -112,6 +112,7 @@ export default {
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
}
},
......
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