index.vue 2.24 KB
Newer Older
niewei committed
1 2 3 4
<template>
 <c-page title="卖方信用证单据查询">

    <div class="eContainer">
5
        <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" size="small" :validate-on-rule-change="false">
niewei committed
6 7 8 9
          <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
  
            <!--PD000006 -->
           <el-tab-pane label="查询" name="infsea">
潘际乾 committed
10 11 12
               <c-content>
                    <m-infsea :model="model" :codes="codes"/>
               </c-content>
niewei committed
13 14
           </el-tab-pane>
 
niewei committed
15

niewei committed
16
           <el-tab-pane label="内容" name="ovwp">
潘际乾 committed
17 18 19
               <c-content>
                    <m-ovwp :model="model" :codes="codes"/>
               </c-content>
niewei committed
20 21 22 23 24 25 26
           </el-tab-pane>
       </c-tabs>
    </el-form>
  </div>
 </c-page>  
</template>
<script>
niewei committed
27
import Utils from "~/utils/index";
niewei committed
28 29 30
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infbfd from "~/model/Infbfd"
wangren committed
31
import commonProcess from "~/mixin/commonProcess"
niewei committed
32 33 34 35 36 37 38
import Check from "~/model/Infbfd/Check"
import Default from "~/model/Infbfd/Default"
import Pattern from "~/model/Infbfd/Pattern"
import Infsea from "./Infsea"
import Ovwp from "./Ovwp"

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

</style>