use cust id instead of acc_no for queries

This commit is contained in:
Paul Wilde 2023-03-22 14:46:07 +00:00
parent 56f9be0a21
commit 42a3324d04
3 changed files with 11 additions and 11 deletions

View file

@ -37,7 +37,7 @@ export default {
},
watch: {
customer() {
this.getCustomerComments(this.customer.acc_no)
this.getCustomerComments()
}
},
methods: {
@ -55,7 +55,7 @@ export default {
let url = this.$api_url + "/customers/comments"
axios.get(url,{
params: {
acc_no: this.customer.acc_no
c_id: this.customer.id
}
})
.then(resp => {

View file

@ -4,7 +4,7 @@
</v-progress-linear>
<v-container>
<v-row >
<v-col cols=12 v-for="item in sortedOrders" :key="item.id">
<v-col cols=12 v-for="item in sortedOrders" :key="item.doc_no">
<v-card>
<v-row>
<v-col cols=4>
@ -50,7 +50,7 @@ export default {
},
watch: {
customer() {
this.getCustomerRecentOrders(this.customer.acc_no)
this.getCustomerRecentOrders()
},
},
mixins: [methods],
@ -77,9 +77,9 @@ export default {
}
},
methods: {
getCustomerRecentOrders(acc_no){
getCustomerRecentOrders(){
this.orders_loading = true
let url = this.$api_url + "/customers/" + acc_no + "/orders/recent"
let url = this.$api_url + "/customers/" + this.customer.id + "/orders/recent"
axios.get(url, {
params: {
doc_status: this.doc_status

View file

@ -120,7 +120,7 @@ export default {
}
}
</script>
<style scoped>
<style>
.scroller {
height: 600px;
}