index.vue 8.78 KB
Newer Older
1
<template>
wangna committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
  <div class="eContainer">
    <c-page>
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="120px"
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
潘际乾 committed
19
          <el-tab-pane label="业务信息" name="utlp,ovwp,docpre,shpdet">
wangna committed
20
            <c-content>
潘际乾 committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
              <div class="eibs-tab">
                <el-collapse v-model="ywxx">
                  <el-collapse-item title="偿还垫款" name="utlp">
                    <m-utlp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="概览信息" name="ovwp">
                    <m-ovwp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="不符点" name="docpre">
                    <m-docpre :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="装运信息" name="shpdet">
                    <m-shpdet :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
wangna committed
37 38
            </c-content>
          </el-tab-pane>
潘际乾 committed
39 40 41 42 43 44
          <!--PD000018 -->
          <!-- <el-tab-pane label="偿还垫款" name="utlp">
											<c-content>
													<m-utlp :model="model" :codes="codes"/>
											</c-content>
								</el-tab-pane> -->
wangna committed
45 46 47

          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan">
潘际乾 committed
48 49 50
            <c-content>
              <m-ccvpan :model="model" :codes="codes" />
            </c-content>
wangna committed
51 52 53 54
          </el-tab-pane>

          <!--PD000001 -->
          <el-tab-pane label="统一授信" name="limitbody">
潘际乾 committed
55 56 57
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
wangna committed
58 59 60
          </el-tab-pane>

          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
潘际乾 committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="fyzw">
                  <el-collapse-item title="表外记账" name="engp">
                    <!--PD000027 -->
                    <m-engp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="结算" name="setpan">
                    <!--PD000000 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="会计分录" name="glepan">
                    <!--PD000001 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
wangna committed
79 80 81
          </el-tab-pane>

          <!--PD000000 -->
潘际乾 committed
82 83 84 85 86 87 88 89 90 91
          <el-tab-pane label="备查/附言" name="coninfp">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="bcfy">
                  <el-collapse-item title="附言" name="coninfp">
                    <m-coninfp :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
wangna committed
92 93 94 95
          </el-tab-pane>

          <!--PD000529 -->
          <el-tab-pane label="报文/面函" name="docpan">
潘际乾 committed
96 97 98
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
wangna committed
99 100 101 102
          </el-tab-pane>

          <!--PD000546 -->
          <el-tab-pane label="附件信息" name="doctre">
潘际乾 committed
103 104 105
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
wangna committed
106 107
          </el-tab-pane>

潘际乾 committed
108 109 110
          <!-- <el-tab-pane label="概览信息" name="ovwp">
											<m-ovwp :model="model" :codes="codes"/>
								</el-tab-pane> -->
wangna committed
111 112

          <!--PD000062 -->
潘际乾 committed
113 114 115
          <!-- <el-tab-pane label="不符点" name="docpre">
											<m-docpre :model="model" :codes="codes"/>
								</el-tab-pane> -->
wangna committed
116 117

          <!--PD000079 -->
潘际乾 committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
          <!-- <el-tab-pane label="装运信息" name="shpdet">
									<c-content>
										<m-shpdet :model="model" :codes="codes"/>
									</c-content>
								</el-tab-pane> -->

          <!--未找到相关panels-->
          <!--PD000031
								<el-tab-pane label="PD000031" name="brtapll1">
											<m-brtapll1 :model="model" :codes="codes"/>
								</el-tab-pane>-->
          <!--PD000049
								<el-tab-pane label="PD000049" name="prtswtr">
											<m-prtswtr :model="model" :codes="codes"/>
								</el-tab-pane>-->
          <!--PD000062
								<el-tab-pane label="PD000062" name="prtswtrp">
											<m-prtswtrp :model="model" :codes="codes"/>
								</el-tab-pane>-->
          <!--PD000061
								<el-tab-pane label="PD000061" name="xmldoc">
											<m-xmldoc :model="model" :codes="codes"/>
								</el-tab-pane>-->
          <!--PD000060
								<el-tab-pane label="PD000060" name="prtswtp">
											<m-prtswtp :model="model" :codes="codes"/>
								</el-tab-pane> -->
          <!--PD000001
								<el-tab-pane label="PD000001" name="dnfp">
											<m-dnfp :model="model" :codes="codes"/>
								</el-tab-pane>-->
          <!--PD000020
								<el-tab-pane label="PD000020" name="detp">
											<m-detp :model="model" :codes="codes"/>
								</el-tab-pane>-->
          <!--PD000015
								<el-tab-pane label="PD000015" name="cmnsetl1">
											<m-cmnsetl1 :model="model" :codes="codes"/>
								</el-tab-pane>-->
          <!--PD000005
								<el-tab-pane label="PD000005" name="syswrndisplay">
											<m-syswrndisplay :model="model" :codes="codes"/>
								</el-tab-pane>-->
