index.js 538 Bytes
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils/index";
import BigNumber from 'bignumber.js';
export default {
	mixins: [commonFunctions],
	methods: {
		changeFrepayflg(){
			if(this.model.btdgrp.rec.frepayflg == "X"){
				this.model.setmod.redamt = this.model.setmod.docamt
			}else{
      this.model.setmod.redamt = new BigNumber(0)
      this.model.setmod.setamt =
        new BigNumber(this.model.setmod.docamt).minus( this.model.setmod.redamt);
			}
		},
		
	}
}