|
@@ -1646,25 +1646,25 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.weighingList.grossWeight < 1 || this.weighingList.grossWeight > 200000) {
|
|
|
- this.$message({
|
|
|
- message: '毛重输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.weighingList.grossWeight).indexOf('.') != -1 &&
|
|
|
- String(this.weighingList.grossWeight).length -
|
|
|
- (String(this.weighingList.grossWeight).indexOf('.') + 1) >
|
|
|
- 1
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '毛重输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.weighingList.grossWeight < 1 || this.weighingList.grossWeight > 200000) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '毛重输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.weighingList.grossWeight).indexOf('.') != -1 &&
|
|
|
+ // String(this.weighingList.grossWeight).length -
|
|
|
+ // (String(this.weighingList.grossWeight).indexOf('.') + 1) >
|
|
|
+ // 1
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '毛重输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (this.tpyeNo == 2) {
|
|
|
if (!this.weighingList.tare) {
|
|
|
this.$message({
|
|
@@ -1687,25 +1687,25 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.weighingList.tare < 1 || this.weighingList.tare > 100000) {
|
|
|
- this.$message({
|
|
|
- message: '皮重输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.weighingList.tare).indexOf('.') != -1 &&
|
|
|
- String(this.weighingList.tare).length -
|
|
|
- (String(this.weighingList.tare).indexOf('.') + 1) >
|
|
|
- 1
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '皮重输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.weighingList.tare < 1 || this.weighingList.tare > 100000) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '皮重输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.weighingList.tare).indexOf('.') != -1 &&
|
|
|
+ // String(this.weighingList.tare).length -
|
|
|
+ // (String(this.weighingList.tare).indexOf('.') + 1) >
|
|
|
+ // 1
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '皮重输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
|
|
|
if (Number(this.weighingList.netWeight < 0)) {
|
|
|
this.$message({
|