|
@@ -895,20 +895,21 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.unitContractPrice) {
|
|
|
+ if (!this.deptBudgetList.unitContractPrice && this.deptBudgetList.priceType == "定价采购") {
|
|
|
this.$message({
|
|
|
message: '请输入合同单价!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
if (
|
|
|
isNaN(this.deptBudgetList.unitContractPrice) ||
|
|
|
(String(this.deptBudgetList.unitContractPrice).indexOf('.') != -1 &&
|
|
|
String(this.deptBudgetList.unitContractPrice).length -
|
|
|
(String(this.deptBudgetList.unitContractPrice).indexOf('.') + 1) >
|
|
|
2) ||
|
|
|
- this.deptBudgetList.unitContractPrice <= 0 ||
|
|
|
+ this.deptBudgetList.unitContractPrice < 0 ||
|
|
|
this.deptBudgetList.unitContractPrice > 10000
|
|
|
) {
|
|
|
this.$message({
|
|
@@ -917,7 +918,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.totalContractPrice) {
|
|
|
+ if (!this.deptBudgetList.totalContractPrice && this.deptBudgetList.priceType == "定价采购") {
|
|
|
this.$message({
|
|
|
message: '请输入合同总价!',
|
|
|
type: 'warning',
|
|
@@ -930,7 +931,7 @@
|
|
|
String(this.deptBudgetList.totalContractPrice).length -
|
|
|
(String(this.deptBudgetList.totalContractPrice).indexOf('.') + 1) >
|
|
|
2) ||
|
|
|
- this.deptBudgetList.totalContractPrice <= 0 ||
|
|
|
+ this.deptBudgetList.totalContractPrice < 0 ||
|
|
|
this.deptBudgetList.totalContractPrice > 1000000000
|
|
|
) {
|
|
|
this.$message({
|