wangna committed
161 162 163 164 165 166 167 168 169 170
        </c-tabs>
      </el-form>
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
    </c-page>
  </div>
171 172
</template>
<script>
wangna committed
173 174 175 176
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Brtlat from "~/model/Brtlat";
import commonProcess from "~/mixin/commonProcess";
zhujiazhan committed
177
import commonFuncs from "~/mixin/commonFuncs";
wangna committed
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
import Check from "~/model/Brtlat/Check";
import Default from "~/model/Brtlat/Default";
import Pattern from "~/model/Brtlat/Pattern";
import Brtapll1 from "./Brtapll1";
import Utlp from "./Utlp";
import Prtswtr from "./Prtswtr";
import Prtswtrp from "./Prtswtrp";
import Xmldoc from "./Xmldoc";
import Prtswtp from "./Prtswtp";
import Dnfp from "./Dnfp";
import Detp from "./Detp";
import Docpre from "./Docpre";
import Shpdet from "./Shpdet";
import Ovwp from "./Ovwp";

import Cmnsetl1 from "./Cmnsetl1";
import Syswrndisplay from "./Syswrndisplay";

import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
zhujiazhan committed
198
import Setpan from "~/views/Public/Setpan";
wangna committed
199 200 201 202
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
zhujiazhan committed
203
import Limitbody from "~/views/Public/Limitbody";
204 205

export default {
wangna committed
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
  name: "Brtlat",
  components: {
    "m-docpre": Docpre,
    "m-shpdet": Shpdet,
    "m-brtapll1": Brtapll1,
    "m-utlp": Utlp,
    "m-prtswtr": Prtswtr,
    "m-prtswtrp": Prtswtrp,
    "m-xmldoc": Xmldoc,
    "m-prtswtp": Prtswtp,
    "m-engp": Engp,
    "m-ccvpan": Ccvpan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-dnfp": Dnfp,
    "m-setpan": Setpan,
    "m-detp": Detp,
    "m-glepan": Glepan,
    "m-cmnsetl1": Cmnsetl1,
    "m-syswrndisplay": Syswrndisplay,
    "m-limitbody": Limitbody,
    "m-ovwp": Ovwp,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
潘际乾 committed
238
      tabVal: "utlp,ovwp,docpre,shpdet",
wangna committed
239 240 241 242 243 244 245 246 247
      trnName: "brtlat",
      model: new Brtlat().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
潘际乾 committed
248
      ywxx: ["utlp"],
wangna committed
249
      fyzw: ["engp"],
潘际乾 committed
250
      bcfy: ["coninfp"],
wangna committed
251 252 253 254 255 256 257 258
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
259
    },
wangna committed
260 261 262 263 264 265 266
    // 第二个表格
    detail1(index, row) {
      this.executeDefault("setfel/det").then((res) => {
        this.dialogVisible = true;
        this.dialog = row;
        this.index = index;
      });
267
    },
wangna committed
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
  },
  created: async function () {
    console.log("进入brtlat交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      this.model.gleflg = "X";
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
283
</script>
潘际乾 committed
284
<style></style>