|
@@ -741,12 +741,9 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (
|
|
|
- this.deptBudgetList.buyer.length < 4 ||
|
|
|
- this.deptBudgetList.buyer.length > 30
|
|
|
- ) {
|
|
|
+ if (this.deptBudgetList.buyer.length > 30) {
|
|
|
this.$message({
|
|
|
- message: '买方名称长度不符合要求,请输入4到30个字符之内!',
|
|
|
+ message: '买方名称长度不符合要求,请输入30个字符之内!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
@@ -758,12 +755,9 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (
|
|
|
- this.deptBudgetList.seller.length < 4 ||
|
|
|
- this.deptBudgetList.seller.length > 30
|
|
|
- ) {
|
|
|
+ if (this.deptBudgetList.seller.length > 30) {
|
|
|
this.$message({
|
|
|
- message: '卖方名称长度不符合要求,请输入4到30个字符之内!',
|
|
|
+ message: '卖方名称长度不符合要求,请输入30个字符之内!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
@@ -1033,8 +1027,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
if (
|
|
|
- (this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) |
|
|
|
- (this.deptBudgetList.contractProcessInfo.goodsNameKey < 0) ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000 ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.goodsNameKey < 0 ||
|
|
|
(String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
|
|
|
'.'
|
|
|
) != -1 &&
|
|
@@ -1052,9 +1046,9 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
if (
|
|
|
- (this.deptBudgetList.contractProcessInfo.waterContent > 10000000) |
|
|
|
- (this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
|
|
|
- (String(this.deptBudgetList.ccontractProcessInfo.waterContent).indexOf(
|
|
|
+ this.deptBudgetList.contractProcessInfo.waterContent > 10000000 ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.waterContent < 0 ||
|
|
|
+ (String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
|
|
|
'.'
|
|
|
) != -1 &&
|
|
|
String(this.deptBudgetList.contractProcessInfo.waterContent).length -
|
|
@@ -1071,8 +1065,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
if (
|
|
|
- (this.deptBudgetList.contractProcessInfo.goodsName > 1000000000) |
|
|
|
- (this.deptBudgetList.contractProcessInfo.goodsName < 0) ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.goodsName > 1000000000 ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.goodsName < 0 ||
|
|
|
(String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
|
|
|
'.'
|
|
|
) != -1 &&
|
|
@@ -1090,8 +1084,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
if (
|
|
|
- (this.deptBudgetList.contractProcessInfo.impurity > 1000000000) |
|
|
|
- (this.deptBudgetList.contractProcessInfo.impurity < 0) ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.impurity > 1000000000 ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.impurity < 0 ||
|
|
|
(String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
|
|
|
'.'
|
|
|
) != -1 &&
|
|
@@ -1109,8 +1103,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
if (
|
|
|
- (this.deptBudgetList.contractProcessInfo.imperfectGrain > 200000) |
|
|
|
- (this.deptBudgetList.contractProcessInfo.imperfectGrain < 0) ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.imperfectGrain > 200000 ||
|
|
|
+ this.deptBudgetList.contractProcessInfo.imperfectGrain < 0 ||
|
|
|
(String(this.deptBudgetList.contractProcessInfo.imperfectGrain).indexOf(
|
|
|
'.'
|
|
|
) != -1 &&
|