add button report request barang
This commit is contained in:
@@ -220,6 +220,7 @@
|
|||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
class="text-xs-center pa-2"
|
class="text-xs-center pa-2"
|
||||||
|
style="white-space: nowrap;"
|
||||||
v-bind:class="{
|
v-bind:class="{
|
||||||
'amber lighten-4': isSelected(props.item),
|
'amber lighten-4': isSelected(props.item),
|
||||||
}"
|
}"
|
||||||
@@ -247,6 +248,7 @@
|
|||||||
<template v-else-if="props.item.rioStatus == 'Send Request'">
|
<template v-else-if="props.item.rioStatus == 'Send Request'">
|
||||||
<td
|
<td
|
||||||
class="text-xs-center pa-2 pr-5"
|
class="text-xs-center pa-2 pr-5"
|
||||||
|
style="white-space: nowrap;"
|
||||||
v-bind:class="{
|
v-bind:class="{
|
||||||
'amber lighten-4': isSelected(props.item),
|
'amber lighten-4': isSelected(props.item),
|
||||||
}"
|
}"
|
||||||
@@ -277,15 +279,34 @@
|
|||||||
>
|
>
|
||||||
<v-icon color="white" small>receipt</v-icon>
|
<v-icon color="white" small>receipt</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
<v-btn
|
||||||
|
style="min-width: 25px; height: 25px; margin: 0;"
|
||||||
|
@click="printout(props.item)"
|
||||||
|
color="primary"
|
||||||
|
small title="Cetak PDF"
|
||||||
|
class="d-block mx-auto mb-2"
|
||||||
|
>
|
||||||
|
<v-icon color="white" small>print</v-icon>
|
||||||
|
</v-btn>
|
||||||
</td>
|
</td>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<td
|
<td
|
||||||
class="text-xs-center pa-2"
|
class="text-xs-center pa-2"
|
||||||
|
style="white-space: nowrap;"
|
||||||
v-bind:class="{
|
v-bind:class="{
|
||||||
'amber lighten-4': isSelected(props.item),
|
'amber lighten-4': isSelected(props.item),
|
||||||
}"
|
}"
|
||||||
></td>
|
>
|
||||||
|
<v-btn
|
||||||
|
style="min-width: 25px; height: 25px; margin: 0;"
|
||||||
|
@click="printout(props.item)"
|
||||||
|
color="primary"
|
||||||
|
small title="Cetak PDF"
|
||||||
|
>
|
||||||
|
<v-icon color="white" small>print</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</td>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
@@ -336,6 +357,14 @@
|
|||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
|
<one-dialog-print
|
||||||
|
:title="printtitle"
|
||||||
|
:width="printwidth"
|
||||||
|
:height="600"
|
||||||
|
:status="openprint"
|
||||||
|
:urlprint="urlprint"
|
||||||
|
@close-dialog-print="openprint = false"
|
||||||
|
></one-dialog-print>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -370,9 +399,14 @@ module.exports = {
|
|||||||
"approve-dialog": httpVueLoader("./approveDialog.vue"),
|
"approve-dialog": httpVueLoader("./approveDialog.vue"),
|
||||||
"one-dialog-alert": httpVueLoader("../../common/oneDialogAlert.vue"),
|
"one-dialog-alert": httpVueLoader("../../common/oneDialogAlert.vue"),
|
||||||
"one-dialog-error": httpVueLoader("../../common/oneDialogError.vue"),
|
"one-dialog-error": httpVueLoader("../../common/oneDialogError.vue"),
|
||||||
|
"one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"),
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
urlprint: "",
|
||||||
|
printtitle: "",
|
||||||
|
printwidth: "60%",
|
||||||
|
openprint: false,
|
||||||
msgAlertDeleteRequest: "",
|
msgAlertDeleteRequest: "",
|
||||||
dialogAlertDeleteRequest: false,
|
dialogAlertDeleteRequest: false,
|
||||||
dialogAlertDeleteDetail: false,
|
dialogAlertDeleteDetail: false,
|
||||||
@@ -398,7 +432,7 @@ module.exports = {
|
|||||||
align: "left",
|
align: "left",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
value: "keterangan",
|
value: "keterangan",
|
||||||
width: "40%",
|
width: "35%",
|
||||||
class: "blue lighten-3 white--text",
|
class: "blue lighten-3 white--text",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -414,7 +448,7 @@ module.exports = {
|
|||||||
align: "center",
|
align: "center",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
value: "action",
|
value: "action",
|
||||||
width: "10%",
|
width: "15%",
|
||||||
class: "blue lighten-3 white--text",
|
class: "blue lighten-3 white--text",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -907,6 +941,15 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
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_request_pengeluaran_barang/pdf?id=" + val.rioId + "&username=" + username + "&tm=" + tm;
|
||||||
|
this.openprint = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user