index.vue 6.65 KB
Newer Older
xsh committed
1
<template>
2 3 4 5
  <div class="eContainer">
    <c-page title="进口代收修改">


wangna committed
6
      <el-form
7 8 9 10 11 12 13
          :model="model"
          :rules="rules"
          ref="modelForm"
          label-width="120px"
          label-position="left"
          size="small"
          :validate-on-rule-change="false"
wangna committed
14 15
      >
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
nanrui committed
16
          <!--修改 -->
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<!--          <el-tab-pane label="修改" name="amep">-->
<!--            <c-content>-->
<!--              <m-amep :model="model" :codes="codes" />-->
<!--            </c-content>-->
<!--          </el-tab-pane>-->

<!--          &lt;!&ndash;概要 &ndash;&gt;-->
<!--          <el-tab-pane label="概要" name="ovwp">-->
<!--            <c-content>-->
<!--              <m-ovwp :model="model" :codes="codes" />-->
<!--            </c-content>-->
<!--          </el-tab-pane>-->

<!--          &lt;!&ndash;指示条款 &ndash;&gt;-->
<!--          <el-tab-pane label="指示条款" name="detp">-->
<!--            <m-detp :model="model" :codes="codes" />-->
<!--          </el-tab-pane>-->
wangna committed
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 59 60 61 62 63 64 65 66 67 68 69 70
<!--          <el-tab-pane label="参与方" name="ptyp">-->
<!--            <c-content>-->
<!--              <m-ptyp :model="model" :codes="codes" />-->
<!--            </c-content>-->
<!--          </el-tab-pane>-->

<!--          <el-tab-pane label="表外记账" name="engp">-->
<!--            <m-engp :model="model" :codes="codes" />-->
<!--          </el-tab-pane>-->

<!--          &lt;!&ndash;账务 &ndash;&gt;-->
<!--          <el-tab-pane label="结算" name="setpan">-->
<!--            <c-content>-->
<!--              <m-setpan :model="model" :codes="codes" />-->
<!--            </c-content>-->
<!--          </el-tab-pane>-->

<!--          <el-tab-pane label="账务" name="glepan">-->
<!--            <m-glepan :model="model" :codes="codes" />-->
<!--          </el-tab-pane>-->

<!--          &lt;!&ndash;附言 &ndash;&gt;-->
<!--          <el-tab-pane label="提示信息" name="coninfp">-->
<!--            <m-coninfp :model="model" :codes="codes" />-->
<!--          </el-tab-pane>-->

<!--          &lt;!&ndash;报文和面函 &ndash;&gt;-->
<!--          <el-tab-pane label="报文和面函" name="docpan">-->
<!--            <m-docpan :model="model" :codes="codes" />-->
<!--          </el-tab-pane>-->

<!--          &lt;!&ndash;附件 &ndash;&gt;-->
<!--          <el-tab-pane label="附件" name="doctre">-->
<!--            <m-doctre :model="model" :codes="codes" />-->
<!--          </el-tab-pane>-->
          <el-tab-pane label="业务信息" name="ovwp">
wangna committed
71 72 73 74 75
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

76
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
wangna committed
77
            <c-content>
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
              <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>
wangna committed
94 95 96
            </c-content>
          </el-tab-pane>

97
          <el-tab-pane label="备查/附言" name="addbcb">
wangna committed
98
            <c-content>
99
              <m-addbcb :model="model" :codes="codes" />
wangna committed
100 101
            </c-content>
          </el-tab-pane>
102 103 104 105
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
wangna committed
106
          </el-tab-pane>
107 108 109 110
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
wangna committed
111 112 113 114 115
          </el-tab-pane>
        </c-tabs>
      </el-form>

      <c-grid-ety-prompt-dialog
116 117 118
          ref="etyDialog"
          :promptData="promptData"
          v-on:select-ety="selectEty"
wangna committed
119
      ></c-grid-ety-prompt-dialog>
panziyi committed
120
      <c-grid-ety-prompt-dialog
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
          ref="doxpDialog"
          :isPty="false"
          :promptData="promptData"
          @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>

      <c-function-btn
          :handleSubmit="handleSubmit"
          :handleCheck="handleCheck"
          :handleStash="handleStash"
      >
      </c-function-btn>


    </c-page>
  </div>
xsh committed
138 139
</template>
<script>
wangna committed
140 141 142 143 144 145 146 147 148
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Bctame from "~/model/Bctame";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bctame/Check";
import Default from "~/model/Bctame/Default";
import Pattern from "~/model/Bctame/Pattern";
nanrui committed
149

150
// import Amep from "./Amep";
wangna committed
151
import Ovwp from "./Ovwp";
152 153 154
// import Detp from "./Detp";
// import Ptyp from "./Ptyp";
import Addbcb from "./Addbcb";
xsh committed
155

wangna committed
156 157 158 159 160 161
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Coninfp from "~/views/Public/Coninfp";
import Glepan from "~/views/Public/Glepan";
import Engp from "~/views/Public/Engp";
xsh committed
162 163

export default {
wangna committed
164 165
  name: "Bctame",
  components: {
166
    // "m-amep": Amep,
wangna committed
167
    "m-ovwp": Ovwp,
168 169
    // "m-detp": Detp,
    // "m-ptyp": Ptyp,
wangna committed
170 171 172 173 174 175
    "m-setpan": Setpan,
    "m-engp": Engp,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-glepan": Glepan,
176
    "m-addbcb": Addbcb,
wangna committed
177 178 179 180 181 182 183 184 185
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
186 187
      activeNames:["engp"],
      tabVal: "ovwp",
wangna committed
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
      trnName: "bctame",
      model: new Bctame().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
    
  },
  created: async function () {
    console.log("进入bctame交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      //更新数据
      this.updateModel(rtnmsg.data);
207 208 209
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
wangna committed
210 211
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
xsh committed
212
    }
wangna committed
213 214
  },
};
xsh committed
215 216 217
</script>
<style>
</style>