forked from verdnatura/salix-front
perf: refs #6321 remove console
This commit is contained in:
parent
74c0c64d50
commit
c65f1524c6
|
@ -89,7 +89,6 @@ const columns = computed(() => [
|
|||
sortable: true,
|
||||
component: 'time',
|
||||
columnClass: 'shrink',
|
||||
attrs: { ON: { blur: (data) => console.error(data) } },
|
||||
columnFilter: {},
|
||||
},
|
||||
{
|
||||
|
@ -144,7 +143,7 @@ const getInputEvents = ({ col, ...rows }) => ({
|
|||
'update:modelValue': () => saveChange(col.name, rows),
|
||||
'keyup.enter': () => saveChange(col.name, rows),
|
||||
});
|
||||
const saveChange = async (field, { rowIndex, row }) => {
|
||||
const saveChange = async (field, { row }) => {
|
||||
try {
|
||||
switch (field) {
|
||||
case 'alertLevelCode':
|
||||
|
@ -159,10 +158,6 @@ const saveChange = async (field, { rowIndex, row }) => {
|
|||
quantity: +row.quantity,
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
console.error(field, { rowIndex, row });
|
||||
break;
|
||||
}
|
||||
notify('globals.dataSaved', 'positive');
|
||||
fetchItemLack.value.fetch();
|
||||
|
@ -173,10 +168,6 @@ const saveChange = async (field, { rowIndex, row }) => {
|
|||
};
|
||||
|
||||
const hasToIgnore = (row) => row.hasToIgnore === 1;
|
||||
const rowColor = (row) => {
|
||||
if (hasToIgnore(row)) return 'transparent';
|
||||
return 'negative';
|
||||
};
|
||||
function onBuysFetched(data) {
|
||||
Object.assign(item.value, data[0]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue