refactor: refs #8684 clean up imports and remove console logs in ItemRequest component
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
d64788732e
commit
a9acc240e9
|
@ -1,10 +1,10 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, onMounted, nextTick } from 'vue';
|
import { ref, computed, onMounted } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { toCurrency } from 'filters/index';
|
import { toCurrency } from 'filters/index';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import { toDate } from 'src/filters';
|
import { toDate, dashIfEmpty } from 'src/filters';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
|
@ -15,7 +15,6 @@ import ItemRequestFilter from './ItemRequestFilter.vue';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
import FormModelPopup from 'src/components/FormModelPopup.vue';
|
import FormModelPopup from 'src/components/FormModelPopup.vue';
|
||||||
import ItemDescriptorProxy from './Card/ItemDescriptorProxy.vue';
|
import ItemDescriptorProxy from './Card/ItemDescriptorProxy.vue';
|
||||||
import { dashIfEmpty } from 'src/filters';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
|
@ -147,7 +146,6 @@ const columns = computed(() => [
|
||||||
if (itemFk && isOk === null) return true;
|
if (itemFk && isOk === null) return true;
|
||||||
},
|
},
|
||||||
beforeDestroy: (row) => {
|
beforeDestroy: (row) => {
|
||||||
console.log('row: ', row);
|
|
||||||
if (!row.saleQuantity) {
|
if (!row.saleQuantity) {
|
||||||
return tableRef.value.reload();
|
return tableRef.value.reload();
|
||||||
}
|
}
|
||||||
|
@ -162,7 +160,6 @@ const columns = computed(() => [
|
||||||
axios
|
axios
|
||||||
.get(`Items/findOne`, { where: { id: row.itemFk } })
|
.get(`Items/findOne`, { where: { id: row.itemFk } })
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
console.log('response: ', response);
|
|
||||||
row.itemDescription = response.data.name;
|
row.itemDescription = response.data.name;
|
||||||
row.state = 1;
|
row.state = 1;
|
||||||
});
|
});
|
||||||
|
@ -247,7 +244,6 @@ const showDenyRequestForm = (requestId) => {
|
||||||
denyFormRef.value.show();
|
denyFormRef.value.show();
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<RightMenu>
|
<RightMenu>
|
||||||
<template #right-panel>
|
<template #right-panel>
|
||||||
|
@ -330,7 +326,6 @@ const showDenyRequestForm = (requestId) => {
|
||||||
</FormModelPopup>
|
</FormModelPopup>
|
||||||
</QDialog>
|
</QDialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
Discard: Descartar
|
Discard: Descartar
|
||||||
|
|
Loading…
Reference in New Issue