index.vue 5.57 KB
Newer Older
jxl committed
1
<template>
2 3
     <c-page title="出口托收寄单">
          <div class="eContainer">
4
               <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left"
5 6 7
                    size="small" :validate-on-rule-change="false">
                    <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">

huangxin committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <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>

          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
                <m-addbcb :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000009 -->
          <el-tab-pane label="申报信息" name="libp,cnyp1">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <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>
          </el-tab-pane>
59 60
                    </c-tabs>
               </el-form>
61
               <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
wangyanjiao committed
62
               </c-grid-ety-prompt-dialog>
wangyanjiao committed
63 64
               <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData"
                    @select-ety="selectMsg">
65
               </c-grid-ety-prompt-dialog>
huangxin committed
66 67 68 69 70 71
               <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
72 73
          </div>
     </c-page>
jxl committed
74 75
</template>
<script>
wangyanjiao committed
76 77 78 79 80 81 82 83
     import Api from "~/service/Api"
     import CodeTable from "~/config/CodeTable"
     import Botdav from "~/model/Botdav"
     import commonProcess from "~/mixin/commonProcess"
     import commonFuncs from "~/mixin/commonFuncs";
     import Check from "~/model/Botdav/Check"
     import Default from "~/model/Botdav/Default"
     import Pattern from "~/model/Botdav/Pattern"
nanrui committed
84

huangxin committed
85
     import Addbcb from "./Addbcb";
wangyanjiao committed
86 87 88 89
     import Ovwp from "./Ovwp"
     import Inst from "./Inst"
     import Ptyp from "./Ptyp"
     import Instrecp from "./Instrecp"
nanrui committed
90 91 92 93
     import Cnyp from "./Cnyp"
     import Srmp from "./Srmp"
     import Libp from './Libp'

94
     import Setpan from "~/components/business/setmod/views"
wangyanjiao committed
95 96 97 98 99 100 101 102
     import Coninfp from "~/views/Public/Coninfp"
     import Docpan from "~/views/Public/Docpan"
     import Engp from "~/views/Public/Engp"
     import Glepan from "~/views/Public/Glepan"
     import Doctre from "~/views/Public/Doctre"


     export default {
huangxin committed
103
          name: "Botdav",
wangyanjiao committed
104
          components: {
huangxin committed
105
               "m-addbcb": Addbcb,
wangyanjiao committed
106 107 108 109 110 111 112 113 114 115 116
               "m-ovwp": Ovwp,
               "m-inst": Inst,
               "m-ptyp": Ptyp,
               "m-instrecp": Instrecp,
               "m-setpan": Setpan,
               "m-coninfp": Coninfp,
               "m-docpan": Docpan,
               "m-doctre": Doctre,
               "m-cnyp": Cnyp,
               "m-srmp": Srmp,
               "m-engp": Engp,
117
               'm-libp': Libp,
wangyanjiao committed
118 119 120 121 122 123
               "m-glepan": Glepan,

          },
          provide() {
               return {
                    root: this
124
               }
wangyanjiao committed
125 126 127 128 129 130 131 132 133 134 135 136 137 138
          },
          mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
          data() {
               return {
                    tabVal: "ovwp",
                    trnName: "botdav",
                    model: new Botdav().data,
                    //   checkRules: Check,
                    defaultRules: Default,
                    pattern: Pattern,
                    rules: null,
                    codes: {
                         ...CodeTable
                    },
huangxin committed
139
                    activeNames: ["engp"],
wangyanjiao committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153
               }
          },
          methods: {

          },
          created: async function () {
               console.log("进入botdav交易");
               let rtnmsg = await this.init({})
               if (rtnmsg.respCode == SUCCESS) {
                    //TODO 处理数据逻辑
                    this.updateModel(rtnmsg.data)
                    if (this.isInDisplay) {
                         this.restoreDisplay();
                    }
154

wangyanjiao committed
155 156 157 158 159 160
               }
               else {
                    this.$notify.error({ title: '错误', message: '服务请求失败!' });
               }
          },
     };
jxl committed
161 162
</script>
<style>
wangyanjiao committed
163
</style>