Ovwp.vue 16.5 KB
Newer Older
ccx committed
1
<template>
2 3 4 5
  <div class="eibs-tab">
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="24">
wangna committed
6 7 8 9 10
        <el-form-item
          label="Reference"
          prop="bcdgrp.rec.ownref"
          style="width: 100%"
        >
11
          <c-fullbox>
ccx committed
12 13 14 15
            <c-input
              v-model="model.bcdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入Reference"
16
              style="width: 100%"
ccx committed
17 18
              disabled
            ></c-input>
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                :disabled="!this.model.bcdgrp.dre.pts.extkey"
                @click="onBctmodButgetref"
              >
                Get Ref.
              </c-button>
            </template>
          </c-fullbox>
wangna committed
38 39
        </el-form-item>
      </c-col>
40
      <c-col :span="18">
ccx committed
41 42 43 44 45 46
        <el-form-item
          label="Responsible User"
          prop="bctp.usr.extkey"
          style="width: 100%"
        >
          <c-input
47
            style="width: 100%"
ccx committed
48 49 50 51 52 53 54
            v-model="model.bctp.usr.extkey"
            maxlength="16"
            placeholder="请输入Responsible User"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
55
      <c-col :span="6" class="centerLable">
wangna committed
56 57 58 59 60 61
        <c-checkbox
          style="margin-left: 4px; padding: 0 10px"
          v-model="model.bcdgrp.rec.dftgarflg"
          >Draft to be Guaranteed</c-checkbox
        >
      </c-col>
ccx committed
62

wangna committed
63
      <!-- <c-col :span="4" class="centerLable">
ccx committed
64 65 66
          <c-checkbox  v-model="model.bcdgrp.rec.resflg"
            >Reserved Contract</c-checkbox
          >
67
        </c-col> -->
ccx committed
68

69
      <c-col :span="14">
ccx committed
70 71 72
        <el-form-item label="Document Amount" prop="bcdgrp.cbs.max.cur">
          <c-select
            v-model="model.bcdgrp.cbs.max.cur"
73
            style="width: 100%"
ccx committed
74
            placeholder="请选择Currency"
Wuyuqiu committed
75
            :code="codes.curtxt1"
ccx committed
76 77 78 79
          >
          </c-select>
        </el-form-item>
      </c-col>
80
      <c-col :span="10">
ccx committed
81 82 83
        <el-form-item
          style="text-align: left"
          label-width="0"
84
          prop="bcdgrp.cbs.max.amt"
ccx committed
85 86 87
        >
          <c-input-currency
            v-model="model.bcdgrp.cbs.max.amt"
88
            style="text-align: left; width: 100%"
ccx committed
89 90 91 92
            placeholder="请输入Document Amount"
          ></c-input-currency>
        </el-form-item>
      </c-col>
wangna committed
93

94
      <c-col :span="14">
ccx committed
95 96 97 98
        <el-form-item label="Open Amount" prop="bcdgrp.cbs.opn1.cur">
          <c-select
            disabled
            v-model="model.bcdgrp.cbs.opn1.cur"
99
            style="width: 100%"
ccx committed
100 101 102 103 104
            placeholder="请选择Open Currency"
          >
          </c-select>
        </el-form-item>
      </c-col>
105
      <c-col :span="10">
ccx committed
106 107 108
        <el-form-item
          style="text-align: left"
          label-width="0"
109
          prop="bcdgrp.cbs.opn1.amt"
ccx committed
110 111
        >
          <c-input-currency
wangna committed
112
            disabled
ccx committed
113 114 115 116 117 118
            v-model="model.bcdgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入Open Amount"
          ></c-input-currency>
        </el-form-item>
      </c-col>
wangna committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
      <c-col :span="12">
        <el-form-item label="Docs received on" prop="bcdgrp.rec.rcvdat">
          <c-date-picker
            type="date"
            v-model="model.bcdgrp.rec.rcvdat"
            style="width: 100%"
            placeholder="请选择Docs received on"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="Date of Remittance Lt." prop="bcdgrp.rec.predat">
          <c-date-picker
            type="date"
            v-model="model.bcdgrp.rec.predat"
            style="width: 100%"
            placeholder="请选择Date of Remittance Lt."
          ></c-date-picker>
        </el-form-item>
      </c-col>
ccx committed
139

wangna committed
140 141 142
      <c-col :span="24">
        <el-form-item label="Advised on" prop="bcdgrp.rec.advdat">
          <c-date-picker
143
            disabled
