index.vue 7.6 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 8 9 10 11
    <el-form 
     :model="model" 
     :rules="rules" 
     ref="modelForm" 
     label-width="110px" 
     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 22 23 24
          </el-tab-pane>
        </c-tabs>

          <!-- <c-tabs v-model="tabVal" v-show="showPanel" ref="elment" type="card" @tab-click="tabClick">
            PD000001 
25
           <el-tab-pane label="基本信息" name="ovwp">
吴佳 committed
26
                <c-content>
wangguangchao committed
27
                <m-ovwp :model="model" :codes="codes"/>
吴佳 committed
28
                </c-content>
29 30
           </el-tab-pane>

31
           PD000452 
32
           <el-tab-pane label="其他当事人" name="detp1">
吴佳 committed
33
                <c-content>
34
                <m-detp1 :model="model" :codes="codes"/>
吴佳 committed
35
                </c-content>
36
           </el-tab-pane>
wangguangchao committed
37
 
38
            PD000077 
39
           <el-tab-pane label="详细信息" name="detp">
wangguangchao committed
40
                <m-detp :model="model" :codes="codes"/>
41
           </el-tab-pane>
wangguangchao committed
42
 
43
            PD000342 
44
           <el-tab-pane label="单据要求" name="tk">
wangguangchao committed
45
                <m-tk :model="model" :codes="codes"/>
46
           </el-tab-pane>
wangguangchao committed
47
 
48
            PD000000 
49
           <el-tab-pane label="附言" name="coninfp">
wangguangchao committed
50
                <m-coninfp :model="model" :codes="codes"/>
51
           </el-tab-pane>
wangguangchao committed
52
 
53 54
            PD000013 
           -- <el-tab-pane label="PD000013" name="trnpan">
wangguangchao committed
55 56 57 58 59 60 61 62 63 64 65 66 67
                <m-trnpan :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000019 -->
           <!-- <el-tab-pane label="PD000019" name="cbsinfp">
                <m-cbsinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000028 -->
           <!-- <el-tab-pane label="PD000028" name="cbeinfp">
                <m-cbeinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
68
            <!-- FEP /FCP Info -->
69
           <!-- <el-tab-pane label="FEP /FCP Info" name="fepinfp">
wangguangchao committed
70
                <m-fepinfp :model="model" :codes="codes"/>
71
           </el-tab-pane> -->
wangguangchao committed
72 73 74 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 100 101 102 103 104 105
 
            <!--PD000162 -->
           <!-- <el-tab-pane label="PD000162" name="sepinfp">
                <m-sepinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000177 -->
           <!-- <el-tab-pane label="PD000177" name="gleinfp">
                <m-gleinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000119 -->
           <!-- <el-tab-pane label="PD000119" name="smhinfp">
                <m-smhinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000130 -->
           <!-- <el-tab-pane label="PD000130" name="peninfp">
                <m-peninfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000147 -->
           <!-- <el-tab-pane label="PD000147" name="liainfp">
                <m-liainfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000005 -->
           <!-- <el-tab-pane label="PD000005" name="prtpan">
                <m-prtpan :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000185 -->
           <!-- <el-tab-pane label="PD000185" name="ordpan">
                <m-ordpan :model="model" :codes="codes"/>
106
           </el-tab-pane> 
wangguangchao committed
107
 
108
            
109
            PD000488 
110
           <el-tab-pane label="声明" name="stament">
wangguangchao committed
111
                <m-stament :model="model" :codes="codes"/>
112
           </el-tab-pane> 
113
       </c-tabs> -->
wangguangchao committed
114
    </el-form>
liushikai committed
115
    </div>
116
     <!-- <c-button
吴佳 committed
117 118 119 120
          v-show="showPanel"
          style="margin-left: 75%;bottom: 10%;position:sticky"
          size="small"
          @click="goBack()">
121
      @click="getDitSelInfo(scope.$index, scope.row)"
吴佳 committed
122
          返回
123
      </c-button> -->
wangguangchao committed
124 125 126
  </div>
</template>
<script>
127
import Utils from "~/utils/index";
wangguangchao committed
128 129 130
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infdid from "~/model/Infdid"
wangren committed
131
import commonProcess from "~/mixin/commonProcess"
wangguangchao committed
132 133 134 135 136 137 138
import Check from "~/model/Infdid/Check"
import Default from "~/model/Infdid/Default"
import Pattern from "~/model/Infdid/Pattern"
import Infsea from "./Infsea"
import Ovwp from "./Ovwp"
import Detp from "./Detp"
import Tk from "./Tk"
139
import Coninfp from "./Coninfp";
wangguangchao committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
import Trnpan from "./Trnpan"
import Cbsinfp from "./Cbsinfp"
import Cbeinfp from "./Cbeinfp"
import Fepinfp from "./Fepinfp"
import Sepinfp from "./Sepinfp"
import Gleinfp from "./Gleinfp"
import Smhinfp from "./Smhinfp"
import Peninfp from "./Peninfp"
import Liainfp from "./Liainfp"
import Prtpan from "./Prtpan"
import Ordpan from "./Ordpan"
import Detp1 from "./Detp1"
import Stament from "./Stament"


export default {
    name: "Infdid",
    components:{
        "m-infsea" : Infsea,
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
        // "m-ovwp" : Ovwp,
        // "m-detp" : Detp,
        // "m-tk" : Tk,
        // "m-coninfp" : Coninfp,
        // "m-trnpan" : Trnpan,
        // "m-cbsinfp" : Cbsinfp,
        // "m-cbeinfp" : Cbeinfp,
        // "m-fepinfp" : Fepinfp,
        // "m-sepinfp" : Sepinfp,
        // "m-gleinfp" : Gleinfp,
        // "m-smhinfp" : Smhinfp,
        // "m-peninfp" : Peninfp,
        // "m-liainfp" : Liainfp,
        // "m-prtpan" : Prtpan,
        // "m-ordpan" : Ordpan,
        // "m-detp1" : Detp1,
        // "m-stament" : Stament,
wangguangchao committed
176 177 178 179 180 181
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
182
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
wangguangchao committed
183 184
    data(){
        return {
185
            tabVal: "infsea",
wangguangchao committed
186 187 188 189 190
            trnName: "infdid",
            model: new Infdid().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
191
            // showPanel:false,
wangguangchao committed
192
            rules: null,
193
            codes: { ...CodeTable },
wangguangchao committed
194 195 196
        }
    },
    methods:{
197 198 199
        tabClick(){
        },
        // tabClick(tab) {
200

201 202
        //   const name = tab.name
        //   let rulePath;
203
          
204 205 206 207 208 209
        //   if (name === "fepinfp") {
        //   rulePath = "infcon.fepinfp";
        //   }
        //   if (name === "coninfp") {
        //   rulePath = "coninf.coninfp";
        //   }
210 211
          
          
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
        //   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;
        // },
235

wangguangchao committed
236 237 238 239 240 241
    },
    created:async function(){
        console.log("进入infdid交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
242 243 244 245
          //更新数据
            this.updateModel(rtnmsg.data)
            //  Utils.copyValueFromVO(this.model, rtnmsg.data);
            //  this.$refs.infsea.handleSearch();
wangguangchao committed
246 247 248 249 250
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
251 252 253
    },
    watch:{
         
wangguangchao committed
254 255 256
    }
}
</script>
liushikai committed
257
<style scoped>
258
    /* .eContainer {
liushikai committed
259
  padding: 3px 15px;
260
} */
wangguangchao committed
261 262

</style>