|
@@ -676,21 +676,14 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.deptBudgetList.warehouseInOutDetail.bulkDensity < 1 ||
|
|
|
|
- this.deptBudgetList.warehouseInOutDetail.bulkDensity > 40 ||
|
|
|
|
- (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
- String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
|
|
|
|
- .length -
|
|
|
|
- (String(
|
|
|
|
- this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
|
|
- ).indexOf('.') +
|
|
|
|
- 1) >
|
|
|
|
- 0)
|
|
|
|
|
|
+ (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
|
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
|
|
|
|
+ 2) || this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 || this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
|
|
|
|
|
|
+ message: '容重输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -1037,22 +1030,15 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (
|
|
|
|
- this.deptBudgetList.warehouseInOutDetail.bulkDensity < 1 ||
|
|
|
|
- this.deptBudgetList.warehouseInOutDetail.bulkDensity > 40 ||
|
|
|
|
- (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
- String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
|
|
|
|
- .length -
|
|
|
|
- (String(
|
|
|
|
- this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
|
|
- ).indexOf('.') +
|
|
|
|
- 1) >
|
|
|
|
- 0)
|
|
|
|
|
|
+ if (
|
|
|
|
+ (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
|
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
|
|
|
|
+ 2) || this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 || this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
|
|
|
|
|
|
+ message: '容重输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|