wangna committed
144 145 146 147 148 149 150 151
            type="date"
            v-model="model.bcdgrp.rec.advdat"
            style="width: 100%"
            placeholder="请选择Advised on"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="4" class="centerLable">
ccx committed
152 153
          <c-checkbox  v-model="model.bcdgrp.rec.oridre"
            >Send Original Documents to Drawee</c-checkbox >
154
        </c-col>		 -->
wangna committed
155

156
      <c-col :span="24">
ccx committed
157 158 159 160 161
        <el-form-item label="Collection Condition" prop="bcdgrp.rec.doctypcod">
          <c-select
            v-model="model.bcdgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="请选择Collection Condition"
162
            :code="codes.doctypcod"
ccx committed
163 164 165 166 167 168 169 170 171 172 173
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Maturity Date" prop="bcdgrp.rec.matdat">
          <c-date-picker
            type="date"
            v-model="model.bcdgrp.rec.matdat"
            value-format="yyyy-MM-dd"
174
            style="width: 100%"
ccx committed
175
            placeholder="请选择Maturity Date"
wangna committed
176
            :disabled="model.bcdgrp.rec.doctypcod === 'P'"
ccx committed
177 178 179
          ></c-date-picker>
        </el-form-item>
      </c-col>
wangna committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206

      <c-col :span="12">
        <el-form-item label="Tenor Specification" prop="bcdgrp.rec.matpercnt">
          <c-input
            v-model="model.bcdgrp.rec.matpercnt"
            placeholder="请输入Tenor Specification"
            :disabled="model.bcdgrp.rec.doctypcod === 'P'"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="" label-width="10px" prop="bcdgrp.rec.matpertyp">
          <c-select
            v-model="model.bcdgrp.rec.matpertyp"
            style="width: 100%"
            placeholder="请选择Days/Months or Years for Maturity Period"
            :code="codes.matpertyp"
            :disabled="model.bcdgrp.rec.doctypcod === 'P'"
          ></c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="发票类型" prop="bcdgrp.rec.invtyp">
          <c-select
            v-model="model.bcdgrp.rec.invtyp"
            style="width: 100%"
            placeholder="请选择发票类型"
207
            :code="codes.invtyp"
wangna committed
208 209 210 211 212 213
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
ccx committed
214
        <el-form-item label="Tenor Starting from" prop="bcdgrp.rec.matperbeg">
wangna committed
215 216 217 218 219 220 221 222
          <c-select
            v-model="model.bcdgrp.rec.matperbeg"
            style="width: 100%"
            placeholder="请选择Tenor Starting from"
            :code="codes.matperbeg"
            :disabled="model.bcdgrp.rec.doctypcod === 'P'"
          >
          </c-select>
ccx committed
223
        </el-form-item>
wangna committed
224 225
      </c-col>
      <c-col :span="24">
ccx committed
226
        <el-form-item label="Maturity Text" prop="bcdgrp.blk.bcgdet">
wangna committed
227
          <c-input
wangren committed
228
            :disabled="!this.model.bcdgrp.blk.bcgdetflg"
wangna committed
229 230 231 232 233 234
            type="textarea"
            v-model="model.bcdgrp.blk.bcgdet"
            maxlength="45"
            show-word-limit
            placeholder="请输入Maturity Text"
          ></c-input>
ccx committed
235
        </el-form-item>
wangna committed
236
      </c-col>
ccx committed
237

wangna committed
238 239 240 241 242
      <c-col :span="24" class="bctdav_bctp_bctovw_cheak">
        <c-checkbox v-model="model.bcdgrp.blk.bcgdetflg"
          >Maturity Text modified</c-checkbox
        >
      </c-col>
ccx committed
243

wangna committed
244 245
      <c-col :span="24">
        <!--
ccx committed
246 247 248 249 250 251
            <c-istream-table
              :list="model.bctp.docgrdm.docgrd"
              :columns="columns"
            >
            </c-istream-table>
			-->
wangna committed
252
        <!-- <c-edit-table :model="model" v-bind="docgrd">
ccx committed
253
          </c-edit-table>
254
       </c-col> -->
wangna committed
255
        <c-docpre
256 257
          :model="model"
          :argadr="{
wangren committed
258
            path: 'SEMFLG',
259
            grp: 'bctp',
wangna committed
260 261 262 263
            code: 'docpre',
          }"
        ></c-docpre>
      </c-col>
ccx committed
264 265 266 267
    </c-col>

    <!-- ========================右边======================= -->
    <c-col :span="11" :offset="1">
