index.vue 4.16 KB
Newer Older
cl committed
1
<template>
cl committed
2
    <c-page title="打包托收催收">
3 4 5 6 7 8 9 10 11 12
        <div class="eContainer">
            <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>
13
            <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left"
14
                size="small" :validate-on-rule-change="false">
nanrui committed
15
                <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
cl committed
16

17 18 19 20
                    <!--PD000002 -->
                    <el-tab-pane label="内容" name="Sel">
                        <m-Sel :model="model" :codes="codes" />
                    </el-tab-pane>
nanrui committed
21

22
                    <!--PD000529 -->
nanrui committed
23
                    <el-tab-pane label="报文和面函" name="docpan">
24 25
                        <m-docpan :model="model" :codes="codes" />
                    </el-tab-pane>
cl committed
26

27
                    <!--PD000546 -->
nanrui committed
28
                    <el-tab-pane label="附件" name="doctre">
29 30 31 32
                        <m-doctre :model="model" :codes="codes" />
                    </el-tab-pane>

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

                    <!--PD000000 -->
nanrui committed
38
                    <el-tab-pane label="账务" name="setpan">
nanrui committed
39 40
                        <m-setpan :model="model" :codes="codes" />
                    </el-tab-pane>
41 42 43 44
                </c-tabs>
            </el-form>
        </div>
    </c-page>
cl committed
45 46
</template>
<script>
cl committed
47 48 49 50
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Clttra from "~/model/Clttra";
wangren committed
51
import commonProcess from "~/mixin/commonProcess";
52
import commonFuncs from "~/mixin/commonFuncs"
cl committed
53 54 55
import Check from "~/model/Clttra/Check";
import Default from "~/model/Clttra/Default";
import Pattern from "~/model/Clttra/Pattern";
nanrui committed
56

cl committed
57
import Sel from "./Sel";
nanrui committed
58

cl committed
59 60 61 62 63 64
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";
65
import Doctre from "~/views/Public/Doctre";
cl committed
66 67 68

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

cl committed
124
</style>