Setp.vue 16.6 KB
Newer Older
1
<template>
2 3
  <div class="eibs-tab">
    <!-- left -->
4
    <c-col :span="11">
5 6 7 8
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="参考号"
9
            prop="dedgrp.rec.ownref"
10 11
            style="width: 100%"
          >
zhoubaojian committed
12
            <c-input
13
              v-model="model.dedgrp.rec.ownref"
14 15 16
              maxlength="16"
              placeholder="请输入参考号"
              style="width: 95%"
zhoubaojian committed
17
              disabled
zhoubaojian committed
18
            ></c-input>
zhoubaojian committed
19 20
          </el-form-item>
        </c-col>
21 22 23 24 25 26 27 28 29
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
nanrui committed
30
            <i class="el-icon-info" style="font-size:15px"></i>
31 32
          </c-button>
          <!-- </el-form-item> -->
zhoubaojian committed
33
        </c-col>
34 35 36 37 38 39
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
40
            :disabled="!this.flag && model.dedgrp.rec.ownref == ''? false:true"
41 42 43 44 45 46 47
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
zhoubaojian committed
48 49
      </c-col>

zhoubaojian committed
50
      <c-col :span="24">
51 52 53 54 55 56
        <c-col :span="20">
          <el-form-item
            label="单据参考号"
            prop="bfdgrp.rec.ownref"
            style="width: 100%"
          >
zhoubaojian committed
57 58 59 60
            <c-input
              v-model="model.bfdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入单据参考号"
61
              style="width: 95%"
zhoubaojian committed
62
              disabled
zhoubaojian committed
63
            ></c-input>
zhoubaojian committed
64 65
          </el-form-item>
        </c-col>
66 67 68
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
zhoubaojian committed
69
          <c-button
70
            style="margin: 0 10px 0 0; padding: 0 12px"
zhoubaojian committed
71 72
            size="small"
            type="primary"
73
            @click="onSeainf"
zhoubaojian committed
74
          >
nanrui committed
75
            <i class="el-icon-info" style="font-size:15px"></i>
zhoubaojian committed
76
          </c-button>
77
          <!-- </el-form-item> -->
zhoubaojian committed
78
        </c-col>
79 80 81 82 83 84
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
85
            :disabled="!this.flag && model.bfdgrp.rec.ownref == ''? false:true"
86 87 88 89 90 91 92
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
zhoubaojian committed
93
      </c-col>
zhoubaojian committed
94 95 96
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据金额" prop="bfdgrp.cbs.max.cur">
97
            <c-input
zhoubaojian committed
98
              v-model="model.bfdgrp.cbs.max.cur"
99 100
              maxlength="3"
              placeholder="请输入单据金额"
zhoubaojian committed
101
              disabled
102
            ></c-input>
zhoubaojian committed
103 104 105
          </el-form-item>
        </c-col>
        <c-col :span="12">
106
          <el-form-item label="" label-width="5px" prop="bfdgrp.cbs.max.amt">
zhoubaojian committed
107 108
            <c-input
              v-model="model.bfdgrp.cbs.max.amt"
wangna committed
109
              placeholder="请输入"
zhoubaojian committed
110 111 112 113
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
114
      </c-col>
zhoubaojian committed
115 116 117
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据余额" prop="bfdgrp.cbs.opn1.cur">
118
            <c-input
zhoubaojian committed
119
              v-model="model.bfdgrp.cbs.opn1.cur"
120 121
              maxlength="3"
              placeholder="请输入单据余额"
zhoubaojian committed
122
              disabled
123
            ></c-input>
zhoubaojian committed
124 125 126
          </el-form-item>
        </c-col>
        <c-col :span="12">
127
          <el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
zhoubaojian committed
128 129
            <c-input
              v-model="model.bfdgrp.cbs.opn1.amt"
wangna committed
130
              placeholder="请输入"
zhoubaojian committed
131 132 133 134
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
135
      </c-col>
zhoubaojian committed
136
      <c-col :span="24">
137
        <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
138
          <c-select
139
            v-model="model.bfdgrp.rec.doctypcod"
140
            style="width: 100%"
141 142
            placeholder="请输入单据类型"
            disabled
143 144 145 146 147 148 149 150 151
          >
            <el-option
              v-for="item in codes.doctypcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
