Limitbody.vue 14.7 KB
Newer Older
liuxin committed
1
<template>
Wuyuqiu committed
2
  <div class="eibs-tab">
jianglong committed
3
    
liuxin committed
4

5
    <!-- 左边-->
6
    <c-col :span="len==true?12:8" @change="spanChange">
7
      <!-- line2 -->
Wuyuqiu committed
8
      <c-row>
9 10 11 12 13 14 15 16 17 18
        <c-col :span="24">
          <el-form-item
            label="额度主体"
            prop="liaall.limmod.limpts.wrk.pts.extkey"
            style="width: 100%"
          >
            <c-fullbox>
              <c-input
                v-model="model.liaall.limmod.limpts.wrk.pts.extkey"
                maxlength="16"
jianglong committed
19
                placeholder="请输入地址编码"
20
                style="width: 100%"
lianyang committed
21
                disabled
22 23 24
              ></c-input>
              <template slot="footer">
                <c-button
Wuyuqiu committed
25
                  style=""
26 27 28 29 30 31
                  size="small"
                  type="primary"
                  icon="el-icon-search"
                  @click="onSeainf"
                />
                <c-button
Wuyuqiu committed
32
                  style=""
33 34 35
                  size="small"
                  type="primary"
                  @click="onWrkpDet"
36
                  icon="el-icon-info"
37
                >
38
                  
39 40 41 42 43 44 45 46 47 48 49 50 51 52
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
      </c-row>

      <!-- line3 -->
      <c-row>
        <c-col :span="24">
          <el-form-item
            label="主体名称"
            prop="liaall.limmod.limpts.wrk.pts.nam"
          >
Wuyuqiu committed
53
            <c-input
54
              v-model="model.liaall.limmod.limpts.wrk.pts.nam"
Wuyuqiu committed
55
              maxlength="16"
56
              placeholder=""
Wuyuqiu committed
57 58 59 60 61
              :disabled="true"
              style="width: 100%"
            ></c-input>
          </el-form-item>
        </c-col>
62
      </c-row>
liuxin committed
63

64 65 66 67 68 69 70 71
      <!-- line4 -->
      <c-row>
        <c-col :span="24" style="text-align: right">
          <el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg1">
            <c-fullbox>
              <c-select
                v-model="model.liaall.limmod.limpts.nonrevflg1"
                style="width: 100%"
jianglong committed
72
                placeholder="请选择额度类型"
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 98 99 100 101
                @change="nonrevflg1Change"
              >
                <el-option
                  v-for="item in codes.nonrevflg1"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
              <template slot="footer">
                <c-button
                  style="padding: 0 12px"
                  size="small"
                  type="primary"
                  icon="el-icon-search"
                  @click="onLimptsGet1"
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
      </c-row>

      <!-- line5 -->
      <c-row>
        <c-col :span="24">
          <el-form-item label="合同流水号" prop="liaall.limmod.limpts.pfcod1">
Wuyuqiu committed
102
            <c-input
103 104 105 106
              v-model="model.liaall.limmod.limpts.pfcod1"
              maxlength="14"
              placeholder="请输入合同流水号"
              :disabled="this.model.liaall.limmod.limpts.nonrevflg1 != '2'"
Wuyuqiu committed
107 108 109 110 111
              style="width: 100%"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-row>
112
    </c-col>
1377875331@qq.com committed
113

114 115 116
    <!-- 中间 -->
    <!-- 随event方法改变 -->
    <c-col :span="8" v-show="same" @change="show">
Wuyuqiu committed
117 118 119 120
      <!-- line2 -->
      <c-row>
        <c-col :span="24">
          <el-form-item
121 122
            label="对公账户"
            prop="liaall.limmod.limpts.oth.pts.extkey"
Wuyuqiu committed
123 124 125 126
            style="width: 100%"
          >
            <c-fullbox>
              <c-input
127
                v-model="model.liaall.limmod.limpts.oth.pts.extkey"
Wuyuqiu committed
128
                maxlength="16"
jianglong committed
129
                placeholder="请输入地址编号"
Wuyuqiu committed
130 131 132 133 134 135 136 137 138 139 140 141 142 143
                style="width: 100%"
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 5px 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  icon="el-icon-search"
                  @click="onSeainf"
                />
                <c-button
                  style="margin: 0 0"
                  size="small"
                  type="primary"
144
                  @click="onOthpDet"
145
                  icon="el-icon-info"
Wuyuqiu committed
146
                >
147
                  
Wuyuqiu committed
148 149 150 151 152 153
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
      </c-row>
154

Wuyuqiu committed
155 156 157 158 159
      <!-- line3 -->
      <c-row>
        <c-col :span="24">
          <el-form-item
            label="主体名称"
160
            prop="liaall.limmod.limpts.oth.pts.nam"
Wuyuqiu committed
161 162
          >
            <c-input
163
              v-model="model.liaall.limmod.limpts.oth.pts.nam"
Wuyuqiu committed
164 165 166 167 168 169 170 171 172 173 174 175
              maxlength="16"
              placeholder=""
              :disabled="true"
              style="width: 100%"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-row>

      <!-- line4 -->
      <c-row>
        <c-col :span="24" style="text-align: right">
