Преглед изворни кода

fix(订单表单): 将客户ID转换为字符串类型以确保选中状态

yz пре 1 недеља
родитељ
комит
7e585a7508
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/components/order-form/customer-select.vue

+ 1 - 0
src/components/order-form/customer-select.vue

@@ -298,6 +298,7 @@ export default {
           
           if (customer) {
             // 只保留匹配的客户选项
+            customer.Customer_ID = String(customer.Customer_ID)
             this.options = [customer]
             // 设置当前值以确保选中状态
             this.currentValue = String(customer.Customer_ID)