Browse Source

fix(forecast): 将客户ID转换为字符串类型以避免潜在的类型错误

yz 2 weeks ago
parent
commit
e2d48a92bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/forecast/forecastIndex.js

+ 1 - 1
src/views/forecast/forecastIndex.js

@@ -263,7 +263,7 @@ export default {
         const res = await getCustomerList(1, 20)
         if (res.data && res.data.success) {
           this.customerOptions = res.data.data.records.map(item => ({
-            value: item.Customer_ID,
+            value: item.Customer_ID.toString(),
             label: item.Customer_NAME,
             customerCode: item.Customer_CODE,
             customerName: item.Customer_NAME