wangna committed
268
      <c-col :span="24">
269 270 271 272 273 274 275 276 277 278 279
        <el-form-item label="Name" prop="bcdgrp.rec.nam">
          <c-input
            align="middle"
            disabled
            v-model="model.bcdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Name"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
280
        <el-form-item label="Drawee Ref." prop="bcdgrp.dre.pts.ref">
281 282 283 284 285 286 287 288 289
          <c-input
            v-model="model.bcdgrp.dre.pts.ref"
            maxlength="16"
            style="width: 100%"
            placeholder="请输入Application Ref"
          ></c-input>
        </el-form-item>
      </c-col>

ccx committed
290
      <c-col :span="24">
291
        <el-form-item label="Extkey" prop="bcdgrp.dre.pts.extkey">
wangna committed
292 293 294 295 296 297 298 299 300
          <c-fullbox>
            <c-input
              v-model="model.bcdgrp.dre.pts.extkey"
              maxlength="150"
              placeholder="请输入External Key of Address"
              @keyup.enter.native="
                showGridPromptDialog('bcdgrp.dre.pts.extkey')
              "
            ></c-input>
301
            <template slot="footer">
wangna committed
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                disabled
              >
                详情
              </c-button>
            </template>
          </c-fullbox>
319
        </el-form-item>
wangna committed
320
      </c-col>
321

wangna committed
322
      <c-col :span="24">
323 324 325 326 327
        <el-form-item label="Address Block" prop="bcdgrp.dre.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            v-model="model.bcdgrp.dre.pts.adrblk"
328
            maxlength="150"
329 330 331 332 333 334 335
            disabled
            show-word-limit
            placeholder="请输入Address Block"
          ></c-input>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="24">
ccx committed
336 337 338 339 340 341 342 343 344
        <c-ptap
          :model="model"
          :argadr="{
            title: 'Drawee',
            grp: 'bcdgrp',
            rol: 'dre',
          }"
          :disabled="true"
          :isAdrblk="false"
345
          
ccx committed
346 347
        >
        </c-ptap>
348
      </c-col> -->
wangna committed
349

350
      <!-- <c-col :span="24">
ccx committed
351 352 353 354 355 356 357 358 359
        <c-ptap
          :model="model"
          :argadr="{
            title: 'Remitting Bank',
            grp: 'bcdgrp',
            rol: 'rmi',
          }"
          :disabled="true"
          :isAdrblk="false"
360
          
ccx committed
361 362
        >
        </c-ptap>
363 364
      </c-col> -->
      <c-col :span="24">
wangna committed
365
        <el-form-item label="Remitting Bank Ref." prop="bcdgrp.rmi.pts.ref">
366 367 368 369 370 371 372 373 374 375 376 377
          <c-input
            v-model="model.bcdgrp.rmi.pts.ref"
            maxlength="16"
            style="width: 100%"
            placeholder=""
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Extkey" prop="bcdgrp.rmi.pts.extkey">
          <c-fullbox>
wangna committed
378 379 380 381 382 383 384 385 386
            <c-input
              v-model="model.bcdgrp.rmi.pts.extkey"
              maxlength="120"
              placeholder="请输入External Key of Address"
              @keyup.enter.native="
                showGridPromptDialog('bcdgrp.rmi.pts.extkey')
              "
            >
            </c-input>
387
            <template slot="footer">
wangna committed
388 389 390 391 392 393 394 395 396 397 398 399
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button style="margin: 0 0" size="small" type="primary">
                详情
              </c-button>
            </template>
          </c-fullbox>
400
        </el-form-item>
wangna committed
401
      </c-col>
402

wangna committed
403
      <c-col :span="24">
404 405 406 407 408
        <el-form-item label="Address Block" prop="bcdgrp.rmi.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            v-model="model.bcdgrp.rmi.pts.adrblk"
409
            maxlength="150"
410 411 412 413
            show-word-limit
            placeholder="请输入Address Block"
          ></c-input>
        </el-form-item>
ccx committed
414
      </c-col>
wangna committed
415

ccx committed
416
      <c-col :span="24">
wangna committed
417
        <el-form-item label="Drawer Ref." prop="bcdgrp.drr.pts.ref">
