Kaynağa Gözat

fix(订单): 将客户ID统一转换为字符串类型

yz 4 hafta önce
ebeveyn
işleme
7c66484165
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/views/order/order/index.js

+ 2 - 2
src/views/order/order/index.js

@@ -689,7 +689,7 @@ export default {
 
     /**
      * 加载客户选项列表
-     * @param {string} [keyword=''] - 搜索关键词
+     * @param {string} keyword - 搜索关键词
      * @returns {Promise<void>}
      */
     async loadCustomerOptions(keyword = '') {
@@ -708,7 +708,7 @@ export default {
         if (response.data && response.data.success) {
           const customers = response.data.data.records || []
           this.customerOptions = customers.map(customer => ({
-            value: customer.Customer_ID,
+            value: customer.Customer_ID.toString(), // 修改这里:统一转换为字符串
             label: `${customer.Customer_CODE} - ${customer.Customer_NAME}`,
             customerCode: customer.Customer_CODE,
             customerName: customer.Customer_NAME,