|
|
@ -430,15 +430,11 @@ export default {
|
|
|
|
this.submitFunction(status);
|
|
|
|
this.submitFunction(status);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
for (let i = 0; i < this.codeArray.length; i++) {
|
|
|
|
for (let i = 0; i < this.codeArray.length; i++) {
|
|
|
|
// if (this.$isBlank(this.codeArray[i].batchNo)) {
|
|
|
|
|
|
|
|
// if (!this.codeArray[i].allowNoBatch) {
|
|
|
|
|
|
|
|
// return this.$message.error('批次号不能为空');
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
|
|
|
|
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
|
|
|
|
return this.$message.error('生产日期与失效日期不能全部为空');
|
|
|
|
return this.$message.error('生产日期与失效日期不能全部为空');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount === '0') {
|
|
|
|
if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) {
|
|
|
|
return this.$message.error('配货数量不能小于0');
|
|
|
|
return this.$message.error('配货数量不能小于0');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.detailCountMax) {
|
|
|
|
if (this.detailCountMax) {
|
|
|
|