Elements-SY

modify

......@@ -1034,7 +1034,16 @@ export default {
this.msgWarning('件数前区间不能大于后区间')
} else if (new Number(data.minWeight) > new Number(data.maxWeight)) {
this.msgWarning('重量前区间不能大于后区间')
} else if (data.handlingCode == '' && data.serviceCode == '' && data.subCategory == '' && data.typeOfGoods == '' && data.puporpuxCode == '' && (!data.location || data.location == '') && data.notLocation == '' && (!data.destinationSite || data.destinationSite == '') && data.notDestinationSite && (data.includeUrsa == null || data.includeUrsa == '') && (data.notIncludeUrsa == null || data.notIncludeUrsa == '') && (!data.minNumOfPieces || data.minNumOfPieces == '') && (!data.maxNumOfPieces || data.maxNumOfPieces == '') && (!data.minWeight || data.minWeight == '') && (!data.maxWeight || data.maxWeight == '')) {
} else if (
data.handlingCode == '' && data.serviceCode == ''
&& data.subCategory == '' && data.typeOfGoods == ''
&& data.puporpuxCode == '' && (data.location == null || data.location == '')
&& data.notLocation == '' && (data.destinationSite == null || data.destinationSite == '')
&& data.notDestinationSite == '' && (data.includeUrsa == null || data.includeUrsa == '')
&& (data.notIncludeUrsa == null || data.notIncludeUrsa == '')
&& (!data.minNumOfPieces || data.minNumOfPieces == '')
&& (!data.maxNumOfPieces || data.maxNumOfPieces == '') &&
(!data.minWeight || data.minWeight == '') && (!data.maxWeight || data.maxWeight == '')) {
this.msgWarning('未添加规则信息,请添加后再保存!')
} else {
// this.loading = true
......