index.vue 5.68 KB
Newer Older
zhoutian committed
1 2
<template>
  <div class="eContainer">
lianyang committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
                                        
    <!-- <c-bus-button :$pntvm="this"></c-bus-button> j加操作按钮-->
    <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">imgyge</el-button>
      <!-- <el-button size="small">拆分报文</el-button> -->
      <el-button size="small">img</el-button>
19
      <el-button size="small">His.img</el-button>
lianyang committed
20 21 22
    </c-function-btn>


zhoutian committed
23
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
lianyang committed
24 25 26 27 28
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
                  <!--brtdck PD000046 Documents Received  标签页-->
          <el-tab-pane label="Documents received" name="brtdckp">
                <!--在页面上添加滚动条,使用 c-content 组件,有个height属性,默认是250,height:指的是页面document的高度与自身dom元素高度的差值。-->
              <c-content>
zhoutian committed
29
                  <m-brtdckp :model="model" :codes="codes"/>
lianyang committed
30 31
              </c-content>
          </el-tab-pane>
zhoutian committed
32
            <!--brtp PD000062 Discr./Instr. -->
33
          <el-tab-pane label="Discr./Instr." name="docpre" v-if="model.brdgrp.rec.dscinsflg">
34
            <c-content>
zhoutian committed
35
                <m-docpre :model="model" :codes="codes"/>
36
            </c-content>
lianyang committed
37
          </el-tab-pane>
zhoutian committed
38
            <!--brtp PD000079 Shipping Details -->
39
          <el-tab-pane label="Shipping Details" name="shpdet" v-if="model.brdgrp.rec.dscinsflg">
lianyang committed
40 41 42 43
            <c-content>
                  <m-shpdet :model="model" :codes="codes"/>
            </c-content>     
          </el-tab-pane>
zhoutian committed
44
            <!--liaall PD000027 Liability -->
lianyang committed
45
          <el-tab-pane label="Liability" name="engp">
zhoutian committed
46
                <m-engp :model="model" :codes="codes"/>
lianyang committed
47
          </el-tab-pane>
zhoutian committed
48
            <!--setmod PD000000 Settlement -->
lianyang committed
49
          <el-tab-pane label="Settlement" name="setpan">
zhoutian committed
50
                <m-setpan :model="model" :codes="codes"/>
lianyang committed
51
          </el-tab-pane>
zhoutian committed
52
            <!--coninf PD000000 Completion -->
lianyang committed
53
          <el-tab-pane label="Completion" name="coninfp">
zhoutian committed
54
                <m-coninfp :model="model" :codes="codes"/>
lianyang committed
55
          </el-tab-pane>
zhoutian committed
56
            <!--trndoc PD000529 &Messages -->
lianyang committed
57
          <el-tab-pane label="Messages" name="docpan">
zhoutian committed
58
                <m-docpan :model="model" :codes="codes"/>
lianyang committed
59
          </el-tab-pane>
zhoutian committed
60
            <!--trndoc PD000546 Attachments -->
lianyang committed
61
          <el-tab-pane label="Attachments" name="doctre">
zhoutian committed
62
                <m-doctre :model="model" :codes="codes"/>
lianyang committed
63
          </el-tab-pane>
zhoutian committed
64
            <!--limmod PD000001 统一授信 -->
lianyang committed
65
          <el-tab-pane label="统一授信" name="limitbody">
zhoutian committed
66
                <m-limitbody :model="model" :codes="codes"/>
lianyang committed
67 68
          </el-tab-pane>
      </c-tabs>
zhoutian committed
69
    </el-form>
lianyang committed
70
      <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
zhoutian committed
71
	</c-grid-ety-prompt-dialog>
zhoutian committed
72 73 74 75 76 77 78
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Brtdck from "~/model/Brtdck"
import commonProcess from "~/mixin/commonProcess"
lianyang committed
79
import commonFuncs from "~/mixin/commonFuncs";
zhoutian committed
80 81 82 83 84 85
import Check from "~/model/Brtdck/Check"
import Default from "~/model/Brtdck/Default"
import Pattern from "~/model/Brtdck/Pattern"
import Brtdckp from "./Brtdckp"
import Docpre from "./Docpre"
import Shpdet from "./Shpdet"
lianyang committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99
// import Engp from "./Engp"
// import Setpan from "./Setpan"
// import Coninfp from "./Coninfp"
// import Docpan from "./Docpan"
// import Doctre from "./Doctre"
// import Limitbody from "./Limitbody"


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";
import Limitbody from "~/views/Public/Limitbody";
zhoutian committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113


export default {
    name: "Brtdck",
    components:{
        "m-brtdckp" : Brtdckp,
        "m-docpre" : Docpre,
        "m-shpdet" : Shpdet,
        "m-engp" : Engp,
        "m-setpan" : Setpan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
        "m-limitbody" : Limitbody,
lianyang committed
114

zhoutian committed
115 116 117 118 119 120
    },
    provide() {
        return {
            root: this
        }
    },
lianyang committed
121
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
zhoutian committed
122 123
    data(){
        return {
lianyang committed
124
            tabVal: "brtdckp",
zhoutian committed
125 126 127 128 129 130 131 132
            trnName: "brtdck",
            trnType: "",
            model: new Brtdck().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
zhoutian committed
133
                ...CodeTable
zhoutian committed
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入brtdck交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
150
          this.updateModel(rtnmsg.data)
zhoutian committed
151
           //TODO 处理数据逻辑
152 153 154
          if (this.isInDisplay) {
              this.restoreDisplay();
          }
zhoutian committed
155 156 157 158 159 160 161 162 163 164 165
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>