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