零件信息问题修改逻辑调整

dev-scheduling
zhangdi 2 months ago
parent b9d305167d
commit f5e6ac77d3
  1. 19
      src/views/processManagement/components/processMainte/dsPartBasicInfo.vue

@ -698,6 +698,25 @@ export default {
} }
} }
} }
// 🔴
for (const item of this.data) {
// 1.
if (item.area === null || item.area === undefined || item.area === '') {
this.$message.warning(`子件【${item.partName}】的面积不能为空`);
this.submitLoading = false;
return;
}
// 2. 1
if (item.sinTerType !== 2) {
const areaValue = parseFloat(item.area);
if (isNaN(areaValue) || areaValue > 1) {
this.$message.warning(`子件【${item.partName}】非壳体类型,面积不能大于1`);
this.submitLoading = false;
return;
}
}
}
this.formData.childPage = this.childPage; this.formData.childPage = this.childPage;
this.formData.psId = this.psId; this.formData.psId = this.psId;

Loading…
Cancel
Save