176
          <el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg2">
Wuyuqiu committed
177 178
            <c-fullbox>
              <c-select
179
                v-model="model.liaall.limmod.limpts.nonrevflg2"
Wuyuqiu committed
180
                style="width: 100%"
jianglong committed
181
                placeholder="请选择额度类型"
182
                @change="nonrevflg2Change"
Wuyuqiu committed
183 184
              >
                <el-option
185
                  v-for="item in codes.nonrevflg2"
Wuyuqiu committed
186 187 188 189 190 191 192 193 194 195 196 197
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
              <template slot="footer">
                <c-button
                  style="padding: 0 12px"
                  size="small"
                  type="primary"
                  icon="el-icon-search"
198
                  @click="onLimptsGet2"
Wuyuqiu committed
199 200 201 202 203 204 205
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
      </c-row>
206

Wuyuqiu committed
207 208 209
      <!-- line5 -->
      <c-row>
        <c-col :span="24">
210
          <el-form-item label="合同流水号" prop="liaall.limmod.limpts.pfcod2">
Wuyuqiu committed
211
            <c-input
212
              v-model="model.liaall.limmod.limpts.pfcod2"
Wuyuqiu committed
213 214
              maxlength="14"
              placeholder="请输入合同流水号"
215
              :disabled="this.model.liaall.limmod.limpts.nonrevflg2 != '2'"
Wuyuqiu committed
216 217 218 219 220
              style="width: 100%"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-row>
221 222 223
    </c-col>

    <!-- 右边-->
224
    <c-col :span="len==true?12:8" @change="spanChange">
Wuyuqiu committed
225 226
      <!-- line1 -->
      <c-row>
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
        <c-col :span="24">
          <el-form-item label="业务编号" prop="liaall.limmod.ownref">
            <c-input
              v-model="model.liaall.limmod.ownref"
              maxlength="16"
              placeholder="请输入国结业务编号"
              :disabled="true"
              style="width: 100%"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="业务余额" prop="liaall.limmod.comamt">
            <c-input
              v-model="model.liaall.limmod.comamt"
              placeholder="请输入业务余额"
              :disabled="true"
              style="width: 100%"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-row>
      <!-- line1 -->
      <c-row>
        <c-col :span="24">
Wuyuqiu committed
253 254 255 256 257 258 259 260
          <el-form-item label="保证金余额" prop="liaall.limmod.ccvamt">
            <c-input
              v-model="model.liaall.limmod.ccvamt"
              placeholder="请输入保证金余额"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>
liuxin committed
261

262
        <c-col :span="24" style="text-align: right">
Wuyuqiu committed
263 264 265 266 267
          <c-button size="small" type="primary" @click="onLimmodTrycal">
            试算
          </c-button>
        </c-col>
      </c-row>
268 269
    </c-col>

jianglong committed
270
    
Wuyuqiu committed
271
    <br /><br /><br /><br /><br />
272
    <c-col :span="24" style="">
Wuyuqiu committed
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
      <c-table :list="model.liaall.limmod.limgrd" :border="true">
        <el-table-column prop="flg" label="可否串用" width="70px">
        </el-table-column>
        <el-table-column prop="shxh" label="序号" width="50px">
        </el-table-column>
        <el-table-column prop="limtyp" label="额度类型" width="70px">
        </el-table-column>
        <el-table-column prop="ruzhjg" label="入账机构" width="70px">
        </el-table-column>
        <el-table-column prop="limref" label="额度编号" width="70px">
        </el-table-column>
        <el-table-column prop="infref" label="额度明细编号" width="100px">
        </el-table-column>
        <el-table-column prop="limcodsave" label="额度品种代码" width="100px">
        </el-table-column>
        <el-table-column prop="limcod" label="品种代码描述" width="100px">
        </el-table-column>
        <el-table-column prop="cur" label="额度明细币种" width="100px">
        </el-table-column>
        <el-table-column prop="ccvpct" label="保证金比例" width="100px">
        </el-table-column>
        <el-table-column prop="cpsxed" label="产品授信额度" width="100px">
        </el-table-column>
        <el-table-column prop="balamt" label="产品可用额度" width="100px">
        </el-table-column>
        <el-table-column prop="useamt" label="产品已用额度" width="100px">
        </el-table-column>
        <el-table-column prop="cpsxck" label="产品授信敞口" width="100px">
        </el-table-column>
        <el-table-column prop="cpkyck" label="产品可用敞口" width="100px">
        </el-table-column>
        <el-table-column prop="cpyyck" label="产品已用敞口" width="100px">
        </el-table-column>
        <el-table-column prop="bxh" label="是否可循环" width="90px">
        </el-table-column>
        <el-table-column prop="bcy" label="是否可串用" width="90px">
        </el-table-column>
        <el-table-column prop="cyremark" label="串用说明" width="100px">
        </el-table-column>
        <el-table-column prop="credat" label="产品额度生效日期" width="120px">
        </el-table-column>
        <el-table-column prop="matdat" label="产品额度到期日" width="120px">
        </el-table-column>
        <el-table-column prop="lcpsta" label="额度产品状态" width="100px">
        </el-table-column>
        <el-table-column prop="fentyp" label="暴露分类" width="100px">
        </el-table-column>
        <el-table-column prop="fentxt" label="暴露分类说明" width="100px">
        </el-table-column>
        <el-table-column prop="limcur" label="额度币种" width="90px">
        </el-table-column>
        <el-table-column prop="bfx" label="是否低风险" width="90px">
        </el-table-column>
      </c-table>
