index.js 807 Bytes
Newer Older
fukai committed
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 27 28 29 30 31 32 33 34 35
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils"
import moment from "moment";

export default {
  mixins: [commonFunctions],
  methods: {

    clsflgChange(){
      if(this.model.mtabut.clsflg==='O'){
        this.model.bedgrp.rec.clsdat = null;
      }else if(this.model.mtabut.clsflg ==='C'){

        //     if not IsEmpty( CONINF\CONEXEDAT ) then
        //       $clsdat = CONINF\CONEXEDAT
        this.model.bedgrp.rec.clsdat = moment(new Date()).format("YYYY-MM-DD");
      }
    },

    advrefflgChange(){
      if(this.model.advrefflg!=''){
      }else{
        if(this.model.isIncMessageLoaded && this.model.bedgrp.blk.disdoc!=''){
        }else{
          this.model.bedgrp.blk.disdoc='';
        }
      }
    },

  },



};