index.vue 5.14 KB
Newer Older
hulei committed
1
<template>
m  
1198835488@qq.com committed
2
<c-page title="转让证单据寄单">
hulei committed
3 4 5 6 7 8 9 10 11 12 13 14 15
  <div class="eContainer">
	  <c-function-btn
	    :handleSubmit="handleSubmit"
	    :handleCheck="handleCheck"
	    :handleStash="handleStash"
	  >
	    <el-button size="small">备忘录</el-button>
	    <el-button size="small">影像信息</el-button>
	    <!-- <el-button size="small">保存模板</el-button> -->
	    <!-- <el-button size="small">使用模板</el-button> -->
	    <el-button size="small">制裁信息</el-button>
	    <!-- <el-button size="small">拆分报文</el-button> -->
	    <el-button size="small">智能提示</el-button>
m  
1198835488@qq.com committed
16
	  </c-function-btn>
hulei committed
17 18 19 20
    <el-form 
	:model="model"
	:rules="rules" 
	ref="modelForm" 
21
	label-width="150px" 
hulei committed
22
	size="small" 
23
	label-position="right" 
m  
1198835488@qq.com committed
24 25 26 27 28
	:validate-on-rule-change="false">
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        
            <!--PD000032 -->
           <el-tab-pane label="Send Documents" name="payp">
29
            <c-content>
m  
1198835488@qq.com committed
30
                <m-payp :model="model" :codes="codes"/>
31
              </c-content>
m  
1198835488@qq.com committed
32 33 34 35
           </el-tab-pane>
 
            <!--PD000067 -->
           <el-tab-pane label="instr./Discrep." name="dscins">
36
            <c-content>
m  
1198835488@qq.com committed
37
                <m-dscins :model="model" :codes="codes"/>
38
            </c-content>
m  
1198835488@qq.com committed
39 40 41
           </el-tab-pane>
 
            <!--PD000027 -->
42 43
           <el-tab-pane label="liability" name="engp">
            <c-content>
m  
1198835488@qq.com committed
44
                <m-engp :model="model" :codes="codes"/>
45
              </c-content>
m  
1198835488@qq.com committed
46 47 48
           </el-tab-pane>
 
            <!--PD000000 -->
49 50 51 52 53 54 55 56 57 58 59
            <el-tab-pane label="settlement" name="setpan">
            <c-content>
            <m-setpan :model="model" :codes="codes" />.
            </c-content>
            </el-tab-pane>

            <el-tab-pane label="Bookings" name="glepan">
              <c-content>
                <m-glepan :model="model" :codes="codes"/>
              </c-content>
            </el-tab-pane>
hulei committed
60
		   
61 62
		        <el-tab-pane label="Completion" name="coninfp">
              <c-content>
hulei committed
63
		        <m-coninfp :model="model" :codes="codes"/>
64 65
          </c-content>
		        </el-tab-pane>
m  
1198835488@qq.com committed
66 67
 
            <!--PD000529 -->
68 69
           <el-tab-pane label="Messages" name="docpan">
            <c-content>
m  
1198835488@qq.com committed
70
                <m-docpan :model="model" :codes="codes"/>
71 72 73 74 75 76 77 78 79 80 81 82 83 84
              </c-content>
           </el-tab-pane>


           <el-tab-pane label="Attachments" name="doctre">
            <c-content>
                <m-doctre :model="model" :codes="codes"/>
              </c-content>
           </el-tab-pane>

           <el-tab-pane label="跨境人民币申报" name="cnyp">
            <c-content>
                <m-docpan :model="model" :codes="codes"/>
              </c-content>
m  
1198835488@qq.com committed
85 86 87
           </el-tab-pane>
       </c-tabs>
    </el-form>
hulei committed
88
  </div>
m  
1198835488@qq.com committed
89 90 91 92 93 94
</c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bttsnd from "~/model/Bttsnd"
wangren committed
95
import commonProcess from "~/mixin/commonProcess"
96
import commonFuncs from "~/mixin/commonFuncs"
m  
1198835488@qq.com committed
97 98 99 100 101
import Check from "~/model/Bttsnd/Check"
import Default from "~/model/Bttsnd/Default"
import Pattern from "~/model/Bttsnd/Pattern"
import Payp from "./Payp"
import Dscins from "./Dscins"
102
import cnyp from "./Cnyp"
m  
1198835488@qq.com committed
103 104 105
// import Engp from "./Engp"
// import Setpan from "./Setpan"
// import Ccvpan from "./Ccvpan"
hulei committed
106 107 108 109
// import Docpan from "./Docpan"
// import Coninfp from "./Coninfp";
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
110
import Glepan from "~/views/Public/Glepan";
m  
1198835488@qq.com committed
111 112
import Docpan from "~/views/Public/Docpan";
import Coninfp from "~/views/Public/Coninfp";
113
import Doctre from "~/views/Public/Doctre";
m  
1198835488@qq.com committed
114 115 116 117 118 119 120

export default {
    components:{
        "m-payp" : Payp,
        "m-dscins" : Dscins,
        "m-engp" : Engp,
        "m-setpan" : Setpan,
121
        "m-glepan" : Glepan,
hulei committed
122
        "m-docpan" : Docpan,
123 124
		    "m-coninfp" : Coninfp,
        "m-doctre" : Doctre,
m  
1198835488@qq.com committed
125 126 127 128 129 130
    },
    provide() {
        return {
            root: this
        }
    },
131 132
    //mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
m  
1198835488@qq.com committed
133 134 135 136 137 138 139 140 141
    data(){
        return {
            tabVal: "payp",
            trnName: "bttsnd",
            model: new Bttsnd().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
142
            codes: {...CodeTable
m  
1198835488@qq.com committed
143 144 145 146 147 148 149 150 151
            },
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入bttsnd交易");
152 153 154 155 156 157 158 159
        //let rtnmsg = await this.init({})
        let rtnmsg = await this.init(this.$route.query);
        if (rtnmsg.respCode == SUCCESS) {
      //更新数据
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
m  
1198835488@qq.com committed
160 161 162 163 164 165 166 167 168 169 170 171

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>