|
@@ -1025,13 +1025,13 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.contractGoodsInfo.impurity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请输入杂质',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.impurity) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '请输入杂质',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (
|
|
if (
|
|
this.deptBudgetList.contractGoodsInfo.impurity &&
|
|
this.deptBudgetList.contractGoodsInfo.impurity &&
|
|
String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') != -1 &&
|
|
@@ -1045,13 +1045,13 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请输入容重',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '请输入容重',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (
|
|
if (
|
|
(this.deptBudgetList.contractGoodsInfo.bulkDensity &&
|
|
(this.deptBudgetList.contractGoodsInfo.bulkDensity &&
|
|
String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') != -1 &&
|
|
@@ -1066,25 +1066,19 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请输入霉变粒',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) +
|
|
|
|
- 1) >
|
|
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.mildewGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
|
- .mildewGrain < 0)
|
|
|
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '请输入霉变粒',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.mildewGrain &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
|
|
|
|
+ (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf('.') + 1) >
|
|
|
|
+ 2 || this.deptBudgetList.contractGoodsInfo.mildewGrain > 40 || this.deptBudgetList.contractGoodsInfo.mildewGrain < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '霉变粒输入错误',
|
|
message: '霉变粒输入错误',
|
|
@@ -1092,24 +1086,19 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请输入热损伤',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '请输入热损伤',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (
|
|
if (
|
|
- !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
|
|
|
|
- -1 &&
|
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) +
|
|
|
|
- 1) >
|
|
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.jiaorenli > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
|
- .jiaorenli < 0)
|
|
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.jiaorenli &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
|
|
|
|
+ (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') + 1) >
|
|
|
|
+ 2 || this.deptBudgetList.contractGoodsInfo.jiaorenli > 40 || this.deptBudgetList.contractGoodsInfo.jiaorenli < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '热损伤输入错误',
|
|
message: '热损伤输入错误',
|
|
@@ -1117,25 +1106,19 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请输入不完善粒',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '请输入不完善粒',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (
|
|
if (
|
|
- !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
|
|
|
|
- (String(
|
|
|
|
- this.deptBudgetList.contractGoodsInfo.imperfectGrain
|
|
|
|
- ).indexOf('.') +
|
|
|
|
- 1) >
|
|
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.imperfectGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
|
- .imperfectGrain < 0)
|
|
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.imperfectGrain &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
|
|
|
|
+ (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf('.') + 1) >
|
|
|
|
+ 2 || this.deptBudgetList.contractGoodsInfo.imperfectGrain > 40 || this.deptBudgetList.contractGoodsInfo.imperfectGrain < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '不完善粒输入错误',
|
|
message: '不完善粒输入错误',
|
|
@@ -1143,6 +1126,8 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
if (
|
|
if (
|
|
(this.deptBudgetList.contractProcessInfo.waterContent > 10000000) ||
|
|
(this.deptBudgetList.contractProcessInfo.waterContent > 10000000) ||
|
|
(this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
|
|
(this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
|