<template>
  
    <v-dialog
      v-model="dialog"
      width="1000px"
    >
      

      <v-card>
        <v-card-title
          class="headline grey lighten-2 pt-2 pb-2"
          primary-title
        >
          Laporan
        </v-card-title>
        <v-card-text class="pt-2 pb-2">

          <v-layout>
              <v-flex xs12>
                  <object :data="rpt_url"
                    width="100%" height="512px"></object>
              </v-flex>
          </v-layout>
          
        </v-card-text>
        <v-divider></v-divider>

        <v-card-actions>
          <v-spacer></v-spacer>

          <v-btn
            color="primary"
            @click="dialog = false"
            flat
          >
            Tutup
          </v-btn>

        </v-card-actions>
      </v-card>
    </v-dialog>
  
</template>

<style scoped>
</style>

<script>
module.exports = {
    components : {
    },
    methods : {
    },
    computed : {
       dialog: {
          get() {
             return this.$store.state.rh_patient.print_dialog;
          },
          set(val) {
             this.$store.commit('rh_patient/update_print_dialog', val);
          }
       },

       rpt_url () {
         return this.$store.state.rh_patient.rpt_url
       }
    }
}
</script>
