Commit 41c22af6 by suwenhao

litopn接口联调;

parent 3f51dbee
......@@ -30,7 +30,7 @@ export default {
}
let dataObj = {
rec: {
objtyp: 'LID',
objtyp: 'GID',
ownref: model.lidgrp.rec.ownref,
opndat: model.lidgrp.rec.opndat,
expdat: model.lidgrp.rec.expdat,
......@@ -50,6 +50,9 @@ export default {
},
cbsMap: {
MAX: model.lidgrp.cbs.max,
OLDMAX: model.lidgrp.cbs.oldmax,
MAX2: model.lidgrp.cbs.max2,
NOM1: model.lidgrp.cbs.nom1,
OPN1: model.lidgrp.cbs.opn1,
MAC: model.lidgrp.cbs.mac,
MAC2: model.lidgrp.cbs.mac2,
......@@ -117,7 +120,7 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
objtyp: 'GID',
objinr: model.lidgrp.rec.objinr,
ownref: model.lidgrp.rec.ownref,
},
......@@ -128,7 +131,7 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
objtyp: 'GID',
objinr: model.lidgrp.rec.objinr,
ownref: model.lidgrp.rec.ownref,
// swiftflg: model.gitp.swiftflg,
......
......@@ -22,7 +22,7 @@ export default {
...doctre,
async init() {
const params = {
spt: this.toHandleRowData['row_' + this.trnName]
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
const res = await Api.post('/service/litopn/init', {
...params,
......@@ -94,7 +94,7 @@ export default {
return;
}
},
// 获取gitopn弹框表格数据
// 获取弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
......
......@@ -79,7 +79,6 @@ export default {
'trnmod.trndia.usr.extkey': null,
'lidgrp.blk.shpper': null,
'liaall.liaccv.cshpct': null,
label5: null,
'lidgrp.rec.spcrcbflg': null,
'lidgrp.cbs.max2.amt': null,
'lidgrp.cbs.max2.cur': null,
......@@ -728,14 +727,14 @@ export default {
{ max: 16, message: '长度不能超过16' },
],
'setmod.docamt': [
{ type: 'number', required: false, message: '必输项' },
{ max: 18, message: '整数位不能超过14位' },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: '小数位不能超过3位',
},
],
// 'setmod.docamt': [
// { type: 'number', required: false, message: '必输项' },
// { max: 18, message: '整数位不能超过14位' },
// {
// pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
// message: '小数位不能超过3位',
// },
// ],
'setmod.zmqacc': [
{ type: 'string', required: false, message: '必输项' },
......@@ -757,16 +756,6 @@ export default {
],
bcbdat: [{ type: 'string', required: false, message: '输入正确的日期' }],
'mtabut.coninf.oitinf.oit.inftxt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 60, message: '长度不能超过60' },
],
'mtabut.coninf.oitset.oit.inftxt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 60, message: '长度不能超过60' },
],
'mtabut.coninf.conexedat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
......
......@@ -54,22 +54,34 @@ export default class Litopn {
branchinr: '',
},
cbs: {
cnf: {
cur: '', // Confirmation Amount .gidgrp.cbs.cnf.cur
amt: '0.00', // Balance .gidgrp.cbs.cnf.amt
},
nom1: {
cur: '', // Nominal Amount .lidgrp.cbs.nom1.cur
amt: '0.00', // Nominal Amount .lidgrp.cbs.nom1.amt
},
max: {
cur: '', // Maximum Amount .lidgrp.cbs.max.cur
amt: '', // Maximum Amount .lidgrp.cbs.max.amt
amt: '0.00', // Maximum Amount .lidgrp.cbs.max.amt
},
max2: {
cur: '', // Additional Amount .lidgrp.cbs.max2.cur
amt: '', // Additional Amount .lidgrp.cbs.max2.amt
amt: '0.00', // Additional Amount .lidgrp.cbs.max2.amt
},
opn1: {
cur: '',
amt: '0.00',
},
opn2: {
cur: '', // Open Add. Amount .lidgrp.cbs.opn2.cur
amt: '', // Open Add. Amount .lidgrp.cbs.opn2.amt
amt: '0.00', // Open Add. Amount .lidgrp.cbs.opn2.amt
},
oldmax: {
cur: '',
amt: '0.00'
}
},
apl: {
pts: new Pts().data,
......
......@@ -195,9 +195,46 @@ export default {
codes: { ...CodeTable },
activeNames: ["engp"],
promptData: {
title: '',
columns: [],
data:[]
title: 'Select a Party',
columns: [
{
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch',
label: 'Branch Code'
},
{
prop: 'bchName',
label: 'Branch Name'
},
{
prop: 'adrName',
label: 'Address Name'
},
{
prop: 'adr1',
label: 'Address1'
},
{
prop: 'locCty',
label: 'City'
},
{
prop: 'locZip',
label: 'Zip'
},
{
prop: 'bicCode',
label: 'BIC'
}
],
data: []
},
promptData1: {
title: '',
......
......@@ -23,7 +23,7 @@
</el-table>
<el-pagination
layout="prev, pager, next, total, jumper"
:total="tableData.length"
:total="this.promptData.data.length"
:page-sizes="pageSizes"
:page-size="pageSize"
:current-page="currentPage"
......@@ -69,7 +69,7 @@ export default {
return this.promptData.columns
},
tableData() {
return this.promptData.data
return this.promptData.data.slice((this.currentPage - 1) * this.pageSize, this.currentPage * this.pageSize)
},
},
methods: {
......
......@@ -16,11 +16,11 @@ export default {
userId: window.sessionStorage.userId || 'ZL',
}
// 精简cfagit
if (params.cfagit.cfaflg !== '1') {
if (params.cfagit && params.cfagit.cfaflg !== '1') {
delete params.cfagit
}
// 精简cnybop
if (params.cnybop.vouflg !== '1') {
if (params.cnybop && params.cnybop.vouflg !== '1') {
delete params.cnybop.cnyvou
}
const res = await Api.post(`/service/${this.trnName}/save`, params);
......@@ -47,6 +47,7 @@ export default {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
loading.close()
if (rtnmsg.respCode === SUCCESS) {
let errorRules = rtnmsg.data;
let keysList = Object.keys(errorRules)
......@@ -62,10 +63,8 @@ export default {
});
}
resolve()
loading.close();
return
}
loading.close();
const tab = this.showBackendErrors(errorRules)
if (tab) {
// tab切换之后,需出发tab-click的事件
......
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