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; } }, } }