Commit 02a26335 by panziyi

bctame添加

parent fb1c394f
......@@ -34,24 +34,13 @@ export default {
let dataObj = {
rec: {
objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr,
// objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
opndat: model.bcdgrp.rec.opndat,
expdat: model.bcdgrp.rec.expdat,
branchInr: model.bcdgrp.rec.branchinr,
docamt: model.setmod.docamt,
doccur: model.setmod.doccur,
doctypcod: model.bcdgrp.rec.doctypcod,
// hndtyp: model.bcdgrp.rec.hndtyp,
// gartyp: model.bcdgrp.rec.gartyp,
// fingua: model.bcdgrp.rec.fingua,
// fromflg: model.bcdgrp.rec.fromflg,
// othersno: model.bcdgrp.rec.othersno,
// sndto: model.bcdgrp.rec.sndto,
// giduil: model.bcdgrp.rec.giduil,
// purpos: model.bcdgrp.rec.purpos,
// revflg: model.bcdgrp.rec.revflg,
// cnfsta: model.bcdgrp.rec.cnfsta,
branchinr: model.bcdgrp.rec.branchInr,
nam: model.bcdgrp.rec.nam,
oridre: model.bcdgrp.rec.oridre,
},
cbsMap: {
MAX: model.bcdgrp.cbs.max,
......@@ -72,7 +61,7 @@ export default {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
// doceot: model.trnmod.trndoc.doceot,
doceot: model.trnmod.trndoc.doceot,
};
return params
},
......@@ -121,22 +110,23 @@ export default {
buildLimitbody (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
},
// rec: {
// objtyp: 'BCD',
// objinr: model.bcdgrp.rec.inr,
// ownref: model.bcdgrp.rec.ownref,
// },
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
},
// rec: {
// objtyp: 'BCD',
// objinr: model.bcdgrp.rec.inr,
// ownref: model.bcdgrp.rec.ownref,
// // swiftflg: model.gitp.swiftflg,
// },
};
return params
},
......
......@@ -24,15 +24,11 @@ export default {
const params = {
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
// trnmod:{
// trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
// }
}
const res = await Api.post('/service/bctacc/init', {
const res = await Api.post('/service/bctame/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
......@@ -108,21 +104,22 @@ export default {
queryFormData(key) {
console.log(key);
},
// 业务信息=》基本信息=》保函编号-----获取保函编号
// 业务信息=》基本信息=》编号-----获取编号
async queryOwnref() {
let params = {
ptainr: this.model.bcdgrp.apl.pts.ptainr,
businessType: 'LG',
tbl: 'LG',
ptainr: this.model.bcdgrp.dre.pts.ptainr,
businessType: 'IC',
tbl: 'IC',
};
const loading = this.loading();
let res = await Api.post('/service/gitopn/getOwnRef', params);
let res = await Api.post('/service/bctdav/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.bcdgrp.rec.ownref = res.data;
}
},
// 获取gitopn弹框表格数据
// 获取弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
......@@ -136,7 +133,7 @@ export default {
this.root.promptData.type = type;
}
},
// 选中gitopn弹框表格的行数据
// 选中弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
......@@ -153,8 +150,8 @@ export default {
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
botp: {
swiftflg: this.model.botp.swiftflg,
},
bcdgrp: {
rec: {
......@@ -163,7 +160,7 @@ export default {
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/gitopn/initHndtyp', params);
let res = await Api.post('/service/bctdav/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
......
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Bctame {
constructor() {
export default class Bctame{
constructor () {
this.data = {
amenbr: '',
bctp: {
usr: {
extkey: ''
}
},
amedat: '',
newdoctypcod: '',
oldbcdgrp: {
rec: {
matpertyp: '',
matpercnt: '',
matdat: '',
matperbeg: ''
},
cbs: {
max: {
cur: '',
amt: ''
}
}
},
bcdgrp: {
blk: {
colins: '',
bcgdet: '',
dftins: '',
bcgdetflg: '',
othins: '',
chgtxt: ''
},
rec: {
inr:'',
predat: '',
rcvdat: '',
matpertyp: '',
stacty: '',
matpercnt: '',
ownref: '',
invtyp: '',
matperbeg: '',
dftgarflg: '',
wairmtcod: '',
stagod: '',
doctypcod: '',
chato: '',
othins: '',
proins: '',
waicolcod: '',
advdat: '',
matdat: '',
nam: '',
focflg: '',
branchinr: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
drr: {
pts: new Pts().data
},
dre: {
pts: new Pts().data
},
co2: {
pts: new Pts().data
},
rmi: {
pts: new Pts().data
}
},
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,
};
}
bcdgrp:{
rec:{
ownref:"", // Reference .bcdgrp.rec.ownref
nam:"", // Name .bcdgrp.rec.nam
resflg:"", // Reserved Contract .bcdgrp.rec.resflg
dftgarflg:"", // Draft to be Guaranteed .bcdgrp.rec.dftgarflg
rcvdat:"", // Docs received on .bcdgrp.rec.rcvdat
predat:"", // Date of Remittance Lt. .bcdgrp.rec.predat
advdat:"", // Advised on .bcdgrp.rec.advdat
oridre:"", // Send Original Documents to Drawee .bcdgrp.rec.oridre
doctypcod:"", // Collection Condition .bcdgrp.rec.doctypcod
matdat:"", // Maturity Date .bcdgrp.rec.matdat
matpercnt:"", // Tenor Specification .bcdgrp.rec.matpercnt
matpertyp:"", // Days/Months or Years for Maturity Period .bcdgrp.rec.matpertyp
matperbeg:"", // Tenor Starting from .bcdgrp.rec.matperbeg
stacty:"", // Country Code Risk Country .bcdgrp.rec.stacty
invtyp:"", // 发票类型 .bcdgrp.rec.invtyp
chato:"", // Our Charges to .bcdgrp.rec.chato
focflg:"", // Free of Payment .bcdgrp.rec.focflg
waicolcod:"", // Waive Collecting Bank Charges .bcdgrp.rec.waicolcod
wairmtcod:"", // Waive Remitting Bank Charges .bcdgrp.rec.wairmtcod
othins:"", // Defer Payment until .bcdgrp.rec.othins
stagod:"", // Good's Code (for Statistics) .bcdgrp.rec.stagod
proins:"", // Protest Instructions .bcdgrp.rec.proins
},
cbs:{
max:{
cur:"", // Document Amount .bcdgrp.cbs.max.cur
amt:"", // Document Amount .bcdgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .bcdgrp.cbs.opn1.cur
amt:"", // Open Amount .bcdgrp.cbs.opn1.amt
},
},
blk:{
docpre:"",
bcgdet:"", // Maturity Text .bcdgrp.blk.bcgdet
bcgdetflg:"", // BC Tenor Details modified .bcdgrp.blk.bcgdetflg
colins:"", // Collection Instructions .bcdgrp.blk.colins
dftins:"", // Draft Instructions .bcdgrp.blk.dftins
othins:"", // Other Instructions .bcdgrp.blk.othins
chgtxt:"", // Charges Text .bcdgrp.blk.chgtxt
},
dre:{
pts:new Pts().data,
},
rmi:{
pts:new Pts().data,
},
drr:{
pts:new Pts().data,
},
co2:{
pts:new Pts().data,
},
},
bctp:{
recget:{
sdamod:{
seainf:"", // .bctp.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.recget.sdamod.dadsnd
},
},
usrget:{
sdamod:{
seainf:"", // .bctp.usrget.sdamod.seainf
},
},
usr:{
extkey:"", // Responsible User .bctp.usr.extkey
},
docgrdm:{
docgrd:[],
docdsclab:"", // Label of document description .bctp.docgrdm.docdsclab
},
drep:{
ptsget:{
sdamod:{
seainf:"", // .bctp.drep.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drep.ptsget.sdamod.dadsnd
},
},
},
rmip:{
ptsget:{
sdamod:{
seainf:"", // .bctp.rmip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.rmip.ptsget.sdamod.dadsnd
},
},
},
drrp:{
ptsget:{
sdamod:{
seainf:"", // .bctp.drrp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drrp.ptsget.sdamod.dadsnd
},
},
},
sblx:"", // 申报类型 .bctp.sblx
acttyplab:"", // 款项去向 .bctp.acttyplab
acttyp:"", // ACTTYP .bctp.acttyp
co2p:{
ptsget:{
sdamod:{
seainf:"", // .bctp.co2p.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.co2p.ptsget.sdamod.dadsnd
},
},
},
},
amedat:"", // Amendment Date .amedat
amenbr:"", // No. of Amendment .amenbr
oldbcdgrp:{
cbs:{
max:{
cur:"", // Original Amount .oldbcdgrp.cbs.max.cur
amt:"", // Original Amount .oldbcdgrp.cbs.max.amt
},
},
rec:{
matpercnt:"", // Tenor Data .oldbcdgrp.rec.matpercnt
matpertyp:"", // Days/Months or Years for Maturity Period .oldbcdgrp.rec.matpertyp
matperbeg:"", // Start of Maturity Period MATBEG .oldbcdgrp.rec.matperbeg
matdat:"", // Maturity Date .oldbcdgrp.rec.matdat
},
},
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,
newdoctypcod:"", // Amend Condition .newdoctypcod
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="进口代收修改">
<el-form
:model="model"
:rules="rules"
......@@ -11,30 +13,88 @@
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--修改 -->
<!-- <el-tab-pane label="修改" name="amep">-->
<!-- <c-content>-->
<!-- <m-amep :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;概要 &ndash;&gt;-->
<!-- <el-tab-pane label="概要" name="ovwp">-->
<!-- <c-content>-->
<!-- <m-ovwp :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;指示条款 &ndash;&gt;-->
<!-- <el-tab-pane label="指示条款" name="detp">-->
<!-- <m-detp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="参与方" name="ptyp">-->
<!-- <c-content>-->
<!-- <m-ptyp :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="表外记账" name="engp">-->
<!-- <m-engp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;账务 &ndash;&gt;-->
<!-- <el-tab-pane label="结算" name="setpan">-->
<!-- <c-content>-->
<!-- <m-setpan :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="账务" name="glepan">-->
<!-- <m-glepan :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;附言 &ndash;&gt;-->
<!-- <el-tab-pane label="提示信息" name="coninfp">-->
<!-- <m-coninfp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;报文和面函 &ndash;&gt;-->
<!-- <el-tab-pane label="报文和面函" name="docpan">-->
<!-- <m-docpan :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;附件 &ndash;&gt;-->
<!-- <el-tab-pane label="附件" name="doctre">-->
<!-- <m-doctre :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="engp,setpan,glepan">
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="表外记账" name="engp">
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="结算" name="setpan">
<!-- 结算 -->
<m-setpan :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="会计分录" name="glepan">
<!-- 会计分录 -->
<m-glepan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
......@@ -81,25 +141,36 @@
</div>
</template>
<script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Bctame from "~/model/Bctame";
import formRules from "@/business/bctacc/model/check";
import event from "../event";
import Bctame from "../model";
import formRules from '../model/check'
// import Amep from "./Amep";
import Ovwp from "./Ovwp";
// import Detp from "./Detp";
// import Ptyp from "./Ptyp";
import Addbcb from "./Addbcb";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views"
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Coninfp from "~/components/business/coninfp/views";
import Glentry from "~/components/business/glentry/views";
import Engp from "~/components/business/engp/views";
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre"
import event from "../event";
import operationFunc from "@/mixin/operationFunc";
export default {
name: "Bctame",
components: {
// "m-amep": Amep,
"m-ovwp": Ovwp,
// "m-detp": Detp,
// "m-ptyp": Ptyp,
"m-setmod": Setmod,
"m-engp": Engp,
"m-coninfp": Coninfp,
......@@ -122,54 +193,28 @@ export default {
model: new Bctame().data,
rules: formRules,
codes: { ...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: {},
created: async function () {},
mounted () {
methods: {
},
created: async function () {
console.log("进入bctame交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
//更新数据
this.updateModel(rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
mounted () {
this.init()
// this.queryHndtypCodeTableList(this.trnName)
},
};
</script>
......
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