Merge branch 'test' of e.coding.net:g-cphe0354/yinshoukeguanliduan/management into gyq
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user