Explorar o código

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

yz hai 2 semanas
pai
achega
e2d48a92bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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