Setp.vue 16.9 KB
Newer Older
Eivi committed
1 2 3
<template>
  <div class="eibs-tab">
    <!-- left -->
4
    <c-col :span="11">
Eivi committed
5 6 7
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
8
            label="出口信用证编号"
Eivi committed
9 10 11 12 13 14
            prop="ledgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
15
              placeholder="请输入出口信用证编号"
Eivi committed
16 17 18 19 20 21 22 23 24 25 26 27 28
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <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"
          >
nanrui committed
29
            <i class="el-icon-info" style="font-size:15px"></i>
Eivi committed
30 31 32 33 34 35 36 37 38
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <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"
39
            :disabled="!this.flag && model.ledgrp.rec.ownref == ''? false:true"
Eivi committed
40
          >
wangna committed
41
            获取
Eivi committed
42 43 44 45 46 47 48 49 50
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
      </c-col>

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

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

      <c-col :span="24">
236
        <el-form-item label="单据简略信息" prop="bedgrp.rec.nam">
Eivi committed
237 238 239
          <c-input
            v-model="model.bedgrp.rec.nam"
            maxlength="40"
240
            placeholder="请输入简略信息"
Eivi committed
241 242 243 244 245 246 247 248 249
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
250
            title: '交单人',
Eivi committed
251 252 253 254
            grp: 'bedgrp',
            rol: 'prb',
          }"
          :disabled="true"
255 256
          :enRef="false"
          :enNam="false"
Eivi committed
257 258 259 260 261 262
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
263
            title: '开证行',
Eivi committed
264 265 266 267
            grp: 'bedgrp',
            rol: 'iss',
          }"
          :disabled="true"
268 269
          :enRef="false"
          :enNam="false"
Eivi committed
270 271 272 273 274 275
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
276
            title: '申请人',
Eivi committed
277 278 279 280
            grp: 'bedgrp',
            rol: 'apl',
          }"
          :disabled="true"
281 282
          :enRef="false"
          :enNam="false"
Eivi committed
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
        ></c-ptsmsg>
      </c-col>
    </c-col>
    <c-col :span="24">
      <el-form-item style="margin-left: 0px">
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- next part -->
    <c-col :span="24" style="margin-bottom: 35px">
      <c-istream-table
        ref="table"
        :list="model.liaall.tenstm.rows || []"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
300
        prop="liaall.tenstm"
Eivi committed
301 302 303 304
      >
      </c-istream-table>
    </c-col>
    <!-- left -->
305
    <c-col :span="11">
Eivi committed
306 307
      <c-col :span="24">
        <c-col :span="12">
308
          <el-form-item label="结算金额" prop="setmod.doccur">
Eivi committed
309 310 311
            <c-input
              v-model="model.setmod.doccur"
              maxlength="3"
312
              placeholder="请输入结算金额"
Eivi committed
313 314 315 316 317 318 319 320
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="setmod.docamt">
            <c-input
              v-model="model.setmod.docamt"
321
              placeholder="请输入结算金额"
Eivi committed
322 323 324 325 326 327 328
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
329
          <el-form-item label="折扣结算金额" prop="setmod.doccur">
Eivi committed
330 331 332
            <c-input
              v-model="model.setmod.doccur"
              maxlength="3"
333
              placeholder="请输入币种"
Eivi committed
334 335 336 337 338 339 340 341
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="setmod.setamt">
            <c-input
              v-model="model.setmod.setamt"
342
              placeholder="请输入金额"
343
              disabled
Eivi committed
344 345 346 347 348 349 350
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
351
          <el-form-item label="单据部分金额" prop="bedgrp.cbs.opn2.cur">
Eivi committed
352 353 354
            <c-input
              v-model="model.bedgrp.cbs.opn2.cur"
              maxlength="3"
355
              placeholder="请输入单据部分金额"
Eivi committed
356 357 358 359 360 361 362 363
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="aamset.utlamt">
            <c-input
              v-model="model.aamset.utlamt"
364
              placeholder="请输入单据部分金额"
Eivi committed
365 366 367 368 369 370 371 372
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

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

      <c-col :span="24">
394
        <el-form-item label="福费廷转卖类型" prop="bpdgrp.rec.ffttyp">
Eivi committed
395 396 397
          <c-input
            v-model="model.bpdgrp.rec.ffttyp"
            maxlength="40"
398
            placeholder="请输入福费廷转卖类型"
Eivi committed
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413
            disabled
          >
            <el-option
              v-for="item in codes.ffttyp1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
414
    <c-col :span="11" :offset="1">
Eivi committed
415 416
      <c-col :span="24">
        <el-form-item label="" prop="mtabut.clsflg">