152 153 154 155 156 157 158 159 160 161 162 163
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="远期单据到期日" prop="bfdgrp.rec.matdat">
          <c-date-picker
            type="date"
            v-model="model.bfdgrp.rec.matdat"
            style="width: 100%"
            placeholder="请选择远期单据到期日"
            disabled
          ></c-date-picker>
        </el-form-item>
zhoubaojian committed
164
      </c-col>
zhoubaojian committed
165 166 167 168 169 170 171 172 173 174 175 176
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="到单日期" prop="bfdgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择到单日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
177
        <c-col :span="12">
zhoubaojian committed
178 179 180 181 182 183 184 185 186 187
          <el-form-item label="提示日期" prop="bfdgrp.rec.predat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.predat"
              style="width: 100%"
              placeholder="请选择提示日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
zhoubaojian committed
188
      </c-col>
zhoubaojian committed
189
      <c-col :span="24">
190
        <el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
191
          <c-select
zhoubaojian committed
192
            v-model="model.bfdgrp.rec.docsta"
193
            style="width: 100%"
194
            placeholder="请输入单据状态"
zhoubaojian committed
195
            disabled
196 197 198 199 200 201 202 203 204
          >
            <el-option
              v-for="item in codes.docsta"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
205
        </el-form-item>
zhoubaojian committed
206
      </c-col>
zhoubaojian committed
207
    </c-col>
208 209

    <!-- right -->
210
    <c-col :span="11" :offset="1">
zhoubaojian committed
211
      <c-col :span="24">
212
        <c-col :span="12">
Eivi committed
213
          <el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
214
            <c-input
Eivi committed
215
              v-model="model.dedgrp.cbs.opn1.cur"
216 217 218 219 220 221 222
              maxlength="3"
              placeholder="请输入信用证余额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
Eivi committed
223
          <el-form-item label="" label-width="5px" prop="dedgrp.cbs.opn1.amt">
224
            <c-input
Eivi committed
225
              v-model="model.dedgrp.cbs.opn1.amt"
wangna committed
226
              placeholder="请输入"
227 228 229 230
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
231 232 233
      </c-col>

      <c-col :span="24">
234
        <el-form-item label="摘要" prop="bfdgrp.rec.nam">
zhoubaojian committed
235
          <c-input
236
            v-model="model.bfdgrp.rec.nam"
zhoubaojian committed
237
            maxlength="40"
238
            placeholder="请输入摘要"
zhoubaojian committed
239
            disabled
zhoubaojian committed
240 241 242 243
          ></c-input>
        </el-form-item>
      </c-col>

zhoubaojian committed
244
      <c-col :span="24">
245 246 247
        <c-ptsmsg
          :model="model"
          :argadr="{
Eivi committed
248
            title: '交单人',
249 250 251 252 253
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :disabled="true"
        ></c-ptsmsg>
zhoubaojian committed
254
      </c-col>
Eivi committed
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
      <c-col :span="24">
        <el-form-item label="开证行编号" prop="dedgrp.rec.kzref">
          <c-input
            v-model="model.dedgrp.rec.kzref"
            maxlength="16"
            placeholder="'请输入开证行编号'"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="开证行名称" prop="bfdgrp.iss.pts.nam">
          <c-input
            v-model="model.bfdgrp.iss.pts.nam"
            maxlength="40"
            placeholder="'请输入开证行名称'"
            disabled
          ></c-input>
        </el-form-item>
zhoubaojian committed
275
      </c-col>
zhoubaojian committed
276
      <c-col :span="24">
277 278 279 280 281 282 283 284 285
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'bfdgrp',
            rol: 'apl',
          }"
          :disabled="true"
        ></c-ptsmsg>
zhoubaojian committed
286
      </c-col>
287 288
    </c-col>
    <!-- next part -->
289 290
    <c-col :span="24" style="margin-bottom: 35px">
      <c-istream-table
291
        ref="table"
292 293 294 295
        :list="model.liaall.tenstm.rows || []"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
296
        prop="liaall.tenstm"
297 298 299
      >
      </c-istream-table>
    </c-col>
300
    <!-- left -->
301
    <c-col :span="11">
302
      <c-col :span="24">
zhoubaojian committed
303
        <c-col :span="12">
304
          <el-form-item label="付款金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
