index.vue 5.62 KB
Newer Older
fukai committed
1
<template>
lixingliang committed
2
    <div class="eContainer">
3 4
        <div style="padding:0 15px">
        <el-form :model="model" :rules="rules" ref="modelForm" label-width="110px" label-position="right" size="small"
lixingliang committed
5
            :validate-on-rule-change="false">
liushikai committed
6
            <!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick" class="infbddTab"> -->
lixingliang committed
7

liushikai committed
8
                <!-- <el-tab-pane label="查询信息" name="infsea"> -->
liushikai committed
9
                    <!-- <c-content> -->
lixingliang committed
10
                    <m-infsea :model="model" :codes="codes" />
liushikai committed
11
                    <!-- </c-content> -->
liushikai committed
12
                <!-- </el-tab-pane> -->
lixingliang committed
13

liushikai committed
14
                <!-- <el-tab-pane label="内容" name="ovwp">
lixingliang committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
                    <m-ovwp :model="model" :codes="codes" />
                </el-tab-pane>

                <el-tab-pane label="单据详情" name="docpre">
                    <m-docpre :model="model" :codes="codes" />
                </el-tab-pane>

                <el-tab-pane label="附言" name="coninfp">
                    <m-coninfp :model="model" :codes="codes" />
                </el-tab-pane>

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

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

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

                <el-tab-pane label="FEP/FCP Info" name="fepinfp">
                    <m-fepinfp :model="model" :codes="codes" />
                </el-tab-pane>

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

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

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

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

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

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

                <el-tab-pane label="Order" name="ordpan">
                    <m-ordpan :model="model" :codes="codes" />
liushikai committed
68
                </el-tab-pane> -->
69
   
lixingliang committed
70
        </el-form>
71
        </div>
lixingliang committed
72
    </div>
fukai committed
73 74
</template>
<script>
lixingliang committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
    import Api from "~/service/Api"
    import CodeTable from "~/config/CodeTable"
    import Infbdd from "~/model/Infbdd"
    import CommonProcess from "~/mixin/CommonProcess"
    import Check from "~/model/Infbdd/Check"
    import Default from "~/model/Infbdd/Default"
    import Pattern from "~/model/Infbdd/Pattern"
    import Infsea from "./Infsea"
    import Ovwp from "./Ovwp"
    import Docpre from "./Docpre"
    import Coninfp from "./Coninfp"
    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"
fukai committed
97

lixingliang committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144

    export default {
        name: 'Infbdd',
        components: {
            "m-infsea": Infsea,
            "m-ovwp": Ovwp,
            "m-docpre": Docpre,
            "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
            }
        },
        mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
        data() {
            return {
                tabVal: "infsea",
                trnName: "infbdd",
                model: new Infbdd().data,
                checkRules: Check,
                defaultRules: Default,
                pattern: Pattern,
                rules: null,
                codes: { ...CodeTable },
            }
        },
        methods: {
            tabClick() {
            }
        },
        created: async function () {
            console.log("进入infbdd交易");
            let rtnmsg = await this.init({})
            if (rtnmsg.respCode == SUCCESS) {
                //TODO 处理数据逻辑
145
                 this.updateModel(rtnmsg.data)
lixingliang committed
146 147 148 149 150

            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
fukai committed
151 152 153
        }
    }
</script>
liushikai committed
154
<style scoped>
lixingliang committed
155 156 157
    .infbddTab .el-tabs__content {
        padding: 10px 0 10px 0;
    }
fukai committed
158

lixingliang committed
159 160 161 162 163 164 165 166 167 168 169 170 171
    .infcpdTab .infrow {
        padding: 0 10px 0 10px;
    }

    .infTopBtn {
        position: absolute;
        top: 0;
        z-index: 5;
        width: 100%;
        height: 30px;
        padding: 10px 0 10px 30px;
        background-color: #f7faff;
    }
liushikai committed
172 173 174
    .eContainer {
  padding: 3px 15px;
}
lixingliang committed
175
</style>