wangna committed
417
          <c-checkbox v-model="clsflg" disabled>闭卷</c-checkbox>
Eivi committed
418 419 420 421 422
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="bedgrp.rec.frepayflg">
wangna committed
423
          <c-checkbox v-model="frepayflg">免费付款</c-checkbox>
Eivi committed
424 425 426 427 428
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
429
          <el-form-item label="折扣金额" prop="setmod.doccur">
Eivi committed
430 431 432
            <c-input
              v-model="model.setmod.doccur"
              maxlength="3"
433
              placeholder="请输入折扣金额"
Eivi committed
434 435 436 437 438 439 440 441
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="setmod.redamt">
            <c-input
              v-model="model.setmod.redamt"
442
              placeholder="请输入折扣金额"
Eivi committed
443 444 445 446 447 448 449
              :disabled="frepayflg"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
450
        <el-form-item label="叙述内容(77A)" prop="trnmod.trndoc.nar754">
Eivi committed
451 452 453 454 455
          <c-input
            type="textarea"
            v-model="model.trnmod.trndoc.nar754"
            maxlength="35"
            show-word-limit
456
            placeholder="请输入叙述内容(77A)"
Eivi committed
457 458 459 460 461 462 463
          ></c-input>
        </el-form-item>
      </c-col>

    </c-col>

    <c-col :span="24" style="height: 24px; margin-top: 20px">
wangna committed
464
      <el-form-item label="要偿还的账单" class="messageLabel">
Eivi committed
465 466 467 468 469 470 471
      </el-form-item>
    </c-col>
    <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%">
472
        <el-table-column prop="ownref" label="编号" width="389px">
Eivi committed
473
        </el-table-column>
474
        <el-table-column prop="opncur" label="币种" width="389px">
Eivi committed
475
        </el-table-column>
476
        <el-table-column prop="opnamt" label="余额" width="389px">
Eivi committed
477
        </el-table-column>
478
        <el-table-column prop="bckamt" label="现在偿还" width="389px">
Eivi committed
479 480 481 482
        </el-table-column>
      </c-table>
    </c-col>

483
   
Eivi committed
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betset/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";

export default {
  components: { "c-ptsmsg": Ptsmsg },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      stmData: {
        columns: [
wangna committed
502
          '1 1 "类型" 250',
Eivi committed
503 504
          '2 2 "Dbt" 250',
          '3 3 "Cdt" 250',
wangna committed
505 506
          '4 4 "币种" 250',
          '5 5 "金额" 250 2 8 1 4',
Eivi committed
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534
          '6 6 "Mat.Dat." 250 4 7 1',
        ],
        data: [],
      },
    };
  },
  computed: {
    clsflg: {
      get() {
        return this.model.mtabut.clsflg === "O";
      },
      set(val) {
        this.model.mtabut.clsflg = val ? "C" : "O";
      },
    },
    frepayflg: {
      get() {
        return this.model.bedgrp.rec.frepayflg === "X";
      },
      set(val) {
        this.model.bedgrp.rec.frepayflg = val ? "X" : "";
      },
    },
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
  mounted() {
535
    this.$nextTick(() => {}); 
Eivi committed
536 537 538 539
  },
  methods: {
    ...Event,
    async multipleSelect(selection) {
540 541 542
      if (selection.length > 1) {
        this.$notify({
          title: "error",
wangna committed
543
          message: "您不能选择多个期限",
544 545 546
          type: "error",
        });
      } else {
547
        let chkIds;
548
        if (selection.length === 0) {
549 550
          chkIds = []
          // this.model.liaall.tensetstm.rows = []
551 552
          // this.model.liaall.tenstm.rows = []
        } else {
553
          chkIds = [selection[0] + 1]
554 555 556
        }
        //
        console.log(this.model.liaall.tensetstm);
557
        let params = { chkDst: "liaall.tenstm", chkIds };
Eivi committed
558 559 560 561 562 563 564
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
        if (rtnmsg.respCode == SUCCESS) {
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
        }
      }
565 566 567 568 569 570 571 572 573 574 575
      // console.log(selection);
      // if (selection) {
      //   let selIds = selection.map((x) => x + 1);
      //   let params = { selDst: "liaall.tenstm", selIds };
      //   const rtnmsg = await this.executeRule("liaall.tenstm", params);
      //   if (rtnmsg.respCode == SUCCESS) {
      //     this.updateModel(rtnmsg.data);
      //   } else {
      //     this.$notify.error({ title: "错误", message: "服务请求失败!" });
      //   }
      // }
Eivi committed
576 577 578 579 580 581 582 583 584 585 586 587
    },
  },
  created: function () {},
};
</script>
<style>
.messageLabel >>> .el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
</style>