diff --git a/src/views/modules/part/bom_create.vue b/src/views/modules/part/bom_create.vue
index 657f37e..e093898 100644
--- a/src/views/modules/part/bom_create.vue
+++ b/src/views/modules/part/bom_create.vue
@@ -92,7 +92,7 @@
@@ -3134,12 +3134,12 @@ export default {
// 判断子物料工序是否选择
packageSaveData () {
// 检查单位用量是否为空
- const hasEmptyQty = this.subDetailList.some(item =>
- item.qtyPerAssembly === null ||
- item.qtyPerAssembly === '' ||
+ const hasEmptyQty = this.subDetailList.some(item =>
+ item.qtyPerAssembly === null ||
+ item.qtyPerAssembly === '' ||
item.qtyPerAssembly === undefined
)
-
+
if (hasEmptyQty) {
this.$alert('单位用量不允许为空,请填写完整后再保存!', '验证失败', {
confirmButtonText: '确定',
@@ -3147,7 +3147,7 @@ export default {
})
return
}
-
+
// 检查工序是否为空
const allAHasValue = this.subDetailList.every(item => item.operationId !== null && item.operationId !== '')
if (!allAHasValue) {
@@ -3915,11 +3915,11 @@ export default {
async batchUpdateComponentsSave() {
// 开启loading
this.batchUpdateSaveLoading = true
-
+
let flag = true
// 保存原始列表长度
const listLength = this.subDetailList.length
-
+
for (let i = 0; i < listLength; i++) {
// 每次从最新的列表中获取数据,因为前面的计算可能已经更新了列表
let row = this.subDetailList[i]
@@ -4036,7 +4036,7 @@ export default {
// 关闭loading
this.batchUpdateSaveLoading = false
-
+
if(flag) {
this.$message({
message: '批量修改并计算完成',
@@ -4214,7 +4214,7 @@ export default {
padding: 15px 0px 0px 0px;
}
/deep/ .sub_detail-tab .el-tabs__content {
- height: 280px;
+ height: 400px;
padding: 0px;
}