index.vue 2.59 KB
Newer Older
fukai committed
1 2
<template>
  <div class="eContainer">
3
    <c-page title="结售汇平盘销账">
fukai committed
4 5
    <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">
6
           <el-tab-pane label="概要" name="canp">
fukai committed
7 8
                <m-canp :model="model" :codes="codes"/>
           </el-tab-pane>
9 10 11 12 13 14 15 16 17 18
           <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>
fukai committed
19 20
       </c-tabs>
    </el-form>
21 22 23 24 25 26 27 28
    <c-function-btn
        :handleCheck="handleCheck"
        :handleStash="handleStash"
        :handleSubmit="handleSubmit"
        @handleSureWarning="handleSureWarning"
        ref="commonBtn"
      ></c-function-btn>
      </c-page>
fukai committed
29 30 31 32 33 34
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxtlcn from "../model"
35 36 37 38 39
import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check";
fukai committed
40

41 42 43
import Canp from "./Canp"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
fukai committed
44 45 46 47 48

export default {
    name: "Fxtlcn",
    components:{
        "m-canp" : Canp,
49 50
        "m-setpan": Setpan,
        "m-docpan": Docpan
fukai committed
51 52 53 54 55 56
    },
    provide() {
        return {
            root: this
        }
    },
57
    mixins: [operationFunc, commonDepend, event, buildFn],
fukai committed
58 59
    data(){
        return {
fukai committed
60
            tabVal: "canp",
fukai committed
61 62 63
            trnName: "fxtlcn",
            trnType: "",
            model: new Fxtlcn().data,
64 65
            rules: Check,
            codes: { ...CodeTable },
fukai committed
66 67 68 69 70 71 72 73 74 75 76 77
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入fxtlcn交易");
fukai committed
78
        let rtnmsg = {}; // await this.init({})
fukai committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>