index.vue 5.22 KB
Newer Older
jxl committed
1
<template>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
    <c-page title="出口托收拒付/不符点">
        <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>
            <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right"
                size="small" :validate-on-rule-change="false">
                <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">

                    <!--PD000005 -->
nanrui committed
18
                    <el-tab-pane label="拒收" name="botdcrp1">
19 20 21 22 23 24
                        <c-content>
                            <m-botdcrp1 :model="model" :codes="codes" />
                        </c-content>
                    </el-tab-pane>

                    <!--PD000049 -->
nanrui committed
25
                    <el-tab-pane label="指示条款" name="inst">
26 27 28 29 30 31
                        <c-content>
                            <m-inst :model="model" :codes="codes" />
                        </c-content>
                    </el-tab-pane>

                    <!--PD000266 -->
nanrui committed
32
                    <el-tab-pane label="参与方" name="ptyp">
33 34 35 36 37
                        <c-content>
                            <m-ptyp :model="model" :codes="codes" />
                        </c-content>
                    </el-tab-pane>

nanrui committed
38
                    <el-tab-pane label="表外" name="engp">
39 40 41 42
                        <m-engp :model="model" :codes="codes" />
                    </el-tab-pane>

                    <!--PD000000 -->
nanrui committed
43
                    <el-tab-pane label="收费与结算" name="setpan">
44 45 46
                        <m-setpan :model="model" :codes="codes" />
                    </el-tab-pane>

nanrui committed
47
                    <el-tab-pane label="账务" name="glepan">
wangyanjiao committed
48 49 50 51
                        <!--PD000001 -->
                        <m-glepan :model="model" :codes="codes" ref="glepan" />
                    </el-tab-pane>

52
                    <!--PD000000 -->
nanrui committed
53
                    <el-tab-pane label="警告提示" name="coninfp">
54 55 56 57
                        <m-coninfp :model="model" :codes="codes" />
                    </el-tab-pane>

                    <!--PD000529 -->
nanrui committed
58
                    <el-tab-pane label="报文及面函" name="docpan">
59 60 61 62
                        <m-docpan :model="model" :codes="codes" />
                    </el-tab-pane>

                    <!--PD000546 -->
nanrui committed
63
                    <el-tab-pane label="附件与影像" name="doctre">
64 65 66 67
                        <m-doctre :model="model" :codes="codes" />
                    </el-tab-pane>
                </c-tabs>
            </el-form>
wangyanjiao committed
68 69 70
            <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData"
                    @select-ety="selectMsg">
               </c-grid-ety-prompt-dialog>
71 72
        </div>
    </c-page>
jxl committed
73 74 75 76 77
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botdcr from "~/model/Botdcr"
wangren committed
78
import commonProcess from "~/mixin/commonProcess"
79
import commonFuncs from "~/mixin/commonFuncs";
jxl committed
80 81 82 83
import Check from "~/model/Botdcr/Check"
import Default from "~/model/Botdcr/Default"
import Pattern from "~/model/Botdcr/Pattern"
import Botdcrp1 from "./Botdcrp1"
84
import Engp from "~/views/Public/Engp"
jxl committed
85 86
import Inst from "./Inst"
import Ptyp from "./Ptyp"
87 88 89
import Setpan from "~/views/Public/Setpan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
wangyanjiao committed
90
import Glepan from "~/views/Public/Glepan"
91
import Doctre from "~/views/Public/Doctre"
jxl committed
92 93 94 95


export default {
    name: "Botdcr",
96 97 98 99
    components: {
        "m-botdcrp1": Botdcrp1,
        "m-inst": Inst,
        "m-ptyp": Ptyp,
wangyanjiao committed
100
        "m-glepan": Glepan,
101 102 103 104 105
        "m-setpan": Setpan,
        "m-coninfp": Coninfp,
        "m-engp": Engp,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
jxl committed
106 107 108 109 110 111
    },
    provide() {
        return {
            root: this
        }
    },
112 113
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
    data() {
jxl committed
114 115 116 117 118 119 120 121 122
        return {
            tabVal: "botdcrp1",
            trnName: "botdcr",
            model: new Botdcr().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
123
                ...CodeTable
jxl committed
124 125 126
            },
        }
    },
127 128 129
    methods: {
        // tabClick() {
        // }
jxl committed
130
    },
131
    created: async function () {
jxl committed
132 133
        console.log("进入botdcr交易");
        let rtnmsg = await this.init({})
134 135 136 137 138 139
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
            this.updateModel(rtnmsg.data)
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
jxl committed
140 141

        }
142 143
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
jxl committed
144 145 146 147 148 149
        }
    }
}
</script>
<style>
</style>