import Utils from "~/utils"; export default { methods: { buildPtspta(ptsptaObj) { let pts = ptsptaObj.pts; return { rol: pts.rol, name: pts.nam, ptyinr: pts.ptyinr, ptainr: pts.ptainr, extkey: pts.extkey, dftdsp: pts.dftdsp, dftcur: pts.dftcur, dftact: pts.dftact, dftfeecur: pts.dftfeecur, dftactptainr: pts.dftactptainr, glggrpflg: pts.glggrpflg, adrblk: pts.adrblk, pts, }; }, buildCommonData(model, trnName) { let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta); return { rec: { objtyp: "FTD", objinr: model.ftdgrp.rec.inr, ownref: model.ftdgrp.rec.ownref, fttyp:model.ftdgrp.rec.fttyp, }, cbsMap: { MAX: model.ftdgrp.cbs.max, }, ptsList: ptsptaList, transName: trnName, userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL", }; }, }, };