index.vue 5.51 KB
Newer Older
jxl committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<template>
<c-page title="出口托收修改">
  <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>
      </c-function-btn>
17
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" size="small" :validate-on-rule-change="false">
jxl committed
18 19
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        
nanrui committed
20 21
            <!--修正 -->
           <el-tab-pane label="修正" name="amep">
jxl committed
22
                <c-content>
jxl committed
23
                <m-amep :model="model" :codes="codes"/>
jxl committed
24
                </c-content>
jxl committed
25 26 27
           </el-tab-pane>
 
            <!--Overview -->
nanrui committed
28
           <el-tab-pane label="概要" name="ovwp">
jxl committed
29
                <c-content>
jxl committed
30
                <m-ovwp :model="model" :codes="codes"/>
jxl committed
31
                </c-content>
jxl committed
32 33
           </el-tab-pane>
 
nanrui committed
34
            <!--指示条款 -->
nanrui committed
35
           <el-tab-pane label="指示条款" name="inst">
jxl committed
36
                <c-content>
jxl committed
37
                <m-inst :model="model" :codes="codes"/>
jxl committed
38
                </c-content>
jxl committed
39 40
           </el-tab-pane>
 
nanrui committed
41 42
            <!--参与方 -->
           <el-tab-pane label="参与方" name="ptyp">
jxl committed
43
                <c-content>
jxl committed
44
                <m-ptyp :model="model" :codes="codes"/>
jxl committed
45
                </c-content>
jxl committed
46 47
           </el-tab-pane>
 
nanrui committed
48 49
            <!--接受条款 -->
           <el-tab-pane label="接受条款" name="instrecp">
jxl committed
50
                <c-content>
jxl committed
51
                <m-instrecp :model="model" :codes="codes"/>
jxl committed
52
                </c-content>
jxl committed
53
           </el-tab-pane>
54

nanrui committed
55
           <!--表外记账 -->
56
          <!-- 或有 -->
nanrui committed
57
          <el-tab-pane label="表外记账" name="engp">
58 59
               <m-engp :model="model" :codes="codes" />
          </el-tab-pane>
jxl committed
60
 
nanrui committed
61 62
            <!--结算 -->
           <el-tab-pane label="结算" name="setpan">
huangxin committed
63
                <c-content>
jxl committed
64
                <m-setpan :model="model" :codes="codes"/>
huangxin committed
65
                </c-content>
jxl committed
66 67
           </el-tab-pane>
 
nanrui committed
68 69
            <!--分录 -->
           <el-tab-pane label="分录" name="glepan">
jxl committed
70 71 72
                <m-glepan :model="model" :codes="codes"/>
           </el-tab-pane>
 
nanrui committed
73 74
            <!--提示信息 -->
           <el-tab-pane label="提示信息" name="coninfp">
jxl committed
75 76 77
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
nanrui committed
78 79
            <!--报文和面函 -->
           <el-tab-pane label="报文和面函" name="docpan">
jxl committed
80 81 82
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
nanrui committed
83 84
            <!--附件 -->
           <el-tab-pane label="附件" name="doctre">
jxl committed
85 86 87 88
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>
       </c-tabs>
    </el-form>
89 90 91 92 93 94
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
95 96 97 98 99 100 101 102 103

    <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>

jxl committed
104 105 106 107 108 109 110
  </div>
</c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botame from "~/model/Botame"
wangren committed
111
import commonProcess from "~/mixin/commonProcess"
112
import commonFuncs from "~/mixin/commonFuncs";
jxl committed
113 114 115
import Check from "~/model/Botame/Check"
import Default from "~/model/Botame/Default"
import Pattern from "~/model/Botame/Pattern"
nanrui committed
116

jxl committed
117 118 119 120 121
import Amep from "./Amep"
import Ovwp from "./Ovwp"
import Inst from "./Inst"
import Ptyp from "./Ptyp"
import Instrecp from "./Instrecp"
nanrui committed
122

jxl committed
123
import Setpan from "~/views/Public/Setpan"
124
import Glepan from "~/views/Public/Glepan"
jxl committed
125 126
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
127
import Doctre from "~/views/Public/Doctre"
128
import Engp from "~/views/Public/Engp"
jxl committed
129 130 131


export default {
huangxin committed
132
     name: "Botame",
jxl committed
133 134 135 136 137 138 139 140 141 142 143
    components:{
        "m-amep" : Amep,
        "m-ovwp" : Ovwp,
        "m-inst" : Inst,
        "m-ptyp" : Ptyp,
        "m-instrecp" : Instrecp,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
144
        "m-engp": Engp,
jxl committed
145 146 147 148 149 150
    },
    provide() {
        return {
            root: this
        }
    },
151
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
jxl committed
152 153 154 155 156 157 158 159 160 161
    data(){
        return {
            tabVal: "amep",
            trnName: "botame",
            model: new Botame().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
162
                 ...CodeTable,
jxl committed
163 164 165 166 167 168 169 170 171 172 173
            },
        }
    },
    methods:{
    },
    created:async function(){
        console.log("进入botame交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
huangxin committed
174 175 176 177
          this.updateModel(rtnmsg.data);
          if (this.isInDisplay) {
        this.restoreDisplay();
      }
jxl committed
178 179 180 181 182 183 184 185 186 187 188
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>