index.vue 4.55 KB
Newer Older
1 2
<template>
  <div class="eContainer">
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
     <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">

          <el-tab-pane label="业务信息" name="ovwp">
          <c-content>
          <m-ovwp :model="model" :codes="codes" />
        </c-content>
        </el-tab-pane>

 		   <el-tab-pane label="保证金" name="ccvpan">
      <c-content>
        <m-ccvpan :model="model" :codes="codes" />
      </c-content>
    </el-tab-pane>

        <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-item title="会计分录" name="glepan">
                    <!-- 表外记账 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>

          <!--PD000529 -->
       <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000546 -->
        <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
        </el-tab-pane>

            <c-function-btn
56 57 58
     :handleSubmit="handleSubmit"
     :handleCheck="handleCheck"
     :handleStash="handleStash">
59
        <!-- <el-button size="small">备忘录</el-button>
60 61 62 63 64
        <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>
65
        <el-button size="small">提示</el-button> -->
66 67 68
      </c-function-btn>
       </c-tabs>
    </el-form>
69
     </c-page>
70 71 72 73 74 75 76
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bttacc from "~/model/Bttacc"
import Utils from "~/utils/index"
wangren committed
77 78
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
79 80 81
import Check from "~/model/Bttacc/Check"
import Default from "~/model/Bttacc/Default"
import Pattern from "~/model/Bttacc/Pattern"
82
import Ovwp from "./Ovwp.vue"
83

84
import Doctre from "~/views/Public/Doctre"
85
import Setpan from "~/components/business/setmod/views"
86 87 88
import Docpan from "~/views/Public/Docpan"
import Engp from "~/views/Public/Engp"
import Glepan from "~/views/Public/Glepan"
89 90
import Ccvpan from "~/views/Public/Ccvpan";
import Addbcb from "./Addbcb";
91 92

export default {
93
    name: "Bttacc",
94
    components:{
95
        "m-ovwp": Ovwp,
96 97 98 99 100 101
        "m-engp" : Engp,
        "m-setpan" : Setpan,
        "m-ccvpan" : Ccvpan,
        "m-glepan" : Glepan,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
102
        "m-addbcb": Addbcb,
103 104 105 106 107 108
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
109
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
110 111
    data(){
        return {
112
            tabVal: "ovwp",
113 114 115 116 117 118 119
            trnName: "bttacc",
            model: new Bttacc().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {...CodeTable},
120
            activeNames:["engp"]
121 122 123
        }
    },
    methods:{
124
        myTabClick(){
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
        }
    },
    created:async function(){
        console.log("进入bttacc交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
          //更新数据
          Utils.copyValueFromVO(this.model, rtnmsg.data);
          if (this.isInDisplay) {
          this.restoreDisplay();
           }
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>