import commonFunctions from '~/mixin/commonFunctions.js'; import commonDepend from "~/mixin/commonDepend"; export default { mixins: [commonFunctions, commonDepend], methods: { getAvbnam(){ if (this.model.ledgrp.rec.avbwth === 'O') { if (this.model.ledgrp.blk.avbwthtxt === '') { let localCodes = localStorage.getItem('localCodes'); if (localCodes) { let avbwthTxts = JSON.parse(localCodes)['AVBWTH_EN_COD']; if (avbwthTxts) { let avbwthTxt = avbwthTxts.filter(m => m.value === 'O'); if (avbwthTxt && avbwthTxt.length > 0) { this.model.ledgrp.avbnam = avbwthTxt.label; } } } } else { this.model.ledgrp.avbnam = this.model.ledgrp.blk.avbwthtxt; } } else { this.model.ledgrp.avbnam = this.model.ledgrp.avb.pts.nam; } }, sndmsgFirstCancel(){ if( this.model.sndmsg === 'X'){ this.model.sndmsgFirstCancel = true; this.model.sndmsgPreviousValue='X'; }else{ this.model.sndmsgFirstCancel = false; this.model.sndmsgPreviousValue=''; } } }, }