import commonFunctions from '../../../../mixin/commonFunctions.js'; export default { mixins: [commonFunctions], methods: { defaultRule() { //注销原因 if (this.model.nidgrp.rec.purcan !== 'RN') { this.model.newref = "" } if (this.model.nidgrp.rec.purcan !== "RR") { this.model.mtabut.clsflgp = "X"; this.model.nidgrp.rec.clsdat = new Date(); this.model.autflg = "" } else { if (this.model.nidgrp.rec.redamt === this.model.nidgrp.cbs.opn1.amt) { this.model.mtabut.clsflgp = "X"; this.model.nidgrp.rec.clsdat = new Date(); } else { this.model.mtabut.clsflgp = ""; this.model.nidgrp.rec.clsdat = ""; } } //国外扣费币种 if (this.model.nidgrp.rec.redcur === "") { this.model.nidgrp.rec.redcur = this.model.nidgrp.cbs.opn1.cur; } //未偿付币种 if (this.model.nidgrp.rec.outcur === "") { this.model.nidgrp.rec.outcur = this.model.nidgrp.cbs.opn1.cur; } //收费金额 if (this.model.trnmod.swiadd.chacur === "") { this.model.trnmod.swiadd.chacur = this.model.nidgrp.cbs.opn1.cur; } }, } } //你可以添加自动default处理