index.js 965 Bytes
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
import commonFunctions from '~/mixin/commonFunctions.js';
import moment from 'moment';
import Utils from "~/utils/index";
import Pts from '~/components/business/commonModel/Pts';
export default {
	mixins: [commonFunctions],
	methods: {
    calcPrb() {
      switch (this.model.bfdgrp.rec.docprbrol) {
        case "BEN":
          Utils.copyValueFromVoData(this.model.bfdgrp.prb.pts, this.model.dedgrp.ben.pts);
          this.model.bfdgrp.prb.rol = "PRB";
          this.model.bfdgrp.prb.pts.rol = "PRB";
          this.model.bfdgrp.prb.pts.bankno = this.model.dedgrp.beb.pts.bankno;
          this.model.bfdgrp.prb.pts.jigomc = this.model.dedgrp.beb.pts.jigomc;
          this.model.bfdgrp.prb.pts.dizhii = this.model.dedgrp.beb.pts.dizhii;
          break;
        case "PRB":
          this.model.bfdgrp.prb.pts = new Pts().data;
          this.model.bfdgrp.prb.rol = "PRB";
          this.model.bfdgrp.prb.pts.rol = "PRB";
          break;
      }
    },
	}
}