|
|
@ -55,7 +55,8 @@ |
|
|
v-model="scope.row.goodQty" |
|
|
v-model="scope.row.goodQty" |
|
|
@change="handleQtyChange(scope.row)" |
|
|
@change="handleQtyChange(scope.row)" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
class="good-qty-input"> |
|
|
|
|
|
|
|
|
class="good-qty-input" |
|
|
|
|
|
:style="{'color': '#67c23a', 'font-weight': 'bold'}"> |
|
|
</el-input-number> |
|
|
</el-input-number> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -66,7 +67,8 @@ |
|
|
v-model="scope.row.defectQty" |
|
|
v-model="scope.row.defectQty" |
|
|
@change="handleQtyChange(scope.row)" |
|
|
@change="handleQtyChange(scope.row)" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
class="defect-qty-input"> |
|
|
|
|
|
|
|
|
class="defect-qty-input" |
|
|
|
|
|
:style="{'color': '#f56c6c', 'font-weight': 'bold'}"> |
|
|
</el-input-number> |
|
|
</el-input-number> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -372,6 +374,15 @@ export default { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 检查每一行的良品数必须大于0 |
|
|
|
|
|
for (let i = 0; i < this.rowDataList.length; i++) { |
|
|
|
|
|
const row = this.rowDataList[i] |
|
|
|
|
|
if (row.goodQty === null || row.goodQty === undefined || row.goodQty <= 0) { |
|
|
|
|
|
this.$message.error(`第 ${i + 1} 排的良品数必须大于0`) |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return true |
|
|
return true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -594,24 +605,63 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* 良品数输入框样式 - 绿色加粗 */ |
|
|
/* 良品数输入框样式 - 绿色加粗 */ |
|
|
|
|
|
.good-qty-input >>> .el-input__inner { |
|
|
|
|
|
font-weight: bold !important; |
|
|
|
|
|
color: #67c23a !important; |
|
|
|
|
|
font-size: 12px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
::v-deep .good-qty-input .el-input__inner { |
|
|
::v-deep .good-qty-input .el-input__inner { |
|
|
font-weight: bold; |
|
|
|
|
|
|
|
|
font-weight: bold !important; |
|
|
|
|
|
color: #67c23a !important; |
|
|
|
|
|
font-size: 12px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .good-qty-input .el-input__inner { |
|
|
|
|
|
font-weight: bold !important; |
|
|
color: #67c23a !important; |
|
|
color: #67c23a !important; |
|
|
font-size: 16px; |
|
|
|
|
|
|
|
|
font-size: 12px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* 不良数输入框样式 - 红色加粗 */ |
|
|
/* 不良数输入框样式 - 红色加粗 */ |
|
|
|
|
|
.defect-qty-input >>> .el-input__inner { |
|
|
|
|
|
font-weight: bold !important; |
|
|
|
|
|
color: #f56c6c !important; |
|
|
|
|
|
font-size: 12px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
::v-deep .defect-qty-input .el-input__inner { |
|
|
::v-deep .defect-qty-input .el-input__inner { |
|
|
font-weight: bold; |
|
|
|
|
|
|
|
|
font-weight: bold !important; |
|
|
|
|
|
color: #f56c6c !important; |
|
|
|
|
|
font-size: 12px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .defect-qty-input .el-input__inner { |
|
|
|
|
|
font-weight: bold !important; |
|
|
color: #f56c6c !important; |
|
|
color: #f56c6c !important; |
|
|
font-size: 16px; |
|
|
|
|
|
|
|
|
font-size: 12px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* 总数显示样式 */ |
|
|
/* 总数显示样式 */ |
|
|
.total-display { |
|
|
.total-display { |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
color: #303133; |
|
|
color: #303133; |
|
|
font-size: 14px; |
|
|
|
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
|
|
/* 全局样式 - 良品数和不良数输入框颜色 */ |
|
|
|
|
|
.good-qty-input .el-input__inner { |
|
|
|
|
|
font-weight: bold !important; |
|
|
|
|
|
color: #67c23a !important; |
|
|
|
|
|
font-size: 16px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.defect-qty-input .el-input__inner { |
|
|
|
|
|
font-weight: bold !important; |
|
|
|
|
|
color: #f56c6c !important; |
|
|
|
|
|
font-size: 16px !important; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |