Ovwp.vue 14.2 KB
Newer Older
xsh committed
1
<template>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
  <div class="eibs-tab">
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item label="Reference" prop="bcdgrp.rec.ownref">
          <c-fullbox>
            <c-input
              v-model="model.bcdgrp.rec.ownref"
              maxlength="16"
              placeholder="Reference"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                size="small"
                style="margin-left: 10px; padding: 0 10px"
                type="primary"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="18">
        <el-form-item label="Responsible User" prop="bctp.usr.extkey">
          <c-fullbox>
            <c-input
              v-model="model.bctp.usr.extkey"
              style="width: 100%"
              maxlength="8"
              disabled
              placeholder="请输入Responsible User"
            ></c-input>
            <template slot="footer">
              <c-button
                size="small"
                style="margin-left: 10px; padding: 0 10px"
                type="primary"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="6">
       <c-checkbox
       v-model="model.bcdgrp.rec.dftgarflg"
       style="margin-left:5px"
       >Draft to be Guaranteed</c-checkbox> 
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Document Amount" prop="bcdgrp.cbs.max.cur">
            <c-select
              v-model="model.bcdgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="CUR"
              disabled
            >
              <el-option
                v-for="item in codes.cur"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
xsh committed
72 73
        </c-col>

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 102 103 104 105 106 107
        <c-col :span="12">
          <el-form-item
            label=""
            style="text-align: left"
            label-width="20px"
            prop="bcdgrp.cbs.max.amt"
          >
            <c-input-currency
            disabled
              v-model="model.bcdgrp.cbs.max.amt"
              placeholder="请输入Document Amount"
            ></c-input-currency>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Open Amount" prop="bcdgrp.cbs.opn1.cur">
            <c-select
              disabled
              v-model="model.bcdgrp.cbs.opn1.cur"
              style="width: 100%"
              placeholder="CUR"
            >
              <el-option
                v-for="item in codes.cur"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
xsh committed
108

109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
        <c-col :span="12">
          <el-form-item
            label=""
            style="text-align: left"
            label-width="20px"
            prop="bcdgrp.cbs.opn1.amt"
          >
            <c-input-currency
              disabled
              v-model="model.bcdgrp.cbs.opn1.amt"
              placeholder="请输入Open Amount"
            ></c-input-currency>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Docs received on" prop="bcdgrp.rec.rcvdat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.bcdgrp.rec.rcvdat"
            style="width: 100%"
            placeholder="Docs received on"
          ></c-date-picker>
        </el-form-item>
      </c-col>
xsh committed
135

136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
      <c-col :span="24">
        <el-form-item label="Date of Remittance Lt." prop="bcdgrp.rec.predat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.bcdgrp.rec.predat"
            style="width: 100%"
            placeholder="Date of Remittance Lt."
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Advised on" prop="bcdgrp.rec.advdat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.bcdgrp.rec.advdat"
            style="width: 100%"
            placeholder="Advised on"
          ></c-date-picker>
        </el-form-item>
      </c-col>
xsh committed
158

159 160 161 162
      <c-col :span="24">
        <el-form-item label="Collection Condition" prop="bcdgrp.rec.doctypcod">
          <c-select
          disabled
wangren committed
163
          :code="codes.doctypcod"
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
            v-model="model.bcdgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="请选择Collection Condition"
          >
            <el-option
              v-for="item in codes.doctyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Maturity Date" prop="bcdgrp.rec.matdat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.bcdgrp.rec.matdat"
            style="width: 100%"
            placeholder="Maturity Date"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="发票类型" prop="bcdgrp.rec.invtyp">
          <c-select
wangren committed
192
            :code="codes.invtyp"
193 194 195 196 197 198 199 200 201 202 203 204 205 206
            v-model="model.bcdgrp.rec.invtyp"
            style="width: 100%"
            placeholder="请选择发票类型"
          >
            <el-option
              v-for="item in codes.invtyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
xsh committed
207

208 209 210 211 212 213 214 215 216 217
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Tenor Specification" prop="bcdgrp.rec.matpercnt">
            <c-input
            disabled
              v-model="model.bcdgrp.rec.matpercnt"
              placeholder="Tenor Specification"
            ></c-input>
          </el-form-item>
        </c-col>
xsh committed
218

219 220 221 222 223 224 225 226 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 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
        <c-col :span="12">
          <el-form-item
            label=""
            
            label-width="20px"
            prop="bcdgrp.rec.matpertyp"
          >
            <c-select
            disabled
              v-model="model.bcdgrp.rec.matpertyp"
              style="width: 100%"
              placeholder="Days/Months or Years for Maturity Period"
            >
              <el-option
                v-for="item in codes.matper"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Tenor Starting from" prop="bcdgrp.rec.matperbeg">
          <c-select
          disabled
            v-model="model.bcdgrp.rec.matperbeg"
            style="width: 100%"
            placeholder="请选择Tenor Starting from"
          >
            <el-option
              v-for="item in codes.matbeg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Maturity Text" prop="bcdgrp.blk.bcgdet">
          <c-input
            type="textarea"
            disabled
            :rows="4"
            v-model="model.bcdgrp.blk.bcgdet"
            maxlength="45"
            show-word-limit
            placeholder="请输入Maturity Text"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
         <c-checkbox 
         disabled
         style="margin: 0px 0 10px 150px;"
         v-model="model.bcdgrp.blk.bcgdetflg"
            >Maturit Text modified</c-checkbox
          >
        <!-- <c-col :span="11">
          <c-checkbox v-model="model.bcdgrp.rec.resflg"
            >Reserved Contract</c-checkbox
          >
