feature: po pay downpayment
This commit is contained in:
@@ -48,40 +48,91 @@
|
||||
<template v-slot:items="props">
|
||||
<tr>
|
||||
<td class="text-xs-center pa-2">
|
||||
{{ props.item.date }}
|
||||
{{ props.item.ReceiveOrderPoIDate }}
|
||||
</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
{{ props.item.receiveordernumber }} <br>
|
||||
{{ props.item.purchaseordernumber }}
|
||||
{{ props.item.ReceiveOrderPoNumber }} <br>
|
||||
{{ props.item.PurchaseOrderNumber }}
|
||||
</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
{{ props.item.suppliername }}
|
||||
</td>
|
||||
<td class="text-xs-start pa-2">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs6>
|
||||
Total tagihan : {{ props.item.totaltagihan }} <br>
|
||||
Besar uang muka : {{ props.item.uangmuka }} <br>
|
||||
</v-flex>
|
||||
<v-flex xs6 pl-2>
|
||||
Status cicilan : {{ props.item.cicilanterbayar }} / {{ props.item.numbercicilan }} <br>
|
||||
Besar cicilan : {{ props.item.besarcicilan }} <br>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
{{ props.item.SupplierName }}
|
||||
</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
{{ props.item.status }}
|
||||
{{ props.item.ReceiveOrderPoNote }}
|
||||
</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="green" dark @click="uploadAttachment(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>attachment</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Upload Bukti</span>
|
||||
</v-tooltip>
|
||||
<div v-if="props.item.ReceiveOrderPoConfirmed == 'Y'">
|
||||
<v-chip small color="primary" text-color="white">Confirmed</v-chip>
|
||||
</div>
|
||||
<div v-else>
|
||||
<v-chip small color="warning" text-color="white">Unconfirmed</v-chip>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
<div v-show="props.item.ReceiveOrderPoConfirmed != 'Y'">
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="green" dark @click="uploadAttachment(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>attachment</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Upload Bukti</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="warning" dark @click="confirmRO(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on"
|
||||
>
|
||||
<v-icon small>send</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Konfirmasi Receive</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="info" dark @click="editRO(props.item)" v-on="on"
|
||||
style="min-width: 40px; margin: 0;" small
|
||||
>
|
||||
<v-icon small>edit</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Edit Receive</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="red" dark @click="deleteRO(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on"
|
||||
>
|
||||
<v-icon small>delete</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Hapus Receive</span>
|
||||
</v-tooltip>
|
||||
</div>
|
||||
<div v-show="props.item.ReceiveOrderPoConfirmed == 'Y'">
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="info" dark @click="viewDetail(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>visibility</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>View Detail</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="green" dark @click="uploadAttachment(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>attach_file</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>View Document</span>
|
||||
</v-tooltip>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
@@ -100,7 +151,9 @@
|
||||
<dialog-receive-aset></dialog-receive-aset>
|
||||
<dialog-add-attachment></dialog-add-attachment>
|
||||
<dialog-delete-order-asset></dialog-delete-order-asset>
|
||||
<dialog-confirm-order-asset></dialog-confirm-order-asset>
|
||||
<dialog-pick-contract></dialog-pick-contract>
|
||||
<dialog-inspeksi></dialog-inspeksi>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -110,10 +163,14 @@ module.exports = {
|
||||
'dialog-receive-aset': httpVueLoader('./dialog-receive-order-asset.vue'),
|
||||
'dialog-add-attachment': httpVueLoader('./dialog-add-attachment.vue'),
|
||||
'dialog-delete-order-asset': httpVueLoader('./dialog-delete-order-asset.vue'),
|
||||
'dialog-confirm-order-asset': httpVueLoader('./dialog-confirm-receive.vue'),
|
||||
'dialog-pick-contract': httpVueLoader('./dialog-pick-contract.vue'),
|
||||
'dialog-inspeksi': httpVueLoader('./dialog-inspeksi.vue'),
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch("roasset/lookupOrderAssetReceived")
|
||||
this.$store.dispatch("orderAsset/listingCabang");
|
||||
this.$store.dispatch("orderAsset/listingSupplier");
|
||||
this.$store.dispatch("roasset/lookupOrderAssetReceived");
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -133,7 +190,7 @@ module.exports = {
|
||||
width: "15%", class: "pa-1 blue lighten-3 white--text",
|
||||
},
|
||||
{
|
||||
text: "INFO", align: "center", sortable: false, value: "note",
|
||||
text: "CATATAN", align: "center", sortable: false, value: "note",
|
||||
width: "25%", class: "pa-1 blue lighten-3 white--text",
|
||||
},
|
||||
{
|
||||
@@ -170,6 +227,7 @@ module.exports = {
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("roasset/update_currpage", val)
|
||||
this.$store.dispatch("roasset/lookupOrderAssetReceived")
|
||||
}
|
||||
},
|
||||
list_status() {
|
||||
@@ -197,11 +255,43 @@ module.exports = {
|
||||
return `${day}-${month}-${year}`;
|
||||
},
|
||||
openDialogReceive() {
|
||||
this.$store.commit("roasset/update_dialog_receive_aset", true)
|
||||
this.$store.commit("orderAsset/update_dialog_receive_aset", true)
|
||||
},
|
||||
uploadAttachment(item) {
|
||||
this.$store.commit("roasset/update_selected_roasset", item)
|
||||
this.$store.dispatch("roasset/lookupAttachment", item.ReceiveOrderPoID);
|
||||
this.$store.commit("roasset/update_selected_roasset", item);
|
||||
this.$store.commit("roasset/update_dialog_attachment", true);
|
||||
},
|
||||
editRO(item) {
|
||||
this.$store.dispatch("roasset/getDetailDataROAsset", item.ReceiveOrderPoID)
|
||||
this.$store.commit("roasset/update_selected_roasset", item)
|
||||
this.$store.commit("orderAsset/update_dialog_receive_aset", true)
|
||||
},
|
||||
viewDetail(item) {
|
||||
this.$store.dispatch("roasset/getDetailDataROAsset", item.ReceiveOrderPoID)
|
||||
this.$store.commit("roasset/update_selected_roasset", item)
|
||||
|
||||
this.$store.commit("orderAsset/update_readonly_mode", true)
|
||||
this.$store.commit("orderAsset/update_dialog_receive_aset", true)
|
||||
},
|
||||
confirmRO(item) {
|
||||
this.$store.dispatch("roasset/lookupAttachment", item.ReceiveOrderPoID);
|
||||
this.$store.commit("roasset/update_selected_roasset", item)
|
||||
this.$store.commit("roasset/update_dialog_confirm", true)
|
||||
},
|
||||
deleteRO(item) {
|
||||
this.$store.commit("roasset/update_selected_roasset", item)
|
||||
this.$store.commit("roasset/update_dialog_delete", true);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
filterasset: {
|
||||
handler(val) {
|
||||
setTimeout(() => {
|
||||
this.$store.dispatch("roasset/lookupOrderAssetReceived")
|
||||
}, 500)
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user