Commit 41c22af6 by suwenhao

litopn接口联调;

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