Commit 56507d6c by liaoxing

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents ede2673f 5693b163
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.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
opndat: model.bcdgrp.rec.opndat,
expdat: model.bcdgrp.rec.expdat,
branchInr: model.bcdgrp.rec.branchInr,
nam: model.bcdgrp.rec.nam,
oridre: model.bcdgrp.rec.oridre,
},
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))
// }
}
const res = await Api.post('/service/bctdor/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.gidgrp.apl.pts.ptainr,
// businessType: 'LG',保函用的是LG
// tbl: 'LG',
// };
// const loading = this.loading();
// let res = await Api.post('/service/gitopn/getOwnRef', params);
// if (res.respCode == SUCCESS) {
// loading.close();
// this.model.gidgrp.rec.ownref = res.data;
// }
// },
// 获取弹框表格数据
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;
}
},
// 选中弹框表格的行数据
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 = {
botp: {
swiftflg: this.model.botp.swiftflg,
},
bcdgrp: {
rec: {
purpos: this.model.bcdgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/bctdav/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 Bctdor{
constructor () {
this.data = {
bctdrrl1blk:"",
bctdrel1blk:"",
bctdrel2blk:"",
bctrogl1blk:"",
bctrogl2blk:"",
cnybop:{
cnyflg:"",
traflg:"",
outflg:"",
libflg:"",
vouflg:"",
},
bcdgrp:{
co2:{
pts:new Pts().data,
},
srm:{
djutyp:"",
},
rec:{
ownref:"", // Reference .bcdgrp.rec.ownref
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
nam:"", // Name .bcdgrp.rec.nam
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,
},
},
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:{
docdsclab:"", // Label of document description .bctp.docgrdm.docdsclab
docgrd:[],
},
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
},
outlen:{
szflg:"", // 申报类型 .outlen.szflg
},
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" @change="handleChange">
<!--el-collapse-item title="备查表" name="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item-->
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import Utils from "~/utils";
import Event from "~/model/Litcan/Event";
//import Addbcb1 from "~/views/Public/Addbcb1";
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
//"m-addbcb1": Addbcb1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {
...Event,
handleChange(val) {
console.log(val);
},
},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<!-- <c-row>-->
<div class="eibs">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="放单指示条款">
<c-input
disabled
type="textarea"
v-model="model.bcdgrp.blk.colins"
maxlength="65"
show-word-limit
placeholder="请输入放单指示条款"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇票指示条款">
<c-input
disabled
type="textarea"
v-model="model.bcdgrp.blk.dftins"
maxlength="65"
show-word-limit
placeholder="请输入汇票指示条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="拒绝证书指示条款" prop="bcdgrp.rec.proins">
<c-select
disabled
v-model="model.bcdgrp.rec.proins"
style="width: 100%"
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="24">
<el-form-item label="其他指示条款">
<c-input
disabled
type="textarea"
v-model="model.bcdgrp.blk.othins"
maxlength="65"
show-word-limit
placeholder="请输入其他指示条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物代码(风险国家)">
<c-select
disabled
v-model="model.bcdgrp.rec.stagod"
style="width: 100%"
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">
<el-form-item label="费用承担条款">
<c-select
disabled
v-model="model.bcdgrp.rec.chato"
style="width: 100%"
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 :span="24">
<el-form-item label="手续费支付的附加详述">
<c-input
disabled
type="textarea"
v-model="model.bcdgrp.blk.chgtxt"
maxlength="35"
show-word-limit
placeholder="请输入手续费支付的附加详述"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox disabled v-model="model.bcdgrp.rec.focflg"
style="margin-left:150px"
>无偿放单选项</c-checkbox
>
</c-col>
<c-col :span="24">
<el-form-item label="交单时是否放弃向代收行收取费用的权力">
<c-select
disabled
v-model="model.bcdgrp.rec.waicolcod"
style="width: 100%"
placeholder="请选择交单时是否放弃向代收行收取费用的权力"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="放单时是否放弃向托收行收取费用的权力">
<c-select
disabled
v-model="model.bcdgrp.rec.wairmtcod"
style="width: 100%"
placeholder="请选择放单时是否放弃向托收行收取费用的权力"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="延期付款期限">
<c-select
disabled
v-model="model.bcdgrp.rec.othins"
style="width: 100%"
placeholder="请选择延期付款期限"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</div>
<!-- </c-row>-->
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bctdor/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="拒单" name="ovwp">
<m-ovwp :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 Ovwp from "./Ovwp1";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import commonProcess from "~/mixin/commonProcess";
import Event from "~/model/Bctdor/Event";
export default {
components: {
"m-ovwp": Ovwp,
"m-detp": Detp,
"m-ptyp": Ptyp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
flag: true,
activeNames: ["ovwp"],
}
},
methods: {
...Event,
handleChange(val) {
console.log(val);
}
},
created: function (){},
computed: {
},
}
</script>
<style scoped>
</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">
<c-fullbox>
<c-input
disabled
v-model="model.bcdgrp.rec.ownref"
maxlength="16"
placeholder="请输入代收拒付编号"
></c-input>
<template slot="footer">
<c-button
style="margin:0 0 0 10px; 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-select
disabled
v-model="model.bcdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择代收币种及金额"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left; margin-left: 5px"
label-width="0"
prop="bcdgrp.cbs.max.amt"
>
<c-input
disabled
style="text-align: left"
v-model="model.bcdgrp.cbs.max.amt"
placeholder="请输入代收币种及金额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="代收币种及余额" prop="bcdgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.bcdgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择代收币种及余额"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="0" prop="bcdgrp.cbs.opn1.amt" style="margin-left: 5px">
<c-input
disabled
style="text-align: left"
v-model="model.bcdgrp.cbs.opn1.amt"
placeholder="请输入代收币种及余额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="收单日期" prop="bcdgrp.rec.rcvdat">
<c-date-picker
disabled
type="date"
v-model="model.bcdgrp.rec.rcvdat"
style="width: 100%"
placeholder="请选择收单日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="通知日期" prop="bcdgrp.rec.advdat">
<c-date-picker
disabled
type="date"
v-model="model.bcdgrp.rec.advdat"
style="width: 100%"
placeholder="请选择"
></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"
disabled
v-model="model.bcdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择单据到期日"
></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"
disabled
v-model="model.bcdgrp.rec.predat"
style="width: 100%"
placeholder="请选择单据到期日"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="支付条件" prop="bcdgrp.rec.doctypcod">
<c-select
:code="codes.doctypcod"
disabled
v-model="model.bcdgrp.rec.doctypcod"
style="width: 100%"
placeholder="请选择支付条件"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="单据状态"
prop="bcdgrp.rec.docsta"
style="width: 100%"
>
<c-select
:code="codes.docstabot"
style="width: 100%"
disabled
v-model="model.bcdgrp.rec.docsta"
placeholder="请输入单据状态"
></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="拒单类型"
prop="rejtypsel"
style="width: 100%"
>
<c-select
style="width:100%"
:code="codes.rejtypsel"
v-model="model.rejtypsel"
placeholder="请输入拒单类型"></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="拒单理由描述 " prop="bcdgrp.blk.resrej">
<c-fullbox>
<c-input
:rows="4"
style="width: 100%"
type="textarea"
v-model="model.bcdgrp.blk.resrej"
maxlength="50"
show-word-limit
placeholder="请输入拒单理由描述 "
></c-input>
<template slot="footer">
<c-button style="margin-left: 10px; padding: 0 12px"
size="small"
type="primary"
@click="onResrejButtxmsel"
>
<i class="el-icon-more"></i>
</c-button>
</template>
</c-fullbox>
</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">
<c-input
disabled
v-model="model.bcdgrp.rec.nam"
maxlength="40"
placeholder="请输入简略信息"
></c-input>
</el-form-item>
</c-col>
<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"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人名称" prop="bcdgrp.dre.pts.nam">
<c-input
disabled
v-model="model.bcdgrp.dre.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行参考号" prop="bcdgrp.rmi.pts.ref">
<c-input
disabled
v-model="model.bcdgrp.rmi.pts.ref"
maxlength="16"
placeholder="请输入托收行"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行名称" prop="bcdgrp.rmi.pts.nam">
<c-input
disabled
v-model="model.bcdgrp.rmi.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人参考号" prop="bcdgrp.drr.pts.ref">
<c-input
disabled
v-model="model.bcdgrp.drr.pts.ref"
maxlength="16"
placeholder="请输入收款人"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人名称" prop="bcdgrp.drr.pts.nam">
<c-input
disabled
v-model="model.bcdgrp.drr.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="SWIFT报文通知类型" prop="advtyp">
<c-select
:code="codes.advtyp1"
v-model="model.advtyp"
style="width: 100%"
placeholder="请选择SWIFT报文通知类型"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="SWIFT报文时间" prop="swtdat">
<c-date-picker
type="date"
v-model="model.swtdat"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox
style="margin: 0px 0 10px 150px"
disabled
true-label="C"
v-model="model.mtabut.clsflg"
>闭卷</c-checkbox
>
</c-col>
<c-col :span="24" v-if="(this.model.rejtypsel == 'R')">
<el-form-item label="退单方式" prop="rejtype">
<c-select
:code="codes.rejtype"
v-model="model.rejtype"
style="width: 100%"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bctdor/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
watch:{
"model.rejtypsel":{
immediate:true,
handler(){
if(this.model.rejtypsel == 'R'){
this.model.rejtype='1'
}
}
}
},
};
</script>
<style></style>
<template>
<div class="eibs">
<!-- ====================左边======================= -->
<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=""
disabled
></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="请输入第二代收行名称"
disabled
></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="50"
disabled
show-word-limit
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.rmi.pts.ref">
<c-input
v-model="model.bcdgrp.rmi.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
disabled
></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="请输入托收行名称"
disabled
></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=""
disabled
></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="请输入收款人名称"
disabled
></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="50"
disabled
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bctdor/Event"
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptap": Ptap },
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<c-page title="进口代收拒付">
<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">
<!--PD000025 -->
<!-- <el-tab-pane label="拒单" name="ovwp">-->
<!-- <m-ovwp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;PD000018 &ndash;&gt;-->
<!-- <el-tab-pane label="指示条款" name="detp">-->
<!-- <m-detp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;PD000260 &ndash;&gt;-->
<!-- <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;PD000000 &ndash;&gt;-->
<!-- <el-tab-pane label="结算" name="setpan">-->
<!-- <m-setpan :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;PD000027 &ndash;&gt;-->
<!-- <el-tab-pane label="账务" name="glepan">-->
<!-- <m-glepan :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;PD000000 &ndash;&gt;-->
<!-- <el-tab-pane label="提示信息" name="coninfp">-->
<!-- <m-coninfp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;PD000529 &ndash;&gt;-->
<!-- <el-tab-pane label="报文和面函" name="docpan">-->
<!-- <m-docpan :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- <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>
<!--PD000027 -->
<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>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glentry">
<c-content>
<m-glentry :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-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bctdor from "../model";
import formRules from '../model/check'
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 Glentry from "~/components/business/glentry/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: "Bctdor",
components: {
"m-ovwp": Ovwp,
// "m-detp": Detp,
// "m-ptyp": Ptyp,
"m-setmod": Setmod,
"m-engp": Engp,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-glentry": Glentry,
"m-doctre": Doctre,
"m-addbcb": Addbcb,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
activeNames: ["engp"],
tabVal: "ovwp",
trnName: "bctdor",
model: new Bctdor().data,
rules: formRules,
codes: { ...CodeTable },
};
},
methods: {},
// created: async function () {
// console.log("进入bctdor交易");
// 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>
<style>
</style>
......@@ -143,7 +143,7 @@ export default {
}
this.$router.push({
// name: 'Review-new' + trnName.charAt(0).toUpperCase() + trnName.substring(1),
path: 'review-new/' + row['inifrm'].toLowerCase(),
path: 'review-new/review' + row['inifrm'].toLowerCase(),
query: { trn: row['inr'], operateId: operateId,newFlag:row.inifrm.toLowerCase()},
params: { prePageId: this.model.pageId },
});
......
......@@ -77,6 +77,10 @@ const Business = [
{ path: 'botrad', component: () => import('~/business/botrad/views'), name: 'botrad', meta: { title: '出口托收二次寄单' } },
{ path: 'botame', component: () => import('~/business/botame/views'), name: 'botame', meta: { title: '出口托收修改' } },
{ path: 'bctdav', component: () => import('~/business/bctdav/views'), name: 'bctdav', meta: { title: '进口代收' } },
{ path: 'infbcd', component: () => import('~/business/infbcd/views'), name: 'infbcd', 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: 'infbcd', component: () => import('~/business/infbcd/views'), name: 'infbcd', meta: { title: '进口代收入口交易' }
},
]
export default Business
\ No newline at end of file
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