index.vue 4.61 KB
Newer Older
cl committed
1
<template>
xionglin committed
2 3
    <div class="eContainer">
        <c-page title="打包托收催收">
4
            <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left"
5
                size="small" :validate-on-rule-change="false">
nanrui committed
6
                <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
cl committed
7

8 9
                    <!--PD000002 -->
                    <el-tab-pane label="内容" name="Sel">
xionglin committed
10 11 12
                        <c-content>
                            <m-Sel :model="model" :codes="codes" />
                        </c-content>
13
                    </el-tab-pane>
nanrui committed
14

15
                    <!--PD000529 -->
nanrui committed
16
                    <el-tab-pane label="报文和面函" name="docpan">
xionglin committed
17 18 19
                        <c-content>
                            <m-docpan :model="model" :codes="codes" />
                        </c-content>
20
                    </el-tab-pane>
cl committed
21

22
                    <!--PD000546 -->
nanrui committed
23
                    <el-tab-pane label="附件" name="doctre">
xionglin committed
24 25 26
                        <c-content>
                            <m-doctre :model="model" :codes="codes" />
                        </c-content>
27 28 29
                    </el-tab-pane>

                    <!--PD000000 -->
nanrui committed
30
                    <el-tab-pane label="提示信息" name="coninfp">
xionglin committed
31 32 33
                        <c-content>
                            <m-coninfp :model="model" :codes="codes" />
                        </c-content>
34
                    </el-tab-pane>
nanrui committed
35 36

                    <!--PD000000 -->
nanrui committed
37
                    <el-tab-pane label="账务" name="setpan">
xionglin committed
38 39 40
                        <c-content>
                            <m-setpan :model="model" :codes="codes" />
                        </c-content>
nanrui committed
41
                    </el-tab-pane>
42 43
                </c-tabs>
            </el-form>
xionglin committed
44 45 46 47 48 49 50 51 52 53 54
            <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>
        </c-page>
    </div>
cl committed
55 56
</template>
<script>
cl committed
57 58 59 60
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Clttra from "~/model/Clttra";
wangren committed
61
import commonProcess from "~/mixin/commonProcess";
62
import commonFuncs from "~/mixin/commonFuncs"
cl committed
63 64 65
import Check from "~/model/Clttra/Check";
import Default from "~/model/Clttra/Default";
import Pattern from "~/model/Clttra/Pattern";
nanrui committed
66

cl committed
67
import Sel from "./Sel";
nanrui committed
68

69
import Setpan from "~/components/business/setmod/views";
cl committed
70 71 72 73 74
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";
75
import Doctre from "~/views/Public/Doctre";
cl committed
76 77 78

export default {
    name: "Clttra",
79 80
    components: {
        "m-Sel": Sel,
cl committed
81 82 83 84 85 86 87
        "m-setpan": Setpan,
        "m-engp": Engp,
        "m-glepan": Glepan,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
        "m-coninfp": Coninfp,
        "m-ccvpan": Ccvpan,
cl committed
88 89 90 91 92 93
    },
    provide() {
        return {
            root: this
        }
    },
94 95
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
    data() {
cl committed
96
        return {
97
            tabVal: "Sel",
cl committed
98 99 100 101 102 103 104
            trnName: "clttra",
            model: new Clttra().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
105
                ...CodeTable
cl committed
106 107 108
            },
        }
    },
109
    methods: {
nanrui committed
110 111
        myTabClick(tab) {
            this.tabClick(tab)
cl committed
112 113
        }
    },
114
    created: async function () {
cl committed
115
        console.log("进入clttra交易");
116
        let rtnmsg = await this.init(this.$route.query)
117 118
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
nanrui committed
119 120 121
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
nanrui committed
122
            this.updateModel(rtnmsg.data);
123 124
            this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
            console.log(this.model.bptbck.bptbckg);
cl committed
125
        }
126 127
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
cl committed
128 129 130 131 132
        }
    }
}
</script>
<style>
nanrui committed
133

cl committed
134
</style>