Commit 956b21f7 by suwenhao

getopn精简代码;

parent c4298fbb
export default { // 引入index.js中的字段,转成相应的规则
'gidgrp.blk.atxexptxt': null, import Model from './index';
'gidgrp.blk.exptxt': null, let model = new Model().data;
'gidgrp.rec.purpos': null, let defaultRule = {};
'gidgrp.rec.atxinr': null, //扁平化对象
'gidgrp.rec.secuilflg': null, function flatRule(args) {
'gidgrp.cbs.max.cur': null, let obj = {};
'gidgrp.rec.fingua': null, let flat = (o, prekey = '') => {
'gidgrp.con.pts.extkey': null, Object.entries(o).forEach(([key, value]) => {
'gidgrp.con.adrelc': null, let newkey = key;
'gidgrp.con.namelc': null, if(prekey) {
'gidgrp.con.dbfadrblkcn': null, newkey = prekey + '.' + newkey;
'gidgrp.con.pts.adrblk': null, }
'gidgrp.rec.purposin': null, if(value && typeof value === 'object') {
'gidgrp.rec.liatypc': null, return flat(value, newkey)
'gidgrp.rec.expdat': null, }
'gidgrp.rec.expflg': null, obj[newkey] = null;
'gidgrp.rec.deloric': null, })
'gidgrp.adv.pts.extkey': null, }
'gidgrp.adv.adrelc': null, flat(args);
'gidgrp.adv.namelc': null, return obj;
'gidgrp.adv.dbfadrblkcn': null, }
'gidgrp.rec.ownref': null, defaultRule = flatRule(model);
'gidgrp.rec.exptyp': null, //添加非null校验规则
'gidgrp.rec.orcdatc': null, let checkRule = {
'gidgrp.rec.stdwrduilc': null, 'gitp.swiftflg': [
'gidgrp.ghd.segtyp': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.rec.tendat': null, ],
'gidgrp.rec.giduil': null, 'gidgrp.apl.pts.adrblk': [
'gidgrp.rec.gtxinrc': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gitp.prepercmodflg': null, ],
'gidgrp.apc.pts.extkey': null, 'gidgrp.ben.pts.extkey': [
'gidgrp.apc.adrelc': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.apc.namelc': null, ],
'gidgrp.apc.dbfadrblkcn': null, 'gidgrp.blk.gidtxt': [
'gidgrp.apc.pts.adrblk': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.rec.gartyp': null, ],
'gidgrp.cbs.max.amt': null, 'gidgrp.cbs.max.amt': [
'gitp.gidtxtmodflg': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.bec.pts.extkey': null, ],
'gidgrp.bec.adrelc': null, 'gidgrp.cbs.max.cur': [
'gidgrp.bec.namelc': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.bec.dbfadrblkcn': null, ],
'gidgrp.bec.pts.adrblk': null, 'gidgrp.iss.pts.extkey': [
'gidgrp.rec.revflg': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.blk.gtxgidtxtc': null, ],
'gidgrp.rec.gtxinr': null, 'gidgrp.rec.expdat': [
'gidgrp.blk.gtxgidtxt': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
// "gidgrp.blk.gidtxt" :null, ],
'gitp.swiftflg': null, 'gidgrp.rec.exptyp': [
'gidgrp.cnr.pts.extkey': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.cnr.adrelc': null, ],
'gidgrp.cnr.namelc': null, 'gidgrp.rec.gartyp': [
'gidgrp.cnr.dbfadrblkcn': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.cnr.pts.adrblk': null, ],
'gidgrp.apl.pts.extkey': null, 'gidgrp.rec.hndtyp': [
'gidgrp.apl.adrelc': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.apl.namelc': null, ],
'gidgrp.apl.dbfadrblkcn': null, 'gidgrp.rec.ownref': [
'gitp.covgodsrvcmodflg': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.rec.autrnwflgc': null, ],
'gidgrp.atb.pts.extkey': null, 'gidgrp.rec.purpos': [
'gidgrp.rec.stdwrdc': null, { required: true, message: "此字段为必填字段", trigger: 'change' },
'gidgrp.ben.pts.extkey': null, ],
'gidgrp.rec.orcdat': null, }
'gidgrp.rec.hndtyp': null, defaultRule = { ...defaultRule, ...checkRule };
'gidgrp.rec.orcratc': null, export default defaultRule;
'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,
};
...@@ -4,14 +4,6 @@ import Pub from '~/model/Public'; ...@@ -4,14 +4,6 @@ import Pub from '~/model/Public';
export default class Getopn { export default class Getopn {
constructor() { constructor() {
this.data = { this.data = {
gitbenl1blk: '',
gitapll1blk: '',
gitapll2blk: '',
gitbenl2blk: '',
gitapll3blk: '',
gitbenl4blk: '',
gitissl1blk: '',
gitrmbl1blk: '',
gitp: { gitp: {
swiftflg: '', // 是否SWIFT格式 .gitp.swiftflg swiftflg: '', // 是否SWIFT格式 .gitp.swiftflg
recget: { recget: {
......
...@@ -65,16 +65,16 @@ ...@@ -65,16 +65,16 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { },
created: function () {}, created: function () {},
}; };
</script> </script>
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">
<el-collapse-item title="附言" name="coninfp">
<!--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" /> <m-coninfp :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
</el-collapse>
</el-collapse>
</div> </div>
</template> </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 { <script>
components: { import Api from '~/service/Api';
import commonProcess from '~/mixin/commonProcess';
"m-coninfp": Coninfp, import Utils from '~/utils';
//"m-addbcb1": Addbcb1, import Event from '../event';
}, import Coninfp from '~/views/Public/Coninfp';
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["coninfp"],
};
}, export default {
methods: { components: {
...Event, 'm-coninfp': Coninfp,
}, },
created: function () {}, inject: ['root'],
}; props: ['model', 'codes'],
</script> mixins: [commonProcess, Event],
data() {
return {
activeNames: ['coninfp'],
};
},
methods: {},
created: function () {},
};
</script>
<style> <style></style>
</style>
\ No newline at end of file
...@@ -300,12 +300,12 @@ ...@@ -300,12 +300,12 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return { return {
cnfdet: [ cnfdet: [
...@@ -315,7 +315,7 @@ export default { ...@@ -315,7 +315,7 @@ export default {
], ],
}; };
}, },
methods: { ...Event }, methods: {},
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -632,16 +632,16 @@ ...@@ -632,16 +632,16 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { },
watch:{ watch:{
"model.gidgrp.rec.jurlaws20": function(){ "model.gidgrp.rec.jurlaws20": function(){
if(this.model.gidgrp.rec.jurlaws20=="GB"){ if(this.model.gidgrp.rec.jurlaws20=="GB"){
......
...@@ -275,16 +275,16 @@ ...@@ -275,16 +275,16 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { },
created: function () {}, created: function () {},
}; };
</script> </script>
......
<template> <template>
<div class="eibs"> <div class="eibs">
<!-- ============左边================= --> <!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;"> <c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
label="保函文本的可变因素" label="保函文本的可变因素"
prop="gidgrp.blk.gidtxt" prop="gidgrp.blk.gidtxt"
v-if="model.gitp.gidtxtmodflg==''" v-if="model.gitp.gidtxtmodflg == ''"
> >
<c-input-xml <c-xml-format-editor-new
disabled :disabled="model.gitp.gidtxtmodflg == ''"
resize="none" :model="model.gidgrp.blk.gidtxt"
:maxRows="14" placeholder="请输入保函文本的可变因素"
:model="model.gidgrp.blk.gidtxt" ></c-xml-format-editor-new>
maxlength="32500" <!-- <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> -->
show-word-limit </el-form-item>
placeholder="请输入保函文本的可变因素" <el-form-item
></c-input-xml> label="保函文本的可变因素"
<!-- <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> --> prop="gidgrp.blk.gtxgidtxt"
</el-form-item> v-if="model.gitp.gidtxtmodflg == 'X'"
<el-form-item >
label="保函文本的可变因素" <c-xml-format-editor-new
prop="gidgrp.blk.gtxgidtxt" :disabled="model.gitp.gidtxtmodflg == ''"
v-if="model.gitp.gidtxtmodflg=='X'" :model="model.gidgrp.blk.gtxgidtxt"
> placeholder="请输入保函文本的可变因素"
<c-input-xml ></c-xml-format-editor-new>
resize="none" <!-- <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> -->
:maxRows="10" </el-form-item>
:model="model.gidgrp.blk.gtxgidtxt" </c-col>
maxlength="32500" </c-col>
show-word-limit <!-- ============右边================= -->
placeholder="请输入保函文本的可变因素" <c-col :span="12" style="padding-left: 20px">
></c-input-xml> <c-col :span="24">
<!-- <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> --> <c-checkbox
</el-form-item> style="margin: 0 0 0 10px; float: left"
</c-col> v-model="model.gitp.gidtxtmodflg"
</c-col> >修改保函文本</c-checkbox
<!-- ============右边================= --> >
<c-col :span="12" style="padding-left: 20px;"> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-checkbox
<c-checkbox v-model="model.gitp.chkgidtxt"
style="margin: 0 0 0 10px;float:left;" style="margin: 0 0 0 10px; float: left"
v-model="model.gitp.gidtxtmodflg" >允许</c-checkbox
>修改保函文本</c-checkbox >
> </c-col>
</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="24"> <c-col :span="24">
<c-button <c-button
size="small" :disabled="model.gitp.gidtxtmodflg == ''"
type="primary" size="small"
style="margin: 5px 0 0 10px; width: 50%" type="primary"
@click="onGitpButdifhis" style="margin: 5px 0 0 10px; width: 50%"
> @click="onGitpButdif"
查看历史文本 >
</c-button> 查看系统文本
</c-col> </c-button>
</c-col>
<template v-if="model.gitp.gidtxtmodflg == 'X'"> <c-col :span="24">
<c-col :span="24"> <c-button
<c-button size="small"
size="small" type="primary"
type="primary" style="margin: 5px 0 0 10px; width: 50%"
style="margin: 5px 0 0 10px; width: 50%" @click="onGitpButdifhis"
@click="onGitpShwgidtxt" >
> 查看历史文本
显示文本 </c-button>
</c-button> </c-col>
</c-col>
</template>
<c-col :span="24"> <template v-if="model.gitp.gidtxtmodflg == 'X'">
<c-input <c-col :span="24">
style="margin: 5px 0 0 10px; width: 50%" <c-button
v-model="model.gidgrp.rec.ownref" size="small"
maxlength="16" type="primary"
placeholder="请输入" style="margin: 5px 0 0 10px; width: 50%"
></c-input> @click="onGitpShwgidtxt"
</c-col> >
<c-col :span="24"> 显示文本
<c-button </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> </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> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from '~/service/Api';
import commonProcess from "~/mixin/commonProcess"; import commonProcess from '~/mixin/commonProcess';
import IStreamInput from "~/components/IStreamInput"; import IStreamInput from '~/components/IStreamInput';
import CodeTable from "~/config/CodeTable"; import CodeTable from '~/config/CodeTable';
import Event from "~/model/Gitpop/Event"; import Event from '../event';
export default { export default {
components: { IStreamInput }, components: { IStreamInput },
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: {
onGitpButdif() {},
onGitpButdifhis() {},
onGitpShwgidtxt() {},
onGitpButgetref() {},
onGitpGidtxtmod() {},
},
created: function () { created: function () {
console.log('getopn',this.model) console.log('getopn', this.model);
}, },
}; };
</script> </script>
<style> <style></style>
</style>
...@@ -122,18 +122,18 @@ ...@@ -122,18 +122,18 @@
import Api from '~/service/Api'; import Api from '~/service/Api';
import commonProcess from '~/mixin/commonProcess'; import commonProcess from '~/mixin/commonProcess';
import CodeTable from '~/config/CodeTable'; import CodeTable from '~/config/CodeTable';
import Event from '~/model/Getopn/Event'; import Event from '../event';
import IStreamInput from '~/components/IStreamInput'; import IStreamInput from '~/components/IStreamInput';
export default { export default {
components: { IStreamInput }, components: { IStreamInput },
inject: ['root'], inject: ['root'],
props: ['model', 'codes'], props: ['model', 'codes'],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -76,16 +76,16 @@ ...@@ -76,16 +76,16 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
import Opnp from "./Opnp"; import Opnp from "./Opnp";
import Ovwp1 from "./Ovwp1"; import Ovwp1 from "./Ovwp1";
import Ptyp from "./Ptyp"; import Ptyp from "./Ptyp";
...@@ -90,15 +90,13 @@ export default { ...@@ -90,15 +90,13 @@ export default {
}, },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return { return {
activeNames: ["opnp"], activeNames: ["opnp"],
}; };
}, },
methods: { methods: {},
...Event,
},
created: function () {}, created: function () {},
computed: { computed: {
}, },
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
placeholder="请输入保函编号" placeholder="请输入保函编号"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<!-- <el-form-item label="" label-width="5px"> -->
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
...@@ -191,13 +190,6 @@ ...@@ -191,13 +190,6 @@
placeholder="请选择保函种类" placeholder="请选择保函种类"
:code="getValues('gidgrp.rec.gartyp','typgar')" :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> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -623,9 +615,7 @@ ...@@ -623,9 +615,7 @@
v-model="model.gidgrp.apl.pts.extkey" v-model="model.gidgrp.apl.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入" placeholder="请输入"
@keyup.enter.native=" @keyup.enter.native=""
showGridPromptDialog(`gidgrp.apl.pts.extkey`)
"
:disabled="model.gidgrp.ghd.segtyp == '02'" :disabled="model.gidgrp.ghd.segtyp == '02'"
> >
</c-input> </c-input>
...@@ -691,9 +681,7 @@ ...@@ -691,9 +681,7 @@
v-model="model.gidgrp.iss.pts.extkey" v-model="model.gidgrp.iss.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入" placeholder="请输入"
@keyup.enter.native=" @keyup.enter.native=""
showGridPromptDialog(`gidgrp.iss.pts.extkey`)
"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button <c-button
...@@ -758,9 +746,7 @@ ...@@ -758,9 +746,7 @@
v-model="model.gidgrp.ben.pts.extkey" v-model="model.gidgrp.ben.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入" placeholder="请输入"
@keyup.enter.native=" @keyup.enter.native=""
showGridPromptDialog(`gidgrp.ben.pts.extkey`)
"
:disabled="model.gidgrp.ghd.segtyp == '02'" :disabled="model.gidgrp.ghd.segtyp == '02'"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -1147,18 +1133,16 @@ ...@@ -1147,18 +1133,16 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import commonApi from "~/mixin/commonApi";
import Event from "~/model/Getopn/Event"; import Event from "../event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";
export default { export default {
components: { "c-ptap": Ptap }, components: { "c-ptap": Ptap },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, commonApi, Event],
data() { data() {
return {}; return {};
}, },
...@@ -1179,7 +1163,7 @@ export default { ...@@ -1179,7 +1163,7 @@ export default {
}, },
}, },
methods: { methods: {
...Event,
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -263,16 +263,16 @@ ...@@ -263,16 +263,16 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -179,16 +179,16 @@ ...@@ -179,16 +179,16 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -247,14 +247,14 @@ ...@@ -247,14 +247,14 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
export default { export default {
components: { "c-ptap": Ptap }, components: { "c-ptap": Ptap },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return { return {
ptsaddg: { ptsaddg: {
...@@ -286,7 +286,20 @@ export default { ...@@ -286,7 +286,20 @@ export default {
}, },
}; };
}, },
methods: { ...Event }, methods: {
onAplpDet() {
},
onConpDet() {
},
onBenpDet() {
},
onIsspDet() {
}
},
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getopn/Event"; import Event from "../event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils"; import Utils from "~/utils";
...@@ -337,12 +337,11 @@ export default { ...@@ -337,12 +337,11 @@ export default {
components: { "c-ptap": Ptap }, components: { "c-ptap": Ptap },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, Event],
data() { data() {
return {}; return {};
}, },
methods: { methods: {
...Event,
async issChange() { async issChange() {
let rtnmsg = await this.executeDefault("gidgrp.bec.pts.adrblk"); let rtnmsg = await this.executeDefault("gidgrp.bec.pts.adrblk");
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="出口保函通知"> <c-page title="出口保函通知">
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
ref="modelForm" ref="modelForm"
label-width="120px" label-width="120px"
label-position="right" label-position="right"
size="small" size="small"
:validate-on-rule-change="false" :validate-on-rule-change="false"
> >
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <c-tabs
v-model="tabVal"
<el-tab-pane label="业务信息" name="ovwp"> ref="elment"
type="card"
@tab-click="tabClick"
>
<el-tab-pane label="业务信息" name="ovwp">
<c-content> <c-content>
<m-ovwp :model="model" :codes="codes" /> <m-ovwp :model="model" :codes="codes" />
</c-content> </c-content>
...@@ -36,7 +40,7 @@ ...@@ -36,7 +40,7 @@
<!-- 结算 --> <!-- 结算 -->
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="会计分录" name="glepan"> <el-collapse-item title="会计分录" name="glepan">
<!-- 会计分录 --> <!-- 会计分录 -->
<m-glepan :model="model" :codes="codes" /> <m-glepan :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
...@@ -62,145 +66,110 @@ ...@@ -62,145 +66,110 @@
<m-doctre :model="model" :codes="codes" /> <m-doctre :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs>
</c-tabs> </el-form>
</el-form> <c-function-btn
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
<c-function-btn
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
:handleCheck="handleCheck" :handleCheck="handleCheck"
:handleStash="handleStash" :handleStash="handleStash"
> >
</c-function-btn> </c-function-btn>
</c-page> </c-page>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import CodeTable from '~/config/CodeTable';
import CodeTable from "~/config/CodeTable"; import operationFunc from '~/mixin/operationFunc';
// import Getopn from "~/model/Getopn"; import commonApi from '~/mixin/commonApi';
import commonProcess from "~/mixin/commonProcess"; import event from '../event';
import commonFuncs from "~/mixin/commonFuncs"; import Getopn from '../model/index';
// import Check from "~/model/Getopn/Check"; import Check from '../model/check';
// import Default from "~/model/Getopn/Default"; import Ovwp from './Ovwp';
// import Pattern from "~/model/Getopn/Pattern"; import Addbcb from './Addbcb';
import Getopn from "../model"; import Engp from '~/views/Public/Engp';
import Check from "../model/check"; import Setpan from '~/components/business/setmod/views';
import Opnp from "./Opnp"; import Glepan from '~/views/Public/Glepan';
import Ovwp from "./Ovwp"; import Docpan from '~/views/Public/Docpan';
import Ptyp from "./Ptyp"; import Doctre from '~/views/Public/Doctre';
import Detp from "./Detp"; import Limitbody from '~/views/Public/Limitbody';
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";
export default { export default {
name: "Getopn", name: 'Getopn',
components: { components: {
"m-addbcb": Addbcb, 'm-addbcb': Addbcb,
"m-opnp": Opnp, 'm-ovwp': Ovwp,
"m-ovwp": Ovwp, 'm-engp': Engp,
"m-ptyp": Ptyp, 'm-setpan': Setpan,
"m-detp": Detp, 'm-glepan': Glepan,
"m-gidtxtp": Gidtxtp, 'm-docpan': Docpan,
"m-confp": Confp, 'm-doctre': Doctre,
'm-limitbody': Limitbody,
"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,
}, },
provide() { provide() {
return { return {
root: this, root: this,
}; };
}, },
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, event],
data() { data() {
return { return {
tabVal: "ovwp", tabVal: 'ovwp',
trnName: "getopn", trnName: 'getopn',
trnType: "", trnType: '',
model: new Getopn().data, model: new Getopn().data,
checkRules: Check, rules: Check,
// defaultRules: Default,
// pattern: Pattern,
rules: null,
codes: { codes: {
...CodeTable, ...CodeTable,
}, },
activeNames: ["engp"], activeNames: ['engp'],
}; promptData: {
}, title: 'Select a Party',
methods: { columns: [
myTabClick(tab) { {
this.tabClick(tab); prop: 'ptyInr',
let name = tab.name; label: 'Party Number'
let rulePath; },
if (name === "setpan") { {
this.flag = true; prop: 'inr',
} label: 'Address Number'
if (name === "ptypc") { },
rulePath = "gitp.ptypc"; {
} prop: 'branch',
if (!!rulePath) { label: 'Branch Code'
this.executeRule(rulePath).then((res) => { },
if (res.respCode == SUCCESS) { {
this.updateModel(res.data); 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 () { methods: {},
console.log("进入getopn交易"); created() {
let rtnmsg = await this.init({}); console.log('check',Check)
if (rtnmsg.respCode == SUCCESS) { this.init();
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}, },
}; };
</script> </script>
<style> <style></style>
</style>
...@@ -3,7 +3,7 @@ import Api from '~/service/Api'; ...@@ -3,7 +3,7 @@ import Api from '~/service/Api';
export default { export default {
methods: { methods: {
//重置 //重置
async handleReset() { handleReset() {
this.model.bchcon = ''; this.model.bchcon = '';
this.model.trncorco.ownref = ''; this.model.trncorco.ownref = '';
this.model.trncorco.relflg = '0'; this.model.trncorco.relflg = '0';
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
loading.close(); loading.close();
}, },
// 选中transaction弹框表格的行数据 // 选中transaction弹框表格的行数据
async selectGridEtyPromptData(val) { selectGridEtyPromptData(val) {
this.$emit('changeModel', val); this.$emit('changeModel', val);
}, },
//查询列表 //查询列表
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
如后端传来的CodeSet下该字段值仅有"value",则需传参数tableName,去全局静态码表中找到相应码表,根据value值找到lable值 如后端传来的CodeSet下该字段值仅有"value",则需传参数tableName,去全局静态码表中找到相应码表,根据value值找到lable值
*/ */
getValues(key, tableName) { getValues(key, tableName) {
let arr = this.codes.codeSet[key] let arr = this.codes.codeSet && this.codes.codeSet[key]
if (!arr) if (!arr)
return undefined return undefined
return arr.map(item => { return arr.map(item => {
......
...@@ -156,7 +156,6 @@ export default { ...@@ -156,7 +156,6 @@ export default {
}, },
// 表单校验 // 表单校验
async handleCheck(rulePath) { async handleCheck(rulePath) {
debugger
// this.$refs['modelForm'].validate((valid) => { // this.$refs['modelForm'].validate((valid) => {
// console.log('valid', 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