index.vue 5.32 KB
Newer Older
wangren committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<template>
  <div class="eContainer">
    <c-function-btn
      :handleSubmit="handleSubmit" 
      :handleCheck="handleCheck" 
      :handleStash="handleStash"
      >
    </c-function-btn>  
    <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">
        
            <!--PD000002 -->
jianglong committed
20
           <el-tab-pane label="接受修改" name="acpp">
wangren committed
21 22 23 24 25 26
               <c-content>
                <m-acpp :model="model" :codes="codes"/>
               </c-content>
           </el-tab-pane>
 
            <!--PD000001 -->
jianglong committed
27
           <el-tab-pane label="概览信息" name="ovwp">
wangren committed
28 29 30 31 32 33
               <c-content>
                <m-ovwp :model="model" :codes="codes"/>
               </c-content>
           </el-tab-pane>
 
            <!--PD000042 -->
jianglong committed
34
           <el-tab-pane label="当事人" name="ptyp">
wangren committed
35 36 37 38
                <m-ptyp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000057 -->
jianglong committed
39
           <el-tab-pane label="货物" name="dogp">
wangren committed
40 41 42 43
                <m-dogp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000060 -->
jianglong committed
44
           <el-tab-pane label="单据" name="dorp">
wangren committed
45 46 47 48
                <m-dorp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000074 -->
jianglong committed
49
           <el-tab-pane label="附加条款" name="adcp">
wangren committed
50 51 52 53
                <m-adcp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000077 -->
jianglong committed
54
           <el-tab-pane label="详情信息" name="detp">
wangren committed
55 56 57 58 59
            <c-content>
                <m-detp :model="model" :codes="codes"/>
            </c-content>
           </el-tab-pane>

jianglong committed
60
           <el-tab-pane label="附言" name="coninfp">
wangren committed
61 62 63
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
64
           <el-tab-pane label="报文及面函" name="docpan">
wangren committed
65 66 67
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
68
           <el-tab-pane label="附件" name="doctre">
wangren committed
69 70 71
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
72
           <el-tab-pane label="结算" name="setpan">
wangren committed
73 74 75
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>

jianglong committed
76
           <el-tab-pane label="表外记账" name="engp">
wangren committed
77 78 79 80 81 82
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
83 84

           <!--PD000001 -->
jianglong committed
85
           <el-tab-pane label="会计分录" name="glepan">
86 87
                <m-glepan :model="model" :codes="codes" />
           </el-tab-pane>
wangren committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
       </c-tabs>
    </el-form>
    <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Litacp from "~/model/Litacp"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs"
import Check from "~/model/Litacp/Check"
import Default from "~/model/Litacp/Default"
import Pattern from "~/model/Litacp/Pattern"
import Acpp from "./Acpp"
import Ovwp from "./Ovwp"
import Ptyp from "./Ptyp"
import Dogp from "./Dogp"
import Dorp from "./Dorp"
import Adcp from "./Adcp"
import Detp from "./Detp"

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";


export default {
    name: "Litacp",
    components:{
        "m-acpp" : Acpp,
        "m-ovwp" : Ovwp,
        "m-ptyp" : Ptyp,
        "m-dogp" : Dogp,
        "m-dorp" : Dorp,
        "m-adcp" : Adcp,
        "m-detp" : Detp,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
        "m-setpan" : Setpan,
        "m-engp" : Engp,
        "m-limitbody" : Limitbody,
141
        "m-glepan" : Glepan,
wangren committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "acpp",
            trnName: "litacp",
            model: new Litacp().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {...CodeTable
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入litacp交易");
        let rtnmsg = await this.init({})
173
        if (rtnmsg.respCode == SUCCESS) {
174
          this.updateModel(rtnmsg.data);
175 176 177 178
          if (this.isInDisplay) {
          this.restoreDisplay();
          }
        } else {
wangren committed
179 180
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
181
    },
wangren committed
182 183 184 185 186
}
</script>
<style>

</style>