Browse Source

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

yz 1 month ago
parent
commit
2c73f01ef8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/mixins/order/orderOperationsMixin.js

+ 1 - 0
src/mixins/order/orderOperationsMixin.js

@@ -84,6 +84,7 @@ export default {
       // 先加载客户选项
       await this.loadCustomerOptions()
       
+      this.orderForm.customerId = this.orderForm.customerId.toString()
       // 如果当前订单有客户ID,确保该客户在选项列表中
       if (this.orderForm.customerId && this.orderForm.customerCode) {
         this.ensureCustomerInOptions(