Commit f469cdff by lixiaomin

修改

parent 6567f99e
...@@ -255,14 +255,10 @@ export default { ...@@ -255,14 +255,10 @@ export default {
this.$modal.msgSuccess('选项列表中的第' + index + '行名称不能为空'); this.$modal.msgSuccess('选项列表中的第' + index + '行名称不能为空');
return; return;
} }
if(specsSelectList[i].amount==""){
this.$modal.msgSuccess('选项列表中的第' + index + '行价格不能为空');
}else{
if(!regular.test(specsSelectList[i].amount)){ if(!regular.test(specsSelectList[i].amount)){
this.$modal.msgSuccess('选项列表中的第' + index + '行价格不是大于等于0的两位小数'); this.$modal.msgSuccess('选项列表中的第' + index + '行价格不是大于等于0的两位小数');
return; return;
} }
}
if(!specsSelectList[i].isRecommend){ if(!specsSelectList[i].isRecommend){
specsSelectList[i].isRecommend = "0"; specsSelectList[i].isRecommend = "0";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment