Commit 6b629e97 by WH

LETNOT交易前端清理

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