|
|
@ -53,7 +53,6 @@ |
|
|
highlight-current-row |
|
|
highlight-current-row |
|
|
@row-click="changeData" |
|
|
@row-click="changeData" |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
:row-class-name="mainTableRowClassName" |
|
|
|
|
|
style="margin-top: 0px; width: 100%;"> |
|
|
style="margin-top: 0px; width: 100%;"> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item,index) in columnArray1" :key="index" |
|
|
v-for="(item,index) in columnArray1" :key="index" |
|
|
@ -495,19 +494,6 @@ export default { |
|
|
this.currentRow = row ? JSON.parse(JSON.stringify(row)) : {} |
|
|
this.currentRow = row ? JSON.parse(JSON.stringify(row)) : {} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 主表格行样式(验货申请中有数量修改时标红) |
|
|
|
|
|
mainTableRowClassName ({ row }) { |
|
|
|
|
|
if (row.hasModifiedQty === true || |
|
|
|
|
|
row.hasModifiedQty === 'true' || |
|
|
|
|
|
row.hasModifiedQty === 'Y' || |
|
|
|
|
|
row.hasModifiedQty === 'y' || |
|
|
|
|
|
row.hasModifiedQty === 1 || |
|
|
|
|
|
row.hasModifiedQty === '1') { |
|
|
|
|
|
return 'modified-request-row' |
|
|
|
|
|
} |
|
|
|
|
|
return '' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 审核验货申请 |
|
|
// 审核验货申请 |
|
|
auditInspection (row) { |
|
|
auditInspection (row) { |
|
|
this.$confirm('确定要审核该验货申请吗?', '提示', { |
|
|
this.$confirm('确定要审核该验货申请吗?', '提示', { |
|
|
@ -598,22 +584,6 @@ export default { |
|
|
padding: 5px !important; |
|
|
padding: 5px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 主表格行样式 - 验货申请中有数量修改时标红 |
|
|
|
|
|
// 使用 ::v-deep 确保兼容性 |
|
|
|
|
|
::v-deep .el-table .modified-request-row { |
|
|
|
|
|
background-color: #fef0f0 !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 必须针对 td 进行设置,因为 Element 的背景色是挂在 td 上的 |
|
|
|
|
|
::v-deep .el-table .modified-request-row td { |
|
|
|
|
|
background-color: #fef0f0 !important; |
|
|
|
|
|
color: #f56c6c !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 针对鼠标悬停时的状态,防止被 hover 颜色覆盖 |
|
|
|
|
|
::v-deep .el-table .el-table__body tr.modified-request-row:hover > td { |
|
|
|
|
|
background-color: #fde2e2 !important; // 稍微深一点的红色以便区分 hover |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
<!-- 全局样式 - 仅对有 modified-request-row 类的行生效 --> |
|
|
<!-- 全局样式 - 仅对有 modified-request-row 类的行生效 --> |
|
|
|