From 2e6ad1a73fa84cb6e531d4500fce3355d3cc2503 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 08 一月 2026 15:13:48 +0800
Subject: [PATCH] 军泰伟业 1.优化下拉框选择筛选

---
 src/views/basicData/product/index.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index 42cf147..f9a61cd 100644
--- a/src/views/basicData/product/index.vue
+++ b/src/views/basicData/product/index.vue
@@ -408,16 +408,21 @@
   proxy.$refs.modelFormRef.validate((valid) => {
     if (valid) {
       let _modelForm = { ...modelForm.value };
-      
+
       if(_modelForm.otherModel){
         _modelForm.model = _modelForm.otherModel;
       }
       delete _modelForm.otherModel;
-      // 灏嗛�変腑鐨勬満鍣ㄦ暟缁勮浆鎹负閫楀彿鍒嗛殧鐨勫瓧绗︿覆
+      // 纭繚 speculativeTradingName 鏄暟缁勭被鍨嬶紝鐒跺悗杞崲涓洪�楀彿鍒嗛殧鐨勫瓧绗︿覆
+      let speculativeTradingNameValue = modelForm.value.speculativeTradingName;
+      if (!Array.isArray(speculativeTradingNameValue)) {
+        // 濡傛灉涓嶆槸鏁扮粍锛岃浆鎹负鏁扮粍
+        speculativeTradingNameValue = speculativeTradingNameValue.split(',').filter(item => item);
+      }
       const submitData = {
         ..._modelForm,
         productId: currentId.value,
-        speculativeTradingName: modelForm.value.speculativeTradingName.join(',')
+        speculativeTradingName: speculativeTradingNameValue.join(',')
       };
       addOrEditProductModel(submitData).then((res) => {
         proxy.$modal.msgSuccess("鎻愪氦鎴愬姛");

--
Gitblit v1.9.3