index.vue 9.3 KB
Newer Older
jianglong committed
1
<template>
LiRui committed
2 3
  <div class="eContainer">
    <c-page title="出口融资放款">
jianglong committed
4

wangna committed
5 6 7 8
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
9
        label-width="120px"
wangna committed
10 11 12 13 14 15 16 17 18 19
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
tianxinyu committed
20 21 22 23 24 25 26

          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

wangna committed
27
          <!--PD000020 -->
tianxinyu committed
28
          <!-- <el-tab-pane label="融资详情" name="bptopn">
wangna committed
29 30 31
            <c-content>
              <m-bptopn :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
32
          </el-tab-pane> -->
wangna committed
33 34

          <!--PD000101 -->
tianxinyu committed
35
          <!-- <el-tab-pane
wangna committed
36 37 38 39 40 41 42 43 44 45 46 47
            label="福费廷"
            name="urpp"
            v-if="
              model.bpdgrp.rec.fintyp == 'F' ||
              model.bpdgrp.rec.fintyp == 'U' ||
              model.bpdgrp.rec.fintyp == 'G' ||
              model.bpdgrp.rec.fintyp == 'V'
            "
          >
            <c-content>
              <m-urpp :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
48
          </el-tab-pane> -->
wangna committed
49 50

          <!--PD000012 -->
tianxinyu committed
51
          <!-- <el-tab-pane label="基本信息" name="ovwp" v-if="1 == 0">
wangna committed
52 53 54
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
55
          </el-tab-pane> -->
wangna committed
56 57

          <!--PD000027 -->
tianxinyu committed
58
          <!-- <el-tab-pane label="或有" name="engp">
wangna committed
59 60 61
            <c-content>
              <m-engp :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
62
          </el-tab-pane> -->
wangna committed
63 64 65 66 67 68 69 70

          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan" v-if="1 == 0">
            <c-content>
              <m-ccvpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

tianxinyu committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
          <!--PD000001 -->
          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :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>
wangna committed
98
          <!--PD000000 -->
tianxinyu committed
99
          <!-- <el-tab-pane label="费用及账务" name="setpan">
wangna committed
100 101 102
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
103
          </el-tab-pane> -->
wangna committed
104 105

          <!--PD000001 -->
tianxinyu committed
106
          <!-- <el-tab-pane label="分录" name="glepan">
wangna committed
107 108 109
            <c-content>
              <m-glepan :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
110
          </el-tab-pane> -->
wangna committed
111 112

          <!--PD000000 -->
tianxinyu committed
113
          <el-tab-pane label="备查/附言" name="addbcb">
wangna committed
114
            <c-content>
tianxinyu committed
115
              <m-addbcb :model="model" :codes="codes" />
wangna committed
116 117 118
            </c-content>
          </el-tab-pane>

tianxinyu committed
119 120 121 122 123 124 125
          <el-tab-pane label="申报信息" name="cnyp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="报文/面函" name="docpan">
wangna committed
126 127 128 129 130 131
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000546 -->
tianxinyu committed
132
          <el-tab-pane label="附件信息" name="doctre">
wangna committed
133 134 135 136 137
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

138
          <!--PD000000 -->
tianxinyu committed
139
          <!-- <el-tab-pane
140 141 142 143 144 145
            v-if="model.bpdgrp.rec.fintyp=='F' || model.bpdgrp.rec.fintyp=='U'"
            label="收账通知" name="docpan1"
          >
            <c-content>
              <m-docpan1 :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
146
          </el-tab-pane> -->
147

wangna committed
148
          <!--PD000004 -->
tianxinyu committed
149
          <!-- <el-tab-pane label="融资款项" name="rzkx">
wangna committed
150 151 152
            <c-content>
              <m-rzkx :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
153
          </el-tab-pane> -->
wangna committed
154 155

          <!--PD000006 -->
tianxinyu committed
156
          <!-- <el-tab-pane label="外管信息" name="wg">
wangna committed
157 158 159
            <c-content>
              <m-wg :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
160
          </el-tab-pane> -->
wangna committed
161

162
          <!--PD000006 -->
tianxinyu committed
163
          <!-- <el-tab-pane 
