Browse Source

RFQ 高度

java8
han\hanst 3 months ago
parent
commit
57985ce905
  1. 20
      src/views/modules/part/bom_create.vue

20
src/views/modules/part/bom_create.vue

@ -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>
Loading…
Cancel
Save