|
@@ -680,7 +680,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.deptBudgetList.grossWeight < 0 ||
|
|
|
|
|
|
+ this.deptBudgetList.grossWeight < 100 ||
|
|
this.deptBudgetList.grossWeight > 500000 ||
|
|
this.deptBudgetList.grossWeight > 500000 ||
|
|
(String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
|
|
(String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.grossWeight).length -
|
|
String(this.deptBudgetList.grossWeight).length -
|
|
@@ -688,7 +688,7 @@
|
|
3)
|
|
3)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '毛重输入错误',
|
|
|
|
|
|
+ message: '毛重输入错误(单位:公斤)',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -701,7 +701,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.deptBudgetList.tare < 0 ||
|
|
|
|
|
|
+ this.deptBudgetList.tare < 100 ||
|
|
this.deptBudgetList.tare > 5000000 ||
|
|
this.deptBudgetList.tare > 5000000 ||
|
|
(String(this.deptBudgetList.tare).indexOf('.') != -1 &&
|
|
(String(this.deptBudgetList.tare).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.tare).length -
|
|
String(this.deptBudgetList.tare).length -
|
|
@@ -709,7 +709,7 @@
|
|
3)
|
|
3)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '皮重输入错误',
|
|
|
|
|
|
+ message: '皮重输入错误(单位:公斤)',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -723,7 +723,7 @@
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
this.deptBudgetList.deductionWeight < 0 ||
|
|
this.deptBudgetList.deductionWeight < 0 ||
|
|
- this.deptBudgetList.deductionWeight > 10 ||
|
|
|
|
|
|
+ this.deptBudgetList.deductionWeight > 1000 ||
|
|
(String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
|
|
(String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.deductionWeight).length -
|
|
String(this.deptBudgetList.deductionWeight).length -
|
|
(String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
|
|
(String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
|