418 419 420 421 422 423 424 425 426 427 428
          <c-input
            v-model="model.bcdgrp.drr.pts.ref"
            maxlength="16"
            style="width: 100%"
            placeholder=""
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Extkey" prop="bcdgrp.drr.pts.extkey">
wangna committed
429 430 431 432 433 434 435 436 437
          <c-fullbox>
            <c-input
              v-model="model.bcdgrp.drr.pts.extkey"
              maxlength="50"
              placeholder="请输入External Key of Address"
              @keyup.enter.native="
                showGridPromptDialog('bcdgrp.drr.pts.extkey')
              "
            ></c-input>
438
            <template slot="footer">
wangna committed
439 440 441 442 443 444 445 446 447 448 449 450
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button style="margin: 0 0" size="small" type="primary">
                详情
              </c-button>
            </template>
          </c-fullbox>
451
        </el-form-item>
wangna committed
452
      </c-col>
453

wangna committed
454
      <c-col :span="24">
455 456 457 458 459
        <el-form-item label="Address Block" prop="bcdgrp.drr.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            v-model="model.bcdgrp.drr.pts.adrblk"
460
            maxlength="150"
461 462 463 464 465
            show-word-limit
            placeholder="请输入Address Block"
          ></c-input>
        </el-form-item>
      </c-col>
wangna committed
466

467
      <c-col :span="24">
ccx committed
468
        <el-form-item label="Country or region Code" prop="bcdgrp.rec.stacty">
wangna committed
469 470 471 472 473
          <c-select
            v-model="model.bcdgrp.rec.stacty"
            style="width: 100%"
            placeholder="请选择Country Code Risk Country"
            :code="codes.stacty"
474
          >
wangna committed
475
          </c-select>
ccx committed
476 477
        </el-form-item>
      </c-col>
wangna committed
478 479

      <c-col :span="12">
ccx committed
480
        <el-form-item label="申报类型" prop="outlen.szflg">
wangna committed
481 482 483 484
          <c-select
            v-model="model.outlen.szflg"
            style="width: 100%"
            placeholder="请选择申报类型"
485
            :code="codes.szflg"
wangna committed
486 487
          >
          </c-select>
ccx committed
488
        </el-form-item>
wangna committed
489 490 491
      </c-col>

      <c-col :span="12">
492
        <el-form-item label="款项去向" prop="bctp.acttyp">
wangna committed
493
          <c-select
wangren committed
494
            :disabled="this.flag1"
wangna committed
495 496 497
            v-model="model.bctp.acttyp"
            style="width: 100%"
            placeholder="请选择ACTTYP"
498
            :code="codes.acttyp"
wangna committed
499 500
          >
          </c-select>
ccx committed
501
        </el-form-item>
wangna committed
502
      </c-col>
ccx committed
503
    </c-col>
504
  </div>
ccx committed
505 506
</template>
<script>
wangna committed
507
import Api from "~/service/Api";
wangren committed
508
import commonProcess from "~/mixin/commonProcess";
wangna committed
509 510
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bctdav/Event";
ccx committed
511
import Ptap from "~/views/Public/Ptap";
512
import Docpre from "~/views/Public/Docpre";
ccx committed
513 514

export default {
wangna committed
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
  components: {
    "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  watch: {
    "model.outlen.szflg": {
      immediate: true,
      handler(val, oldVal) {
        if (this.model.outlen.szflg == "1") {
          this.flag1 = false;
        } else {
          this.flag1 = true;
wangren committed
530
        }
wangna committed
531
      },
wangren committed
532
    },
wangna committed
533
  },
wangren committed
534

wangna committed
535 536 537 538
  data() {
    return {
      flag1: true,
      docgrd: {
ccx committed
539 540 541 542
        columns: [
          {
            title: "lst1",
            width: "80px",
wangna committed
543
            dataIndex: "cmail1",
ccx committed
544 545 546 547 548
            show: "input",
          },
          {
            title: "2nd",
            width: "80px",
wangna committed
549
            dataIndex: "cmail2",
ccx committed
550 551 552 553 554
            show: "input",
          },
          {
            title: "Document",
            width: "320px",
wangna committed
555
            dataIndex: "docnam",
ccx committed
556
            show: "select",
ccx committed
557 558 559 560
          },
        ],
        urls: "bctp.docgrdm.docgrd",
      },
wangna committed
561 562 563 564 565
    };
  },
  methods: { ...Event },
  created: function () {},
};
ccx committed
566 567 568 569 570 571 572 573 574 575 576 577 578 579 580
</script>
<style>
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
  padding-bottom: 2px;
}
.marginLable {
  padding-left: 150px;
}
.bctdav_bctp_bctovw_cheak {
  margin: 0px 0 10px 150px;
}
</style>