index.vue 4.56 KB
Newer Older
jxl committed
1
<template>
2 3
    <c-page title="出口托收拒付/不符点">
        <div class="eContainer">
huangxin committed
4

5
            <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right"
6 7 8
                size="small" :validate-on-rule-change="false">
                <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">

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

          <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>
53 54
                </c-tabs>
            </el-form>
wangyanjiao committed
55 56 57
            <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData"
                    @select-ety="selectMsg">
               </c-grid-ety-prompt-dialog>
huangxin committed
58 59 60 61 62 63
               <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
64 65
        </div>
    </c-page>
jxl committed
66 67 68 69 70
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botdcr from "~/model/Botdcr"
wangren committed
71
import commonProcess from "~/mixin/commonProcess"
72
import commonFuncs from "~/mixin/commonFuncs";
jxl committed
73 74 75
import Check from "~/model/Botdcr/Check"
import Default from "~/model/Botdcr/Default"
import Pattern from "~/model/Botdcr/Pattern"
nanrui committed
76 77


jxl committed
78 79 80
import Botdcrp1 from "./Botdcrp1"
import Inst from "./Inst"
import Ptyp from "./Ptyp"
huangxin committed
81 82
import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp"
nanrui committed
83 84 85


import Engp from "~/views/Public/Engp"
86 87 88
import Setpan from "~/views/Public/Setpan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
wangyanjiao committed
89
import Glepan from "~/views/Public/Glepan"
90
import Doctre from "~/views/Public/Doctre"
jxl committed
91 92 93 94


export default {
    name: "Botdcr",
95
    components: {
huangxin committed
96 97
        "m-addbcb": Addbcb,
        "m-ovwp": Ovwp,
98 99 100
        "m-botdcrp1": Botdcrp1,
        "m-inst": Inst,
        "m-ptyp": Ptyp,
wangyanjiao committed
101
        "m-glepan": Glepan,
102 103 104 105 106
        "m-setpan": Setpan,
        "m-coninfp": Coninfp,
        "m-engp": Engp,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
jxl committed
107 108 109 110 111 112
    },
    provide() {
        return {
            root: this
        }
    },
113 114
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
    data() {
jxl committed
115
        return {
huangxin committed
116
            tabVal: "ovwp",
jxl committed
117 118 119 120 121 122 123
            trnName: "botdcr",
            model: new Botdcr().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
124
                ...CodeTable
jxl committed
125
            },
huangxin committed
126
            activeNames: ["engp"],
jxl committed
127 128
        }
    },
129 130 131
    methods: {
        // tabClick() {
        // }
jxl committed
132
    },
133
    created: async function () {
jxl committed
134 135
        console.log("进入botdcr交易");
        let rtnmsg = await this.init({})
136 137 138 139 140 141
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
            this.updateModel(rtnmsg.data)
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
jxl committed
142 143

        }
144 145
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
jxl committed
146 147 148 149 150 151
        }
    }
}
</script>
<style>
</style>