use cust id instead of acc_no for queries
This commit is contained in:
parent
56f9be0a21
commit
42a3324d04
3 changed files with 11 additions and 11 deletions
|
@ -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 => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -120,7 +120,7 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
<style>
|
||||
.scroller {
|
||||
height: 600px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue