Commit 6181926e by WH

betrcl交易前端清理

parent 6a38b12f
...@@ -19,38 +19,37 @@ export default { ...@@ -19,38 +19,37 @@ export default {
}, },
buildCommonData (model, trnName) { buildCommonData (model, trnName) {
let ptsptaList = []; let ptsptaList = [];
if (model.brdgrp.apl.pts.extkey) { if (model.bedgrp.prb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.apl)); ptsptaList.push(this.buildPtspta(model.bedgrp.prb));
} }
if (model.brdgrp.ben.pts.extkey) { if (model.bedgrp.iss.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.ben)); ptsptaList.push(this.buildPtspta(model.bedgrp.iss));
}
if (model.bedgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bedgrp.apl));
} }
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,
fromflg: model.brdgrp.rec.fromflg, nam: model.bedgrp.rec.nam,
othersno: model.brdgrp.rec.othersno, docprbrol: model.bedgrp.rec.docprbrol,
sndto: model.brdgrp.rec.sndto, advdocflg: model.bedgrp.rec.advdocflg,
swiftflg: model.brtp.swiftflg,
brduil: model.brdgrp.rec.brduil,
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, OPN2: model.bedgrp.cbs.opn2,
CNF: model.brdgrp.cbs.cnf, // CNF: model.bedgrp.cbs.cnf,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
...@@ -113,8 +112,8 @@ export default { ...@@ -113,8 +112,8 @@ export default {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
objtyp: 'bed', objtyp: 'BED',
objinr: model.bedgrp.rec.objinr, objinr: model.bedgrp.rec.inr,
ownref: model.bedgrp.rec.ownref, ownref: model.bedgrp.rec.ownref,
}, },
}; };
...@@ -124,10 +123,9 @@ export default { ...@@ -124,10 +123,9 @@ export default {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
objtyp: 'bed', objtyp: 'BED',
objinr: model.bedgrp.rec.objinr, objinr: model.bedgrp.rec.inr,
ownref: model.bedgrp.rec.ownref, ownref: model.bedgrp.rec.ownref,
swiftflg: model.brtp.swiftflg,
}, },
}; };
return params return params
...@@ -140,4 +138,4 @@ export default { ...@@ -140,4 +138,4 @@ export default {
}; };
return params return params
} }
} }
\ No newline at end of file
...@@ -22,18 +22,25 @@ export default { ...@@ -22,18 +22,25 @@ export default {
...doctre, ...doctre,
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod: {
trn: JSON.parse(localStorage.getItem('review_'+this.trnName))
},
}
if ( typeof(this.$route.query.inr) == 'string'){
params.spt = null
params.trnmod.trn = null
} }
const res = await Api.post('/service/betrcl/init', { const res = await Api.post('/service/betdcr/init', {
...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
// brdinr: this.$route.query.inr,
brdgrp:{ brdgrp:{
rec:{ rec:{
inr:this.$route.query.inr inr: this.$route.query.inr
} }
} },
}); });
if (!res.data) { if (!res.data) {
return return
...@@ -93,7 +100,6 @@ export default { ...@@ -93,7 +100,6 @@ export default {
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName); let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest); this.processDoctre(doctreRequest);
break; break;
default: default:
return; return;
} }
...@@ -102,26 +108,13 @@ export default { ...@@ -102,26 +108,13 @@ export default {
queryFormData(key) { queryFormData(key) {
console.log(key); console.log(key);
}, },
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() { // 获取betdcr弹框表格数据
let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr,
businessType: 'LG',
tbl: 'LG',
};
const loading = this.loading();
let res = await Api.post('/service/betrcl/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取brtacp弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) { async queryGridEtyPromptDialogData(type, ptytyp) {
let params = { let params = {
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp, ptytyp: ptytyp,
extkey: this.model.gidgrp[type.toLowerCase()].pts.extkey, extkey: this.model.brdgrp[type.toLowerCase()].pts.extkey,
}; };
let res = await Api.post('/service/ptspta/list', params); let res = await Api.post('/service/ptspta/list', params);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
...@@ -130,7 +123,7 @@ export default { ...@@ -130,7 +123,7 @@ export default {
this.root.promptData.type = type; this.root.promptData.type = type;
} }
}, },
// 选中brtacp弹框表格的行数据 // 选中betdcr弹框表格的行数据
async selectGridEtyPromptData(row) { async selectGridEtyPromptData(row) {
let params = { let params = {
...row, ...row,
...@@ -144,28 +137,6 @@ export default { ...@@ -144,28 +137,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/betrcl/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);
......
import Pts from '~/components/business/commonModel/Pts'; import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js'; import Pub from '~/components/business/commonModel/index.js';
export default class Betrcl { export default class Betrcl {
constructor() { constructor() {
this.data = { this.data = {
brdgrp: { betp: {
adv: { adaflg: ''
pts: new Pts().data, },
}, ledgrp: {
prb: { rec: {
adrelc: '', ownref: ''
dbfadrblkcn: '', },
namelc: '', cbs: {
pts: new Pts().data, opn1: {
}, cur: '',
acb: { amt: ''
adrelc: '', }
dbfadrblkcn: '', }
namelc: '', },
pts: new Pts().data, aamset: {
}, utlamt: '',
apl: { utlamt2: ''
adrelc: '', },
dbfadrblkcn: '', rmbclm: {
namelc: '', valdat: '',
pts: new Pts().data, clmrmbflg: '',
}, rmbrol: '',
ben: { rmbrmb: {
adrelc: '', pts: new Pts().data,
dbfadrblkcn: '', },
namelc: '', acwacw: {
pts: new Pts().data, pts: new Pts().data,
}, },
blk: { bebbeb: {
chaded: '', pts: new Pts().data,
docdisflg: '', },
chaadd: '', },
docdis: '', bedgrp: {
}, rec: {
rec: { predat: '',
inr: '', rcvdat: '',
branchinr: '', doctypcod: '',
totcur: '', docsta: '',
ownref: '', ownref: '',
disdat: '', lescom: '',
totamt: '', matdat: '',
nam: '', nam: ''
docprbrol: '' },
}, cbs: {
cbs: { opn1: {
opn1: { cur: '',
cur: '' amt: ''
}, },
opn2: { opn2: {
cur: '' cur: '',
}, amt: ''
max: { },
cur: '', max: {
amt: '' cur: '',
}, amt: ''
max2: { }
amt: '' },
} prb: {
}, pts: new Pts().data,
matp: { },
mattxtlab: '' apl: {
} pts: new Pts().data,
}, },
betp: { iss: {
adaflg: '' pts: new Pts().data,
}, },
ledgrp: { },
rec: { payinstxt: '',
ownref: '' setmod: new Pub().data.Setmod,
}, mtabut: new Pub().data.Mtabut,
cbs: { trnmod: new Pub().data.Trnmod,
opn1: { liaall: new Pub().data.Liaall,
cur: '', liaccv: new Pub().data.Liaccv,
amt: '' docpan: new Pub().data.Docpan,
} };
} }
}, }
aamset: { \ No newline at end of file
utlamt: '',
utlamt2: ''
},
rmbclm: {
valdat: '',
clmrmbflg: '',
rmbrol: ''
},
bedgrp: {
rec: {
objinr: '',
predat: '',
rcvdat: '',
doctypcod: '',
docsta: '',
ownref: '',
lescom: '',
matdat: '',
nam: ''
},
cbs: {
opn1: {
cur: ''
},
opn2: {
cur: ''
},
max: {
cur: '',
amt: ''
}
}
},
payinstxt: '',
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
};
}
}
...@@ -4,33 +4,24 @@ ...@@ -4,33 +4,24 @@
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">
<el-collapse-item title="索汇信息" name="rclp"> <el-collapse-item title="索汇信息" name="rclp">
<c-content> <c-content>
<m-rclp :model="model" :codes="codes" /> <m-rclp :model="model" :codes="codes"/>
</c-content> </c-content>
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="索汇详情" name="remp" v-if="model.rmbclm.clmrmbflg != ''"> <el-collapse-item title="索汇详情" name="remp" v-if="model.rmbclm.clmrmbflg != ''">
<c-content> <c-content>
<m-remp :model="model" :codes="codes" /> <m-remp :model="model" :codes="codes"/>
</c-content> </c-content>
</el-collapse-item> </el-collapse-item>
<!-- <el-tab-pane
v-if="model.rmbclm.clmrmbflg"
label="索汇详情"
name="remp">
<m-remp :model="model" :codes="codes" />
</el-tab-pane> -->
</el-collapse> </el-collapse>
</div> </div>
</template> </template>
<script> <script>
import event from "../event";
import Rclp from "./Rclp" import Rclp from "./Rclp"
import Remp from "./Remp" import Remp from "./Remp"
import event from "../event";
export default { export default {
components: { components: {
...@@ -49,8 +40,10 @@ export default { ...@@ -49,8 +40,10 @@ export default {
}, },
methods: {}, methods: {},
created: created:
function () { }, function () {
},
}; };
</script> </script>
<style></style> <style>
</style>
\ No newline at end of file
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
v-model="model.rmbclm.rmbrol" v-model="model.rmbclm.rmbrol"
style="width: 100%" style="width: 100%"
placeholder="请选择偿付行" placeholder="请选择偿付行"
@change="selectOrCheckboxRule('rmbclm.rmbrol')"
> >
<el-option <el-option
v-for="item in codes.rolall" v-for="item in codes.rolall"
...@@ -32,8 +31,6 @@ ...@@ -32,8 +31,6 @@
:noRef="false" :noRef="false"
:isAdrblk="true" :isAdrblk="true"
:disabled="true" :disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
:disabledRef="rmbrolFlag" :disabledRef="rmbrolFlag"
:disabledExtkey="rmbrolFlag" :disabledExtkey="rmbrolFlag"
> >
...@@ -65,8 +62,6 @@ ...@@ -65,8 +62,6 @@
:noRef="false" :noRef="false"
:disabled="true" :disabled="true"
:isAdrblk="true" :isAdrblk="true"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -82,8 +77,6 @@ ...@@ -82,8 +77,6 @@
:noRef="false" :noRef="false"
:disabled="true" :disabled="true"
:isAdrblk="true" :isAdrblk="true"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -93,17 +86,14 @@ ...@@ -93,17 +86,14 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import event from "../event";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betrcl/Event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
export default { export default {
components: {"c-ptap": Ptap }, components: {"c-ptap": Ptap },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
...@@ -117,7 +107,7 @@ export default { ...@@ -117,7 +107,7 @@ export default {
}, },
}, },
}, },
methods: { ...Event }, methods: {},
created: function () {}, created: function () {},
}; };
</script> </script>
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="出口信用证单据承兑"> <c-page title="出口信用证单据承兑">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> --> <el-form
:model="model"
<!-- <el-button size="small">流程附言</el-button> :rules="rules"
<el-button size="small">交易历史</el-button> ref="modelForm"
<el-button size="small">备忘录</el-button> label-width="120px"
<el-button size="small">影像信息</el-button> label-position="right"
// <el-button size="small">保存模板</el-button> size="small"
// <el-button size="small">使用模板</el-button> :validate-on-rule-change="false"
<el-button size="small">制裁信息</el-button> >
// <el-button size="small">拆分报文</el-button>
<el-button size="small">智能提示</el-button>
</c-function-btn> -->
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000033 --> <!--PD000033 -->
<el-tab-pane label="业务信息" name="ovwp"> <el-tab-pane label="业务信息" name="ovwp">
<c-content> <c-content>
<m-ovwp :model="model" :codes="codes" /> <m-ovwp :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody"> <el-tab-pane label="统一授信" name="limitbody">
<c-content> <c-content>
<m-limitbody :model="model" :codes="codes" /> <m-limitbody :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
...@@ -38,118 +32,148 @@ ...@@ -38,118 +32,148 @@
<m-engp :model="model" :codes="codes" /> <m-engp :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod"> <el-tab-pane label="费用/账务" name="setmod">
<c-content> <c-content>
<m-setmod :model="model" :codes="codes" @changeSetmodModel="changeSetmodModel" /> <m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <el-tab-pane label="备查/附言" name="coninfp">
<el-tab-pane label="会计分录" name="glepan">
<c-content> <c-content>
<m-glentry :model="model" :codes="codes" /> <m-coninfp :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!-- <el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane> -->
<!--PD000529 --> <!--PD000529 -->
<el-tab-pane label="报文/面函" name="docpan"> <el-tab-pane label="报文/面函" name="docpan">
<c-content> <c-content>
<m-docpan :model="model" :codes="codes" /> <m-docpan :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000546 --> <!--PD000546 -->
<el-tab-pane label="附件信息" name="doctre"> <el-tab-pane label="附件信息" name="doctre">
<c-content> <c-content>
<m-doctre :model="model" :codes="codes" /> <m-doctre :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-grid-ety-prompt-dialog
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash"> ref="doxpDialog"
:isPty="false"
:promptData="promptData"
>
</c-grid-ety-prompt-dialog>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash">
</c-function-btn> </c-function-btn>
</c-page> </c-page>
</div> </div>
</template> </template>
<script> <script>
import event from '../event'; import CodeTable from "~/config/CodeTable";
import operationFunc from "~/mixin/operationFunc"; import Betrcl from "../model";
import CodeTable from "~/config/CodeTable"
import formRules from '../model/check' import formRules from '../model/check'
import Betrcl from "~/model/Betrcl";
import Ovwp from "./Ovwp"; import Ovwp from "./Ovwp";
import Remp from "./Remp"; import Remp from "./Remp";
// import Addbcb from "./Addbcb"
import Engp from "~/components/business/engp/views"; import Engp from "~/components/business/engp/views";
// import Ccvpan from "~/components/business/ccvpan/views"; import Doctre from "~/components/business/doctre/views";
import Setmod from "~/components/business/setmod/views"; import Setmod from "~/components/business/setmod/views";
import Glentry from "~/components/business/glentry/views"; import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Limitbody from "~/components/business/limitbody/views"; import Limitbody from "~/components/business/limitbody/views";
import Glepan from "~/components/business/glentry/views"; import operationFunc from "@/mixin/operationFunc";
// import Addbcb from "~/components/business/addbcb/views"; import event from "../event";
// import Coninfp from "~/components/business/coninfp/views";
export default { export default {
name: "Betrcl", name: "Betrcl",
components: { components: {
"m-ovwp": Ovwp, "m-ovwp": Ovwp,
// "m-addbcb": Addbcb,
"m-engp": Engp, "m-engp": Engp,
"m-docpan": Docpan, "m-docpan": Docpan,
"m-doctre": Doctre, "m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-remp": Remp, "m-remp": Remp,
// "m-coninfp": Coninfp,
"m-limitbody": Limitbody, "m-limitbody": Limitbody,
"m-setmod": Setmod, "m-setmod": Setmod,
"m-glentry": Glentry,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-limitbody": Limitbody,
"m-glepan": Glepan,
}, },
provide() { provide() {
return { return {
root: this, root: this,
}; };
}, },
mixins: [event, operationFunc], mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "ovwp", tabVal: "ovwp",
trnName: "betrcl", trnName: "betrcl",
// trnType: "", trnType: "",
model: new Betrcl().data, model: new Betrcl().data,
rules: formRules, rules: formRules,
codes: { codes: {
...CodeTable ...CodeTable,
}, },
activeNames: ["setpan"], activeNames: ["engp"],
} 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: {},
}, mounted () {
mounted () { this.init()
this.init() },
}, };
}
</script> </script>
<style></style> <style>
</style>
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