feat: 分组追加商品修复

This commit is contained in:
duan
2025-03-18 16:04:30 +08:00
parent 14d3ffb4cf
commit 188aad8035
6 changed files with 17 additions and 35 deletions

View File

@@ -270,7 +270,14 @@ async function addConfirm() {
}
// 添加商品的回调
function subitgood() {
selectData.value = contentRefs.value.getselectTable()
if (title.value == "编辑分组") {
let arr = selectData.value
arr.push(...contentRefs.value.getselectTable())
selectData.value = arr
} else {
selectData.value = contentRefs.value.getselectTable()
}
switchref.value = false
myDialogRef.value.close()
}

View File

@@ -20,7 +20,6 @@ const modalConfig: IModalConfig<UserForm> = {
});
data.productIds = arr
}
console.log("提交之前处理2", data);
return UserAPI.addunit(data)
},
beforeSubmit(data: any) {

View File

@@ -27,7 +27,6 @@ const contentConfig: IContentConfig<UserPageQuery> = {
// exportAction: UserAPI.export,
// importTemplate: UserAPI.downloadTemplate,
modifyAction: function (params) {
console.log(params, '调试2')
let obj = { ...params }
return UserAPI.update(obj);
},

View File

@@ -22,7 +22,6 @@ const modalConfig: IModalConfig<UserForm> = {
});
data.productIds = arr
}
console.log("提交之前处理2", data);
// return UserAPI.update(data);
},