index.vue 3.03 KB
Newer Older
fukai committed
1
<template>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
    <div class="eContainer">
        <c-page title="资金拆借/存放销账">
            <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">
                    <!--fttfcn PD000001 Cancellation -->
                    <el-tab-pane label="销账" name="canp">
                        <c-content>
                            <m-canp :model="model" :codes="codes" />
                        </c-content>
                    </el-tab-pane>
                    <el-tab-pane label="费用/账务" name="setpan">
                        <c-content>
                            <m-setpan :codes="codes" :model="model" />
                        </c-content>
                    </el-tab-pane>
                    <el-tab-pane label="报文/面函" name="docpan">
                        <c-content>
                            <m-docpan :codes="codes" :model="model" />
                        </c-content>
                    </el-tab-pane>
                </c-tabs>
            </el-form>
jianglong committed
25 26 27 28 29 30 31
            <c-function-btn
                :handleCheck="handleCheck"
                :handleStash="handleStash"
                :handleSubmit="handleSubmit"
                @handleSureWarning="handleSureWarning"
                ref="commonBtn"
            ></c-function-btn>
32 33
        </c-page>
    </div>
fukai committed
34 35
</template>
<script>
jianglong committed
36

fukai committed
37 38
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
jianglong committed
39
import commonProcess from "~/mixin/commonProcess"
40 41
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
jianglong committed
42
import buildFn from "../event/buildCommons.js";
43

jianglong committed
44
import Fttfcn from "../model";
45 46
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
jianglong committed
47 48


49 50
import event from "../event";
import Check from "../model/Check.js";
jianglong committed
51
import Canp from "./Canp"
fukai committed
52 53 54 55


export default {
    name: "Fttfcn",
56 57 58 59
    components: {
        "m-canp": Canp,
        "m-setpan": Setpan,
        "m-docpan": Docpan,
fukai committed
60 61 62 63 64 65
    },
    provide() {
        return {
            root: this
        }
    },
jianglong committed
66
    mixins: [commonProcess,operationFunc,commonDepend,event,Check,buildFn],    // 里面包含了Default、Check等的公共处理
67
    data() {
fukai committed
68
        return {
fukai committed
69
            tabVal: "canp",
fukai committed
70 71 72
            trnName: "fttfcn",
            trnType: "",
            model: new Fttfcn().data,
73 74
            rules: Check,
            codes: { ...CodeTable },
fukai committed
75 76
        }
    },
77 78
    methods: {
        myTabClick(tab) {
fukai committed
79 80 81 82 83 84
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
85
    created: async function () {
jianglong committed
86 87 88 89 90 91 92 93 94 95
        console.log("进入fttfcn交易.."+this.trnName);
        let params = {
          transName: this.trnName,
          ftdgrp: {
            rec: {
              inr: this.$route.query.inr || "",
            },
          },
        };
        this.init(params)
fukai committed
96 97 98
    }
}
</script>
99
<style></style>