import commonFunctions from '~/mixin/commonFunctions.js';
import commonDepend from "~/mixin/commonDepend";
export default {
mixins: [commonFunctions, commonDepend],
methods: {
getAddamtflg(){
if (this.model.dedgrp.cbs.max2.amt > 0) {
this.model.addamtflg = "X";
} else {
this.model.addamtflg = "";
}
},
getAvbnam(){
if (this.model.dedgrp.rec.avbwth === 'O') {
if (this.model.dedgrp.blk.avbwthtxt === '') {
let localCodes = localStorage.getItem('localCodes');
if (localCodes) {
let avbwthTxts = JSON.parse(localCodes)['AVBWTH_CN_COD'];
if (avbwthTxts) {
let avbwthTxt = avbwthTxts.filter(m => m.value === 'O');
if (avbwthTxt && avbwthTxt.length > 0) {
this.model.avbnam = avbwthTxt.label;
}
}
}
} else {
this.model.avbnam = this.model.dedgrp.blk.avbwthtxt;
}
} else {
this.model.avbnam = this.model.dedgrp.avb.pts.jigomc ? this.model.dedgrp.avb.pts.jigomc : this.model.dedgrp.avb.pts.cnnam ? this.model.dedgrp.avb.pts.cnnam :this.model.dedgrp.avb.pts.nam;
}
},
},
}