|
@@ -543,7 +543,7 @@
|
|
this.stockSaleReceiptReport.money = this.money
|
|
this.stockSaleReceiptReport.money = this.money
|
|
this.stockSaleReceiptReport.collectionDate = this.collectionDate
|
|
this.stockSaleReceiptReport.collectionDate = this.collectionDate
|
|
if (
|
|
if (
|
|
- this.money < 0 ||
|
|
|
|
|
|
+ this.money == 0 ||
|
|
(String(this.money).indexOf('.') != -1 &&
|
|
(String(this.money).indexOf('.') != -1 &&
|
|
String(this.money).length - (String(this.money).indexOf('.') + 1) >
|
|
String(this.money).length - (String(this.money).indexOf('.') + 1) >
|
|
2)
|
|
2)
|
|
@@ -570,13 +570,13 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.money > this.uncollectedAmount) {
|
|
|
|
|
|
+ if (this.money >= 0&&this.money > this.uncollectedAmount) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '收款金额不能大于未收金额!',
|
|
message: '收款金额不能大于未收金额!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
- }
|
|
|
|
|
|
+ }
|
|
this.$confirm(`确定提交收款信息?`, {
|
|
this.$confirm(`确定提交收款信息?`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|