add button report penerimaan mutasi
This commit is contained in:
@@ -223,7 +223,8 @@
|
||||
</td>
|
||||
|
||||
<td
|
||||
class="text-xs-center"
|
||||
class="text-xs-center pa-2"
|
||||
style="white-space: nowrap;"
|
||||
v-bind:class="{
|
||||
'amber lighten-4': isSelected(props.item),
|
||||
}"
|
||||
@@ -253,6 +254,18 @@
|
||||
</template>
|
||||
<span>Lihat Detail</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
style="min-width: 30px; height: 30px; margin: 0;"
|
||||
small @click="printout(props.item)" color="primary"
|
||||
class="mt-1 mb-1"
|
||||
>
|
||||
<v-icon small color="white" v-on="on">print</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Cetak PDF</span>
|
||||
</v-tooltip>
|
||||
</div>
|
||||
<div v-show="props.item.MutasiHandoverStatus == 'Sent'">
|
||||
<v-tooltip bottom>
|
||||
@@ -286,6 +299,14 @@
|
||||
<one-dialog-receive-layout></one-dialog-receive-layout>
|
||||
<one-dialog-view-layout></one-dialog-view-layout>
|
||||
<one-dialog-mutasi></one-dialog-mutasi>
|
||||
<one-dialog-print
|
||||
:title="printtitle"
|
||||
:width="printwidth"
|
||||
:height="600"
|
||||
:status="openprint"
|
||||
:urlprint="urlprint"
|
||||
@close-dialog-print="openprint = false"
|
||||
></one-dialog-print>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
@@ -323,9 +344,14 @@ module.exports = {
|
||||
"approve-dialog": httpVueLoader("./approveDialog.vue"),
|
||||
"one-dialog-alert": httpVueLoader("../../common/oneDialogAlert.vue"),
|
||||
"one-dialog-error": httpVueLoader("../../common/oneDialogError.vue"),
|
||||
"one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
urlprint: "",
|
||||
printtitle: "",
|
||||
printwidth: "60%",
|
||||
openprint: false,
|
||||
msgAlertDeleteRequest: "",
|
||||
dialogAlertDeleteRequest: false,
|
||||
dialogAlertDeleteDetail: false,
|
||||
@@ -624,6 +650,15 @@ module.exports = {
|
||||
this.$store.commit("mutasi/update_indeterminatex", false);
|
||||
this.$store.commit("mutasi/update_selected_barcode", []);
|
||||
this.$store.dispatch("mutasi/getBarcodes");
|
||||
},
|
||||
printout(val) {
|
||||
this.printwidth = "60%";
|
||||
this.printtitle = "";
|
||||
let user = one_user();
|
||||
let username = user && user.M_StaffName ? user.M_StaffName : "";
|
||||
let tm = Date.now();
|
||||
this.urlprint = BASE_URL + "/one-api/report/rpt_penerimaan_mutasi/pdf?id=" + val.MutasiHandoverID + "&username=" + username + "&tm=" + tm;
|
||||
this.openprint = true;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user