|
@@ -895,20 +895,21 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.unitContractPrice) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.unitContractPrice && this.deptBudgetList.priceType == "定价采购") {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请输入合同单价!',
|
|
message: '请输入合同单价!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
if (
|
|
if (
|
|
isNaN(this.deptBudgetList.unitContractPrice) ||
|
|
isNaN(this.deptBudgetList.unitContractPrice) ||
|
|
(String(this.deptBudgetList.unitContractPrice).indexOf('.') != -1 &&
|
|
(String(this.deptBudgetList.unitContractPrice).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.unitContractPrice).length -
|
|
String(this.deptBudgetList.unitContractPrice).length -
|
|
(String(this.deptBudgetList.unitContractPrice).indexOf('.') + 1) >
|
|
(String(this.deptBudgetList.unitContractPrice).indexOf('.') + 1) >
|
|
2) ||
|
|
2) ||
|
|
- this.deptBudgetList.unitContractPrice <= 0 ||
|
|
|
|
|
|
+ this.deptBudgetList.unitContractPrice < 0 ||
|
|
this.deptBudgetList.unitContractPrice > 10000
|
|
this.deptBudgetList.unitContractPrice > 10000
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -917,7 +918,7 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.totalContractPrice) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.totalContractPrice && this.deptBudgetList.priceType == "定价采购") {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请输入合同总价!',
|
|
message: '请输入合同总价!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -930,7 +931,7 @@
|
|
String(this.deptBudgetList.totalContractPrice).length -
|
|
String(this.deptBudgetList.totalContractPrice).length -
|
|
(String(this.deptBudgetList.totalContractPrice).indexOf('.') + 1) >
|
|
(String(this.deptBudgetList.totalContractPrice).indexOf('.') + 1) >
|
|
2) ||
|
|
2) ||
|
|
- this.deptBudgetList.totalContractPrice <= 0 ||
|
|
|
|
|
|
+ this.deptBudgetList.totalContractPrice < 0 ||
|
|
this.deptBudgetList.totalContractPrice > 1000000000
|
|
this.deptBudgetList.totalContractPrice > 1000000000
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -997,13 +998,13 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请输入水分',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '请输入水分',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (
|
|
if (
|
|
this.deptBudgetList.contractGoodsInfo.waterContent &&
|
|
this.deptBudgetList.contractGoodsInfo.waterContent &&
|
|
String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf('.') != -1 &&
|
|
@@ -1025,13 +1026,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 +1046,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 +1067,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 +1087,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 +1107,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 +1127,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) ||
|