Commit 92fccfb9 by xionglin

brtcan

parent e99e62c4
......@@ -19,42 +19,26 @@ export default {
},
buildCommonData (model, trnName) {
let ptsptaList = [];
// if (model.lidgrp.apl.pts.extkey) {
// ptsptaList.push(this.buildPtspta(model.lidgrp.apl));
// }
// if (model.lidgrp.adv.pts.extkey) {
// ptsptaList.push(this.buildPtspta(model.lidgrp.adv));
// }
// if (model.lidgrp.ben.pts.extkey) {
// ptsptaList.push(this.buildPtspta(model.lidgrp.ben));
// }
if (model.brdgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.apl));
}
if (model.brdgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'LID',
ownref: model.lidgrp.rec.ownref,
opndat: model.lidgrp.rec.opndat,
expdat: model.lidgrp.rec.expdat,
branchInr: model.lidgrp.rec.branchInr,
hndtyp: model.lidgrp.rec.hndtyp,
gartyp: model.lidgrp.rec.gartyp,
fingua: model.lidgrp.rec.fingua,
segtyp: model.lidgrp.ghd.segtyp,
fromflg: model.lidgrp.rec.fromflg,
othersno: model.lidgrp.rec.othersno,
sndto: model.lidgrp.rec.sndto,
swiftflg: model.gitp.swiftflg,
giduil: model.lidgrp.rec.giduil,
purpos: model.lidgrp.rec.purpos,
revflg: model.lidgrp.rec.revflg,
cnfsta: model.lidgrp.rec.cnfsta,
ownref: model.brdgrp.rec.ownref,
nam:model.brdgrp.rec.nam,
rcvdat:model.brdgrp.rec.rcvdat,
advdat:model.brdgrp.rec.advdat,
docflg:model.brdgrp.rec.docflg,
docsta:model.brdgrp.rec.docsta,
matdat:model.brdgrp.rec.matdat
},
cbsMap: {
MAX: model.lidgrp.cbs.max,
OPN1: model.lidgrp.cbs.opn1,
MAC: model.lidgrp.cbs.mac,
MAC2: model.lidgrp.cbs.mac2,
OPC2: model.lidgrp.cbs.opc2,
CNF: model.lidgrp.cbs.cnf,
MAX: model.brdgrp.cbs.max,
OPN1: model.brdgrp.cbs.opn1,
},
ptsList: ptsptaList,
transName: trnName,
......
......@@ -69,7 +69,7 @@ export default {
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setpan':
case 'setmod':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
......
......@@ -18,11 +18,11 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"lidgrp.cbs.opn1.amt":[
//{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
//{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "lidgrp.cbs.opn1.amt":[
// //{type: "string", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// //{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"brtp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
......
......@@ -6,6 +6,7 @@ export default class Brtcan{
strinf:"", // Narrative .strinf
brdgrp:{
rec:{
inr:"",
ownref:"", // 单据参考号 .brdgrp.rec.ownref
nam:"", // Name of Bill Contract .brdgrp.rec.nam
rcvdat:"", // 到单日期 .brdgrp.rec.rcvdat
......@@ -38,6 +39,7 @@ export default class Brtcan{
rec:{
ownref:"", // 参考号 .lidgrp.rec.ownref
expdat:"", // Date of Expiry .lidgrp.rec.expdat
branchinr:"",
},
cbs:{
opn1:{
......
<template>
<div class="eibs">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse v-model="activeNames" >
<!--el-collapse-item title="备查表" name="addbcb">
<m-addbcb :model="model" :codes="codes" />
......
......@@ -177,6 +177,9 @@ export default {
},
data() {
return{
}
},
};
</script>
......
......@@ -51,7 +51,7 @@
import CodeTable from "~/config/CodeTable"
import Brtcan from "../model"
import event from '../event'
import commonFuncs from "~/mixin/commonFuncs"
import operationFunc from "~/mixin/operationFunc";
import Check from "../model/check"
import Canp from "./Canp"
import Ovwp from "./Ovwp"
......@@ -78,7 +78,7 @@ export default {
root: this
}
},
mixins: [event, commonFuncs], // 里面包含了Default、Check等的公共处理
mixins: [event, operationFunc], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
......
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