index.vue 4.71 KB
Newer Older
xsh committed
1 2 3 4 5 6 7
<template>
  <c-page title="出口托收闭卷">
    <div class="eContainer">
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
8
        label-width="120px"
xsh committed
9 10 11 12 13
        label-position="left"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
LiRui committed
14 15
          <!--业务信息 -->
          <el-tab-pane label="业务信息" name="ovwp">
xsh committed
16
            <c-content>
LiRui committed
17
              <m-ovwp :model="model" :codes="codes" />
xsh committed
18 19 20
            </c-content>
          </el-tab-pane>

LiRui committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34
          <!-- 费用/账务 -->
          <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">
hewei committed
35 36
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
LiRui committed
37 38 39 40
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
xsh committed
41
          </el-tab-pane>
LiRui committed
42 43 44

            <!--备查/附言 -->
           <el-tab-pane label="备查/附言" name="coninfp">
hewei committed
45
              <c-content>
46
                <m-coninfp :model="model" :codes="codes"/>
hewei committed
47
              </c-content>
48 49
           </el-tab-pane>
 
nanrui committed
50
            <!--报文和面函 -->
LiRui committed
51
           <el-tab-pane label="报文/面函" name="docpan">
hewei committed
52 53 54
             <c-content>
               <m-docpan :model="model" :codes="codes"/>
             </c-content>
55 56
           </el-tab-pane>
 
nanrui committed
57
            <!--附件 -->
LiRui committed
58
           <el-tab-pane label="附件信息" name="doctre">
hewei committed
59 60 61
             <c-content>
               <m-doctre :model="model" :codes="codes"/>
             </c-content>
62
           </el-tab-pane>
xsh committed
63 64 65 66 67 68 69 70
        </c-tabs>
      </el-form>

      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></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>
xsh committed
84 85 86 87 88 89 90 91
    </div>
  </c-page>
</template>
<script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Botcan from "~/model/Botcan";
wangren committed
92
import commonProcess from "~/mixin/commonProcess";
93
import commonFuncs from "~/mixin/commonFuncs";
xsh committed
94 95 96
import Check from "~/model/Botcan/Check";
import Default from "~/model/Botcan/Default";
import Pattern from "~/model/Botcan/Pattern";
nanrui committed
97

xsh committed
98 99
import Canp from "./Canp";

nanrui committed
100
import Doctre from "~/views/Public/Doctre";
101
import Setpan from "~/components/business/setmod/views";
xsh committed
102 103
import Docpan from "~/views/Public/Docpan"
import Coninfp from "~/views/Public/Coninfp"
104 105
import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan";
LiRui committed
106
import Ovwp from "./Ovwp.vue";
xsh committed
107 108

export default {
huangxin committed
109
  name: "Botcan",
xsh committed
110 111 112 113 114 115
  components: {
    "m-canp": Canp,
    "m-setpan": Setpan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
116 117
    "m-engp": Engp,
    "m-glepan" : Glepan,
LiRui committed
118
    "m-ovwp" : Ovwp,
xsh committed
119 120 121 122 123 124
  },
  provide() {
    return {
      root: this,
    };
  },
125
  mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
xsh committed
126 127
  data() {
    return {
LiRui committed
128
      tabVal: "ovwp",
xsh committed
129 130 131 132 133 134 135
      trnName: "botcan",
      model: new Botcan().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
hewei committed
136
      activeNames: ["engp"],
xsh committed
137 138 139
    };
  },
  methods: {
140
    // tabClick() {},
xsh committed
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
  },
  created: async function() {
    console.log("进入botcan交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      //更新数据
      this.updateModel(rtnmsg.data)
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
</script>
<style></style>