Commit 02a26335 by panziyi

bctame添加

parent fb1c394f
...@@ -34,24 +34,13 @@ export default { ...@@ -34,24 +34,13 @@ export default {
let dataObj = { let dataObj = {
rec: { rec: {
objtyp: 'BCD', objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr, // objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref, ownref: model.bcdgrp.rec.ownref,
opndat: model.bcdgrp.rec.opndat, opndat: model.bcdgrp.rec.opndat,
expdat: model.bcdgrp.rec.expdat, expdat: model.bcdgrp.rec.expdat,
branchInr: model.bcdgrp.rec.branchinr, branchinr: model.bcdgrp.rec.branchInr,
docamt: model.setmod.docamt, nam: model.bcdgrp.rec.nam,
doccur: model.setmod.doccur, oridre: model.bcdgrp.rec.oridre,
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,
}, },
cbsMap: { cbsMap: {
MAX: model.bcdgrp.cbs.max, MAX: model.bcdgrp.cbs.max,
...@@ -72,7 +61,7 @@ export default { ...@@ -72,7 +61,7 @@ export default {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaall: model.liaall, liaall: model.liaall,
liaccv: model.liaccv, liaccv: model.liaccv,
// doceot: model.trnmod.trndoc.doceot, doceot: model.trnmod.trndoc.doceot,
}; };
return params return params
}, },
...@@ -121,22 +110,23 @@ export default { ...@@ -121,22 +110,23 @@ export default {
buildLimitbody (model, trnName) { buildLimitbody (model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { // rec: {
objtyp: 'BCD', // objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr, // objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref, // ownref: model.bcdgrp.rec.ownref,
}, // },
}; };
return params return params
}, },
buildDoctre (model, trnName) { buildDoctre (model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { // rec: {
objtyp: 'BCD', // objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr, // objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref, // ownref: model.bcdgrp.rec.ownref,
}, // // swiftflg: model.gitp.swiftflg,
// },
}; };
return params return params
}, },
......
...@@ -24,15 +24,11 @@ export default { ...@@ -24,15 +24,11 @@ export default {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{ // trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName)) // 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/bctacc/init', { const res = await Api.post('/service/bctame/init', {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
...@@ -108,21 +104,22 @@ export default { ...@@ -108,21 +104,22 @@ export default {
queryFormData(key) { queryFormData(key) {
console.log(key); console.log(key);
}, },
// 业务信息=》基本信息=》保函编号-----获取保函编号 // 业务信息=》基本信息=》编号-----获取编号
async queryOwnref() { async queryOwnref() {
let params = { let params = {
ptainr: this.model.bcdgrp.apl.pts.ptainr, ptainr: this.model.bcdgrp.dre.pts.ptainr,
businessType: 'LG', businessType: 'IC',
tbl: 'LG', tbl: 'IC',
}; };
const loading = this.loading(); 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) { if (res.respCode == SUCCESS) {
loading.close(); loading.close();
this.model.bcdgrp.rec.ownref = res.data; this.model.bcdgrp.rec.ownref = res.data;
} }
}, },
// 获取gitopn弹框表格数据
// 获取弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) { async queryGridEtyPromptDialogData(type, ptytyp) {
let params = { let params = {
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
...@@ -136,7 +133,7 @@ export default { ...@@ -136,7 +133,7 @@ export default {
this.root.promptData.type = type; this.root.promptData.type = type;
} }
}, },
// 选中gitopn弹框表格的行数据 // 选中弹框表格的行数据
async selectGridEtyPromptData(row) { async selectGridEtyPromptData(row) {
let params = { let params = {
...row, ...row,
...@@ -153,8 +150,8 @@ export default { ...@@ -153,8 +150,8 @@ export default {
// 初始化保函开立类型码表下拉列表 // 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) { async queryHndtypCodeTableList(trnName) {
let params = { let params = {
gitp: { botp: {
swiftflg: this.model.gitp.swiftflg, swiftflg: this.model.botp.swiftflg,
}, },
bcdgrp: { bcdgrp: {
rec: { rec: {
...@@ -163,7 +160,7 @@ export default { ...@@ -163,7 +160,7 @@ export default {
}, },
transName: trnName.toUpperCase(), 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) { if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data); this.$set(this.codes, 'voHndtyp', res.data);
} }
......
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 Bctame{
export default class Bctame { constructor () {
constructor() {
this.data = { this.data = {
amenbr: '', bcdgrp:{
bctp: { rec:{
usr: { ownref:"", // Reference .bcdgrp.rec.ownref
extkey: '' nam:"", // Name .bcdgrp.rec.nam
} resflg:"", // Reserved Contract .bcdgrp.rec.resflg
}, dftgarflg:"", // Draft to be Guaranteed .bcdgrp.rec.dftgarflg
amedat: '', rcvdat:"", // Docs received on .bcdgrp.rec.rcvdat
newdoctypcod: '', predat:"", // Date of Remittance Lt. .bcdgrp.rec.predat
oldbcdgrp: { advdat:"", // Advised on .bcdgrp.rec.advdat
rec: { oridre:"", // Send Original Documents to Drawee .bcdgrp.rec.oridre
matpertyp: '', doctypcod:"", // Collection Condition .bcdgrp.rec.doctypcod
matpercnt: '', matdat:"", // Maturity Date .bcdgrp.rec.matdat
matdat: '', matpercnt:"", // Tenor Specification .bcdgrp.rec.matpercnt
matperbeg: '' matpertyp:"", // Days/Months or Years for Maturity Period .bcdgrp.rec.matpertyp
}, matperbeg:"", // Tenor Starting from .bcdgrp.rec.matperbeg
cbs: { stacty:"", // Country Code Risk Country .bcdgrp.rec.stacty
max: { invtyp:"", // 发票类型 .bcdgrp.rec.invtyp
cur: '', chato:"", // Our Charges to .bcdgrp.rec.chato
amt: '' 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
bcdgrp: { stagod:"", // Good's Code (for Statistics) .bcdgrp.rec.stagod
blk: { proins:"", // Protest Instructions .bcdgrp.rec.proins
colins: '', },
bcgdet: '', cbs:{
dftins: '', max:{
bcgdetflg: '', cur:"", // Document Amount .bcdgrp.cbs.max.cur
othins: '', amt:"", // Document Amount .bcdgrp.cbs.max.amt
chgtxt: '' },
}, opn1:{
rec: { cur:"", // Open Amount .bcdgrp.cbs.opn1.cur
inr:'', amt:"", // Open Amount .bcdgrp.cbs.opn1.amt
predat: '', },
rcvdat: '', },
matpertyp: '', blk:{
stacty: '', docpre:"",
matpercnt: '', bcgdet:"", // Maturity Text .bcdgrp.blk.bcgdet
ownref: '', bcgdetflg:"", // BC Tenor Details modified .bcdgrp.blk.bcgdetflg
invtyp: '', colins:"", // Collection Instructions .bcdgrp.blk.colins
matperbeg: '', dftins:"", // Draft Instructions .bcdgrp.blk.dftins
dftgarflg: '', othins:"", // Other Instructions .bcdgrp.blk.othins
wairmtcod: '', chgtxt:"", // Charges Text .bcdgrp.blk.chgtxt
stagod: '', },
doctypcod: '', dre:{
chato: '', pts:new Pts().data,
othins: '', },
proins: '', rmi:{
waicolcod: '', pts:new Pts().data,
advdat: '',
matdat: '', },
nam: '', drr:{
focflg: '', pts:new Pts().data,
branchinr: ''
}, },
cbs: { co2:{
opn1: { pts:new Pts().data,
cur: '',
amt: '' },
}, },
max: { bctp:{
cur: '', recget:{
amt: '' sdamod:{
} seainf:"", // .bctp.recget.sdamod.seainf
}, dadsnd:"", // Drag Drop Sender .bctp.recget.sdamod.dadsnd
drr: { },
pts: new Pts().data },
}, usrget:{
dre: { sdamod:{
pts: new Pts().data seainf:"", // .bctp.usrget.sdamod.seainf
}, },
co2: { },
pts: new Pts().data usr:{
}, extkey:"", // Responsible User .bctp.usr.extkey
rmi: { },
pts: new Pts().data docgrdm:{
} docgrd:[],
}, docdsclab:"", // Label of document description .bctp.docgrdm.docdsclab
},
setmod: new Pub().data.Setmod, drep:{
mtabut: new Pub().data.Mtabut, ptsget:{
trnmod: new Pub().data.Trnmod, sdamod:{
liaall: new Pub().data.Liaall, seainf:"", // .bctp.drep.ptsget.sdamod.seainf
liaccv: new Pub().data.Liaccv, dadsnd:"", // Drag Drop Sender .bctp.drep.ptsget.sdamod.dadsnd
docpan: new Pub().data.Docpan, },
}; },
} },
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> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="进口代收修改"> <c-page title="进口代收修改">
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
...@@ -11,30 +13,88 @@ ...@@ -11,30 +13,88 @@
:validate-on-rule-change="false" :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">
<!--修改 -->
<!-- <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"> <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>
<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> <c-content>
<div class="eibs-tab"> <m-glentry :model="model" :codes="codes" />
<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>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
...@@ -81,25 +141,36 @@ ...@@ -81,25 +141,36 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Bctame from "~/model/Bctame"; import Bctame from "../model";
import formRules from "@/business/bctacc/model/check"; import formRules from '../model/check'
import event from "../event";
// import Amep from "./Amep";
import Ovwp from "./Ovwp"; import Ovwp from "./Ovwp";
// import Detp from "./Detp";
// import Ptyp from "./Ptyp";
import Addbcb from "./Addbcb"; import Addbcb from "./Addbcb";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/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 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"; import operationFunc from "@/mixin/operationFunc";
export default { export default {
name: "Bctame", name: "Bctame",
components: { components: {
// "m-amep": Amep,
"m-ovwp": Ovwp, "m-ovwp": Ovwp,
// "m-detp": Detp,
// "m-ptyp": Ptyp,
"m-setmod": Setmod, "m-setmod": Setmod,
"m-engp": Engp, "m-engp": Engp,
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
...@@ -122,54 +193,28 @@ export default { ...@@ -122,54 +193,28 @@ export default {
model: new Bctame().data, model: new Bctame().data,
rules: formRules, rules: formRules,
codes: { ...CodeTable }, 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: {}, methods: {
created: async function () {},
mounted () { },
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.init()
// this.queryHndtypCodeTableList(this.trnName)
}, },
}; };
</script> </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