index.vue 5.43 KB
Newer Older
Eivi committed
1 2
<template>
  <div class="eContainer">
3
     <c-page title="出口信用证单据出口收汇">
4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
Eivi committed
5
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
wangna committed
6
      
7
        <el-tab-pane label="业务信息" name="ovwp">
8
          <c-content>
9 10
            <m-ovwp :model="model" :codes="codes" />
          </c-content>
11
        </el-tab-pane>
Eivi committed
12

13 14
        <!--PD000001 -->
        <el-tab-pane label="统一授信" name="limitbody">
15 16 17
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
18
        </el-tab-pane>
Eivi committed
19

20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
        <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>
        <el-tab-pane label="备查/附言" name="addbcb">
          <c-content>
            <m-addbcb :model="model" :codes="codes" />
43 44
          </c-content>
        </el-tab-pane>
Eivi committed
45

46 47 48 49 50 51
        <!--PD000002 -->
        <el-tab-pane label="申报信息" name="cnyp">
          <c-content>
            <m-cnyp :model="model" :codes="codes"/>
          </c-content>
        </el-tab-pane>
52
       
53 54 55 56 57 58
        <!--PD000529 -->
        <el-tab-pane label="报文/面函" name="docpan">
          <c-content>
            <m-docpan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
Eivi committed
59

60
        <!--PD000546 -->
61
        <el-tab-pane label="附件信息" name="doctre">
62 63 64
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
65
        </el-tab-pane>
wangna committed
66
  
67

Eivi committed
68 69
       </c-tabs>
    </el-form>
70 71 72 73 74 75 76 77 78 79 80 81 82
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
83 84 85 86 87 88 89 90

    <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash">
      </c-function-btn>

</c-page>
Eivi committed
91 92 93 94 95 96 97 98 99 100 101
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Betset from "~/model/Betset"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Betset/Check"
import Default from "~/model/Betset/Default"
import Pattern from "~/model/Betset/Pattern"
102

103
import Ovwp from "./Ovwp"
104
import Limitbody from "~/views/Public/Limitbody";
Eivi committed
105
import Cnyp from "./Cnyp"
106
import Addbcb from "./Addbcb"
Eivi committed
107 108
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
109
import Glepan from "~/views/Public/Glepan";
Eivi committed
110
import Docpan from "~/views/Public/Docpan";
111 112
import Doctre from "~/views/Public/Doctre"

Eivi committed
113 114 115 116 117


export default {
    name: "Betset",
    components:{
118
        "m-ovwp" : Ovwp,
119
        "m-limitbody" : Limitbody,
Eivi committed
120 121 122
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-engp" : Engp,
123 124
        "m-addbcb" : Addbcb,
        "m-cnyp" : Cnyp,
Eivi committed
125 126 127 128 129 130 131 132 133 134 135
        "m-doctre" : Doctre,
        "m-docpan" : Docpan,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
136
            tabVal: "ovwp",
Eivi committed
137 138 139 140 141 142 143 144 145
            trnName: "betset",
            model: new Betset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
                 ...CodeTable
            },
146
            activeNames: ["engp"],
Eivi committed
147 148
        }
    },
nanrui committed
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
    methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      let name = tab.name;
      let rulePath;
      if (name === "basp") {
        rulePath = "bopmod.dbap.basp";
      }
      if (name === "basp1") {
        rulePath = "bopmod.dbdp.basp";
      }
      if (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
          }
        });
      }
Eivi committed
167
    },
nanrui committed
168
  },
Eivi committed
169 170 171 172 173 174
    created:async function(){
        console.log("进入betset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
175 176 177 178
           console.log(this.$refs.setp)
           if(this.isInDisplay){
                this.restoreDisplay();
           }
Eivi committed
179 180 181 182 183 184 185 186 187 188 189 190 191 192
           this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>