index.vue 7.65 KB
Newer Older
1
<template>
2 3
    <!-- 顶部按钮区 -->
    <!-- <div class="topBtnGroup">
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
            <c-button size="small" type="primary" v-show="showflg == true" icon="el-icon-arrow-right"
                @click="showflg=false">收起</c-button>
            <c-button size="small" type="primary" v-show="showflg == false" icon="el-icon-arrow-left"
                @click="showflg=true">展开</c-button>

            <div class="btnGroup" v-show="showflg == true && tabVal == 'infsea'">
                <c-button size="small" type="primary">导Excel</c-button>
                <c-button size="small" type="primary" icon="el-icon-search">Search</c-button>
                <c-button size="small" type="primary">Display</c-button>
                <c-button size="small" type="primary">Use</c-button>
                <c-button size="small" type="primary">Clear</c-button>
                <c-button size="small" type="primary">Exit</c-button>
            </div>

            <div class="btnGroup" v-show="showflg == true && (tabVal != 'infsea')">
                <c-button size="small" type="primary" icon="el-icon-search">Search</c-button>
                <el-button-group>
                    <c-button size="small" type="primary" icon="el-icon-arrow-left"></c-button>
                    <c-button size="small" type="primary" icon="el-icon-arrow-right"></c-button>
                </el-button-group>
                <c-button size="small" type="primary">Print</c-button>
                <c-button size="small" type="primary">Use</c-button>
                <c-button size="small" type="primary">Loginfo</c-button>
                <c-button size="small" type="primary">Exit</c-button>
            </div>

30
        </div> -->
31

32
    <div class="eContainer">
33
        <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
34
            :validate-on-rule-change="false">
liushikai committed
35 36
            <m-infsea v-show="!showPanel" :model="model" :codes="codes" @updateShowPanel="updateShowPanel($event)"/>
            <c-tabs v-show="showPanel" v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
37

liushikai committed
38
                <!-- <el-tab-pane label="查询信息" name="infsea">
39
                    <c-content :height="120">
40
                    <m-infsea :model="model" :codes="codes" />
41
                    </c-content>
liushikai committed
42
                </el-tab-pane> -->
43

44
                <el-tab-pane label="汇款信息" name="infconp">
liushikai committed
45
                    <c-content>
46
                    <m-infconp :model="model" :codes="codes" />
liushikai committed
47
                    </c-content>
48
                </el-tab-pane>
49

50 51 52
                <el-tab-pane label="Completion" name="coninfp">
                    <m-coninfp :model="model" :codes="codes" />
                </el-tab-pane>
53

54 55 56
                <el-tab-pane label="Transactions" name="trnpan">
                    <m-trnpan :model="model" :codes="codes" />
                </el-tab-pane>
57

58 59 60
                <el-tab-pane label="CBS Info" name="cbsinfp">
                    <m-cbsinfp :model="model" :codes="codes" />
                </el-tab-pane>
61

62 63 64
                <el-tab-pane label="CBE Info" name="cbeinfp">
                    <m-cbeinfp :model="model" :codes="codes" />
                </el-tab-pane>
65

66
                <el-tab-pane label="FEP/FCP Info" name="fepinfp">
liushikai committed
67
                <c-content>
68
                    <m-fepinfp :model="model" :codes="codes" />
liushikai committed
69
                </c-content>
70
                </el-tab-pane>
71

72 73 74
                <el-tab-pane label="SEP Info" name="sepinfp">
                    <m-sepinfp :model="model" :codes="codes" />
                </el-tab-pane>
75

76 77 78
                <el-tab-pane label="分录信息" name="gleinfp">
                    <m-gleinfp :model="model" :codes="codes" />
                </el-tab-pane>
79

80 81 82
                <el-tab-pane label="报文信息" name="smhinfp">
                    <m-smhinfp :model="model" :codes="codes" />
                </el-tab-pane>
83

84 85 86
                <el-tab-pane label="经办信息" name="peninfp">
                    <m-peninfp :model="model" :codes="codes" />
                </el-tab-pane>
87

88 89 90
                <el-tab-pane label="Engagement" name="liainfp">
                    <m-liainfp :model="model" :codes="codes" />
                </el-tab-pane>