305
            <c-input
306
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
307
              maxlength="3"
308
              placeholder="请输入付款金额"
zhoubaojian committed
309 310 311 312
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
313 314
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="setmod.docamt">
zhoubaojian committed
315 316 317
            <c-input
              v-model="model.setmod.docamt"
              placeholder="请输入付款金额"
318 319 320
              @change="eventFunction(
                    'setmod.docamt'
                  )"
zhoubaojian committed
321 322 323
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
324
      </c-col>
325

zhoubaojian committed
326 327
      <c-col :span="24">
        <c-col :span="12">
328
          <el-form-item label="扣费后付款金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
329
            <c-input
330
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
331
              maxlength="3"
332
              placeholder="请输入扣费后付款金额"
zhoubaojian committed
333 334 335 336 337
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
338
          <el-form-item label="" label-width="5px" prop="setmod.setamt">
zhoubaojian committed
339
            <c-input
340 341 342
              v-model="model.setmod.setamt"
              placeholder="请输入扣费后付款金额"
              disabled
343 344 345
              @change="eventFunction(
                    'setmod.setamt'
                  )"
zhoubaojian committed
346 347 348
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
349
      </c-col>
350

zhoubaojian committed
351 352
      <c-col :span="24">
        <c-col :span="12">
353
          <el-form-item label="单据金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
354
            <c-input
355
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
356
              maxlength="3"
357
              placeholder="请输入单据金额"
zhoubaojian committed
358 359 360 361 362
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
363
          <el-form-item label="" label-width="5px" prop="aamset.utlamt">
zhoubaojian committed
364
            <c-input
365 366
              v-model="model.aamset.utlamt"
              placeholder="请输入单据金额"
zhoubaojian committed
367
              disabled
368 369 370
              @change="eventFunction(
                    'aamset.utlamt'
                  )"
zhoubaojian committed
371 372 373
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
374
      </c-col>
375

zhoubaojian committed
376 377
      <c-col :span="24">
        <c-col :span="12">
378
          <el-form-item label="附加金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
379
            <c-input
380
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
381
              maxlength="3"
382
              placeholder="请输入附加金额"
zhoubaojian committed
383 384 385 386 387
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
388
          <el-form-item label="" label-width="5px" prop="aamset.utlamt2">
zhoubaojian committed
389
            <c-input
390 391
              v-model="model.aamset.utlamt2"
              placeholder="请输入附加金额"
zhoubaojian committed
392 393 394 395 396
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
397
    </c-col>
398

399
    <!-- right -->
400
    <c-col :span="11" :offset="1">
401
      <c-col :span="24">
Eivi committed
402
        <el-form-item label="" prop="mtabut.clsflg">
403
          <c-checkbox v-model="clsflg">闭卷</c-checkbox>
Eivi committed
404
        </el-form-item>
405
      </c-col>
Eivi committed
406

407
      <c-col :span="24">
408
        <el-form-item label="" prop="bfdgrp.rec.frepayflg">
409
          <c-checkbox v-model="frepayflg" >无偿放单</c-checkbox>
Eivi committed
410 411 412
        </el-form-item>
      </c-col>

zhoubaojian committed
413 414
      <c-col :span="24">
        <c-col :span="12">
415
          <el-form-item label="扣减金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
416
            <c-input
417
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
418
              maxlength="3"
419
              placeholder="请输入扣减金额"
zhoubaojian committed
420 421 422 423 424
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
425
          <el-form-item label="" label-width="5px" prop="setmod.redamt">
zhoubaojian committed
426
            <c-input
427 428
              v-model="model.setmod.redamt"
              placeholder="请输入扣减金额"
Eivi committed
429
              :disabled="frepayflg"
430
              @change="selectOrCheckboxRule('setmod.redamt')"
zhoubaojian committed
431 432 433
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
434
      </c-col>
435

zhoubaojian committed
436
      <c-col :span="24">
437
        <el-form-item label="福费廷转卖类型" prop="bpdgrp.rec.ffttyp">
Eivi committed
438
          <c-input
439 440
            v-model="model.bpdgrp.rec.ffttyp"
            maxlength="40"
441
            placeholder="请输入福费廷转卖类型"
442 443
            disabled
          ></c-input>
444
        </el-form-item>
zhoubaojian committed
445
      </c-col>
