瀏覽代碼

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