商品列表与订单列表的详情

This commit is contained in:
魏啾
2024-10-08 14:41:58 +08:00
parent a6b3d7c065
commit ab42e8d9f9
2 changed files with 117 additions and 52 deletions

View File

@@ -750,7 +750,8 @@ export default {
console.log(this.form.skuList)
const hasUndefined = this.form.skuList.some(obj => {
for (const key in obj) {
if (obj[key] === undefined) {
console.log(key, obj)
if (obj['salePrice'] === undefined || obj['memberPrice'] === undefined || obj['costPrice'] === undefined || obj['originPrice'] === undefined) {
return true; // 如果找到undefined立即停止搜索并返回true
}
}