446
    </c-col>
Eivi committed
447

448
    <c-col :span="24" style="height: 24px; margin-top: 20px">
449
      <el-form-item label="融资信息" class="messageLabel"> </el-form-item>
zhoubaojian committed
450
    </c-col>
451 452 453 454 455
    <c-col :span="24" style="height: 0px; margin-top: 5px">
      <el-divider></el-divider>
    </c-col>
    <c-col :span="24">
      <c-table :data="model.bptbck.bptbckg" style="width: 100%">
wangna committed
456
        <el-table-column prop="ownref" label="编号" width="389px">
457
        </el-table-column>
wangna committed
458
        <el-table-column prop="opncur" label="币种" width="389px">
459
        </el-table-column>
wangna committed
460
        <el-table-column prop="opnamt" label="余额" width="389px">
461
        </el-table-column>
wangna committed
462
        <el-table-column prop="bckamt" label="即刻偿还" width="389px">
463 464 465 466
        </el-table-column>
      </c-table>
    </c-col>

zhoubaojian committed
467
  </div>
468 469
</template>
<script>
zhoubaojian committed
470
import Api from "~/service/Api";
wangren committed
471
import commonProcess from "~/mixin/commonProcess";
zhoubaojian committed
472 473
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftset/Event";
474
import Ptsmsg from "~/views/Public/Ptsmsg";
475
import Utils from "~/utils/index";
476 477

export default {
478
  components: { "c-ptsmsg": Ptsmsg },
zhoubaojian committed
479 480
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
481
  mixins: [commonProcess],
zhoubaojian committed
482
  data() {
zhoubaojian committed
483 484 485
    return {
      stmData: {
        columns: [
486 487 488 489 490
          '1 1 "Type" 250',
          '2 2 "Dbt" 250',
          '3 3 "Cdt" 250',
          '4 4 "Cur" 250',
          '5 5 "Amt" 250 2 8 1 4',
491
          // '6 6 "Mat.Dat." 250 4 7 1',
492 493 494 495 496 497 498 499 500 501 502
          {
            index: 6,
            position: 6,
            width: 250,
            render: (item, scope) => {
              return scope.row[item.prop] === "null"
                ? ""
                : scope.row[item.prop];
            },
            label: "Mat.Dat.",
          },
zhoubaojian committed
503 504 505 506 507
        ],
        data: [],
      },
    };
  },
508
  computed: {
Eivi committed
509 510 511 512 513 514 515 516
    clsflg: {
      get() {
        return this.model.mtabut.clsflg === "C";
      },
      set(val) {
        this.model.mtabut.clsflg = val ? "C" : "O";
      },
    },
517
    frepayflg: {
Eivi committed
518
      get() {
519
        return this.model.bfdgrp.rec.frepayflg === "X";
Eivi committed
520 521
      },
      set(val) {
522 523
        this.model.bfdgrp.rec.frepayflg = val ? "X" : "";
        this.model.setmod.redamt = "";
Eivi committed
524 525 526 527 528 529
      },
    },
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
530 531
  mounted() {
    this.$nextTick(() => {});
532
  },
533
  methods: {
Eivi committed
534
    ...Event,
535
    async multipleSelect(selection) {
Wuyuqiu committed
536
      if (selection.length > 1) {
537
        this.$notify({
wangna committed
538 539
          title: "错误",
          message: "您不能选择多个期限",
540 541
          type: "error",
        });
Wuyuqiu committed
542
      } else {
543
        let chkIds;
Wuyuqiu committed
544
        if (selection.length === 0) {
545
          chkIds = []
wangna committed
546
         
Wuyuqiu committed
547
        } else {
548
          chkIds = [selection[0] + 1]
Wuyuqiu committed
549 550
        }
        //
551
        console.log(this.model.liaall.tensetstm);
552
        let params = { chkDst: "liaall.tenstm", chkIds };
553
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
554
        if (rtnmsg.respCode == SUCCESS) {
555 556 557
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
Wuyuqiu committed
558
        }
Eivi committed
559
      }
Wuyuqiu committed
560

561 562
    },
  },
563

zhoubaojian committed
564 565
  created: function () {},
};
566
</script>
567
<style>
zhoubaojian committed
568 569 570 571 572
.messageLabel >>> .el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
573
</style>