add 自动更新工单生产数量

This commit is contained in:
张江玮
2023-07-04 14:51:42 +08:00
parent c9d4c9223e
commit 00bbc04eaf
6 changed files with 127 additions and 27 deletions

View File

@@ -181,6 +181,7 @@
ref="table"
v-loading="crud.loading"
:data="crud.data"
:cell-style="cellStyle"
size="mini"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"
@@ -418,6 +419,15 @@ export default {
}, 100)
})
}
},
cellStyle({ row, column }) {
if (column.property === 'surplus_aux_qty') {
const auxQty = row.aux_qty
const surplusAuxQty = row.surplus_aux_qty
if (surplusAuxQty <= auxQty * 0.1) {
return 'background: red'
}
}
}
}
}