index.vue 5.19 KB
Newer Older
jxl committed
1 2 3
<template>
<c-page title="出口托收修改">
  <div class="eContainer">
4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" size="small" :validate-on-rule-change="false">
jxl committed
5 6
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        
LiRui committed
7 8 9 10 11 12
            <!--业务信息 -->
            <el-tab-pane label="业务信息" name="ovwp">
               <c-content>
                 <m-ovwp :model="model" :codes="codes" />
               </c-content>
             </el-tab-pane>
jxl committed
13
 
LiRui committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
            <!--费用账务 -->
            <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
               <c-content>
                 <div class="eibs-tab">
                   <el-collapse v-model="activeNames">
                     <el-collapse-item title="表外记账" name="engp">
                       <!-- 表外记账 -->
                       <m-engp :model="model" :codes="codes" />
                     </el-collapse-item>
                     <el-collapse-item title="结算" name="setpan">
                       <!-- 结算 -->
                       <m-setpan :model="model" :codes="codes" />
                     </el-collapse-item>
                     <el-collapse-item title="会计分录" name="glepan">
                       <!-- 分录 -->
                       <m-glepan :model="model" :codes="codes" />
                     </el-collapse-item>
                   </el-collapse>
                 </div>
               </c-content>
             </el-tab-pane>
      
jxl committed
36
 
LiRui committed
37 38 39 40 41 42
            <!--备查/附言 -->
            <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
43

LiRui committed
44 45 46 47 48 49 50 51 52 53
           <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
54
          </el-tab-pane>
jxl committed
55 56
       </c-tabs>
    </el-form>
57 58 59 60 61 62
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
63 64 65 66 67 68 69 70

    <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
LiRui committed
71 72 73 74 75 76 77 78 79 80 81 82 83
      <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>
jxl committed
84 85 86 87 88 89 90
  </div>
</c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botame from "~/model/Botame"
wangren committed
91
import commonProcess from "~/mixin/commonProcess"
92
import commonFuncs from "~/mixin/commonFuncs";
jxl committed
93 94 95
import Check from "~/model/Botame/Check"
import Default from "~/model/Botame/Default"
import Pattern from "~/model/Botame/Pattern"
nanrui committed
96

LiRui committed
97
import Addbcb from "./Addbcb";
jxl committed
98 99 100 101 102
import Amep from "./Amep"
import Ovwp from "./Ovwp"
import Inst from "./Inst"
import Ptyp from "./Ptyp"
import Instrecp from "./Instrecp"
nanrui committed
103

jxl committed
104
import Setpan from "~/views/Public/Setpan"
105
import Glepan from "~/views/Public/Glepan"
jxl committed
106 107
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
108
import Doctre from "~/views/Public/Doctre"
109
import Engp from "~/views/Public/Engp"
jxl committed
110 111 112


export default {
huangxin committed
113
     name: "Botame",
jxl committed
114
    components:{
LiRui committed
115
        "m-addbcb": Addbcb,
jxl committed
116 117 118 119 120 121 122 123 124 125
        "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,
126
        "m-engp": Engp,
jxl committed
127 128 129 130 131 132
    },
    provide() {
        return {
            root: this
        }
    },
133
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
jxl committed
134 135
    data(){
        return {
LiRui committed
136
            tabVal: "ovwp",
jxl committed
137 138 139 140 141 142 143
            trnName: "botame",
            model: new Botame().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
144
                 ...CodeTable,
jxl committed
145
            },
LiRui committed
146
            activeNames:["engp"],
jxl committed
147 148 149 150 151 152 153 154 155 156
        }
    },
    methods:{
    },
    created:async function(){
        console.log("进入botame交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
huangxin committed
157 158 159 160
          this.updateModel(rtnmsg.data);
          if (this.isInDisplay) {
        this.restoreDisplay();
      }
jxl committed
161 162 163 164 165 166 167 168 169 170 171
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>