buildCommons.js 1.28 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
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 = [];
      return {
        rec: {
zhoujunpeng committed
27
          objtyp: "FTD",
28 29
          objinr: model.ftdgrp.rec.inr,
          ownref: model.ftdgrp.rec.ownref,
zhoujunpeng committed
30 31 32 33 34
          msgtyp: model.fttp.msgtyp,
          fttyp: model.ftdgrp.rec.fttyp,
          rat :model.ftdgrp.rec.rat,
          bnktyp : model.ftdgrp.rec.bnktyp,
          valdat: model.ftdgrp.rec.valdat,
35 36 37 38
          canamt:model.canamt,
        },
        cbsMap: {
          MAX: model.ftdgrp.cbs.max,
zhoujunpeng committed
39 40 41
          INS: model.ftdgrp.cbs.ins,
          OPN1: model.ftdgrp.cbs.opn1,
          OPN2: model.ftdgrp.cbs.opn2,
42 43 44 45 46 47 48 49
        },
        ptsList: ptsptaList,
        transName: trnName,
        userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
      };
    },
  },
};