164 165 166 167 168 169
            v-if="model.bopmod.szflg=='2' && model.bopmod.basflg=='X'"
            label="境内收入申报单-基础信息" name="basp2"
          >
            <c-content>
              <m-basp2 :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
170
          </el-tab-pane> -->
171

wangna committed
172
          <!--PD000005 -->
tianxinyu committed
173
          <!-- <el-tab-pane 
LiRui committed
174 175 176 177
            v-if="model.bpdgrp.cbs.max.cur!='CNY'"
            label="国内外汇贷款数据采集" 
            name="cfap"
          >
wangna committed
178 179 180
            <c-content>
              <m-cfap :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
181
          </el-tab-pane> -->
jianglong committed
182

wangna committed
183
          <!--PD000001 -->
tianxinyu committed
184
          <!-- <el-tab-pane label="定价系统" name="dinpan">
wangna committed
185 186 187
            <c-content>
              <m-dinpan :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
188
          </el-tab-pane> -->
jianglong committed
189

wangna committed
190 191

          <!--PD000001 -->
tianxinyu committed
192
          <!-- <el-tab-pane
LiRui committed
193 194 195
            v-if="model.cfabpt.cfaflg=='1'"
            label="国内外汇贷款-签约信息" name="conp"
          >
wangna committed
196 197 198
            <c-content>
              <m-conp :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
199
          </el-tab-pane> -->
LiRui committed
200 201

          <!--PD000001 -->
tianxinyu committed
202
          <!-- <el-tab-pane 
LiRui committed
203 204 205
            v-if="model.cfabpt.cfaflg=='1'"
            label="国内外汇贷款-变动信息" name="dclpp"
          >
LiRui committed
206 207 208
            <c-content>
              <m-dclpp :model="model" :codes="codes" />
            </c-content>
tianxinyu committed
209
          </el-tab-pane> -->
wangna committed
210 211 212 213 214 215
        </c-tabs>
      </el-form>

      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
216
        @select-ety="selectEty"
wangna committed
217 218
      >
      </c-grid-ety-prompt-dialog>
liaoxing committed
219 220 221 222 223 224 225
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
tianxinyu committed
226 227 228 229 230 231 232
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
LiRui committed
233 234
    </c-page>
  </div>
jianglong committed
235 236 237 238 239 240
</template>
<script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";

241
import BptopnModel from "~/model/Bptopn";
jianglong committed
242 243 244 245 246 247 248 249
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bptopn/Check";
import Default from "~/model/Bptopn/Default";
import Pattern from "~/model/Bptopn/Pattern";
import Ovwp from "./Ovwp";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
250
import Setpan from "~/components/business/setmod/views";
jianglong committed
251
import Glepan from "~/views/Public/Glepan";
tianxinyu committed
252
import Addbcb from "./Addbcb";
jianglong committed
253
import Docpan from "~/views/Public/Docpan";
javaHeight committed
254
// import Docpan1 from "./Docpan1";
jianglong committed
255 256
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";
tianxinyu committed
257
import Cnyp from "./Cnyp";
jianglong committed
258 259

export default {
wangna committed
260 261 262 263 264 265 266
  name: "Bptopn",
  components: {
    "m-ovwp": Ovwp,
    "m-engp": Engp,
    "m-ccvpan": Ccvpan,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
tianxinyu committed
267
    "m-addbcb": Addbcb,
wangna committed
268 269 270
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-limitbody": Limitbody,
tianxinyu committed
271
    "m-cnyp": Cnyp,
wangna committed
272 273 274 275 276 277 278 279 280 281 282
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  computed: {},
  data() {
    return {
      model: new BptopnModel().data,
tianxinyu committed
283
      tabVal: "ovwp",
wangna committed
284 285 286 287 288 289
      trnName: "bptopn",
      trnType: "",
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
tianxinyu committed
290
      activeNames: ["engp"],
wangna committed
291 292 293 294 295 296 297 298 299 300 301
      codes: {
        ...CodeTable,
      },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
jianglong committed
302 303
    },
  },
wangna committed
304 305 306 307 308 309 310 311 312 313 314 315
  created: async function () {
    console.log("进入bptopn交易");
    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: "服务请求失败!" });
    }
jianglong committed
316
  },
wangna committed
317 318
  watch: {},
};
jianglong committed
319 320 321
</script>
<style>
</style>