index.vue 2.59 KB
Newer Older
fukai committed
1 2
<template>
  <div class="eContainer">
3
  <c-page title="结售汇平盘确认">
fukai committed
4 5 6
    <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="myTabClick">
                   <!--fxtlcm PD000001 Confirmation -->
7
           <el-tab-pane :label="$t('fxtlcm.Confirmation')" name="cnfp">
fukai committed
8 9
                <m-cnfp :model="model" :codes="codes"/>
           </el-tab-pane>
10 11 12 13 14 15 16 17 18 19 20 21

            <el-tab-pane :label="$t('commonModels.费用/账务')" name="setpan">
                <c-content>
                    <m-setmod :model="model" :codes="codes"></m-setmod>
                </c-content>
            </el-tab-pane>
            <el-tab-pane :label="$t('commonModels.报文/面函')" name="docpan">
                <c-content>
                    <m-docpan :model="model" :codes="codes"></m-docpan>
                </c-content>
            </el-tab-pane>

fukai committed
22 23
       </c-tabs>
    </el-form>
24 25 26 27 28 29 30
    <c-function-btn
        :handleCheck="handleCheck"
        :handleStash="handleStash"
        :handleSubmit="handleSubmit"
        @handleSureWarning="handleSureWarning"
        ref="commonBtn">
    </c-function-btn>
31
    </c-page>
fukai committed
32 33 34 35 36 37
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxtlcm from "../model"
38
import operationFunc from "~/mixin/operationFunc"
fukai committed
39
import Cnfp from "./Cnfp"
40 41 42 43 44
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import event from "../event";
import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js";
fukai committed
45 46 47 48 49 50


export default {
    name: "Fxtlcm",
    components:{
        "m-cnfp" : Cnfp,
51 52
        "m-setpan": Setpan,
        "m-docpan": Docpan
fukai committed
53 54 55 56 57 58
    },
    provide() {
        return {
            root: this
        }
    },
59
    mixins: [operationFunc, event, commonDepend, buildFn],
fukai committed
60 61
    data(){
        return {
fukai committed
62
            tabVal: "cnfp",
fukai committed
63 64 65
            trnName: "fxtlcm",
            trnType: "",
            model: new Fxtlcm().data,
66
            codes: { ...CodeTable },
67
            rules: {},
fukai committed
68 69
        }
    },
70 71 72 73 74
    methods:{
        myTabClick(tab) {
          this.tabClick(tab);
        },
    },
75 76 77 78 79 80 81 82 83 84 85 86
    created:async function(){},
    mounted() {
        console.log("fxtlcm");
        let params = {
            transName: this.trnName,
            fxdgrp: {
                rec: {
                    inr: this.$route.query.inr || "",
                },
            },
        };
        this.init(params)
fukai committed
87 88 89 90 91 92
    }
}
</script>
<style>

</style>