!325 下单优化

Merge pull request !325 from 德仔/xzj
This commit is contained in:
德仔 2021-07-26 02:49:54 +00:00 committed by Gitee
commit d508bed2c6

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;