index.vue 4.57 KB
Newer Older
wjj committed
1
<template>
wangren committed
2 3 4 5 6 7
  <c-page title="进口代收承兑">
    <div class="eContainer">
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
8
        label-width="120px"
wangren committed
9 10 11 12
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
13
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
LiRui committed
14 15 16
          
          <!-- 业务信息 -->
          <el-tab-pane label="业务信息" name="ovwp">
wangren committed
17
            <c-content>
LiRui committed
18 19
            <m-ovwp :model="model" :codes="codes" />
          </c-content>
wangren committed
20
          </el-tab-pane>
LiRui committed
21 22 23
          
           <!--费用账务 -->
           <el-tab-pane label="费用/账务" name="engp,setpan">
wangren committed
24
            <c-content>
LiRui committed
25 26 27 28 29 30 31 32 33 34 35 36
              <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>
              </div>
wangren committed
37 38
            </c-content>
          </el-tab-pane>
LiRui committed
39 40 41
         
           <!--备查/附言 -->
           <el-tab-pane label="备查/附言" name="addbcb">
wangren committed
42
            <c-content>
LiRui committed
43
              <m-addbcb :model="model" :codes="codes" />
wangren committed
44 45
            </c-content>
          </el-tab-pane>
wjj committed
46

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

nanrui committed
54
          <!--附件 -->
LiRui committed
55 56
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
wangren committed
57
            <m-doctre :model="model" :codes="codes" />
LiRui committed
58
          </c-content>
wangren committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
          </el-tab-pane>
        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        @select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
LiRui committed
75 76 77 78 79 80
      <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash"
    >
    </c-function-btn>
wangren committed
81 82
    </div>
  </c-page>
wjj committed
83 84
</template>
<script>
wangren committed
85 86 87 88 89 90 91 92 93
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import commonFuncs from "~/mixin/commonFuncs";
import Bctacc from "~/model/Bctacc";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Bctacc/Check";
import Default from "~/model/Bctacc/Default";
import Pattern from "~/model/Bctacc/Pattern";
nanrui committed
94

LiRui committed
95
import Addbcb from "./Addbcb";
wangren committed
96 97 98
import Bctset from "./Bctset";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
LiRui committed
99
import Ovwp from "./ovwp.vue";
wangren committed
100 101 102 103 104 105

import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
wjj committed
106

wangren committed
107 108 109
export default {
  name: "Bctacc",
  components: {
LiRui committed
110
    "m-addbcb":Addbcb,
wangren committed
111 112 113 114 115 116 117 118
    "m-bctset": Bctset,
    "m-detp": Detp,
    "m-ptyp": Ptyp,
    "m-engp": Engp,
    "m-setpan": Setpan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
LiRui committed
119
    "m-ovwp": Ovwp,
wangren committed
120 121 122 123 124 125 126 127 128
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
LiRui committed
129
      tabVal: "ovwp",
wangren committed
130 131 132 133 134 135 136 137 138
      trnName: "bctacc",
      model: new Bctacc().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
LiRui committed
139
      activeNames:["engp"]
wangren committed
140 141 142
    };
  },
  methods: {
143 144 145 146 147 148 149
    // tabClick() {},
    myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
wangren committed
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
  },
  created: async function () {
    console.log("进入bctacc交易");
    let rtnmsg = await this.init(this.$route.query);
    if (rtnmsg.respCode == SUCCESS) {
      //更新数据
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({
        title: "错误",
        message: "服务请求失败!",
      });
    }
  },
};
wjj committed
168
</script>
wangren committed
169
<style></style>