xsh committed
285
        </c-col>
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
        <c-col :span="11">
          <c-checkbox v-model="model.bcdgrp.rec.dftgarflg"
            >Draft to be Guaranteed</c-checkbox
          >
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-checkbox v-model="model.bcdgrp.rec.oridre"
          >Send Original Documents to Drawee</c-checkbox
        >
      </c-col>
      <c-col :span="24">
        <c-checkbox v-model="model.bcdgrp.blk.bcgdetflg"
          >BC Tenor Details modified</c-checkbox
        > -->
      </c-col>
302 303 304 305 306 307 308
      <c-docpre 
      :model="model" 
      :argadr="{
        path:'bcdgrp.blk.docpre',
        grp: 'bctp',
        code:'docpre'
      }"></c-docpre>
309 310 311 312 313 314 315 316 317 318 319 320 321
    </c-col>
    <!-- ====================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Name" prop="bcdgrp.rec.nam">
          <c-input
            v-model="model.bcdgrp.rec.nam"
            maxlength="40"
            placeholder="Name"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
322
      <!-- <c-ptap
323 324 325
        :model="model"
        :argadr="{ title: 'Drawee ', grp: 'bcdgrp', rol: 'dre' }"
        :disabled="true"
xsh committed
326
        
327
      >
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
      </c-ptap> -->

      <c-col :span="24">
        <el-form-item
          label="Drawee Ref."
          prop="bcdgrp.dre.pts.ref"
        >
          <c-input
            v-model="model.bcdgrp.dre.pts.ref"
            maxlength="16"
            style="width: 100%"
            placeholder="请输入Application Ref"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Extkey" prop="bcdgrp.dre.pts.extkey">
            <c-fullbox>
          <c-input
            disabled
            v-model="model.bcdgrp.dre.pts.extkey"
            maxlength="50"
            placeholder="请输入External Key of Address"
            @keyup.enter.native="showGridPromptDialog('bcdgrp.dre.pts.extkey')"
          ></c-input>
            <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
                  @click="onAplpDet"
                >
                  详情
                </c-button>
              </template>
            </c-fullbox>
        </el-form-item>

    </c-col>

      <c-col :span="24">
        <el-form-item label="Address Block" prop="bcdgrp.dre.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            v-model="model.bcdgrp.dre.pts.adrblk"
            maxlength="50"
            disabled
            show-word-limit
            placeholder="请输入Address Block"
          ></c-input>
        </el-form-item>
      </c-col>
xsh committed
391

392 393 394 395 396 397 398
      <c-ptap
        :model="model"
        :argadr="{ title: 'Remitting Bank ', grp: 'bcdgrp', rol: 'rmi' }"
        :disabled="true"
        
      >
      </c-ptap>
xsh committed
399

400 401 402 403 404 405 406
      <c-ptap
        :model="model"
        :argadr="{ title: 'Drawer ', grp: 'bcdgrp', rol: 'drr' }"
        :disabled="true"
        
      >
      </c-ptap>
xsh committed
407

408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
      <c-col :span="24">
        <el-form-item label="Country or region Code" prop="bcdgrp.rec.stacty">
          <c-select
            v-model="model.bcdgrp.rec.stacty"
            style="width: 100%"
            placeholder="请选择Country or region Code"
          >
            <el-option
              v-for="item in codes.ctytxt"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
xsh committed
425

426
      <!--<c-col :span="24">
xsh committed
427 428 429
                <span v-text="model.bctp.sblx" data-path=".bctp.sblx"> </span>
            </c-col>-->

430
      <!--<c-col :span="24">
xsh committed
431 432 433
                <span v-text="model.bctp.acttyplab" data-path=".bctp.acttyplab"> </span>
            </c-col>-->

434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452
      <!-- <c-col :span="24">
        <el-form-item label="款项去向" prop="bctp.acttyp">
          <c-select
            v-model="model.bctp.acttyp"
            style="width: 100%"
            placeholder="款项去向"
          >
            <el-option
              v-for="item in acttyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col> -->
    </c-col>
  </div>
xsh committed
453 454
</template>
<script>
455 456 457 458 459
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bctame/Event";
import Ptap from "~/views/Public/Ptap";
460
import Docpre from "~/views/Public/Docpre";
xsh committed
461

462
export default {
463 464 465 466
  components: { 
    "c-ptap": Ptap,
    "c-docpre": Docpre,
    },
467 468 469 470 471 472
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      acttyp: [
xsh committed
473 474
        { value: "(JW)", label: "境外" },
        { value: "(JN)", label: "境内非居民" },
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505
      ],
      ptsaddg: {
        columns: [
          {
            title: "1st",
            width: "40px",
            dataIndex: "cmail1",
            show: "input",
          },
          {
            title: "2nd",
            width: "40px",
            dataIndex: "cmail2",
            show: "input",
          },
          {
            title: "Documnet",
            width: "120px",
            dataIndex: "document",
            show: "select",
          },
        ],
        urls: "bctp.docgrdm.docgrd",
      },
    };
  },
  methods: {
    ...Event,
  },
  created: function () {},
};
xsh committed
506
</script>
507
<style></style>