index.vue 5.47 KB
Newer Older
cl committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<template>
    <c-page title="打包托收开立">
        <div class="eContainer">
            <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
            <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
                <el-button size="small">备忘录</el-button>
                <el-button size="small">影像信息</el-button>
                <el-button size="small">保存模板</el-button>
                <el-button size="small">使用模板</el-button>
                <el-button size="small">制裁信息</el-button>
                <el-button size="small">拆分报文</el-button>
                <el-button size="small">提示</el-button>
            </c-function-btn>
            <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left"
                size="small" :validate-on-rule-change="false">
16
                <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
cl committed
17 18 19 20 21

                    <!--PD000002 -->
                    <el-tab-pane label="内容" name="sel">
                        <m-sel :model="model" :codes="codes" />
                    </el-tab-pane>
nanrui committed
22

cl committed
23 24
                    <!--PD000529 -->
                    <el-tab-pane label="面函及报文" name="docpan">
25 26 27
                        <c-content>
                            <m-docpan :model="model" :codes="codes" />
                        </c-content>
cl committed
28 29 30 31
                    </el-tab-pane>

                    <!--PD000546 -->
                    <el-tab-pane label="交易附件" name="doctre">
32 33 34
                        <c-content>
                            <m-doctre :model="model" :codes="codes" />
                        </c-content>
cl committed
35 36 37 38
                    </el-tab-pane>

                    <!--PD000000 -->
                    <el-tab-pane label="附言" name="coninfp">
39 40 41
                        <c-content>
                            <m-coninfp :model="model" :codes="codes" />
                        </c-content>
cl committed
42
                    </el-tab-pane>
nanrui committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

                    <el-tab-pane label="费用及账务" name="setpan">
                        <c-content>
                            <m-setpan :model="model" :codes="codes" />
                        </c-content>
                    </el-tab-pane>

                    <!--PD000057 -->
                    <el-tab-pane label="关联账号" name="account">
                        <m-account :model="model" :codes="codes" />
                    </el-tab-pane>

                    <!--PD000027 -->
                    <!-- <el-tab-pane label="表外信息" name="engp">
                        <m-engp :model="model" :codes="codes" />
                    </el-tab-pane> -->
                    <!--PD000001 -->
                    <!-- <el-tab-pane label="分录信息" name="glepan">
                        <m-glepan :model="model" :codes="codes" />
                    </el-tab-pane> -->
                    <!-- <el-tab-pane label="保证金" name="ccvpan">
                        <m-ccvpan :model="model" :codes="codes" />
                    </el-tab-pane> -->

cl committed
67 68
                </c-tabs>
            </el-form>
nanrui committed
69 70
            <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
            </c-grid-ety-prompt-dialog>
71 72
            <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData" @select-ety="selectMsg">
            </c-grid-ety-prompt-dialog>
cl committed
73 74 75 76
        </div>
    </c-page>
</template>
<script>
77

78 79 80 81 82 83 84 85 86
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Cltdav from "~/model/Cltdav";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Cltdav/Check";
import Default from "~/model/Cltdav/Default";
import Pattern from "~/model/Cltdav/Pattern";
87

88 89
import Sel from "./Sel";
import Account from "./Account";
90

91 92 93 94 95 96 97
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Doctre from "~/views/Public/Doctre";
cl committed
98

99
export default {
nanrui committed
100 101 102 103 104 105 106 107 108 109 110 111
    name: "Cltdav",
    components: {
        "m-sel": Sel,
        "m-account": Account,
        "m-setpan": Setpan,
        "m-engp": Engp,
        "m-glepan": Glepan,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
        "m-coninfp": Coninfp,
        "m-ccvpan": Ccvpan,
    },
112

nanrui committed
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
    data() {
        return {
            tabVal: "sel",
            trnName: "cltdav",
            model: new Cltdav().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: { ...CodeTable },
        }
    },
    methods: {
132 133
        myTabClick(tab) {
            this.tabClick(tab)
nanrui committed
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
        }
    },
    created: async function () {
        console.log("进入cltdav交易");
        let rtnmsg = await this.init({})
        if (rtnmsg.respCode == SUCCESS) {
            this.updateModel(rtnmsg.data);
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    }
149
}
cl committed
150 151
</script>
<style>
nanrui committed
152

cl committed
153
</style>