91

92 93 94
                <el-tab-pane label="Print" name="prtpan">
                    <m-prtpan :model="model" :codes="codes" />
                </el-tab-pane>
95

96 97 98 99 100
                <el-tab-pane label="Order" name="ordpan">
                    <m-ordpan :model="model" :codes="codes" />
                </el-tab-pane>
            </c-tabs>
        </el-form>
liushikai committed
101 102 103 104 105 106 107 108 109
        <div>
     <c-button
          v-show="showPanel"
          style="margin-left: 90%;bottom: 10%;position:sticky"
          size="small"
          @click="showPanel=false">
          返回
     </c-button>
  </div>
110
    </div>
111 112 113 114 115
</template>
<script>
    import Api from "~/service/Api"
    import CodeTable from "~/config/CodeTable"
    import Infcpd from "~/model/Infcpd"
wangren committed
116
    import commonProcess from "~/mixin/commonProcess"
117 118 119 120 121
    import Check from "~/model/Infcpd/Check"
    import Default from "~/model/Infcpd/Default"
    import Pattern from "~/model/Infcpd/Pattern"
    import Infsea from "./Infsea"
    import Infconp from "./Infconp"
liushikai committed
122
    // import Coninfp from "./Coninfp"
123 124 125 126 127 128 129 130 131 132 133 134
    import Trnpan from "./Trnpan"
    import Cbsinfp from "./Cbsinfp"
    import Cbeinfp from "./Cbeinfp"
    import Fepinfp from "./Fepinfp"
    import Sepinfp from "./Sepinfp"
    import Gleinfp from "./Gleinfp"
    import Smhinfp from "./Smhinfp"
    import Peninfp from "./Peninfp"
    import Liainfp from "./Liainfp"
    import Prtpan from "./Prtpan"
    import Ordpan from "./Ordpan"

liushikai committed
135 136
    import Coninfp from "~/views/Public/Coninfp";

137 138

    export default {
潘际乾 committed
139
        name: 'Infcpd',
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
        components: {
            "m-infsea": Infsea,
            "m-infconp": Infconp,
            "m-coninfp": Coninfp,
            "m-trnpan": Trnpan,
            "m-cbsinfp": Cbsinfp,
            "m-cbeinfp": Cbeinfp,
            "m-fepinfp": Fepinfp,
            "m-sepinfp": Sepinfp,
            "m-gleinfp": Gleinfp,
            "m-smhinfp": Smhinfp,
            "m-peninfp": Peninfp,
            "m-liainfp": Liainfp,
            "m-prtpan": Prtpan,
            "m-ordpan": Ordpan,
        },
        provide() {
            return {
                root: this
            }
        },
wangren committed
161
        mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
162 163
        data() {
            return {
liushikai committed
164
                tabVal: "",
165 166 167 168 169 170 171 172
                trnName: "infcpd",
                model: new Infcpd().data,
                checkRules: Check,
                defaultRules: Default,
                pattern: Pattern,
                rules: null,
                codes: { ...CodeTable },
                showflg: true,
liushikai committed
173
                showPanel:false,
174 175 176 177
            }
        },
        methods: {
            tabClick() {
liushikai committed
178 179 180 181 182 183 184 185 186
            },
        async updateShowPanel(value) {
            this.showPanel = value;
             if(value){
            this.tabVal = "infconp"  
            }else{
            this.tabVal = ""
          }
        },
187 188 189 190 191
        },
        created: async function () {
            console.log("进入infcpd交易");
            let rtnmsg = await this.init({})
            if (rtnmsg.respCode == SUCCESS) {
zhujiazhan committed
192
                this.updateModel(rtnmsg.data);
193 194 195 196 197 198 199 200
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        }
    }
</script>
<style>
201 202
    .infcpdTab .el-tabs__content {
        padding: 10px 0 10px 0;
203 204
    }

205 206
    .infcpdTab .infrow {
        padding: 0 10px 0 10px;
207
    }
208 209 210 211 212 213 214
    .m-table-search-form {
  position: flex;
  flex-direction: row;
}
.m-table-search-form .el-form-item__content {
  width: calc(100% - 110px);
}
215
</style>