Browse Source

库存预警颜色修改、备件最低最高库存校验、盘点计划增加删除按钮

master
songguoqiang 6 months ago
parent
commit
f4e303ca01
  1. 3
      src/views/eam/basic/item/index.vue
  2. 2
      src/views/eam/item/countadjustPlan/index.vue
  3. 22
      src/views/eam/report/itemWarning/index.vue

3
src/views/eam/basic/item/index.vue

@ -226,8 +226,9 @@ const formsSuccess = async (formType, data) => {
return item.field === 'maxInventory' || item.field === 'minInventory'
})
if (isHave) {
if (data.minInventory && data.maxInventory && data.minInventory >= data.maxInventory) {
if (data.minInventory && data.maxInventory && data.minInventory > data.maxInventory) {
message.error('最高库存要大于最低库存')
basicFormRef.value.formLoading = false
return false
}
}

2
src/views/eam/item/countadjustPlan/index.vue

@ -134,7 +134,7 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
// defaultButtons.mainListEditBtn({hasPermi:'eam:countadjustPlan:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'eam:countadjustPlan:delete'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:countadjustPlan:delete'}), //
]
// -

22
src/views/eam/report/itemWarning/index.vue

@ -10,7 +10,7 @@
<!-- 列表 -->
<ContentWrap>
<Table :columns="tableColumns" :stripe="false" :row-style="tableRowClassName" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{
<Table :columns="tableColumns" :stripe="false" :row-class-name="tableRowClassName" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{
total: tableObject.total
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
@ -257,14 +257,16 @@
function tableRowClassName({row, rowIndex}) {
console.log(row.classification);
if (row.classification =='A') {
return {
background: 'red !important'
};
// return {
// background: '#ff4800 !important'
// };
return 'red-row';
}
if (row.classification =='B') {
return {
background: 'yellow !important'
};
// return {
// background: 'yellow !important'
// };
return 'yellow-row';
}
return '';
}
@ -296,17 +298,13 @@
// color: white !important;
// }
::v-deep .el-table .red-row {
background: red !important;
background: #ff4800 !important;
}
::v-deep .el-table .yellow-row {
background: yellow !important;
}
::v-deep .el-table tr > red-row{
background: red !important;
}
// ::v-deep .el-table .red-row {
// --el-table-tr-bg-color: var(--el-color-warning-light-9) !important;
// }

Loading…
Cancel
Save