index.vue 5.85 KB
Newer Older
nanrui committed
1 2 3
<template>
    <c-page title="出口托收结算">
        <div class="eContainer">
4
            <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
5 6 7 8 9 10 11
                <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>
12
            </c-function-btn>
13
            <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right"
nanrui committed
14 15 16 17
                size="small" :validate-on-rule-change="false">
                <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">

                    <!--PD000027 -->
nanrui committed
18
                    <el-tab-pane label="资金结算" name="setp">
19 20 21
                        <c-content>
                            <m-setp ref="setp" :model="model" :codes="codes" />
                        </c-content>
nanrui committed
22 23 24
                    </el-tab-pane>

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

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

                    <!--PD000027 -->
nanrui committed
39
                    <el-tab-pane label="表外记账/或有" name="engp">
40 41 42
                        <c-content>
                            <m-engp :model="model" :codes="codes" />
                        </c-content>
nanrui committed
43 44 45
                    </el-tab-pane>

                    <!--PD000000 -->
nanrui committed
46
                    <el-tab-pane label="费用及账务" name="setpan">
47 48 49
                        <c-content>
                            <m-setpan :model="model" :codes="codes" />
                        </c-content>
nanrui committed
50 51 52
                    </el-tab-pane>

                    <!--PD000001 -->
nanrui committed
53
                    <el-tab-pane label="分录" name="glepan">
54 55 56
                        <c-content>
                            <m-glepan :model="model" :codes="codes" />
                        </c-content>
nanrui committed
57 58 59
                    </el-tab-pane>

                    <!--PD000000 -->
nanrui committed
60
                    <el-tab-pane label="附言" name="coninfp">
61 62 63
                        <c-content>
                            <m-coninfp :model="model" :codes="codes" />
                        </c-content>
nanrui committed
64 65 66
                    </el-tab-pane>

                    <!--PD000529 -->
nanrui committed
67
                    <el-tab-pane label="面函" name="docpan">
68 69 70
                        <c-content>
                            <m-docpan :model="model" :codes="codes" />
                        </c-content>
nanrui committed
71 72 73
                    </el-tab-pane>

                    <!--PD000546 -->
nanrui committed
74
                    <el-tab-pane label="附件" name="doctre">
75 76 77
                        <c-content>
                            <m-doctre :model="model" :codes="codes" />
                        </c-content>
nanrui committed
78 79 80 81 82 83 84 85 86 87
                    </el-tab-pane>
                </c-tabs>
            </el-form>
        </div>
    </c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botpay from "~/model/Botpay"
88
import commonFuncs from "~/mixin/commonFuncs"
nanrui committed
89 90 91 92
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Botpay/Check"
import Default from "~/model/Botpay/Default"
import Pattern from "~/model/Botpay/Pattern"
93

nanrui committed
94 95 96
import Setp from "./Setp"
import Inst from "./Inst"
import Ptyp from "./Ptyp"
97

nanrui committed
98
import Engp from "~/views/Public/Engp"
99
import Setpan from "~/components/business/setmod/views"
nanrui committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "~/views/Public/Doctre"
import Glepan from "~/views/Public/Glepan"


export default {
    name: "Botpay",
    components: {
        "m-setp": Setp,
        "m-inst": Inst,
        "m-ptyp": Ptyp,
        "m-engp": Engp,
        "m-setpan": Setpan,
        "m-glepan": Glepan,
        "m-coninfp": Coninfp,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
    },
    provide() {
        return {
            root: this
        }
    },
124
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
nanrui committed
125 126 127 128 129 130 131 132 133 134
    data() {
        return {
            tabVal: "setp",
            trnName: "botpay",
            model: new Botpay().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
nanrui committed
135
                ...CodeTable
nanrui committed
136 137 138 139 140 141 142 143 144 145 146 147 148
            },
        }
    },
    methods: {
        myTabClick(tab) {
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created: async function () {
        console.log("进入botpay交易");
149
        let rtnmsg = await this.init(this.$route.query);
nanrui committed
150 151
        if (rtnmsg.respCode == SUCCESS) {
            this.updateModel(rtnmsg.data)
152 153
            //更新数据
            // Utils.copyValueFromVO(this.model, rtnmsg.data);
nanrui committed
154
            //TODO 处理数据逻辑
155 156 157
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
nanrui committed
158
            this.$nextTick(async () => {
159 160
                this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
            })
nanrui committed
161 162 163 164 165 166 167 168
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    }
}
</script>
<style>
169

nanrui committed
170
</style>