feature: po pay downpayment
This commit is contained in:
@@ -33,20 +33,23 @@
|
||||
module.exports = {
|
||||
data() {
|
||||
return {
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
dialog_deleteorder: {
|
||||
get() {
|
||||
return this.$store.state.poasset.dialog_deleteorder
|
||||
return this.$store.state.common.dialog_deleteorder
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit('update_dialog_deleteorder', val)
|
||||
this.$store.commit('common/update_dialog_deleteorder', val)
|
||||
}
|
||||
},
|
||||
selected_orderaset() {
|
||||
return this.$store.state.poasset.selected_orderaset
|
||||
return this.$store.state.common.selected_orderaset
|
||||
},
|
||||
loading_process() {
|
||||
return this.$store.state.common.loading_process
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -54,8 +57,13 @@ module.exports = {
|
||||
this.dialog_deleteorder = false
|
||||
},
|
||||
hapusorder() {
|
||||
|
||||
if (!this.loading_process) {
|
||||
this.$store.dispatch("common/deleteOrderAsset")
|
||||
} else {
|
||||
const snac = { color: 'warning', msg: 'proses sedang berjalan', state: true };
|
||||
this.$store.commit('common/update_snackbar', snac);
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user