|
@@ -1433,19 +1433,20 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.cost) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.freight) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '运费不能为空',
|
|
message: '运费不能为空',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
if (
|
|
if (
|
|
- this.deptBudgetList.cost < 0 ||
|
|
|
|
- this.deptBudgetList.cost > 100000 ||
|
|
|
|
- (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.cost).length -
|
|
|
|
- (String(this.deptBudgetList.cost).indexOf('.') + 1) >
|
|
|
|
|
|
+ this.deptBudgetList.freight < 0 ||
|
|
|
|
+ this.deptBudgetList.freight > 100000 ||
|
|
|
|
+ (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.freight).length -
|
|
|
|
+ (String(this.deptBudgetList.freight).indexOf('.') + 1) >
|
|
2)
|
|
2)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|