Commit 6b629e97 by WH

LETNOT交易前端清理

parent 0e837c76
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<script> <script>
import event from "../event"; import event from "../event";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
......
...@@ -19,15 +19,36 @@ export default { ...@@ -19,15 +19,36 @@ export default {
}, },
buildCommonData (model, trnName) { buildCommonData (model, trnName) {
let ptsptaList = []; let ptsptaList = [];
if (model.ledgrp.a2b.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.a2b));
}
if (model.ledgrp.con.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.con));
}
if (model.ledgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.ben));
}
if (model.ledgrp.avb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.avb));
}
if (model.ledgrp.iss.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.iss));
}
if (model.ledgrp.apl.pts.extkey) { if (model.ledgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.apl)); ptsptaList.push(this.buildPtspta(model.ledgrp.apl));
} }
if (model.ledgrp.drw.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.drw));
}
if (model.ledgrp.apb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.apb));
}
if (model.ledgrp.rmb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.rmb));
}
if (model.ledgrp.adv.pts.extkey) { if (model.ledgrp.adv.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.adv)); ptsptaList.push(this.buildPtspta(model.ledgrp.adv));
} }
if (model.ledgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.ben));
}
let dataObj = { let dataObj = {
rec: { rec: {
objtyp: 'LED', objtyp: 'LED',
...@@ -121,7 +142,7 @@ export default { ...@@ -121,7 +142,7 @@ export default {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
objtyp: 'LED', objtyp: 'LED',
objinr: model.ledgrp.rec.objinr, objinr: model.ledgrp.rec.inr,
ownref: model.ledgrp.rec.ownref, ownref: model.ledgrp.rec.ownref,
}, },
}; };
...@@ -132,7 +153,7 @@ export default { ...@@ -132,7 +153,7 @@ export default {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
objtyp: 'LED', objtyp: 'LED',
objinr: model.ledgrp.rec.objinr, objinr: model.ledgrp.rec.inr,
ownref: model.ledgrp.rec.ownref, ownref: model.ledgrp.rec.ownref,
// swiftflg: model.gitp.swiftflg, // swiftflg: model.gitp.swiftflg,
}, },
......
...@@ -21,7 +21,14 @@ export default { ...@@ -21,7 +21,14 @@ 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 loading = this.loading(); const loading = this.loading();
const res = await Api.post('/service/letnot/init', { const res = await Api.post('/service/letnot/init', {
...@@ -65,7 +72,7 @@ export default { ...@@ -65,7 +72,7 @@ export default {
let engpRequest = buildFn.buildEngp(this.model, this.trnName); let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest); this.processLiaall(engpRequest);
break; break;
case 'setpan': case 'setmod':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName); let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值 // 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => { this.processSetpan(setfegRequest, () => {
...@@ -76,7 +83,7 @@ export default { ...@@ -76,7 +83,7 @@ export default {
let docpanRequest = buildFn.buildDocpan(this.model, this.trnName); let docpanRequest = buildFn.buildDocpan(this.model, this.trnName);
this.processTrndoc(docpanRequest); this.processTrndoc(docpanRequest);
break; break;
case 'glepan': case 'glentry':
let glentryRequest = buildFn.buildGlentry(this.model, this.trnName); let glentryRequest = buildFn.buildGlentry(this.model, this.trnName);
this.processGlentry(glentryRequest); this.processGlentry(glentryRequest);
break; break;
...@@ -119,46 +126,46 @@ export default { ...@@ -119,46 +126,46 @@ export default {
this.$set(this.model.ledgrp, row.role.toLowerCase(), res.data); this.$set(this.model.ledgrp, row.role.toLowerCase(), res.data);
} }
}, },
//获取信用证编号 // //获取信用证编号
async onLitpButgetref() { // async onLitpButgetref() {
let params = { // let params = {
ptainr: this.model.ledgrp.apl.pts.ptainr, // ptainr: this.model.ledgrp.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/letnot/getOwnRef', params); // let res = await Api.post('/service/letnot/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.ledgrp.rec.ownref = res.data;
}
},
// 初始化开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
letp: {
swiftflg: this.model.letp.swiftflg,
},
ledgrp: {
rec: {
purpos: this.model.ledgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
// let res = await Api.post('/service/litopn/initHndtyp', params);
// if (res.respCode == SUCCESS) { // if (res.respCode == SUCCESS) {
// this.$set(this.codes, 'voHndtyp', res.data); // loading.close();
// this.model.ledgrp.rec.ownref = res.data;
// } // }
}, // },
// // 初始化开立类型码表下拉列表
// async queryHndtypCodeTableList(trnName) {
// let params = {
// letp: {
// swiftflg: this.model.letp.swiftflg,
// },
// ledgrp: {
// rec: {
// purpos: this.model.ledgrp.rec.purpos,
// },
// },
// transName: trnName.toUpperCase(),
// };
// // let res = await Api.post('/service/litopn/initHndtyp', params);
// // if (res.respCode == SUCCESS) {
// // this.$set(this.codes, 'voHndtyp', res.data);
// // }
// },
// 是否SWIFT格式修改--联动保函开立类型 // 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() { // handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName); // this.queryHndtypCodeTableList(this.root.trnName);
}, // },
// 支出目的修改--联动保函开立类型 // 支出目的修改--联动保函开立类型
handleChangePurpos() { // handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName); // this.queryHndtypCodeTableList(this.root.trnName);
}, // },
apprulChange(v) { apprulChange(v) {
if (v !== 'OTHR') { if (v !== 'OTHR') {
this.model.ledgrp.rec.apprultxt = '' this.model.ledgrp.rec.apprultxt = ''
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames">
<el-collapse-item title="附言" name="coninfp"> <el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" /> <m-coninfp :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
}" }"
:noRef="true" :noRef="true"
:onlySearch="true" :onlySearch="true"
@onSeainf="onSeainf"
@onAplpDet="onAvbpDet"
:disabledExtkey="!avbFlag" :disabledExtkey="!avbFlag"
> >
</c-ptap> </c-ptap>
...@@ -132,8 +130,6 @@ ...@@ -132,8 +130,6 @@
}" }"
:noRef="true" :noRef="true"
:onlySearch="false" :onlySearch="false"
@onSeainf="onSeainf"
@onAplpDet="onDrwpDet"
:disabledExtkey="blkDftatFlag" :disabledExtkey="blkDftatFlag"
:disabled="blkDftatFlag" :disabled="blkDftatFlag"
> >
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames">
<el-collapse-item title="内容" name="ovwp1"> <el-collapse-item title="内容" name="ovwp1">
<m-ovwp1 :model="model" :codes="codes" /> <m-ovwp1 :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
style="margin: 0 10px 0 0; padding: 0 12px" style="margin: 0 10px 0 0; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
> >
<i class="el-icon-info" style="font-size:15px"></i> <i class="el-icon-info" style="font-size:15px"></i>
</c-button> </c-button>
...@@ -36,7 +35,6 @@ ...@@ -36,7 +35,6 @@
? false ? false
: true : true
" "
@click="onLetpButgetref"
> >
获取 获取
</c-button> </c-button>
...@@ -90,7 +88,6 @@ ...@@ -90,7 +88,6 @@
size="small" size="small"
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
@click="onExtkey"
></c-button> ></c-button>
</template> </template>
</c-fullbox> </c-fullbox>
...@@ -379,8 +376,6 @@ ...@@ -379,8 +376,6 @@
rol: 'ben', rol: 'ben',
}" }"
:disabled="true" :disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -394,8 +389,6 @@ ...@@ -394,8 +389,6 @@
rol: 'iss', rol: 'iss',
}" }"
:disabled="true" :disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onIsspDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -409,8 +402,6 @@ ...@@ -409,8 +402,6 @@
rol: 'apl', rol: 'apl',
}" }"
:disabled="true" :disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onAplpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
grp: 'ledgrp', grp: 'ledgrp',
rol: 'adv', rol: 'adv',
}" }"
@onSeainf="onSeainf"
@onAplpDet="onAdvpDet"
disabled disabled
disabledRef disabledRef
disabledExtkey disabledExtkey
...@@ -30,8 +28,6 @@ ...@@ -30,8 +28,6 @@
grp: 'ledgrp', grp: 'ledgrp',
rol: 'a2b', rol: 'a2b',
}" }"
@onSeainf="onSeainf"
@onAplpDet="onA2bpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -61,8 +57,6 @@ ...@@ -61,8 +57,6 @@
grp: 'ledgrp', grp: 'ledgrp',
rol: 'apb', rol: 'apb',
}" }"
@onSeainf="onSeainf"
@onAplpDet="onApbpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -82,8 +76,6 @@ ...@@ -82,8 +76,6 @@
grp: 'ledgrp', grp: 'ledgrp',
rol: 'rmb', rol: 'rmb',
}" }"
@onSeainf="onSeainf"
@onAplpDet="onRmbpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -98,8 +90,6 @@ ...@@ -98,8 +90,6 @@
rol: 'con', rol: 'con',
}" }"
:onlySearch="true" :onlySearch="true"
@onSeainf="onSeainf"
@onAplpDet="onConpDet"
disabled disabled
disabledRef disabledRef
disabledExtkey disabledExtkey
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
v-model="tabVal" v-model="tabVal"
ref="elment" ref="elment"
type="card" type="card"
@tab-click="myTabClick" @tab-click="tabClick"
> >
<el-tab-pane label="业务信息" name="ovwp"> <el-tab-pane label="业务信息" name="ovwp">
<c-content> <c-content>
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
<m-setmod :model="model" :codes="codes" /> <m-setmod :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="会计分录" name="glepan"> <el-tab-pane label="会计分录" name="glentry">
<c-content> <c-content>
<!-- 会计分录 --> <!-- 会计分录 -->
<m-glepan :model="model" :codes="codes" /> <m-glentry :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
ref="doxpDialog" ref="doxpDialog"
:isPty="false" :isPty="false"
:promptData="promptData" :promptData="promptData"
@select-ety="selectMsg"
> >
</c-grid-ety-prompt-dialog> </c-grid-ety-prompt-dialog>
...@@ -88,7 +87,7 @@ import Addbcb from './Addbcb' ...@@ -88,7 +87,7 @@ import Addbcb from './Addbcb'
import formRules from '../model/check' import formRules from '../model/check'
import operationFunc from "~/mixin/operationFunc"; import operationFunc from "~/mixin/operationFunc";
import Setmod from "~/components/business/setmod/views"; import Setmod from "~/components/business/setmod/views";
import Glepan from "~/components/business/glentry/views"; import Glentry from "~/components/business/glentry/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views"; import Doctre from "~/components/business/doctre/views";
...@@ -97,7 +96,7 @@ export default { ...@@ -97,7 +96,7 @@ export default {
components: { components: {
'm-ovwp': Ovwp, 'm-ovwp': Ovwp,
'm-setmod': Setmod, 'm-setmod': Setmod,
'm-glepan': Glepan, 'm-glentry': Glentry,
'm-docpan': Docpan, 'm-docpan': Docpan,
'm-doctre': Doctre, 'm-doctre': Doctre,
'm-addbcb': Addbcb, 'm-addbcb': Addbcb,
...@@ -115,7 +114,49 @@ export default { ...@@ -115,7 +114,49 @@ export default {
model: new Letnot().data, model: new Letnot().data,
rules:formRules, rules:formRules,
codes: { ...CodeTable }, codes: { ...CodeTable },
activeNames: ["setpan"] activeNames: ["setmod"],
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: []
}
} }
}, },
mounted () { mounted () {
......
<template>
<ReviewWrapper>
<Letnot></Letnot>
</ReviewWrapper>
</template>
<script>
import Letnot from "~/business/letnot/views";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewLetnot",
components: { ReviewWrapper, Letnot },
created() {},
mounted() {},
};
</script>
<style></style>
...@@ -13,5 +13,6 @@ const Business = [ ...@@ -13,5 +13,6 @@ const Business = [
{ path: 'litdav', component: () => import('~/review/ReviewLitdav.vue'), name: 'litdav', meta: { title: '复核-Litdav' } }, { path: 'litdav', component: () => import('~/review/ReviewLitdav.vue'), name: 'litdav', meta: { title: '复核-Litdav' } },
{ path: 'litsel', component: () => import('~/review/ReviewLitsel.vue'), name: 'litsel', meta: { title: '复核-Litsel' } }, { path: 'litsel', component: () => import('~/review/ReviewLitsel.vue'), name: 'litsel', meta: { title: '复核-Litsel' } },
{ path: 'letopn', component: () => import('~/review/ReviewLetopn.vue'), name: 'letopn', meta: { title: '复核-Letopn' } }, { path: 'letopn', component: () => import('~/review/ReviewLetopn.vue'), name: 'letopn', meta: { title: '复核-Letopn' } },
{ path: 'letnot', component: () => import('~/review/ReviewLetnot.vue'), name: 'letnot', meta: { title: '复核-letnot' } },
] ]
export default Business export default Business
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