|
@@ -1124,13 +1124,13 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.weighingList.storageNumber) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '囤位号不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.weighingList.storageNumber) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '囤位号不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (!this.weighingList.contractPrice && this.weighingList.inOutType != '移库出库') {
|
|
if (!this.weighingList.contractPrice && this.weighingList.inOutType != '移库出库') {
|
|
this.$message({
|
|
this.$message({
|
|
message: '价格不能为空',
|
|
message: '价格不能为空',
|
|
@@ -1139,8 +1139,8 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.weighingList.storageNumber.length < 1 ||
|
|
|
|
- this.weighingList.storageNumber.length > 10
|
|
|
|
|
|
+ this.weighingList.storageNumber&&this.weighingList.storageNumber.length < 1 ||
|
|
|
|
+ this.weighingList.storageNumber&&this.weighingList.storageNumber.length > 10
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '囤位号不超过10个字符!',
|
|
message: '囤位号不超过10个字符!',
|