diff --git a/src/views/modules/eam/com_project_proof_record.vue b/src/views/modules/eam/com_project_proof_record.vue index 8a54e86..34cecdf 100644 --- a/src/views/modules/eam/com_project_proof_record.vue +++ b/src/views/modules/eam/com_project_proof_record.vue @@ -1151,6 +1151,13 @@ }) return } + // 数量必须是大于等于0的正整数 + if (!/^[1-9]\d*$/.test(this.modalData.proofingNumber)) { + this.$alert('数量必需是大于等于0的正整数', '提示', { + confirmButtonText: '确定', + }); + return + } if (this.modalData.planStartDate === '' || this.modalData.planStartDate === null || this.modalData.planStartDate === undefined) { this.$message({ message: '打样开始日期不能为空', @@ -1386,6 +1393,13 @@ }) return } + // 数量必须是大于等于0的正整数 + if (!/^[1-9]\d*$/.test(this.modalData.proofingNumber)) { + this.$alert('数量必需是大于等于0的正整数', '提示', { + confirmButtonText: '确定', + }); + return + } if (this.modalData.planStartDate === '' || this.modalData.planStartDate === null || this.modalData.planStartDate === undefined) { this.$message({ message: '打样开始日期不能为空',