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,
|
sortable: true,
|
||||||
component: 'time',
|
component: 'time',
|
||||||
columnClass: 'shrink',
|
columnClass: 'shrink',
|
||||||
attrs: { ON: { blur: (data) => console.error(data) } },
|
|
||||||
columnFilter: {},
|
columnFilter: {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -144,7 +143,7 @@ const getInputEvents = ({ col, ...rows }) => ({
|
||||||
'update:modelValue': () => saveChange(col.name, rows),
|
'update:modelValue': () => saveChange(col.name, rows),
|
||||||
'keyup.enter': () => saveChange(col.name, rows),
|
'keyup.enter': () => saveChange(col.name, rows),
|
||||||
});
|
});
|
||||||
const saveChange = async (field, { rowIndex, row }) => {
|
const saveChange = async (field, { row }) => {
|
||||||
try {
|
try {
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case 'alertLevelCode':
|
case 'alertLevelCode':
|
||||||
|
@ -159,10 +158,6 @@ const saveChange = async (field, { rowIndex, row }) => {
|
||||||
quantity: +row.quantity,
|
quantity: +row.quantity,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
console.error(field, { rowIndex, row });
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
notify('globals.dataSaved', 'positive');
|
notify('globals.dataSaved', 'positive');
|
||||||
fetchItemLack.value.fetch();
|
fetchItemLack.value.fetch();
|
||||||
|
@ -173,10 +168,6 @@ const saveChange = async (field, { rowIndex, row }) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const hasToIgnore = (row) => row.hasToIgnore === 1;
|
const hasToIgnore = (row) => row.hasToIgnore === 1;
|
||||||
const rowColor = (row) => {
|
|
||||||
if (hasToIgnore(row)) return 'transparent';
|
|
||||||
return 'negative';
|
|
||||||
};
|
|
||||||
function onBuysFetched(data) {
|
function onBuysFetched(data) {
|
||||||
Object.assign(item.value, data[0]);
|
Object.assign(item.value, data[0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue