index.vue 4.55 KB
Newer Older
1 2
<template>
  <div class="eContainer">
3 4 5
   <c-page title="转让信用证单据注销">
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
6 7
        
            <!--PD000016 -->
8
           <el-tab-pane label="业务信息" name="ovwp">
9
               <c-content>
10
                <m-ovwp :model="model" :codes="codes"/>
11
               </c-content>
12 13 14
           </el-tab-pane>
 
            <!--PD000027 -->
15
          
16 17
 
            <!--PD000000 -->
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
           <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
                    <m-engp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="结算" name="setpan">
                    <!-- 结算 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>
34 35
 
            <!--PD000000 -->
36 37 38 39
           <el-tab-pane label="备查/附言" name="addbcb">
              <c-content>
                 <m-addbcb :model="model" :codes="codes" />
              </c-content>
40
           </el-tab-pane>
41 42


43
            <!--PD000529 -->
44 45 46 47
           <el-tab-pane label="面函/报文" name="docpan">
               <c-content>
                  <m-docpan :model="model" :codes="codes" />
               </c-content>
48 49 50
           </el-tab-pane>
 
            <!--PD000546 -->
51 52 53 54
           <el-tab-pane label="附件信息" name="doctre">
                <c-content>
                    <m-doctre :model="model" :codes="codes" />
                </c-content>
55 56 57
           </el-tab-pane>
       </c-tabs>
    </el-form>
58 59 60 61 62 63 64 65 66 67 68 69 70 71
      <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> -->
      </c-function-btn>
   </c-page>
72 73 74 75 76 77 78
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Utils from "~/utils/index"
import Bttcan from "~/model/Bttcan"
wangren committed
79 80
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
81 82 83 84
import Check from "~/model/Bttcan/Check"
import Default from "~/model/Bttcan/Default"
import Pattern from "~/model/Bttcan/Pattern"
import Canp from "./Canp"
85
import Ovwp from "./Ovwp"
86

87 88 89 90 91 92 93
import Addbcb from "./Addbcb";

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 Doctre from "~/views/Public/Doctre";
94 95

export default {
96
     name: "Bttcan",
97
    components:{
98
        "m-ovwp": Ovwp,
99
        "m-canp" : Canp,
100 101 102 103 104 105 106
        "m-engp": Engp,
        "m-setpan": Setpan,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
        "m-ovwp": Ovwp,
        "m-addbcb": Addbcb,

107 108 109 110 111 112
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
113
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
114 115
    data(){
        return {
116
            tabVal: "ovwp",
117 118 119 120 121 122 123
            trnName: "bttcan",
            model: new Bttcan().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {...CodeTable},
124
            activeNames: ["engp"],
125 126 127
        }
    },
    methods:{
huangxin committed
128 129
        // tabClick(){
        // }
130 131 132 133 134 135 136
    },
    created:async function(){
        console.log("进入bttcan交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
     //更新数据
137 138
     this.updateModel(rtnmsg.data)
      //TODO 处理数据逻辑
139
      if (this.isInDisplay) {
140
          this.restoreDisplay();
141 142 143 144 145 146 147 148 149 150 151 152
      }
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>