|
|
|
|
@ -176,7 +176,7 @@ |
|
|
|
|
<el-row :gutter="24"> |
|
|
|
|
<el-col :span="16"> |
|
|
|
|
<!-- prop="craftWay" --> |
|
|
|
|
<el-form-item label="工艺路线:" > |
|
|
|
|
<el-form-item label="工艺路线:"> |
|
|
|
|
{{ formData.craftWay }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
@ -698,7 +698,26 @@ 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.psId = this.psId; |
|
|
|
|
|
|
|
|
|
|