From c8b65690b946b28b179796fbe2f020e732043c58 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期四, 08 一月 2026 18:10:16 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_天津军泰伟业' into dev_天津军泰伟业

---
 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