Commit f6178b7d by WH

BCTACC

parent 81a51e94
export default {
buildPtspta (ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk
};
return ptspta;
},
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.bcdgrp.co2.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.co2));
}
if (model.bcdgrp.drr.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.drr));
}
if (model.bcdgrp.dre.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.dre));
}
if (model.bcdgrp.rmi.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.rmi));
}
let dataObj = {
rec: {
objtyp: 'BCD',
// objinr: model.bedgrp.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,
},
cbsMap: {
MAX: model.bcdgrp.cbs.max,
OPN1: model.bcdgrp.cbs.opn1,
// MAC: model.bcdgrp.cbs.mac,
// MAC2: model.bcdgrp.cbs.mac2,
// OPC2: model.bcdgrp.cbs.opc2,
// CNF: model.bcdgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL'
};
return dataObj
},
buildSetfeg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
// doceot: model.trnmod.trndoc.doceot,
};
return params
},
buildSetglg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
liaall: model.liaall,
liaccv: model.liaccv,
};
return params
},
buildGlentry (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
setfog: model.setmod.setfog,
setfeg: model.setmod.setfeg,
setglg: model.setmod.setglg,
};
return params
},
buildEngp (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
oldamt: model.liaccv.oldamt,
chgamt: model.liaccv.chgamt,
concur: model.liaccv.concur,
};
return params
},
buildLimitbody (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
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,
// swiftflg: model.gitp.swiftflg,
},
};
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
};
return params
}
}
\ No newline at end of file
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import buildFn from './buildCommons.js';
import setmod from '~/components/business/setmod/event';
import glentry from '~/components/business/glentry/event';
import engp from '~/components/business/engp/event';
import docpan from '~/components/business/docpan/event';
import ccvpan from '~/components/business/ccvpan/event';
import limitbody from '~/components/business/limitbody/event';
import doctre from '~/components/business/doctre/event';
import Utils from "~/utils"
export default {
mixins: [commonFunctions],
methods: {
...setmod,
...glentry,
...engp,
...docpan,
...ccvpan,
...limitbody,
...doctre,
async init () {
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
}
const res = await Api.post('/service/bctacc/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
bcdgrp:{
rec:{
inr: this.$route.query.inr
}
},
});
if (!res.data) {
return
}
this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
if (Utils.typeOf(model[key]) === 'Object') {
this.copyValueFromVoData(model[key], data[key])
} else {
this.$set(model, key, data[key])
}
}
})
},
async tabClick(tab) {
if (this.isInDisplay) {
return;
}
let name = tab.name;
switch (name) {
case 'ccvpan':
let ccvpanRequest = buildFn.buildCcvpan(this.model, this.trnName);
this.processLiaccv(ccvpanRequest);
break;
case 'engp':
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setmod':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
return buildFn.buildSetglg(this.model, this.trnName);
});
break;
case 'docpan':
let docpanRequest = buildFn.buildDocpan(this.model, this.trnName);
this.processTrndoc(docpanRequest);
break;
case 'glepan':
let glentryRequest = buildFn.buildGlentry(this.model, this.trnName);
this.processGlentry(glentryRequest);
break;
case 'limitbody':
let limitbodyRequest = buildFn.buildLimitbody(this.model, this.trnName);
this.processLimitbody(limitbodyRequest);
break;
case 'doctre':
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest);
break;
default:
return;
}
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
console.log(key);
},
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() {
let params = {
ptainr: this.model.bcdgrp.apl.pts.ptainr,
businessType: 'LG',
tbl: 'LG',
};
const loading = this.loading();
let res = await Api.post('/service/gitopn/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',
ptytyp: ptytyp,
extkey: this.model.bcdgrp[type.toLowerCase()].pts.extkey,
};
let res = await Api.post('/service/ptspta/list', params);
if (res.respCode == SUCCESS) {
this.root.$refs['etyDialog'].show = true;
this.root.promptData.data = res.data.ptaInfos;
this.root.promptData.type = type;
}
},
// 选中gitopn弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.bcdgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
bcdgrp: {
rec: {
purpos: this.model.bcdgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/gitopn/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
oldamt: this.model.liaccv.oldamt,
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
reqParams = buildFn.buildSetglg(this.model, this.trnName);
this.calcPayDetail(reqParams)
break
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
this.setgllAccts(setglgRequest, index);
break
default:
return
}
}
},
};
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Bctacc {
constructor() {
this.data = {
bcdgrp: {
blk: {
colins: '',
dftins: '',
othins: '',
chgtxt: ''
},
rec: {
inr: '',
predat: '',
rcvdat: '',
ownref: '',
docsta: '',
wairmtcod: '',
accdat: new Date(),
stagod: '',
doctypcod: '',
chato: '',
othins: '',
proins: '',
waicolcod: '',
advdat: '',
matdat: '',
nam: '',
focflg: '',
branchinr:''
},
drr: {
pts: new Pts().data
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
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,
};
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes"/>
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event";
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {},
created: function () {
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item
label="代收承兑编号"
prop="bcdgrp.rec.ownref"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.bcdgrp.rec.ownref"
maxlength="16"
placeholder="请输入代收承兑编号"
style="width: 100%"
disabled
>
</c-input>
<template slot="footer">
<c-button
style="margin-left: 8px; padding: 0 12px"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="代收币种及金额" prop="bcdgrp.cbs.max.cur">
<c-input
v-model="model.bcdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择代收币种及金额"
disabled
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left"
label-width="0"
prop="bcdgrp.cbs.max.amt"
>
<c-input
v-model="model.bcdgrp.cbs.max.amt"
style="text-align: left; width: 100%"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="代收币种及余额" prop="bcdgrp.cbs.opn1.cur">
<c-input
v-model="model.bcdgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择代收币种及余额"
disabled
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left"
label-width="0"
prop="bcdgrp.cbs.opn1.amt"
>
<c-input
v-model="model.bcdgrp.cbs.opn1.amt"
style="text-align: left; width: 100%"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="收单日期" prop="bcdgrp.rec.rcvdat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.rcvdat"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择收单日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="通知日期" prop="bcdgrp.rec.advdat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.advdat"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择通知日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="单据到期日" prop="bcdgrp.rec.matdat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.matdat"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择单据到期日"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="托收日期" prop="bcdgrp.rec.predat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.predat"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择托收日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="支付条件" prop="bcdgrp.rec.doctypcod">
<c-select
v-model="model.bcdgrp.rec.doctypcod"
:code="codes.doctypcod"
style="width: 100%"
placeholder="请选择支付条件"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bcdgrp.rec.docsta">
<c-select
v-model="model.bcdgrp.rec.docsta"
:code="codes.docstabot"
style="width: 100%"
placeholder="请输入单据状态"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="承兑金额" prop="setmod.doccur">
<c-input
v-model="modelsetmoddoccur"
style="width: 100%"
placeholder="承兑金额"
disabled
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left"
label-width="0"
prop="setmod.docamt"
>
<c-input
v-model="modelsetmoddocamt"
style="text-align: left; width: 100%"
placeholder="请输入代收币种及金额"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="简略信息" prop="bcdgrp.rec.nam" style="width: 100%">
<c-input
v-model="model.bcdgrp.rec.nam"
maxlength="40"
style="width: 100%"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
style="text-align: right"
label="付款人参考号"
prop="bcdgrp.dre.pts.ref"
>
<c-input
v-model="model.bcdgrp.dre.pts.ref"
maxlength="16"
style="width: 100%"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item prop="bcdgrp.dre.pts.nam">
<c-input
v-model="model.bcdgrp.dre.pts.nam"
maxlength="40"
style="width: 100%"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
style="text-align: right"
label="托收行参考号"
prop="bcdgrp.rmi.pts.ref"
>
<c-input
v-model="model.bcdgrp.rmi.pts.ref"
maxlength="16"
style="width: 100%"
disabled
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item prop="bcdgrp.rmi.pts.nam">
<c-input
v-model="model.bcdgrp.rmi.pts.nam"
maxlength="40"
style="width: 100%"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
style="text-align: right"
label="收款人参考号"
prop="bcdgrp.drr.pts.ref"
>
<c-input
v-model="model.bcdgrp.drr.pts.ref"
maxlength="16"
style="width: 100%"
disabled
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item prop="bcdgrp.drr.pts.nam">
<c-input
v-model="model.bcdgrp.drr.pts.nam"
maxlength="40"
style="width: 100%"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="承兑日期" prop="bcdgrp.rec.accdat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.accdat"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择承兑日期"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<!-- <c-edit-table :model="model" v-bind="docgrd">
</c-edit-table> -->
<c-docpre
:model="model"
:argadr="{
path: 'bcdgrp.blk.docpre',
grp: 'bctp',
code: 'docpre',
}"
></c-docpre>
</c-col>
</div>
</template>
<script>
import event from "../event";
import Docpre from "~/views/Public/Docpre";
export default {
components: {
"c-docpre": Docpre,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {
},
computed: {
modelsetmoddoccur(){
this.model.setmod.doccur = this.model.bcdgrp.cbs.opn1.cur
return this.model.setmod.doccur
},
modelsetmoddocamt(){
this.model.setmod.docamt = this.model.bcdgrp.cbs.opn1.amt
return this.model.setmod.docamt
},
}
};
</script>
<style></style>
<template>
<div class="eibs">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<c-col :span="20">
<el-form-item label="放单指示条款" prop="bcdgrp.blk.colins">
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.colins" maxlength="165" show-word-limit
placeholder="请输入放单指示条款"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-button size="small" type="primary" icon="el-icon-search"
>
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="20">
<el-form-item label="汇票指示条款" prop="bcdgrp.blk.dftins">
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.dftins" maxlength="165" show-word-limit
placeholder="请输入汇票指示条款"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-button
size="small" type="primary" icon="el-icon-search">
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="拒绝证书指示条款" prop="bcdgrp.rec.proins">
<c-select v-model="model.bcdgrp.rec.proins" style="width:50%" placeholder="请选择拒绝证书指示条款">
<el-option v-for="item in codes.proins" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="20">
<el-form-item label="其他指示条款" prop="bcdgrp.blk.othins">
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.othins" maxlength="65" show-word-limit
placeholder="请输入其他指示条款">
</c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-button size="small" type="primary" icon="el-icon-search">
</c-button>
</c-col>
<c-col :span="24">
<el-form-item label="货物代码(风险国家)" prop="bcdgrp.rec.stagod">
<c-select v-model="model.bcdgrp.rec.stagod" style="width:50%"
placeholder="请选择货物代码(风险国家)">
<el-option v-for="item in codes.godcod" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<c-col :span="24">
<el-form-item label="费用承担条款" prop="bcdgrp.rec.chato">
<c-select v-model="model.bcdgrp.rec.chato" style="width:54%" placeholder="请输入费用承担条款">
<el-option v-for="item in codes.chadet" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="手续费支付的附加详述" prop="bcdgrp.blk.chgtxt">
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.chgtxt" maxlength="35" style="width:100%"
show-word-limit placeholder="请输入手续费支付的附加详述"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" style="text-align: left" prop="bcdgrp.rec.focflg">
<c-checkbox v-model="model.bcdgrp.rec.focflg">无偿放单选项</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交单时是否放弃向代收行收取费用的权力" prop="bcdgrp.rec.waicolcod">
<c-select v-model="model.bcdgrp.rec.waicolcod" style="width:54%"
placeholder="请选择交单时是否放弃向代收行收取费用的权力">
<el-option v-for="item in codes.waicod" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="放单时是否放弃向托收行收取费用的权力" prop="bcdgrp.rec.wairmtcod">
<c-select v-model="model.bcdgrp.rec.wairmtcod" style="width:54%"
placeholder="请选择放单时是否放弃向托收行收取费用的权力">
<el-option v-for="item in codes.waicod" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="延期付款期限" prop="bcdgrp.rec.othins">
<c-select v-model="model.bcdgrp.rec.othins" style="width:54%" placeholder="请选择延期付款期限">
<el-option v-for="item in codes.bcothi" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [event],
data() {
return {}
},
methods: {},
created: function () {
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" style="padding-right:20px;">
<c-col :span="24">
<el-form-item
label="付款人参考号"
prop="bcdgrp.dre.pts.ref"
>
<c-input
disabled
v-model="model.bcdgrp.dre.pts.ref"
maxlength="16"
style="width: 100%"
placeholder="请输入付款人参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人名称" prop="bcdgrp.dre.pts.extkey">
<c-fullbox>
<c-input
disabled
v-model="model.bcdgrp.dre.pts.extkey"
maxlength="50"
placeholder="请输入付款人名称"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
disabled
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.dre.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.dre.pts.adrblk"
maxlength="50"
disabled
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="第二代收行参考号"
prop="bcdgrp.co2.pts.ref"
>
<c-input
v-model="model.bcdgrp.co2.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="第二代收行名称" prop="bcdgrp.co2.pts.extkey">
<c-fullbox>
<c-input
v-model="model.bcdgrp.co2.pts.extkey"
maxlength="50"
placeholder="请输入第二代收行名称"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
disabled
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.co2.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.co2.pts.adrblk"
maxlength="150"
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- =====================right================================ -->
<c-col :span="12" style="padding-left:20px;">
<c-col :span="24">
<el-form-item
label="托收行参考号"
prop="bcdgrp.rmi.pts.ref"
>
<c-input
v-model="model.bcdgrp.rmi.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行名称" prop="bcdgrp.rmi.pts.extkey">
<c-fullbox>
<c-input
v-model="model.bcdgrp.rmi.pts.extkey"
maxlength="50"
placeholder="请输入托收行名称"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
disabled
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.rmi.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.rmi.pts.adrblk"
maxlength="50"
disabled
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="收款人参考号"
prop="bcdgrp.drr.pts.ref"
>
<c-input
v-model="model.bcdgrp.drr.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人名称" prop="bcdgrp.drr.pts.extkey">
<c-fullbox>
<c-input
v-model="model.bcdgrp.drr.pts.extkey"
maxlength="50"
placeholder="请输入收款人名称"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
disabled
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.drr.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.drr.pts.adrblk"
maxlength="150"
disabled
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event"
import Ptap from "~/views/Public/Ptap";
export default {
components: {
"c-ptap": Ptap
},
inject: ['root'],
props: ["model", "codes"],
mixins: [event],
data() {
return {}
},
methods: {},
created: function () {
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<c-page title="进口代收承兑">
<div class="eContainer">
<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">
<!-- 业务信息 -->
<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">
<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"
/>
</c-content>
</el-tab-pane>
<!--备查/附言 -->
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--报文/面函 -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--附件 -->
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
>
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
>
</c-grid-ety-prompt-dialog>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</div>
</c-page>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Bctacc from "../model";
import Addbcb from "./Addbcb";
import Bctset from "./Bctset";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Ovwp from "./ovwp.vue";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views"
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import operationFunc from "@/mixin/operationFunc";
import event from "../event";
import formRules from "@/business/bctacc/model/check";
export default {
name: "Bctacc",
components: {
"m-addbcb": Addbcb,
"m-bctset": Bctset,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-engp": Engp,
"m-setmod": Setmod,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-ovwp": Ovwp,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
trnName: "bctacc",
model: new Bctacc().data,
rules: formRules,
codes: {
...CodeTable,
},
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: {},
created: async function () {},
mounted () {
this.init()
},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="Settle BC" name="bctset">
<m-bctset :model="model" :codes="codes"/>
</el-collapse-item>
<el-collapse-item title="指示条款" name="detp">
<m-detp :model="model" :codes="codes"/>
</el-collapse-item>
<el-collapse-item title="参与方" name="ptyp">
<m-ptyp :model="model" :codes="codes"/>
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event"
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Bctset from "./Bctset"
export default {
components: {
"m-bctset": Bctset,
"m-detp": Detp,
"m-ptyp": Ptyp,
},
inject: ['root'],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["bctset"],
}
},
methods: {},
created: function () {
}
}
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
\ No newline at end of file
<template>
<ReviewWrapper>
<Bctacc></Bctacc>
</ReviewWrapper>
</template>
<script>
import Bctacc from "~/business/bctacc/views";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewBctacc",
components: { ReviewWrapper, Bctacc },
created() {},
mounted() {},
};
</script>
<style></style>
......@@ -78,9 +78,9 @@ const Business = [
{ path: 'botame', component: () => import('~/business/botame/views'), name: 'botame', meta: { title: '出口托收修改' } },
{ path: 'bctdav', component: () => import('~/business/bctdav/views'), name: 'bctdav', meta: { title: '进口代收' } },
{ path: 'bctdor', component: () => import('~/business/bctdor/views'), name: 'bctdor', meta: { title: '进口代收拒付/不符点处理' } },
{ path: 'bctset', component: () => import('~/business/bctset/views'), name: 'bctset', meta: { title: '进口代收付款' } },
// { path: 'bctset', component: () => import('~/business/bctset/views'), name: 'bctset', meta: { title: '进口代收付款' } },
{ path: 'infbcd', component: () => import('~/business/infbcd/views'), name: 'infbcd', meta: { title: '进口代收入口交易' }
},
{ path: 'infbcd', component: () => import('~/business/infbcd/views'), name: 'infbcd', meta: { title: '进口代收入口交易' }},
{ path: 'bctacc', component: () => import('~/business/bctacc/views'), name: 'bctacc', meta: { title: '进口代收承兑' }},
]
export default Business
\ No newline at end of file
......@@ -35,6 +35,7 @@ const Business = [
{ path: 'reviewlitrog', component: () => import('~/review/ReviewLitrog.vue'), name: 'reviewlitrog', meta: { title: '复核-litrog' } },
{ path: 'reviewbotcan', component: () => import('~/review/ReviewBotcan.vue'), name: 'reviewbotcan', meta: { title: '复核-botcan' } },
{ path: 'reviewbotame', component: () => import('~/review/ReviewBotame.vue'), name: 'reviewbotame', meta: { title: '复核-botame' } },
{ path: 'reviewbctacc', component: () => import('~/review/ReviewBctacc.vue'), name: 'reviewbctacc', meta: { title: '复核-bctacc' } },
......
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