327
    </c-col>
liuxin committed
328

329
    <!-- <c-col :span="24" style="" v-if="false">
liushikai committed
330
            <c-table :list="model.liaall.limmod.lmegrd" :border="true">
1377875331@qq.com committed
331
                <el-table-column label="可否串用" width="auto">
liuxin committed
332
                </el-table-column>
1377875331@qq.com committed
333 334
                <el-table-column label="序号" width="auto"> </el-table-column>
                <el-table-column label="额度类型" width="auto">
liuxin committed
335
                </el-table-column>
1377875331@qq.com committed
336
                <el-table-column label="入账机构" width="auto">
liuxin committed
337
                </el-table-column>
1377875331@qq.com committed
338
                <el-table-column label="额度编号" width="auto">
liuxin committed
339
                </el-table-column>
1377875331@qq.com committed
340
                <el-table-column label="额度明细编号" width="auto">
liuxin committed
341
                </el-table-column>
1377875331@qq.com committed
342
                <el-table-column label="额度品种代码" width="auto">
liuxin committed
343
                </el-table-column>
1377875331@qq.com committed
344
                <el-table-column label="品种代码描述" width="auto">
liuxin committed
345
                </el-table-column>
1377875331@qq.com committed
346
                <el-table-column label="" width="auto"> </el-table-column>
liuxin committed
347
            </c-table>
liushikai committed
348
        </c-col> -->
Wuyuqiu committed
349
  </div>
liuxin committed
350
</template>
351

liuxin committed
352
<script>
1377875331@qq.com committed
353
import Api from "~/service/Api";
wangren committed
354
import commonProcess from "~/mixin/commonProcess";
1377875331@qq.com committed
355
import CodeTable from "~/config/CodeTable";
潘际乾 committed
356
// import Event from "~/model/Ditopn/Event";
1377875331@qq.com committed
357 358

export default {
Wuyuqiu committed
359 360 361 362 363 364
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      tableData: {},
365 366
      same:false,
      len:true
Wuyuqiu committed
367 368 369 370 371 372 373 374 375 376 377 378 379 380
    };
  },
  methods: {
    onSeainf() {},
    async onPreperButtxmsel() {
      let rtnmsg = await this.executeRule("preper_buttxmsel");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
      } else {
        this.$notify.error({
          title: "错误",
          message: "服务请求失败!",
        });
      }
1377875331@qq.com committed
381
    },
Wuyuqiu committed
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436
    async onLimptsGet1() {
      let rtnmsg = await this.executeRule("limpts_get1");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
      } else {
        this.$notify.error({
          title: "错误",
          message: "服务请求失败!",
        });
      }
    },
    async onLimptsGet2() {
      let rtnmsg = await this.executeRule("limpts_get2");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
      } else {
        this.$notify.error({
          title: "错误",
          message: "服务请求失败!",
        });
      }
    },
    nonrevflg1Change() {
      if (this.model.liaall.limmod.limpts.nonrevflg1 == "1") {
        this.model.liaall.limmod.limpts.pfcod1 = "";
      }
    },
    nonrevflg2Change() {
      if (this.model.liaall.limmod.limpts.nonrevflg2 == "1") {
        this.model.liaall.limmod.limpts.pfcod2 = "";
      }
    },
    async onWrkpDet() {
      let rtnmsg = await this.executeRule("liaall.limmod.wrkp.det");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
        console.log(rtnmsg.data);
      } else {
        this.$notify.error({
          title: "错误",
          message: "服务请求失败!",
        });
      }
    },
    async onOthpDet() {
      let rtnmsg = await this.executeRule("liaall.limmod.othp.det");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
        console.log(rtnmsg.data);
      } else {
        this.$notify.error({
          title: "错误",
          message: "服务请求失败!",
        });
      }
1377875331@qq.com committed
437
    },
438

Wuyuqiu committed
439 440 441 442 443 444 445 446
    async onLimmodTrycal() {
      let rtnmsg = await this.executeRule("liaall.limmod.trycal");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
      } else {
        this.$notify.error({ title: "错误", message: "服务请求失败!" });
      }
    },
447 448 449 450 451 452 453
    show(){
      let len1 = this.model.liaall.limmod.tygrd["rows"].length||[];
      let len2 = this.model.liaall.limmod.dggrd["rows"].length||[];
      
      if(len1>0&&len2>0){
        this.same = true;
      }
454 455 456 457 458
    },
    spanChange(){
      if(same==false){
        len = true;
      }
459
    }
Wuyuqiu committed
460 461
  },
  created: function () {},
1377875331@qq.com committed
462
};
liuxin committed
463
</script>
464

liuxin committed
465 466
<style>
</style>