index.vue 2.35 KB
Newer Older
1 2 3
<template>
  <c-page title="出口信用证查询"> 
     <div class="eContainer">
4
          <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
5 6 7 8 9 10 11 12 13 14 15
          <el-form 
               :model="model" 
               :rules="rules" 
               ref="modelForm" 
               label-width="150px"
               label-position="left"
               size="small" 
               :validate-on-rule-change="false"
          >
               <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
               
杜大兵 committed
16
                    <!--PD000006 Selection -->
杜大兵 committed
17
                    <el-tab-pane label="出口信用证查询" name="infsea">
18
                         <c-content>
19
                              <m-infsea :model="model" :codes="codes"/>
20
                        </c-content>
21 22 23 24 25 26 27 28 29 30 31
                    </el-tab-pane>
          
               </c-tabs>
          </el-form>
     </div>
  </c-page> 
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infled from "~/model/Infled"
wangren committed
32
import commonProcess from "~/mixin/commonProcess"
33 34 35 36 37 38
import Check from "~/model/Infled/Check"
import Default from "~/model/Infled/Default"
import Pattern from "~/model/Infled/Pattern"
import Infsea from "./Infsea"

export default {
39
    name: "Infled",
40 41
    components:{
        "m-infsea" : Infsea,
杜大兵 committed
42
     
43 44 45 46 47 48
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
49
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
50 51 52 53 54 55 56 57 58
    data(){
        return {
            tabVal: "infsea",
            trnName: "infled",
            model: new Infled().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
杜大兵 committed
59
            codes:{...CodeTable},
60 61 62 63 64 65 66 67 68 69 70
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入infled交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
杜大兵 committed
71 72 73 74 75 76
           //更新数据
            this.updateModel(rtnmsg.data)
            // Utils.copyValueFromVO(this.model, rtnmsg.data);
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
77 78 79 80 81 82 83 84 85 86 87
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>