|
@@ -287,12 +287,13 @@ export default {
|
|
try {
|
|
try {
|
|
this.loading = true
|
|
this.loading = true
|
|
|
|
|
|
- /** @type {CustomerListResponse} */
|
|
|
|
- const response = await getCustomerList(1, 200, {})
|
|
|
|
|
|
+ const response = await getCustomerList(1, 200, {
|
|
|
|
+ customerId
|
|
|
|
+ })
|
|
|
|
|
|
if (response?.data?.success && response.data.data?.records) {
|
|
if (response?.data?.success && response.data.data?.records) {
|
|
const allCustomers = response.data.data.records
|
|
const allCustomers = response.data.data.records
|
|
- /** @type {CustomerRecord|undefined} */
|
|
|
|
|
|
+
|
|
const customer = allCustomers.find(item => item.Customer_ID == customerId)
|
|
const customer = allCustomers.find(item => item.Customer_ID == customerId)
|
|
|
|
|
|
if (customer) {
|
|
if (customer) {
|