Commit 5f6dfee2 by WH

betdcr 前端代码修改

parent ef566c49
...@@ -19,42 +19,40 @@ export default { ...@@ -19,42 +19,40 @@ export default {
}, },
buildCommonData (model, trnName) { buildCommonData (model, trnName) {
let ptsptaList = []; let ptsptaList = [];
if (model.gidgrp.apl.pts.extkey) { if (model.bedgrp.prb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.apl)); ptsptaList.push(this.buildPtspta(model.bedgrp.prb));
} }
if (model.gidgrp.adv.pts.extkey) { if (model.bedgrp.iss.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.adv)); ptsptaList.push(this.buildPtspta(model.bedgrp.iss));
} }
if (model.gidgrp.ben.pts.extkey) { if (model.bedgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.ben)); ptsptaList.push(this.buildPtspta(model.bedgrp.apl));
}
if (model.bedgrp.oth.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bedgrp.oth));
} }
let dataObj = { let dataObj = {
rec: { rec: {
objtyp: 'LID', objtyp: 'BED',
ownref: model.brdgrp.rec.ownref, ownref: model.bedgrp.rec.ownref,
opndat: model.brdgrp.rec.opndat, predat: model.bedgrp.rec.predat,
expdat: model.brdgrp.rec.expdat, rcvdat: model.bedgrp.rec.rcvdat,
branchInr: model.brdgrp.rec.branchInr, doctypcod: model.bedgrp.rec.doctypcod,
hndtyp: model.brdgrp.rec.hndtyp, docsta: model.bedgrp.rec.docsta,
gartyp: model.brdgrp.rec.gartyp, payrol: model.bedgrp.rec.payrol,
fingua: model.brdgrp.rec.fingua, matdat: model.bedgrp.rec.matdat,
// segtyp: model.brdgrp.ghd.segtyp, nam: model.bedgrp.rec.nam,
fromflg: model.brdgrp.rec.fromflg, docprbrol: model.bedgrp.rec.docprbrol,
othersno: model.brdgrp.rec.othersno, advdocflg: model.bedgrp.rec.advdocflg,
sndto: model.brdgrp.rec.sndto,
// swiftflg: model.gitp.swiftflg,
giduil: model.brdgrp.rec.giduil,
purpos: model.brdgrp.rec.purpos,
revflg: model.brdgrp.rec.revflg,
cnfsta: model.brdgrp.rec.cnfsta,
}, },
cbsMap: { cbsMap: {
MAX: model.brdgrp.cbs.max, MAX: model.bedgrp.cbs.max,
OPN1: model.brdgrp.cbs.opn1, OPN1: model.bedgrp.cbs.opn1,
MAC: model.brdgrp.cbs.mac, // MAC: model.bedgrp.cbs.mac,
MAC2: model.brdgrp.cbs.mac2, // MAC2: model.bedgrp.cbs.mac2,
OPC2: model.brdgrp.cbs.opc2, // OPC2: model.bedgrp.cbs.opc2,
CNF: model.brdgrp.cbs.cnf, // CNF: model.bedgrp.cbs.cnf,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
...@@ -117,9 +115,9 @@ export default { ...@@ -117,9 +115,9 @@ export default {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
objtyp: 'LID', objtyp: 'BED',
objinr: model.brdgrp.rec.objinr, objinr: model.bedgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref, ownref: model.bedgrp.rec.ownref,
}, },
}; };
return params return params
...@@ -128,10 +126,9 @@ export default { ...@@ -128,10 +126,9 @@ export default {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
objtyp: 'LID', objtyp: 'BED',
objinr: model.brdgrp.rec.objinr, objinr: model.bedgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref, ownref: model.bedgrp.rec.ownref,
// swiftflg: model.gitp.swiftflg,
}, },
}; };
return params return params
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
} }
const res = await Api.post('/service/brtdcr/init', { const res = await Api.post('/service/betdcr/init', {
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
// brdinr: this.$route.query.inr, // brdinr: this.$route.query.inr,
...@@ -103,18 +103,18 @@ export default { ...@@ -103,18 +103,18 @@ export default {
// 业务信息=》基本信息=》保函编号-----获取保函编号 // 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() { async queryOwnref() {
let params = { let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr, ptainr: this.model.bedgrp.apl.pts.ptainr,
businessType: 'LG', businessType: 'LG',
tbl: 'LG', tbl: 'LG',
}; };
const loading = this.loading(); const loading = this.loading();
let res = await Api.post('/service/brtdcr/getOwnRef', params); let res = await Api.post('/service/betdcr/getOwnRef', params);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
loading.close(); loading.close();
this.model.gidgrp.rec.ownref = res.data; this.model.gidgrp.rec.ownref = res.data;
} }
}, },
// 获取brtdcr弹框表格数据 // 获取betdcr弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) { async queryGridEtyPromptDialogData(type, ptytyp) {
let params = { let params = {
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
this.root.promptData.type = type; this.root.promptData.type = type;
} }
}, },
// 选中brtdcr弹框表格的行数据 // 选中betdcr弹框表格的行数据
async selectGridEtyPromptData(row) { async selectGridEtyPromptData(row) {
let params = { let params = {
...row, ...row,
...@@ -142,28 +142,6 @@ export default { ...@@ -142,28 +142,6 @@ export default {
purposChange(key, value) { purposChange(key, value) {
this.handleChangeForm(key, value); this.handleChangeForm(key, value);
}, },
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
gidgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/brtdcr/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型 // 支出目的修改--联动保函开立类型
handleChangePurpos() { handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName); this.queryHndtypCodeTableList(this.root.trnName);
......
...@@ -5,9 +5,11 @@ export default class Betcan { ...@@ -5,9 +5,11 @@ export default class Betcan {
this.data = { this.data = {
betp: { betp: {
adaflg: '', adaflg: '',
oth:{
pts: new Pts().data, docgrdm:{
} docgrd:'',
},
}, },
advdisflg: '', advdisflg: '',
ledgrp: { ledgrp: {
...@@ -20,21 +22,6 @@ export default class Betcan { ...@@ -20,21 +22,6 @@ export default class Betcan {
amt: '' amt: ''
} }
}, },
prb: {
pts: new Pts().data,
},
apl:{
pts: new Pts().data,
},
ben:{
pts: new Pts().data,
},
oth:{
pts: new Pts().data,
},
acb:{
pts: new Pts().data,
},
}, },
rejpenins: '', rejpenins: '',
advrefflg: '', advrefflg: '',
...@@ -72,18 +59,17 @@ export default class Betcan { ...@@ -72,18 +59,17 @@ export default class Betcan {
prb: { prb: {
pts: new Pts().data, pts: new Pts().data,
}, },
apl:{ iss: {
pts: new Pts().data, pts: new Pts().data,
}, },
ben:{ apl:{
pts: new Pts().data, pts: new Pts().data,
}, },
oth:{ oth:{
pts: new Pts().data, pts: new Pts().data,
}, },
acb:{
pts: new Pts().data,
},
}, },
......
...@@ -227,7 +227,8 @@ ...@@ -227,7 +227,8 @@
</template> </template>
<script> <script>
import event from "../event"; import event from "../event";
import Ptsmsg from "./Ptsmsg"; // import Ptsmsg from "./Ptsmsg";
import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
export default { export default {
......
...@@ -62,8 +62,6 @@ ...@@ -62,8 +62,6 @@
<script> <script>
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Betdcr from "../model"; import Betdcr from "../model";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import formRules from '../model/check' import formRules from '../model/check'
import Ovwp from "./Ovwp"; import Ovwp from "./Ovwp";
import Limitbody from "~/components/business/limitbody/views"; import Limitbody from "~/components/business/limitbody/views";
...@@ -106,6 +104,48 @@ export default { ...@@ -106,6 +104,48 @@ export default {
codes: { codes: {
...CodeTable, ...CodeTable,
}, },
promptData: {
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: []
},
}; };
}, },
methods: {}, methods: {},
......
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