Ptyp.vue 2.71 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
<template>
  <div class="eibs">
    <!-- ==================左边================ -->
    <c-col :span="12" style="padding-right: 20px;">
      <c-col :span="24">
        <c-ptap :disabled="true" :disabledExtkey="true" :model="model" :disabledRef="true"
          :isAdrblk="true" :haveAdrLabel="false" 
          :requiredExtkey="true" :argadr="{ title: $t('Drawer'), grp: 'bodgrp', rol: 'drr'}" 
          :charmod="0"
          :ptytyp="'C'" :isLabel120="false"></c-ptap>
      </c-col>

      <c-col :span="24">
        <c-ptap :disabled="true" :disabledExtkey="true" :model="model" :disabledRef="true"
        :isAdrblk="true" :haveAdrLabel="false" :requiredExtkey="true" 
        :argadr="{ title: $t('Drawee'), grp: 'bodgrp', rol: 'dre'}" 
        :charmod="0"
        :ptytyp="'C'" :isLabel120="false"></c-ptap>
      </c-col>
    </c-col>
    <!-- ============右边================= -->
    <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="24">
        <c-ptap :disabled="true" :disabledExtkey="true" :model="model" :disabledRef="true"
        :isAdrblk="true" :haveAdrLabel="false" :requiredExtkey="true" 
        :argadr="{ title: $t('Collecting Bank'), grp: 'bodgrp', rol: 'col'}" 
        :charmod="0"
        :ptytyp="'B'" :isLabel120="false"></c-ptap>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Utils from "~/utils";
import event from "../event";

export default {
  components: {},
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess, event],
  data() {
    return {
      newValue: {
        rol: "",
        ptyextkey: "",
        nam: "",
        ref: ""
      },
      ptyp2: [
        { label: "TPO 第三当事人", value: "TPO" },
        { label: "TP1 第一第三当事人 .", value: "TP1" },
        { label: "TP2 第二第三当事人", value: "TP2" },
        { label: "TP3 第三第三当事人", value: "TP3" },
        { label: "TP4 第四第三当事人", value: "TP4" },
        { label: "TP5 第五第三当事人", value: "TP5" },
        { label: "TP6 第六第三当事人", value: "TP6" },
        { label: "TP7 第七第三当事人", value: "TP7" },
        { label: "TP8 第八第三当事人", value: "TP8" }
      ]
    };
  },
  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>