Commit 956b21f7 by suwenhao

getopn精简代码;

parent c4298fbb
import Api from '~/service/Api';
import Utils from '~/utils';
export default {
methods: {
tabClick(val) {
if (this.isInDisplay) {
return;
}
this.tabVal = val.name;
switch(val.name) {
//统一授信
case 'limitbody':
this.limitbody();
break;
//费用账务
case 'glepan':
this.glepan();
break;
//报文/面函
case 'docpan':
this.docpan();
break;
//附件信息
case 'doctre':
this.doctre();
break;
default:
return;
}
},
limitbody() {
},
glepan() {
},
docpan() {
},
doctre() {
},
async init() {
let params = {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
};
let res = await Api.post('/service/getopn/init', params);
if (res.respCode === SUCCESS) {
}
},
async showGridPromptDialog() {},
async onGitpButgetref() {
let rtnmsg = await this.executeRule('gitp.butgetref');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.model.gidgrp.rec.ownref = rtnmsg.data.gidgrp_rec_ownref;
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onAplpDet() {
let rtnmsg = await this.executeRule('aplp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onIsspDet() {
let rtnmsg = await this.executeRule('issp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onAdvpDet() {
let rtnmsg = await this.executeRule('advp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpWbxs() {
let rtnmsg = await this.executeRule('gitp.wbxs');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpYptxy() {
let rtnmsg = await this.executeRule('gitp.yptxy');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifexptxt() {
let rtnmsg = await this.executeRule('gitp.butdifexptxt');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onBenpDet() {
let rtnmsg = await this.executeRule('benp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifhisexptxt() {
let rtnmsg = await this.executeRule('gitp.butdifhisexptxt');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifliatxtc() {
let rtnmsg = await this.executeRule('gitp.butdifliatxtc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifhisliatxtc() {
let rtnmsg = await this.executeRule('gitp.butdifhisliatxtc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onConpDet() {
let rtnmsg = await this.executeRule('conp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onBdbpDet() {
let rtnmsg = await this.executeRule('bdbp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onCtrpDet() {
let rtnmsg = await this.executeRule('ctrp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onAtbpDet() {
let rtnmsg = await this.executeRule('atbp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifcovgodsrv() {
let rtnmsg = await this.executeRule('gitp.butdifcovgodsrv');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifhiscovgodsrv() {
let rtnmsg = await this.executeRule('gitp.butdifhiscovgodsrv');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdif() {
let rtnmsg = await this.executeRule('gitp.butdif');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifhis() {
let rtnmsg = await this.executeRule('gitp.butdifhis');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpShwgidtxt() {
let rtnmsg = await this.executeRule('gitp.shwgidtxt');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpGidtxtmod() {
let rtnmsg = await this.executeRule('gitp.gidtxtmod');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onCnrpDet() {
let rtnmsg = await this.executeRule('cnrp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onApcpDet() {
let rtnmsg = await this.executeRule('apcp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onCtcpDet() {
let rtnmsg = await this.executeRule('ctcp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onBecpDet() {
let rtnmsg = await this.executeRule('becp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onAvcpDet() {
let rtnmsg = await this.executeRule('avcp.det');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onChargicButtxmsel() {
let rtnmsg = await this.executeRule('chargic.buttxmsel');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifpreperc() {
let rtnmsg = await this.executeRule('gitp.butdifpreperc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifhispreperc() {
let rtnmsg = await this.executeRule('gitp.butdifhispreperc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifcovgodsrvc() {
let rtnmsg = await this.executeRule('gitp.butdifcovgodsrvc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifhiscovgodsrvc() {
let rtnmsg = await this.executeRule('gitp.butdifhiscovgodsrvc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButgetrefc() {
let rtnmsg = await this.executeRule('gitp.butgetrefc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifc() {
let rtnmsg = await this.executeRule('gitp.butdifc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpButdifhisc() {
let rtnmsg = await this.executeRule('gitp.butdifhisc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpShwgidtxtc() {
let rtnmsg = await this.executeRule('gitp.shwgidtxtc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onGitpGidtxtmodc() {
let rtnmsg = await this.executeRule('gitp.gidtxtmodc');
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
},
};
export default {
'gidgrp.blk.atxexptxt': null,
'gidgrp.blk.exptxt': null,
'gidgrp.rec.purpos': null,
'gidgrp.rec.atxinr': null,
'gidgrp.rec.secuilflg': null,
'gidgrp.cbs.max.cur': null,
'gidgrp.rec.fingua': null,
'gidgrp.con.pts.extkey': null,
'gidgrp.con.adrelc': null,
'gidgrp.con.namelc': null,
'gidgrp.con.dbfadrblkcn': null,
'gidgrp.con.pts.adrblk': null,
'gidgrp.rec.purposin': null,
'gidgrp.rec.liatypc': null,
'gidgrp.rec.expdat': null,
'gidgrp.rec.expflg': null,
'gidgrp.rec.deloric': null,
'gidgrp.adv.pts.extkey': null,
'gidgrp.adv.adrelc': null,
'gidgrp.adv.namelc': null,
'gidgrp.adv.dbfadrblkcn': null,
'gidgrp.rec.ownref': null,
'gidgrp.rec.exptyp': null,
'gidgrp.rec.orcdatc': null,
'gidgrp.rec.stdwrduilc': null,
'gidgrp.ghd.segtyp': null,
'gidgrp.rec.tendat': null,
'gidgrp.rec.giduil': null,
'gidgrp.rec.gtxinrc': null,
'gitp.prepercmodflg': null,
'gidgrp.apc.pts.extkey': null,
'gidgrp.apc.adrelc': null,
'gidgrp.apc.namelc': null,
'gidgrp.apc.dbfadrblkcn': null,
'gidgrp.apc.pts.adrblk': null,
'gidgrp.rec.gartyp': null,
'gidgrp.cbs.max.amt': null,
'gitp.gidtxtmodflg': null,
'gidgrp.bec.pts.extkey': null,
'gidgrp.bec.adrelc': null,
'gidgrp.bec.namelc': null,
'gidgrp.bec.dbfadrblkcn': null,
'gidgrp.bec.pts.adrblk': null,
'gidgrp.rec.revflg': null,
'gidgrp.blk.gtxgidtxtc': null,
'gidgrp.rec.gtxinr': null,
'gidgrp.blk.gtxgidtxt': null,
// "gidgrp.blk.gidtxt" :null,
'gitp.swiftflg': null,
'gidgrp.cnr.pts.extkey': null,
'gidgrp.cnr.adrelc': null,
'gidgrp.cnr.namelc': null,
'gidgrp.cnr.dbfadrblkcn': null,
'gidgrp.cnr.pts.adrblk': null,
'gidgrp.apl.pts.extkey': null,
'gidgrp.apl.adrelc': null,
'gidgrp.apl.namelc': null,
'gidgrp.apl.dbfadrblkcn': null,
'gitp.covgodsrvcmodflg': null,
'gidgrp.rec.autrnwflgc': null,
'gidgrp.atb.pts.extkey': null,
'gidgrp.rec.stdwrdc': null,
'gidgrp.ben.pts.extkey': null,
'gidgrp.rec.orcdat': null,
'gidgrp.rec.hndtyp': null,
'gidgrp.rec.orcratc': null,
'gidgrp.cbs.mac.cur': null,
'gidgrp.rec.orcamtc': null,
'gidgrp.cbs.mac.amt': null,
'gidgrp.ghd.bustyp': null,
'gidgrp.apl.pts.adrblk': null,
'gidgrp.rec.mannum': null,
'gidgrp.bdb.pts.extkey': null,
'gidgrp.rec.orccur': null,
'gitp.exptxtmodflg': null,
'gidgrp.blk.liatxtc': null,
'gidgrp.blk.atxliatxtc': null,
'gidgrp.atb.adrelc': null,
'gidgrp.atb.namelc': null,
'gidgrp.atb.dbfadrblkcn': null,
'gidgrp.atb.pts.adrblk': null,
'gidgrp.cbs.mac2.amt': null,
'gitp.usr.extkey': null,
'gidgrp.rec.liadat': null,
'gidgrp.rec.legfrm': null,
'gidgrp.iss.pts.extkey': null,
'gidgrp.iss.adrelc': null,
'gidgrp.iss.namelc': null,
'gidgrp.iss.dbfadrblkcn': null,
'gitp.inc760': null,
'gidgrp.blk.covgodsrv': null,
'gidgrp.blk.atxcovgodsrv': null,
'gidgrp.blk.atxcovgodsrvc': null,
'gidgrp.blk.covgodsrvc': null,
'gidgrp.rec.orccurc': null,
'gitp.gidtxtmodflgc': null,
'gidgrp.adv.pts.adrblk': null,
'gidgrp.rec.cnfsta': null,
'gidgrp.cbs.cnf.amt': null,
'gidgrp.rec.partcon': null,
'gidgrp.cbs.cnf.cur': null,
'gidgrp.rec.transferc': null,
'gidgrp.rec.opndat': null,
'gidgrp.ctc.pts.extkey': null,
'gidgrp.ctc.adrelc': null,
'gidgrp.ctc.namelc': null,
'gidgrp.ctc.dbfadrblkcn': null,
'gidgrp.ctr.pts.adrblk': null,
'gidgrp.blk.preperc': null,
'gidgrp.blk.atxpreperc': null,
'gidgrp.rec.gartypc': null,
'gidgrp.rec.legfrmc': null,
'gitp.aamp.aammod.addamtflg': null,
'gidgrp.rec.rmbflg': null,
'gidgrp.rec.reccnfdet': null,
'gidgrp.ctr.pts.extkey': null,
'gidgrp.avc.pts.extkey': null,
'gidgrp.ctr.adrelc': null,
'gidgrp.ctr.namelc': null,
'gidgrp.ctr.dbfadrblkcn': null,
'gidgrp.rec.jurlawc': null,
'gidgrp.ctc.pts.adrblk': null,
'gidgrp.cbs.opn1.amt': null,
'gidgrp.rec.trmdat': null,
'gidgrp.bdb.adrelc': null,
'gidgrp.bdb.namelc': null,
'gidgrp.bdb.dbfadrblkcn': null,
'gidgrp.bdb.pts.adrblk': null,
'gitp.inccormsgflg': null,
'gidgrp.avc.pts.nam': null,
'gidgrp.blk.gidtxtc': null,
'gitp.apcsupflg': null,
'gidgrp.ben.pts.adrblk': null,
'gidgrp.rec.trmdatc': null,
'gidgrp.rec.tendatc': null,
'gidgrp.rec.jurlaws20': null,
'gidgrp.blk.addamtcovc': null,
'gidgrp.cbs.mac2.cur': null,
'gitp.aacp.aacmod.addamtflg': null,
'gidgrp.rec.cnfdat': null,
'gidgrp.ben.adrelc': null,
'gidgrp.ben.namelc': null,
'gidgrp.ben.dbfadrblkcn': null,
'gitp.covgodsrvmodflg': null,
'gidgrp.rec.liaflg': null,
'gitp.liatxtcmodflg': null,
'gitp.aplsupflg': null,
'gidgrp.rec.deltoc': null,
'gidgrp.rec.stacty': null,
'gidgrp.blk.apprul': null,
'gitp.drpreflg': null,
'gidgrp.rec.tenclsdat': null,
'gidgrp.rec.orcamt': null,
'gidgrp.rec.cnfdet': null,
'gidgrp.rec.orcrat': null,
'gidgrp.iss.pts.adrblk': null,
'gidgrp.rec.tenclsdatc': null,
'gidgrp.ghd.aplnam': null,
'gidgrp.rec.vrfdat': null,
'gidgrp.rec.opndatc': null,
'gidgrp.rec.orddat': null,
'gidgrp.rec.inudat': null,
'gidgrp.blk.apprulc': null,
'gidgrp.rec.autrnwflg': null,
'setmod.glemod.glepan': null,
};
// 引入index.js中的字段,转成相应的规则
import Model from './index';
let model = new Model().data;
let defaultRule = {};
//扁平化对象
function flatRule(args) {
let obj = {};
let flat = (o, prekey = '') => {
Object.entries(o).forEach(([key, value]) => {
let newkey = key;
if(prekey) {
newkey = prekey + '.' + newkey;
}
if(value && typeof value === 'object') {
return flat(value, newkey)
}
obj[newkey] = null;
})
}
flat(args);
return obj;
}
defaultRule = flatRule(model);
//添加非null校验规则
let checkRule = {
'gitp.swiftflg': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.apl.pts.adrblk': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.ben.pts.extkey': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.blk.gidtxt': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.cbs.max.amt': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.cbs.max.cur': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.iss.pts.extkey': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.rec.expdat': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.rec.exptyp': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.rec.gartyp': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.rec.hndtyp': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.rec.ownref': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
'gidgrp.rec.purpos': [
{ required: true, message: "此字段为必填字段", trigger: 'change' },
],
}
defaultRule = { ...defaultRule, ...checkRule };
export default defaultRule;
......@@ -4,14 +4,6 @@ import Pub from '~/model/Public';
export default class Getopn {
constructor() {
this.data = {
gitbenl1blk: '',
gitapll1blk: '',
gitapll2blk: '',
gitbenl2blk: '',
gitapll3blk: '',
gitbenl4blk: '',
gitissl1blk: '',
gitrmbl1blk: '',
gitp: {
swiftflg: '', // 是否SWIFT格式 .gitp.swiftflg
recget: {
......
......@@ -65,16 +65,16 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: { },
created: function () {},
};
</script>
......
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<!--el-collapse-item title="备查表" name="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item-->
<el-collapse-item title="附言" name="coninfp">
<el-collapse v-model="activeNames">
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</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";
</template>
export default {
components: {
"m-coninfp": Coninfp,
//"m-addbcb1": Addbcb1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["coninfp"],
};
<script>
import Api from '~/service/Api';
import commonProcess from '~/mixin/commonProcess';
import Utils from '~/utils';
import Event from '../event';
import Coninfp from '~/views/Public/Coninfp';
},
methods: {
...Event,
},
created: function () {},
};
</script>
export default {
components: {
'm-coninfp': Coninfp,
},
inject: ['root'],
props: ['model', 'codes'],
mixins: [commonProcess, Event],
data() {
return {
activeNames: ['coninfp'],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<style></style>
......@@ -300,12 +300,12 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {
cnfdet: [
......@@ -315,7 +315,7 @@ export default {
],
};
},
methods: { ...Event },
methods: {},
created: function () {},
};
</script>
......
......@@ -632,16 +632,16 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: { },
watch:{
"model.gidgrp.rec.jurlaws20": function(){
if(this.model.gidgrp.rec.jurlaws20=="GB"){
......
......@@ -275,16 +275,16 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: { },
created: function () {},
};
</script>
......
<template>
<div class="eibs">
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item
label="保函文本的可变因素"
prop="gidgrp.blk.gidtxt"
v-if="model.gitp.gidtxtmodflg==''"
>
<c-input-xml
disabled
resize="none"
:maxRows="14"
:model="model.gidgrp.blk.gidtxt"
maxlength="32500"
show-word-limit
placeholder="请输入保函文本的可变因素"
></c-input-xml>
<!-- <c-input :disabled="model.gitp.gidtxtmodflg == ''" type="textarea" rows="15" v-model="model.gidgrp.blk.gidtxt" maxlength="65" show-word-limit placeholder="请输入Guarantee Text with Variables" ></c-input> -->
</el-form-item>
<el-form-item
label="保函文本的可变因素"
prop="gidgrp.blk.gtxgidtxt"
v-if="model.gitp.gidtxtmodflg=='X'"
>
<c-input-xml
resize="none"
:maxRows="10"
:model="model.gidgrp.blk.gtxgidtxt"
maxlength="32500"
show-word-limit
placeholder="请输入保函文本的可变因素"
></c-input-xml>
<!-- <c-input :disabled="model.gitp.gidtxtmodflg == ''" type="textarea" rows="15" v-model="model.gidgrp.blk.gidtxt" maxlength="65" show-word-limit placeholder="请输入Guarantee Text with Variables" ></c-input> -->
</el-form-item>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<c-checkbox
style="margin: 0 0 0 10px;float:left;"
v-model="model.gitp.gidtxtmodflg"
>修改保函文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="model.gitp.chkgidtxt"
style="margin: 0 0 0 10px;float:left;"
>允许</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
:disabled="model.gitp.gidtxtmodflg == ''"
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpButdif"
>
查看系统文本
</c-button>
</c-col>
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item
label="保函文本的可变因素"
prop="gidgrp.blk.gidtxt"
v-if="model.gitp.gidtxtmodflg == ''"
>
<c-xml-format-editor-new
:disabled="model.gitp.gidtxtmodflg == ''"
:model="model.gidgrp.blk.gidtxt"
placeholder="请输入保函文本的可变因素"
></c-xml-format-editor-new>
<!-- <c-input :disabled="model.gitp.gidtxtmodflg == ''" type="textarea" rows="15" v-model="model.gidgrp.blk.gidtxt" maxlength="65" show-word-limit placeholder="请输入Guarantee Text with Variables" ></c-input> -->
</el-form-item>
<el-form-item
label="保函文本的可变因素"
prop="gidgrp.blk.gtxgidtxt"
v-if="model.gitp.gidtxtmodflg == 'X'"
>
<c-xml-format-editor-new
:disabled="model.gitp.gidtxtmodflg == ''"
:model="model.gidgrp.blk.gtxgidtxt"
placeholder="请输入保函文本的可变因素"
></c-xml-format-editor-new>
<!-- <c-input :disabled="model.gitp.gidtxtmodflg == ''" type="textarea" rows="15" v-model="model.gidgrp.blk.gidtxt" maxlength="65" show-word-limit placeholder="请输入Guarantee Text with Variables" ></c-input> -->
</el-form-item>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<c-checkbox
style="margin: 0 0 0 10px; float: left"
v-model="model.gitp.gidtxtmodflg"
>修改保函文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="model.gitp.chkgidtxt"
style="margin: 0 0 0 10px; float: left"
>允许</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpButdifhis"
>
查看历史文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
:disabled="model.gitp.gidtxtmodflg == ''"
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpButdif"
>
查看系统文本
</c-button>
</c-col>
<template v-if="model.gitp.gidtxtmodflg == 'X'">
<c-col :span="24">
<c-button
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpShwgidtxt"
>
显示文本
</c-button>
</c-col>
</template>
<c-col :span="24">
<c-button
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpButdifhis"
>
查看历史文本
</c-button>
</c-col>
<c-col :span="24">
<c-input
style="margin: 5px 0 0 10px; width: 50%"
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入"
></c-input>
</c-col>
<c-col :span="24">
<c-button
disabled
style="margin: 5px 0 0 10px; width: 50%"
size="small"
type="primary"
@click="onGitpButgetref"
>
获取
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpGidtxtmod"
>
修改中文保函文本
</c-button>
</c-col>
<template v-if="model.gitp.gidtxtmodflg == 'X'">
<c-col :span="24">
<c-button
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpShwgidtxt"
>
显示文本
</c-button>
</c-col>
</template>
<c-col :span="24">
<c-input
style="margin: 5px 0 0 10px; width: 50%"
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入"
></c-input>
</c-col>
<c-col :span="24">
<c-button
disabled
style="margin: 5px 0 0 10px; width: 50%"
size="small"
type="primary"
@click="onGitpButgetref"
>
获取
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpGidtxtmod"
>
修改中文保函文本
</c-button>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import IStreamInput from "~/components/IStreamInput";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitpop/Event";
import Api from '~/service/Api';
import commonProcess from '~/mixin/commonProcess';
import IStreamInput from '~/components/IStreamInput';
import CodeTable from '~/config/CodeTable';
import Event from '../event';
export default {
components: { IStreamInput },
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
inject: ['root'],
props: ['model', 'codes'],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: {
onGitpButdif() {},
onGitpButdifhis() {},
onGitpShwgidtxt() {},
onGitpButgetref() {},
onGitpGidtxtmod() {},
},
created: function () {
console.log('getopn',this.model)
console.log('getopn', this.model);
},
};
</script>
<style>
</style>
<style></style>
......@@ -122,18 +122,18 @@
import Api from '~/service/Api';
import commonProcess from '~/mixin/commonProcess';
import CodeTable from '~/config/CodeTable';
import Event from '~/model/Getopn/Event';
import Event from '../event';
import IStreamInput from '~/components/IStreamInput';
export default {
components: { IStreamInput },
inject: ['root'],
props: ['model', 'codes'],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: { },
created: function () {},
};
</script>
......
......@@ -76,16 +76,16 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: { },
created: function () {},
};
</script>
......
......@@ -57,7 +57,7 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
import Opnp from "./Opnp";
import Ovwp1 from "./Ovwp1";
import Ptyp from "./Ptyp";
......@@ -90,15 +90,13 @@ export default {
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {
activeNames: ["opnp"],
};
},
methods: {
...Event,
},
methods: {},
created: function () {},
computed: {
},
......
......@@ -12,7 +12,6 @@
placeholder="请输入保函编号"
></c-input>
<template slot="footer">
<!-- <el-form-item label="" label-width="5px"> -->
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
......@@ -191,13 +190,6 @@
placeholder="请选择保函种类"
:code="getValues('gidgrp.rec.gartyp','typgar')"
>
<!-- <el-option
v-for="item in codes.seagtyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> -->
</c-select>
</el-form-item>
</c-col>
......@@ -623,9 +615,7 @@
v-model="model.gidgrp.apl.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog(`gidgrp.apl.pts.extkey`)
"
@keyup.enter.native=""
:disabled="model.gidgrp.ghd.segtyp == '02'"
>
</c-input>
......@@ -691,9 +681,7 @@
v-model="model.gidgrp.iss.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog(`gidgrp.iss.pts.extkey`)
"
@keyup.enter.native=""
></c-input>
<template slot="footer">
<c-button
......@@ -758,9 +746,7 @@
v-model="model.gidgrp.ben.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog(`gidgrp.ben.pts.extkey`)
"
@keyup.enter.native=""
:disabled="model.gidgrp.ghd.segtyp == '02'"
></c-input>
<template slot="footer">
......@@ -1147,18 +1133,16 @@
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import commonApi from "~/mixin/commonApi";
import Event from "../event";
import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";
export default {
components: { "c-ptap": Ptap },
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, commonApi, Event],
data() {
return {};
},
......@@ -1179,7 +1163,7 @@ export default {
},
},
methods: {
...Event,
},
created: function () {},
};
......
......@@ -263,16 +263,16 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: { },
created: function () {},
};
</script>
......
......@@ -179,16 +179,16 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: { ...Event },
methods: { },
created: function () {},
};
</script>
......
......@@ -247,14 +247,14 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptap": Ptap },
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {
ptsaddg: {
......@@ -286,7 +286,20 @@ export default {
},
};
},
methods: { ...Event },
methods: {
onAplpDet() {
},
onConpDet() {
},
onBenpDet() {
},
onIsspDet() {
}
},
created: function () {},
};
</script>
......
......@@ -329,7 +329,7 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event";
import Event from "../event";
import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";
......@@ -337,12 +337,11 @@ export default {
components: { "c-ptap": Ptap },
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [commonProcess, Event],
data() {
return {};
},
methods: {
...Event,
async issChange() {
let rtnmsg = await this.executeDefault("gidgrp.bec.pts.adrblk");
if (rtnmsg.respCode == SUCCESS) {
......
<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="myTabClick">
<el-tab-pane label="业务信息" name="ovwp">
<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>
......@@ -36,7 +40,7 @@
<!-- 结算 -->
<m-setpan :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="会计分录" name="glepan">
<el-collapse-item title="会计分录" name="glepan">
<!-- 会计分录 -->
<m-glepan :model="model" :codes="codes" />
</el-collapse-item>
......@@ -62,145 +66,110 @@
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
<c-function-btn
</c-tabs>
</el-form>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
// import Getopn from "~/model/Getopn";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
// import Check from "~/model/Getopn/Check";
// import Default from "~/model/Getopn/Default";
// import Pattern from "~/model/Getopn/Pattern";
import Getopn from "../model";
import Check from "../model/check";
import Opnp from "./Opnp";
import Ovwp from "./Ovwp";
import Ptyp from "./Ptyp";
import Detp from "./Detp";
import Gidtxtp from "./Gidtxtp";
import Confp from "./Confp";
import Addbcb from "./Addbcb";
import Ovwpc from "./Ovwpc";
import Ptypc from "./Ptypc";
import Preperpc from "./Preperpc";
import Detpc from "./Detpc";
import Gidtxtpc from "./Gidtxtpc";
import Aacp from "./Aacp";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Setpan from "~/components/business/setmod/views";
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";
import CodeTable from '~/config/CodeTable';
import operationFunc from '~/mixin/operationFunc';
import commonApi from '~/mixin/commonApi';
import event from '../event';
import Getopn from '../model/index';
import Check from '../model/check';
import Ovwp from './Ovwp';
import Addbcb from './Addbcb';
import Engp from '~/views/Public/Engp';
import Setpan from '~/components/business/setmod/views';
import Glepan from '~/views/Public/Glepan';
import Docpan from '~/views/Public/Docpan';
import Doctre from '~/views/Public/Doctre';
import Limitbody from '~/views/Public/Limitbody';
export default {
name: "Getopn",
name: 'Getopn',
components: {
"m-addbcb": Addbcb,
"m-opnp": Opnp,
"m-ovwp": Ovwp,
"m-ptyp": Ptyp,
"m-detp": Detp,
"m-gidtxtp": Gidtxtp,
"m-confp": Confp,
"m-ovwpc": Ovwpc,
"m-ptypc": Ptypc,
"m-preperpc": Preperpc,
"m-detpc": Detpc,
"m-gidtxtpc": Gidtxtpc,
"m-aacp": Aacp,
"m-engp": Engp,
"m-ccvpan": Ccvpan,
"m-setpan": Setpan,
"m-glepan": Glepan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-limitbody": Limitbody,
'm-addbcb': Addbcb,
'm-ovwp': Ovwp,
'm-engp': Engp,
'm-setpan': Setpan,
'm-glepan': Glepan,
'm-docpan': Docpan,
'm-doctre': Doctre,
'm-limitbody': Limitbody,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
mixins: [operationFunc, event],
data() {
return {
tabVal: "ovwp",
trnName: "getopn",
trnType: "",
tabVal: 'ovwp',
trnName: 'getopn',
trnType: '',
model: new Getopn().data,
checkRules: Check,
// defaultRules: Default,
// pattern: Pattern,
rules: null,
rules: Check,
codes: {
...CodeTable,
},
activeNames: ["engp"],
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
let name = tab.name;
let rulePath;
if (name === "setpan") {
this.flag = true;
}
if (name === "ptypc") {
rulePath = "gitp.ptypc";
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
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: []
}
/**
* do it yourself
**/
},
};
},
created: async function () {
console.log("进入getopn交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
methods: {},
created() {
console.log('check',Check)
this.init();
},
};
</script>
<style>
</style>
<style></style>
......@@ -3,7 +3,7 @@ import Api from '~/service/Api';
export default {
methods: {
//重置
async handleReset() {
handleReset() {
this.model.bchcon = '';
this.model.trncorco.ownref = '';
this.model.trncorco.relflg = '0';
......@@ -45,7 +45,7 @@ export default {
loading.close();
},
// 选中transaction弹框表格的行数据
async selectGridEtyPromptData(val) {
selectGridEtyPromptData(val) {
this.$emit('changeModel', val);
},
//查询列表
......
......@@ -43,7 +43,7 @@ export default {
如后端传来的CodeSet下该字段值仅有"value",则需传参数tableName,去全局静态码表中找到相应码表,根据value值找到lable值
*/
getValues(key, tableName) {
let arr = this.codes.codeSet[key]
let arr = this.codes.codeSet && this.codes.codeSet[key]
if (!arr)
return undefined
return arr.map(item => {
......
......@@ -156,7 +156,6 @@ export default {
},
// 表单校验
async handleCheck(rulePath) {
debugger
// this.$refs['modelForm'].validate((valid) => {
// console.log('valid', valid)
// })
......
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