From 9b0aed26bc400fdb1b6d62084346df06993a6ebf Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 13 一月 2026 17:53:27 +0800
Subject: [PATCH] 开票登记后,下拉框展示的数据有误
---
src/views/basicData/product/index.vue | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index 42cf147..e652c53 100644
--- a/src/views/basicData/product/index.vue
+++ b/src/views/basicData/product/index.vue
@@ -235,6 +235,10 @@
const expandedKeys = ref([]);
const tableColumn = ref([
{
+ label: "浜у搧瑙勬牸缂栧彿",
+ prop: "productCode",
+ },
+ {
label: "瑙勬牸鍨嬪彿",
prop: "model",
},
@@ -408,16 +412,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