index.js 1.03 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
import commonFunctions from '~/mixin/commonFunctions.js';
import moment from 'moment';
export default {
	mixins: [commonFunctions],
	methods: {
    setamt(){
      if(this.model.bfdgrp.rec.frepayflg=='X'){
        this.model.setmod.redamt = this.model.setmod.docamt;
      }
      this.model.setmod.setamt = this.model.setmod.docamt -this.model.setmod.redamt;
    },
    frepayflg(){
      if(this.model.bfdgrp.rec.frepayflg=='X'){
        this.model.setmod.redamt = this.model.setmod.docamt;
      }else{
        this.model.setmod.redamt = 0.00;
      }
      this.setamt();
    },
    crefinflg(){
      if(this.model.crefinflg=='X'){
        this.model.setmod.redamt = this.model.setmod.docamt;
      }else{
        this.model.setmod.redamt = 0.00;
      }
      this.setamt();
    },
    dedclsflg(){
      if(this.model.dedclsflg=='X'){
        this.model.sndmsg='X'
      }else{
        this.model.sndmsg=''
      }
    },
    clsflg(){
      if(this.model.clsflg!='X'){
        this.model.dedclsflg=''
      }
      this.dedclsflg();
    }
	}
}