提交 33fe785f authored 作者: lidongxu's avatar lidongxu

style(promotion): 修复:店内执行上报_常规陈列端架数量和地堆下拉框超过计划数字变红效果

上级 c3a57d3f
...@@ -745,5 +745,9 @@ const tableRowStyle = ({ row }) => { ...@@ -745,5 +745,9 @@ const tableRowStyle = ({ row }) => {
input { input {
color: red !important; color: red !important;
} }
// 下拉框
.el-select__placeholder {
color: red !important;
}
} }
</style> </style>
\ No newline at end of file
...@@ -488,7 +488,8 @@ export const getDisplayConfig = (submitChange) => { ...@@ -488,7 +488,8 @@ export const getDisplayConfig = (submitChange) => {
submitChange(row, col); submitChange(row, col);
}} }}
disabled={disabled} disabled={disabled}
class={{ 'no-disabled': row[col.referenceKey] }} style={{ color: '#ff0000' }}
class={{ 'no-disabled': row[col.referenceKey], 'red-text': row[col.prop] > row[col.referenceKey] }}
placeholder="" placeholder=""
clearable> clearable>
{col.options.map(item => ( {col.options.map(item => (
...@@ -635,7 +636,7 @@ export const getDisplayConfig = (submitChange) => { ...@@ -635,7 +636,7 @@ export const getDisplayConfig = (submitChange) => {
submitChange(row, col); submitChange(row, col);
}} }}
disabled={!row.actualFloorStackArea || disabled} disabled={!row.actualFloorStackArea || disabled}
class={{ 'no-disabled': row.actualFloorStackArea && row[col.referenceKey] }} class={{ 'no-disabled': row.actualFloorStackArea && row[col.referenceKey], 'red-text': row[col.prop] > row[col.referenceKey] }}
placeholder="" placeholder=""
clearable> clearable>
{col.options.map(item => ( {col.options.map(item => (
...@@ -3316,17 +3317,17 @@ export const getSnackCofing = (submitChange) => { ...@@ -3316,17 +3317,17 @@ export const getSnackCofing = (submitChange) => {
"width": 150, "width": 150,
func: (row) => { func: (row) => {
if ((row.plannedDisplay && row.actualDisplay === '执行与计划一致')) { if ((row.plannedDisplay && row.actualDisplay === '执行与计划一致')) {
// 判断实际端架数量为 0 或者空时就是未执行,如果小于计划是部分执行,如果大于等于就是执行 // 判断端架数量实际>=端架数量计划时为执行
if (!row.actualEndCapQty || row.actualEndCapQty == 0) { if (row.actualEndCapQty >= row.plannedEndCapQty) {
row.snackDisplayExecuted = '未执行'
} else {
row.snackDisplayExecuted = '执行' row.snackDisplayExecuted = '执行'
} else {
row.snackDisplayExecuted = '未执行'
} }
} else { } else {
row.snackDisplayExecuted = '未执行' row.snackDisplayExecuted = '未执行'
} }
}, },
formulaStr: "公式:陈列形式执行,并且端架数量执行(某项无计划时,忽略该项)" formulaStr: "公式:陈列形式执行,并且端架数量实际>=端架数量计划(某项无计划时,忽略该项)"
}, },
{ {
"label": "计划 - 陈列费用", "label": "计划 - 陈列费用",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论