Przeglądaj źródła

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

yz 2 tygodni temu
rodzic
commit
e2d48a92bf
1 zmienionych plików z 1 dodań i 1 usunięć
  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