Ptyp.vue 5.06 KB
Newer Older
fukai committed
1 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 72 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 102 103 104 105 106 107 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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
<template>
  <div class="eibs">
    <!-- ==================左边================ -->
    <c-col :span="12" style="padding-right: 20px;">
      <c-col :span="24">
        <c-ptap :model="model" :isAdrblk="true" :argadr="{
              title: 'Collecting Bank',
              grp: 'bodgrp',
              rol: 'col',
          }"
          :disabled="model.bodgrp.col.pts.ptainr !== '' || (typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X')"
          :disabledExtkey="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
          :charmod="0"
          :haveAdrLabel="false"
					:isLabel120="false"
          :requiredNam="!model.isSdh"
          ptytyp="B">
        </c-ptap>
      </c-col>

      <!-- @handleChange="changeCol" -->
      
      <!-- <c-col :span="24">
        <el-card class="box-card">
          <c-col :span="24">
            <el-form-item label="Drawer Ref." prop="bodgrp.drr.pts.ref" :rules="(!model.isSdh) ? rules.drrref : [{required: false}]">
              <c-input v-model="model.bodgrp.drr.pts.ref" style="width:100%" placeholder="" maxlength="16">
              </c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <c-ptap :model="model" :isAdrblk="true" :requiredNam="true" :requiredRef="model.isSdh" :argadr="{
                  title: 'Drawer',
                  grp: 'bodgrp',
                  rol: 'drr',
              }"
              :isShowCard="false"
              :haveAdrLabel="false"
              @handleChange="changeDrr"
              chooseLanguage="CN"
              ptytyp="C">
            </c-ptap>
          </c-col>
        </el-card>
      </c-col>

      <c-col :span="24">
        <el-card class="box-card">
          <c-col :span="24">
            <el-form-item label="Drawee Ref." prop="bodgrp.dre.pts.ref" :rules="(!model.isSdh) ? rules.dreref : [{required: false}]">
              <c-input v-model="model.bodgrp.dre.pts.ref" style="width:100%" placeholder="" maxlength="16">
              </c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <c-ptap :model="model" :isAdrblk="true" :argadr="{
                  title: 'Drawee',
                  grp: 'bodgrp',
                  rol: 'dre',
              }" :disabled="false"
              chooseLanguage="CN"
              :haveAdrLabel="false"
              :isShowCard="false"
              :requiredNam="!model.isSdh"
              ptytyp="C,F">
            </c-ptap>
          </c-col>
        </el-card>
      </c-col> -->
    </c-col>

    <!-- ============右边================= -->
    <c-col :span="12" style="padding-left: 20px;">
      <!-- <c-col :span="24">
        <el-card class="box-card">
          <c-col :span="24">
            <el-form-item label="Drawee Ref." prop="bodgrp.dre.pts.ref" :rules="(!model.isSdh) ? rules.dreref : [{required: false}]">
              <c-input v-model="model.bodgrp.dre.pts.ref" style="width:100%" placeholder="" maxlength="16">
              </c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <c-ptap :model="model" :isAdrblk="true" :argadr="{
                  title: 'Drawee',
                  grp: 'bodgrp',
                  rol: 'dre',
              }" :disabled="false"
              chooseLanguage="CN"
              :haveAdrLabel="false"
              :isShowCard="false"
              :requiredNam="!model.isSdh"
              ptytyp="C,F">
            </c-ptap>
          </c-col>
        </el-card>
      </c-col> -->
      <!-- <el-card class="box-card">
        <c-col :span="24">
          <el-form-item label="Collecting Bank Ref." prop="bodgrp.col.pts.ref">
            <c-input v-model="model.bodgrp.col.pts.ref" :required="!model.isSdh" style="width:100%" placeholder="" maxlength="16">
            </c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <c-ptap :model="model" :isAdrblk="true" :argadr="{
                title: 'Collecting Bank',
                grp: 'bodgrp',
                rol: 'col',
            }" :disabled="false"
            chooseLanguage="CN"
            :haveAdrLabel="false"
              :isShowCard="false"
            @handleChange="changeCol"
            :requiredNam="!model.isSdh"
            ptytyp="B">
          </c-ptap>
        </c-col>
      </el-card> -->
    </c-col>
  </div>
</template>
<script>
import event from "../event";
import Utils from "~/utils";

export default {
  components: {},
  inject: ['root'],
  props: ["model", "codes", "rules"],
  mixins: [event],
  data() {
    return {
      newValue: {
        rol: "",
        ptyextkey: "",
        nam: "",
        ref: "",
      },
    }
  },
  methods: {
    addTableValue(index) {
      var newTableValue = Object.assign({}, this.newValue);
      const serial = Utils.generateUUID();
      newTableValue.serialNum = serial;
      this.model.botp.ptsaddp.ptsaddg.splice(index - 1, 0, newTableValue);
    },
    deleteTable(index) {
      this.model.botp.ptsaddp.ptsaddg.splice(index, 1);
    },
  },
  created: function () {
  }
}
</script>
<style>

</style>