index.vue 4.13 KB
Newer Older
1 2
<template>
  <div class="eContainer">
wangren committed
3 4 5 6 7 8 9
    <c-function-btn
      :handleSubmit="handleSubmit" 
      :handleCheck="handleCheck" 
      :handleStash="handleStash"
      >
        
      </c-function-btn>
10
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
11
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
wangren committed
12 13
        
            <!--PD000003 -->
jianglong committed
14
           <el-tab-pane label="取消内容" name="canp">
wangren committed
15 16 17 18
                <m-canp :model="model" :codes="codes"/>
           </el-tab-pane>


jianglong committed
19
            <el-tab-pane label="表外记账" name="engp">
wangren committed
20 21 22
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
23
           <el-tab-pane label="保证金" name="ccvpan">
wangren committed
24 25 26
                <m-ccvpan :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
27
           <el-tab-pane label="结算" name="setpan">
wangren committed
28 29 30
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
31
            <el-tab-pane label="会计分录" name="glepan">
jianglong committed
32
                <m-glepan :model="model" :codes="codes"/>
wangren committed
33 34
            </el-tab-pane>

jianglong committed
35
            <el-tab-pane label="附言" name="coninfp">
wangren committed
36 37 38
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
39
           <el-tab-pane label="报文及面函" name="docpan">
wangren committed
40 41 42
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
43
           <el-tab-pane label="附件" name="doctre">
wangren committed
44 45 46 47 48 49 50 51 52 53 54 55
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>

            <!--PD001139 -->
           <el-tab-pane label="试算结果" name="shisuan">
                <m-shisuan :model="model" :codes="codes"/>
           </el-tab-pane>

            <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
       </c-tabs>
56 57 58 59 60
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api"
jianglong committed
61
import Utils from "~/utils/index";
62 63
import CodeTable from "~/config/CodeTable"
import Litcan from "~/model/Litcan"
wangren committed
64
import commonProcess from "~/mixin/commonProcess"
wangren committed
65
import commonFuncs from "~/mixin/commonFuncs"
jianglong committed
66

67 68 69
import Check from "~/model/Litcan/Check"
import Default from "~/model/Litcan/Default"
import Pattern from "~/model/Litcan/Pattern"
wangren committed
70 71
import Canp from "./Canp"
import Shisuan from "./Shisuan"
72

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