index.vue 4.12 KB
Newer Older
1 2
<template>
  <div class="eContainer">
Eivi committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
    
    <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
    <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>
      <!-- <el-button size="small">拆分报文</el-button> -->
      <el-button size="small">智能提示</el-button>
    </c-function-btn>

21
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
22 23
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">

24 25
            <!--PD000034 -->
           <el-tab-pane label="收款" name="setp">
Eivi committed
26
               <c-content>
27
                <m-setp ref="setp" :model="model" :codes="codes"/>
Eivi committed
28
                </c-content>
29
           </el-tab-pane>
30
           
31
            <!--PD000027 -->
32
           <el-tab-pane label="或有" name="engp">
33 34
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>
35 36 37

           <!--PD000000 -->
           <el-tab-pane label="账务" name="setpan">
Eivi committed
38 39 40
               <c-content>
                   <m-setpan :model="model" :codes="codes"/>
               </c-content>
41
           </el-tab-pane>
42

43 44 45 46
            <!--PD000000 -->
           <el-tab-pane label="附言" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
47 48

             <!--PD000529 -->
49 50 51
           <el-tab-pane label="报文及面函" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
52

53 54 55 56 57 58 59 60 61 62
            <!--PD000001 -->
           <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
 
       </c-tabs>
    </el-form>
  </div>
</template>
<script>
63 64 65 66
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bftset from "~/model/Bftset"
import commonProcess from "~/mixin/commonProcess"
Eivi committed
67
import commonFuncs from "~/mixin/commonFuncs";
68 69 70 71
import Check from "~/model/Bftset/Check"
import Default from "~/model/Bftset/Default"
import Pattern from "~/model/Bftset/Pattern"
import Setp from "./Setp"
72 73 74 75 76
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
zhoubaojian committed
77

78 79 80 81 82 83

export default {
    name: "Bftset",
    components:{
        "m-engp" : Engp,
        "m-limitbody" : Limitbody,
84 85 86 87
        "m-docpan" : Docpan,
        "m-coninfp" : Coninfp,
        "m-setp" : Setp,
        "m-setpan" : Setpan,
88 89 90 91 92 93
    },
    provide() {
        return {
            root: this
        }
    },
Eivi committed
94
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
95 96
    data(){
        return {
Eivi committed
97
            tabVal: "setp",
98 99 100 101 102 103
            trnName: "bftset",
            model: new Bftset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
104 105 106
            codes: {
                ...CodeTable
            },
107 108 109
        }
    },
    methods:{
110 111 112 113 114
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
115 116 117 118 119 120 121
        }
    },
    created:async function(){
        console.log("进入bftset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
122
           this.updateModel(rtnmsg.data)
123
           if(this.isInDisplay){
124 125
                this.restoreDisplay();
           }
126
           this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
127 128 129 130 131 132 133 134 135 136 137
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>