index.vue 5.11 KB
Newer Older
liumin committed
1
<template>
liuxin committed
2
<c-content>
liumin committed
3 4 5 6 7 8 9 10 11
  <div class="eContainer">

  <c-function-btn
	    :handleSubmit="handleSubmit"
	    :handleCheck="handleCheck"
	    :handleStash="handleStash"
	  >
	    <el-button size="small">备忘录</el-button>
	    <el-button size="small">影像信息</el-button>
liumin committed
12 13
	    <el-button size="small">保存模板</el-button> 
	    <el-button size="small">使用模板</el-button> 
liumin committed
14
	    <el-button size="small">制裁信息</el-button>
liumin committed
15
	    <el-button size="small">拆分报文</el-button>
liumin committed
16 17 18
	    <el-button size="small">智能提示</el-button>
	  </c-function-btn>

19
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
liumin committed
20
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
liumin committed
21 22 23 24 25
           <!--PD000002 -->
           <el-tab-pane label="单据" name="drv">
                <m-drv :model="model" :codes="codes"/>
           </el-tab-pane>

liumin committed
26
            <!--PD000034 -->
liumin committed
27
           <el-tab-pane label="不符点" name="dscins">
liumin committed
28 29 30 31
                <m-dscins :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000139 -->
liuxin committed
32
           <!-- <el-tab-pane label="不符点通知" name="mt750p">
liumin committed
33
                <m-mt750p :model="model" :codes="codes"/>
liuxin committed
34 35 36 37 38 39 40
           </el-tab-pane> -->

           <el-tab-pane label="或有" name="engp">
            <c-content>
            <m-engp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
liumin committed
41 42
 
            <!--PD000147 -->
liuxin committed
43
           <!-- <el-tab-pane label="Advice of Payment" name="mt754p">
liumin committed
44
                <m-mt754p :model="model" :codes="codes"/>
liuxin committed
45
           </el-tab-pane> -->
liumin committed
46
           
liumin committed
47 48 49 50 51 52 53

            <el-tab-pane label="费用及账务" name="setpan">
            <!--PD000000 -->
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
liumin committed
54

liuxin committed
55 56 57 58 59
          <el-tab-pane label="附言" name="coninfp">
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>

          <!-- <el-tab-pane label="分录" name="glepan">
liumin committed
60 61 62
            <m-glepan :model="model" :codes="codes" ref="glepan" />
          </el-tab-pane>

liuxin committed
63
           -->
liumin committed
64

liuxin committed
65
          <!-- <el-tab-pane label="保证金" name="ccvpan">
liumin committed
66
            <m-ccvpan :model="model" :codes="codes" />
liuxin committed
67 68
          </el-tab-pane> -->
          
liumin committed
69 70 71 72 73 74 75
          <!--PD000529 -->
          <el-tab-pane label="面函" name="docpan">
            <m-docpan :model="model" :codes="codes" ref="docpan" />
          </el-tab-pane>

         
          <!--PD000001 -->
liuxin committed
76
          <el-tab-pane label="统一授信" name="limitbody">
liumin committed
77 78 79 80 81 82
            <m-limitbody :model="model" :codes="codes" />
          </el-tab-pane>

       </c-tabs>
    </el-form>
  </div>
liuxin committed
83
</c-content>
liumin committed
84 85 86 87 88
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Detdrv from "~/model/Detdrv"
wangren committed
89
import commonProcess from "~/mixin/commonProcess"
liuxin committed
90
import commonFuncs from "~/mixin/commonFuncs";
liumin committed
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
import Check from "~/model/Detdrv/Check"
import Default from "~/model/Detdrv/Default"
import Pattern from "~/model/Detdrv/Pattern"
import Dscins from "./Dscins"
import Mt750p from "./Mt750p"
import Mt754p from "./Mt754p"
import Ovwp from "./Ovwp"
import Yx from "./Yx"
import Invyx from "./Invyx"
import Drv from "./Drv"

import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";


export default {
    name: "Detdrv",
    components:{
        "m-dscins" : Dscins,
        "m-mt750p" : Mt750p,
        "m-mt754p" : Mt754p,
        "m-ovwp" : Ovwp,
        "m-yx" : Yx,
        "m-invyx" : Invyx,
        "m-drv" : Drv,
        "m-setpan": Setpan,
        "m-glepan": Glepan,
        "m-engp": Engp,
        "m-docpan": Docpan,
        "m-limitbody": Limitbody,
        "m-coninfp": Coninfp,
        "m-ccvpan": Ccvpan,
    },
    provide() {
        return {
            root: this
        }
    },
liuxin committed
134
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
liumin committed
135 136
    data(){
        return {
liuxin committed
137
            tabVal: "drv",
liumin committed
138 139 140 141 142 143
            trnName: "detdrv",
            model: new Detdrv().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
liuxin committed
144
            codes: {...CodeTable
liumin committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入detdrv交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑
liuxin committed
163 164 165
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
liumin committed
166 167 168 169 170 171 172 173 174 175 176
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>