下单优化

This commit is contained in:
xiezhijun 2021-07-26 10:48:01 +08:00
parent 17d4f68eb8
commit 8edf015ed0

View File

@ -589,7 +589,7 @@ export default {
//
if(this.form.orderTypeList[0] == 0 || this.form.orderTypeList[0] == 1){
//
if(this.form.preSaleId == null || this.form.preSaleId <= 0 || this.form.afterSaleId == null || this.form.afterSaleId <= 0
/*if(this.form.preSaleId == null || this.form.preSaleId <= 0 || this.form.afterSaleId == null || this.form.afterSaleId <= 0
|| this.form.nutriAssisId == null || this.form.nutriAssisId <= 0){
this.$message({
type: 'warning',
@ -597,7 +597,7 @@ export default {
center: true
});
return false;
}
}*/
//
if(this.form.orderTypeList[0] == 0){
if(this.form.nutritionistIdList == null || this.form.nutritionistIdList.length != 1 || this.form.nutritionistIdList[0] <= 0){
@ -633,12 +633,11 @@ export default {
}
//
else if(this.form.orderTypeList[0] == 3){
//
if(this.form.onSaleId == null || this.form.onSaleId <= 0 || this.form.afterSaleId == null || this.form.afterSaleId <= 0
|| this.form.nutriAssisId == null || this.form.nutriAssisId <= 0){
//
if(this.form.onSaleId == null || this.form.onSaleId <= 0){
this.$message({
type: 'warning',
message: '售中、售后、营养师助理不能为空',
message: '售中不能为空',
center: true
});
return false;