Commit 955ede04 by WF1020

betcan修改

parent c12621ad
......@@ -19,38 +19,38 @@ export default {
},
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.brdgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.apl));
if (model.bedgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bedgrp.apl));
}
if (model.brdgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.ben));
if (model.bedgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bedgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'lid',
ownref: model.brdgrp.rec.ownref,
opndat: model.brdgrp.rec.opndat,
expdat: model.brdgrp.rec.expdat,
branchInr: model.brdgrp.rec.branchInr,
hndtyp: model.brdgrp.rec.hndtyp,
gartyp: model.brdgrp.rec.gartyp,
fingua: model.brdgrp.rec.fingua,
fromflg: model.brdgrp.rec.fromflg,
othersno: model.brdgrp.rec.othersno,
sndto: model.brdgrp.rec.sndto,
swiftflg: model.brtp.swiftflg,
brduil: model.brdgrp.rec.brduil,
purpos: model.brdgrp.rec.purpos,
revflg: model.brdgrp.rec.revflg,
cnfsta: model.brdgrp.rec.cnfsta,
objtyp: 'bed',
ownref: model.bedgrp.rec.ownref,
opndat: model.bedgrp.rec.opndat,
expdat: model.bedgrp.rec.expdat,
branchInr: model.bedgrp.rec.branchInr,
hndtyp: model.bedgrp.rec.hndtyp,
gartyp: model.bedgrp.rec.gartyp,
fingua: model.bedgrp.rec.fingua,
fromflg: model.bedgrp.rec.fromflg,
othersno: model.bedgrp.rec.othersno,
sndto: model.bedgrp.rec.sndto,
swiftflg: model.bedp.swiftflg,
brduil: model.bedgrp.rec.brduil,
purpos: model.bedgrp.rec.purpos,
revflg: model.bedgrp.rec.revflg,
cnfsta: model.bedgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.brdgrp.cbs.max,
OPN1: model.brdgrp.cbs.opn1,
MAC: model.brdgrp.cbs.mac,
MAC2: model.brdgrp.cbs.mac2,
OPC2: model.brdgrp.cbs.opc2,
CNF: model.brdgrp.cbs.cnf,
MAX: model.bedgrp.cbs.max,
OPN1: model.bedgrp.cbs.opn1,
MAC: model.bedgrp.cbs.mac,
MAC2: model.bedgrp.cbs.mac2,
OPC2: model.bedgrp.cbs.opc2,
CNF: model.bedgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
......@@ -127,7 +127,7 @@ export default {
objtyp: 'bed',
objinr: model.bedgrp.rec.objinr,
ownref: model.bedgrp.rec.ownref,
swiftflg: model.brtp.swiftflg,
swiftflg: model.bedp.swiftflg,
},
};
return params
......
......@@ -28,7 +28,7 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
brdgrp:{
bedgrp:{
rec:{
inr:this.$route.query.inr
}
......@@ -93,7 +93,6 @@ export default {
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest);
break;
default:
return;
}
......@@ -105,15 +104,15 @@ export default {
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() {
let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr,
businessType: 'LG',
tbl: 'LG',
ptainr: this.model.bedgrp.apl.pts.ptainr,
businessType: 'LC',
tbl: 'LC',
};
const loading = this.loading();
let res = await Api.post('/service/betcan/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
this.model.bedgrp.rec.ownref = res.data;
}
},
// 获取brtacp弹框表格数据
......@@ -121,7 +120,7 @@ export default {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.gidgrp[type.toLowerCase()].pts.extkey,
extkey: this.model.bedgrp[type.toLowerCase()].pts.extkey,
};
let res = await Api.post('/service/ptspta/list', params);
if (res.respCode == SUCCESS) {
......@@ -137,7 +136,7 @@ export default {
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.gidgrp, row.role.toLowerCase(), res.data);
this.$set(this.model.bedgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
......@@ -147,12 +146,12 @@ export default {
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
betp: {
swiftflg: this.model.betp.swiftflg,
},
gidgrp: {
bedgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
purpos: this.model.bedgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
......
......@@ -175,22 +175,13 @@ export default class Betcan {
}
},
iss: {
pts: {
ref: '',
nam: ''
}
pts: new Pts().data,
},
ben: {
pts: {
ref: '',
nam: ''
}
pts: new Pts().data,
},
apl: {
pts: {
ref: '',
nam: ''
}
pts: new Pts().data,
}
},
setmod: new Pub().data.Setmod,
......
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse v-model="activeNames">
<!--el-collapse-item title="备查表" name="addbcb">
<m-addbcb :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/Betcan/Event";
import event from '../event';
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {
...Event,
handleChange(val) {
console.log(val);
},
},
created: function () { },
};
</script>
<style>
</style>
......@@ -12,7 +12,7 @@
)">
</c-input>
<template slot="footer">
<c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary" @click="onSeainf">
<c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary">
<i class="el-icon-info" style="font-size:15px"></i>
</c-button>
</template>
......@@ -26,7 +26,7 @@
<c-input v-model="model.bedgrp.rec.ownref" maxlength="16" placeholder="请输入单据编号" style="width: 95%" disabled>
</c-input>
<template slot="footer">
<c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary" @click="onSeainf">
<c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary">
<i class="el-icon-info" style="font-size:15px"></i>
</c-button>
</template>
......@@ -198,18 +198,16 @@
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Betcan/Event'
import event from '../event';
export default {
inject: ['root'],
props: ['model', 'codes'],
mixins: [commonProcess],
mixins: [event],
data() {
return {}
},
methods: { ...Event, onSeainf() { } },
methods: { },
created: function () { },
}
</script>
......
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse v-model="activeNames" >
<el-collapse-item title="取消信息" name="canp">
<m-canp :model="model" :codes="codes" />
</el-collapse-item>
......@@ -9,31 +9,22 @@
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betcan/Event";
import Canp from "./Canp";
import event from '../event';
export default {
components: {
"m-canp": Canp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [event],
data() {
return {
activeNames: ["canp"],
};
},
methods: {
...Event,
handleChange(val) {
console.log(val);
},
},
created: function () { },
};
......
......@@ -28,7 +28,7 @@
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod :model="model" :codes="codes" @changeSetmodModel="changeSetmodModel" />
<m-setmod :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
......@@ -80,11 +80,9 @@ import operationFunc from "~/mixin/operationFunc";
import CodeTable from "~/config/CodeTable"
import formRules from '../model/check'
import Betcan from "../model";
import Ovwp from './Ovwp'
import Canp from './Canp'
import Addbcb from "./Addbcb"
import Engp from "~/components/business/engp/views";
// import Ccvpan from "~/components/business/ccvpan/views";
import Setmod from "~/components/business/setmod/views";
......
......@@ -19,38 +19,38 @@ export default {
},
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.brdgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.apl));
if (model.ledgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.apl));
}
if (model.brdgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.ben));
if (model.ledgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'led',
ownref: model.brdgrp.rec.ownref,
opndat: model.brdgrp.rec.opndat,
expdat: model.brdgrp.rec.expdat,
branchInr: model.brdgrp.rec.branchInr,
hndtyp: model.brdgrp.rec.hndtyp,
gartyp: model.brdgrp.rec.gartyp,
fingua: model.brdgrp.rec.fingua,
fromflg: model.brdgrp.rec.fromflg,
othersno: model.brdgrp.rec.othersno,
sndto: model.brdgrp.rec.sndto,
swiftflg: model.brtp.swiftflg,
brduil: model.brdgrp.rec.brduil,
purpos: model.brdgrp.rec.purpos,
revflg: model.brdgrp.rec.revflg,
cnfsta: model.brdgrp.rec.cnfsta,
ownref: model.ledgrp.rec.ownref,
opndat: model.ledgrp.rec.opndat,
expdat: model.ledgrp.rec.expdat,
branchInr: model.ledgrp.rec.branchInr,
hndtyp: model.ledgrp.rec.hndtyp,
gartyp: model.ledgrp.rec.gartyp,
fingua: model.ledgrp.rec.fingua,
fromflg: model.ledgrp.rec.fromflg,
othersno: model.ledgrp.rec.othersno,
sndto: model.ledgrp.rec.sndto,
swiftflg: model.letp.swiftflg,
brduil: model.ledgrp.rec.brduil,
purpos: model.ledgrp.rec.purpos,
revflg: model.ledgrp.rec.revflg,
cnfsta: model.ledgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.brdgrp.cbs.max,
OPN1: model.brdgrp.cbs.opn1,
MAC: model.brdgrp.cbs.mac,
MAC2: model.brdgrp.cbs.mac2,
OPC2: model.brdgrp.cbs.opc2,
CNF: model.brdgrp.cbs.cnf,
MAX: model.ledgrp.cbs.max,
OPN1: model.ledgrp.cbs.opn1,
MAC: model.ledgrp.cbs.mac,
MAC2: model.ledgrp.cbs.mac2,
OPC2: model.ledgrp.cbs.opc2,
CNF: model.ledgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
......@@ -127,7 +127,7 @@ export default {
objtyp: 'led',
objinr: model.ledgrp.rec.objinr,
ownref: model.ledgrp.rec.ownref,
swiftflg: model.brtp.swiftflg,
swiftflg: model.letp.swiftflg,
},
};
return params
......
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