|
@@ -829,10 +829,10 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.impurity!=''&&this.dataList.impurity!=undefined&&String(this.dataList.impurity).indexOf('.') != -1 &&
|
|
|
|
|
|
+ this.dataList.impurity&&String(this.dataList.impurity).indexOf('.') != -1 &&
|
|
String(this.dataList.impurity).length -
|
|
String(this.dataList.impurity).length -
|
|
(String(this.dataList.impurity).indexOf('.') + 1) >2
|
|
(String(this.dataList.impurity).indexOf('.') + 1) >2
|
|
- ||this.dataList.impurity>40||this.dataList.impurity<1) {
|
|
|
|
|
|
+ ||this.dataList.impurity&&this.dataList.impurity>40||this.dataList.impurity&&this.dataList.impurity<1) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '杂质输入错误',
|
|
message: '杂质输入错误',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -840,10 +840,10 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.mildewGrain!=''&&this.dataList.mildewGrain!=undefined&&String(this.dataList.mildewGrain).indexOf('.') != -1 &&
|
|
|
|
|
|
+ this.dataList.mildewGrain&&String(this.dataList.mildewGrain).indexOf('.') != -1 &&
|
|
String(this.dataList.mildewGrain).length -
|
|
String(this.dataList.mildewGrain).length -
|
|
(String(this.dataList.mildewGrain).indexOf('.') + 1) >
|
|
(String(this.dataList.mildewGrain).indexOf('.') + 1) >
|
|
- 2||this.dataList.mildewGrain>40||this.dataList.mildewGrain<1) {
|
|
|
|
|
|
+ 2||this.dataList.mildewGrain&&this.dataList.mildewGrain>40||this.dataList.mildewGrain&&this.dataList.mildewGrain<1) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '霉变粒输入错误',
|
|
message: '霉变粒输入错误',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -851,10 +851,10 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.jiaorenli!=''&&this.dataList.jiaorenli!=undefined&&String(this.dataList.jiaorenli).indexOf('.') != -1 &&
|
|
|
|
|
|
+ this.dataList.jiaorenli&&String(this.dataList.jiaorenli).indexOf('.') != -1 &&
|
|
String(this.dataList.jiaorenli).length -
|
|
String(this.dataList.jiaorenli).length -
|
|
(String(this.dataList.jiaorenli).indexOf('.') + 1) >
|
|
(String(this.dataList.jiaorenli).indexOf('.') + 1) >
|
|
- 2||this.dataList.jiaorenli>40||this.dataList.jiaorenli<1) {
|
|
|
|
|
|
+ 2||this.dataList.jiaorenli&&this.dataList.jiaorenli>40||this.dataList.jiaorenli&&this.dataList.jiaorenli<1) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '热损伤输入错误',
|
|
message: '热损伤输入错误',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -862,10 +862,10 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.imperfectGrain!=''&&this.dataList.imperfectGrain!=undefined&&String(this.dataList.imperfectGrain).indexOf('.') != -1 &&
|
|
|
|
|
|
+ this.dataList.imperfectGrain&&String(this.dataList.imperfectGrain).indexOf('.') != -1 &&
|
|
String(this.dataList.imperfectGrain).length -
|
|
String(this.dataList.imperfectGrain).length -
|
|
(String(this.dataList.imperfectGrain).indexOf('.') + 1) >
|
|
(String(this.dataList.imperfectGrain).indexOf('.') + 1) >
|
|
- 2||this.dataList.imperfectGrain>40||this.dataList.imperfectGrain<1) {
|
|
|
|
|
|
+ 2||this.dataList.imperfectGrain&&this.dataList.imperfectGrain>40||this.dataList.imperfectGrain&&this.dataList.imperfectGrain<1) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '不完善粒输入错误',
|
|
message: '不完善粒输入错误',
|
|
type: 'warning'
|
|
type: 'warning'
|