|
@@ -531,7 +531,7 @@
|
|
|
this.$api.msg('货名不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.grossWeight) {
|
|
|
+ if (!this.detailData.grossWeight && num == 2) {
|
|
|
this.$api.msg('毛重不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -546,7 +546,7 @@
|
|
|
this.$api.msg('毛重输入错误!')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.tare) {
|
|
|
+ if (!this.detailData.tare && num == 2) {
|
|
|
this.$api.msg('皮重不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -562,7 +562,7 @@
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if (!this.detailData.deductionWeight) {
|
|
|
+ if (!this.detailData.deductionWeight && num == 2) {
|
|
|
this.$api.msg('扣重不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -581,12 +581,12 @@
|
|
|
this.$api.msg('皮重不能大于毛重')
|
|
|
return
|
|
|
}
|
|
|
- if (this.netWeight <= 0) {
|
|
|
+ if (this.netWeight <= 0 && num == 2) {
|
|
|
this.$api.msg('净重不能小于等于0')
|
|
|
return
|
|
|
}
|
|
|
if (this.detailData.type == "潮粮") {
|
|
|
- if (!this.detailData.buckleWeightRatio) {
|
|
|
+ if (!this.detailData.buckleWeightRatio && num == 2) {
|
|
|
this.$api.msg('扣重比不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -601,7 +601,7 @@
|
|
|
this.$api.msg('扣重比输入错误!')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.solidGrainWater) {
|
|
|
+ if (!this.detailData.solidGrainWater && num == 2) {
|
|
|
this.$api.msg('干粮水分不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -616,7 +616,7 @@
|
|
|
this.$api.msg('干粮水分输入错误!')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.tidalGrainWater) {
|
|
|
+ if (!this.detailData.tidalGrainWater && num == 2) {
|
|
|
this.$api.msg('潮粮水分不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -631,7 +631,7 @@
|
|
|
this.$api.msg('扣款输入错误!')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.deductionAmount) {
|
|
|
+ if (!this.detailData.deductionAmount && num == 2) {
|
|
|
this.$api.msg('扣款不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -650,7 +650,7 @@
|
|
|
this.$api.msg('潮粮水分输入错误!')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.pureWeight) {
|
|
|
+ if (!this.detailData.pureWeight && num == 2) {
|
|
|
this.$api.msg('纯重不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -671,7 +671,7 @@
|
|
|
this.$api.msg('入库类型不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.carNo) {
|
|
|
+ if (!this.detailData.carNo && num == 2) {
|
|
|
this.$api.msg('车牌号不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -679,11 +679,11 @@
|
|
|
this.$api.msg('车牌号输入有误!')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.addressUrl) {
|
|
|
+ if (!this.detailData.addressUrl && num == 2) {
|
|
|
this.$api.msg('请上传磅单')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.cost) {
|
|
|
+ if (!this.detailData.cost && num == 2) {
|
|
|
this.$api.msg('未获取到成本,请编辑后提交')
|
|
|
return
|
|
|
}
|
|
@@ -697,7 +697,7 @@
|
|
|
this.$api.msg('成本输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.freight) {
|
|
|
+ if (!this.detailData.freight && num == 2) {
|
|
|
this.$api.msg('运费不能为空')
|
|
|
return
|
|
|
}
|