index.vue 4.85 KB
Newer Older
ccx committed
1
<template>
2 3
  <c-page title="进口代收">
    <div class="eContainer">
LiRui committed
4
     
5 6 7 8
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
9
        label-width="120px"
10 11 12 13 14 15
        label-position="left"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">

LiRui committed
16 17 18 19 20 21 22 23 24
             <!--业务信息 -->
             <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">
wangna committed
25
            <c-content>
LiRui committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
              <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>
42
            </c-content>
wangna committed
43 44
          </el-tab-pane>

LiRui committed
45 46
           <!--备查/附言 -->
           <el-tab-pane label="备查/附言" name="addbcb">
47
            <c-content>
LiRui committed
48
              <m-addbcb :model="model" :codes="codes" />
ccx committed
49
            </c-content>
50 51
          </el-tab-pane>

nanrui committed
52
          <!--报文和面函 -->
LiRui committed
53 54 55 56
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
57 58
          </el-tab-pane>

nanrui committed
59
          <!--附件 -->
LiRui committed
60 61 62 63
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
64 65
          </el-tab-pane>

LiRui committed
66 67 68 69 70
          <!-- 申报信息 -->
          <el-tab-pane label="申报信息" name="cnyp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
71 72 73 74 75 76 77 78 79 80
          </el-tab-pane>

        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
panziyi committed
81 82 83 84 85 86 87
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
LiRui committed
88 89 90 91 92 93 94
      <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash"
    >
    </c-function-btn>

95 96
    </div>
  </c-page>
ccx committed
97 98
</template>
<script>
99 100 101 102 103 104 105 106
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bctdav from "~/model/Bctdav";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bctdav/Check";
import Default from "~/model/Bctdav/Default";
import Pattern from "~/model/Bctdav/Pattern";
nanrui committed
107

LiRui committed
108
import Addbcb from "./Addbcb";
109 110
import Ovwp from "./Ovwp";
import Detp from "./Detp";
wangna committed
111
import Ptyp from "./Ptyp";
112 113
import Srmp from "./Srmp";
import Cnyp from "./Cnyp";
nanrui committed
114 115


116 117
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
wangna committed
118
import Glepan from "~/views/Public/Glepan";
119 120 121
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
ccx committed
122 123

export default {
124 125
  name: "Bctdav",
  components: {
LiRui committed
126
    "m-addbcb": Addbcb,
127 128
    "m-ovwp": Ovwp,
    "m-detp": Detp,
wangna committed
129
    "m-ptyp": Ptyp,
130 131
    "m-setpan": Setpan,
    "m-engp": Engp,
wangna committed
132
    "m-glepan": Glepan,
133 134 135 136 137 138 139 140 141 142 143
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-coninfp": Coninfp,
    "m-cnyp": Cnyp,
    "m-srmp": Srmp,
  },
  provide() {
    return {
      root: this,
    };
  },
wangna committed
144
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
145 146 147 148 149 150 151 152 153
  data() {
    return {
      tabVal: "ovwp",
      trnName: "bctdav",
      model: new Bctdav().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
wangna committed
154
      codes: { ...CodeTable },
155 156 157 158 159
    };
  },
  methods: {},
  created: async function () {
    console.log("进入bctdav交易");
wangna committed
160 161 162 163 164
    let rtnmsg = await this.init({});

    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
165 166 167
      if(this.isInDisplay){
        this.restoreDisplay();
      }
wangna committed
168 169 170
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
171 172
  },
};
ccx committed
173
</script>
174
<style></style>