index.vue 3.16 KB
Newer Older
wangguangchao committed
1
<template>
吴佳 committed
2
  <div class="eContainer" style="height:90%">
3
     <div style="padding:0 15px">
吴佳 committed
4 5 6 7
    <el-form 
     :model="model" 
     :rules="rules" 
     ref="modelForm" 
8
     label-width="120px" 
吴佳 committed
9 10 11
     label-position="right" 
     size="small" 
     :validate-on-rule-change="false">
12
       
wangguangchao committed
13 14
        
            <!--PD000006 -->
15 16 17 18
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
          <el-tab-pane label="买方信用证交易查询" name="infsea">
              <c-content> 
                <m-infsea :model="model" :codes="codes"/>
wangguangchao committed
19
              </c-content> 
20 21
          </el-tab-pane>
        </c-tabs>
wangguangchao committed
22
    </el-form>
liushikai committed
23
    </div>
wangguangchao committed
24 25 26
  </div>
</template>
<script>
27
import Utils from "~/utils/index";
wangguangchao committed
28 29 30
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infdid from "~/model/Infdid"
wangren committed
31
import commonProcess from "~/mixin/commonProcess"
wangguangchao committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
import Check from "~/model/Infdid/Check"
import Default from "~/model/Infdid/Default"
import Pattern from "~/model/Infdid/Pattern"
import Infsea from "./Infsea"

export default {
    name: "Infdid",
    components:{
        "m-infsea" : Infsea,
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
47
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
wangguangchao committed
48 49
    data(){
        return {
50
            tabVal: "infsea",
wangguangchao committed
51 52 53 54 55
            trnName: "infdid",
            model: new Infdid().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
56
            // showPanel:false,
wangguangchao committed
57
            rules: null,
58
            codes: { ...CodeTable },
wangguangchao committed
59 60 61
        }
    },
    methods:{
62 63 64
        tabClick(){
        },
        // tabClick(tab) {
65

66 67
        //   const name = tab.name
        //   let rulePath;
68
          
69 70 71 72 73 74
        //   if (name === "fepinfp") {
        //   rulePath = "infcon.fepinfp";
        //   }
        //   if (name === "coninfp") {
        //   rulePath = "coninf.coninfp";
        //   }
75 76
          
          
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
        //   if (!!rulePath) {
        //   this.executeRule(rulePath).then(res => {
        //        if (res.respCode == SUCCESS) {
        //          this.updateModel(res.data);
        //        }
        //   })
        //   }
        // },
        // initPanel(val){
        //     if(val){
        //     this.tabVal = "ovwp"
        //   //   
        //   }else{
        //     this.tabVal = ""
        //   }
        // },
        // async updateShowPanel(value) {
        //     this.showPanel = value;
        //     this.initPanel(value);
        // },
        // goBack(){
        //   this.showPanel = false;
        // },
100

wangguangchao committed
101 102 103 104 105 106
    },
    created:async function(){
        console.log("进入infdid交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
107 108 109 110
          //更新数据
            this.updateModel(rtnmsg.data)
            //  Utils.copyValueFromVO(this.model, rtnmsg.data);
            //  this.$refs.infsea.handleSearch();
wangguangchao committed
111 112 113 114 115
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
116 117 118
    },
    watch:{
         
wangguangchao committed
119 120 121
    }
}
</script>
liushikai committed
122
<style scoped>
123
    /* .eContainer {
liushikai committed
124
  padding: 3px 15px;
125
} */
wangguangchao committed
126 127

</style>