소스 검색

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

yz 2 주 전
부모
커밋
e2d48a92bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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