Cnyp1.vue 3.33 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
<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="12" style="padding-right: 20px;">
        <c-col :span="24">
					<el-form-item :label="$t('nitopn.是否报送跨境人民币2122表')" prop="rmbbop.rmb2122.rmbflg" label-width="200px">
						<c-select @change="query2122" :disabled="rmbControl" v-model="model.rmbbop.rmb2122.rmbflg" style="width: 100%" placeholder="请选择是否报送跨境人民币2122表" dbCode="vouflg">
						</c-select>
					</el-form-item>
				</c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
    import event from '../event'

    export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {};
  },
  computed: {
    rmbControl() {
      if(this.model.nidgrp.rec.fingua == "Y") {
        //修改新业务逻辑
        if(this.model.swiadd.ameamt > 0) {
          if(this.model.rmbbop.rmb2122.recgrp.ads.levyno != null && this.model.rmbbop.rmb2122.recgrp.ads.levyno != '') {
            return false;
          } else {
            return true;
          }
        } else if(this.model.swiadd.ameamt == 0) {
          if(this.model.rmbbop.rmb2122.recgrp.ads.levyno != null && this.model.rmbbop.rmb2122.recgrp.ads.levyno != '') {
            if(this.model.oldnidgrp.rec.hndtyp == 'OC') {
              if(this.model.rmbbop.rmb2122.benchange == '1') {
                if(this.model.swiadd.newliadat != "" && (this.model.oldnidgrp.rec.liadat == "" || this.model.oldnidgrp.rec.liadat == null)) {
                  return true;
                } else if(this.model.oldnidgrp.rec.liadat != "" && this.model.swiadd.newliadat != "" && this.model.swiadd.newliadat < this.model.oldnidgrp.rec.liadat){
                  return true;
                } else {
                  return false;
                }
              } else {
                if(this.model.oldnidgrp.rec.liadat != "" && this.model.swiadd.newliaflg == "X") {
                  return false;
                } else if(this.model.oldnidgrp.rec.liadat != "" && this.model.swiadd.newliadat != "" && this.model.swiadd.newliadat > this.model.oldnidgrp.rec.liadat){
                  return false;
                } else {
                  return true;
                }
              }
            } else {
              if(this.model.rmbbop.rmb2122.benchange == '1') {
                if(this.model.swiadd.newexpdat != "" && (this.model.oldnidgrp.rec.expdat == "" || this.model.oldnidgrp.rec.expdat == null)) {
                  return true;
                } else if(this.model.oldnidgrp.rec.expdat != "" && this.model.swiadd.newexpdat != "" && this.model.swiadd.newexpdat < this.model.oldnidgrp.rec.expdat){
                  return true;
                } else {
                  return false;
                }
              } else {
                if(this.model.oldnidgrp.rec.expdat != "" && this.model.swiadd.newexpflg == "X") {
                  return false;
                } else if(this.model.oldnidgrp.rec.expdat != "" && this.model.swiadd.newexpdat != "" && this.model.swiadd.newexpdat > this.model.oldnidgrp.rec.expdat){
                  return false;
                } else {
                  return true;
                }
              }
            }
          }
        } else {
          return true;
        }
      }
      return true;
    },
  },
  methods: {},
  created: function () {},
};
</script>
<style>
</style>