Commit ea828f14 by xionglin

bug修改

parent bc11304b
......@@ -6850,14 +6850,16 @@ const CodeTable = {
{ label: "信用", value: "C" },
],
setfelRol: [
{ label: "OWN Ourselves", value: "OWN" },
{ label: "ISS 开证行", value: "ISS" },
{ label: "APL 申请人", value: "APL" },
{ label: "ADT 通知行转账", value: "ADT" },
{ label: "APL 申请人", value: "APL" },
{ label: "AVB 可用银行", value: "AVB" },
{ label: "AVT Avail. w. Bank Tr.", value: "AVT" },
{ label: "BE1 第一受益人", value: "BE1" },
{ label: "BE2 第二受益人", value: "BE2" },
{ label: "BEN 受益人", value: "BEN" },
{ label: "CON 保兑行", value: "CON" },
{ label: "DRW 付款人(DRW)", value: "DRW" },
{ label: "ISS 开证行", value: "ISS" },
],
setfelRol1: [
{ label: "A2B 第二通知行", value: "A2B" },
......
......@@ -164,6 +164,8 @@ export default {
}
// let result = await this.checkAll();
console.log(">>>>>>>>>")
console.log(result)
if (result.respCode == SUCCESS) {
const fieldErrors = result.fieldErrors;
this.updateModel(result.data);
......
......@@ -75,9 +75,34 @@ export default {
}
},
async handleReset(formName) {
this.$refs[formName].resetFields();
this.model.infcon.seaamtfr = '0.00';
this.model.infcon.seaamtto = '0.00';
this.model.infcon.seaownref=''
let today=new Date();
let date={
year:today.getFullYear(),
month:today.getMonth()+1,
day:today.getDate()
}
if(date.month<10)
date.month=`0${date.month}`
if(date.day<10)
date.day=`0${date.day}`
let nowDate=date.year+'-'+date.month+'-'+date.day;
console.log(nowDate)
if( this.model.infcon.opndatto != nowDate){
this.model.infcon.opndatto=''
}
if(this.model.infcon.opndatfrom != nowDate){
this.model.infcon.opndatfrom=''
}
this.model.infcon.nam=''
this.model.infcon.searef=''
this.model.infcon.pty.extkey=''
this.model.infcon.seapty=''
this.model.infcon.searol=''
this.model.infcon.seasta=''
this.model.infcon.seacur=''
this.model.infcon.seaamtfr='0.00'
this.model.infcon.seaamtto='0.00'
},
async handleSearch() {
this.stmData.data = [];
......@@ -91,6 +116,15 @@ export default {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let seaamtfr = this.model.infcon.seaamtfr;
let seaamtto = this.model.infcon.seaamtto;
let seacur = this.model.infcon.seacur;
if(seaamtfr !='0.00' || seaamtto !='0.00'){
if(seacur=='' || !seacur){
this.$notify.error({ title: '错误', message: '不允许在没有有效货币的情况下搜索金额' });
return;
}
}
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......
......@@ -21,30 +21,45 @@ export default {
}
},*/
// async handleReset() {
// this.model.infcon.seaownref = "";
// this.model.infcon.searef = "";
// this.model.infcon.pty.extkey = "";
// this.model.infcon.seapty = "";
// this.model.infcon.opndatfrom = "";
// this.model.infcon.opndatto = "";
// this.model.infcon.seaamtfr = "";
// this.model.infcon.seaamtto = "";
// this.model.infcon.seasta = "";
// this.model.infcon.usr.extkey = "";
// this.model.infcon.nam = "";
// this.model.infcon.hndtyp = "";
// this.model.infcon.pty.nam = "";
// this.model.infcon.searol = "";
// this.model.infcon.seacur = "";
// this.stmData.data = "";
// },
async handleReset() {
this.model.infcon.seaownref = "";
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.seapty = "";
let today=new Date();
let date={
year:today.getFullYear(),
month:today.getMonth()+1,
day:today.getDate()
}
if(date.month<10)
date.month=`0${date.month}`
if(date.day<10)
date.day=`0${date.day}`
let nowDate=date.year+'-'+date.month+'-'+date.day;
if( this.model.infcon.opndatfrom != nowDate){
this.model.infcon.opndatfrom=''
}
if(this.model.infcon.opndatto != nowDate){
this.model.infcon.opndatto =''
}
this.model.infcon.seaamtfr = "0.00";
this.model.infcon.seaamtto = "0.00";
this.model.infcon.seasta = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.nam = "";
this.model.infcon.hndtyp = "";
this.model.infcon.pty.nam = "";
this.model.infcon.searol = "";
this.model.infcon.seacur = "";
this.stmData.data = "";
async handleReset(formName) {
this.$refs[formName].resetFields();
},
// async handleReset(formName) {
// this.$refs[formName].resetFields();
// },
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
......
......@@ -171,20 +171,31 @@
<el-table-column label="处理方式" prop="dsp" width="110px">
</el-table-column>
<el-table-column label="付款人摘要" prop="txtdbt" width="auto">
<template slot-scope="scope">
<c-input
v-model="scope.row.txtdbt"
></c-input>
</template>
</el-table-column>
<el-table-column label="收款人摘要" prop="txtpay" width="auto">
<template slot-scope="scope">
<c-input
v-model="scope.row.txtpay"
style="border:none"
></c-input>
</template>
</el-table-column>
<el-table-column label="币种" prop="cur" width="110px">
<template slot-scope="scope">
<c-select v-model="scope.row.cur">
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
<c-select v-model="scope.row.cur">
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="金额" prop="amt" width="110px">
......@@ -193,10 +204,10 @@
label-width="0"
:prop="'setmod.setfog.setfol.' + scope.$index + '.amt'"
>
<!-- <c-input-currency
<c-input-currency
v-model="scope.row.amt"
placeholder="0.00"
></c-input-currency> -->
></c-input-currency>
</el-form-item>
</template>
</el-table-column>
......
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