chore: clean unused

This commit is contained in:
Methapon Metanipat 2024-10-15 17:27:23 +07:00
parent b45d3929ae
commit 84828a6347

View file

@ -1,8 +1,6 @@
<script lang="ts" setup>
import { Icon } from '@iconify/vue';
import { QSelect } from 'quasar';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import { onMounted, ref, watch } from 'vue';
import { ref, watch } from 'vue';
import { useI18n } from 'vue-i18n';
import { formatNumberDecimal, commaInput } from 'stores/utils';
@ -12,7 +10,6 @@ import AppBox from 'components/app/AppBox.vue';
import DatePicker from 'src/components/shared/DatePicker.vue';
import SelectInput from 'src/components/shared/SelectInput.vue';
import useOptionStore from 'src/stores/options';
import { storeToRefs } from 'pinia';
import { precisionRound } from 'src/utils/arithmetic';
@ -51,7 +48,6 @@ const payType = defineModel<'Full' | 'Split' | 'BillFull' | 'BillSplit'>(
const paySplitCount = defineModel<number | null>('paySplitCount', {
default: 1,
});
const payBank = defineModel<string>('payBank', { required: true });
const paySplit = defineModel<
{ no: number; date: string | Date | null; amount: number }[]
>('paySplit', { required: true });
@ -70,8 +66,6 @@ const summaryPrice = defineModel<{
},
});
const optionStore = useOptionStore();
const finalDiscount = defineModel<number>('finalDiscount', { default: 0 });
const finalDiscount4Show = ref<string>(finalDiscount.value.toString());
@ -96,32 +90,6 @@ const payTypeOpion = ref([
const amount4Show = ref<string[]>([]);
// const bankBookOptions = ref<Record<string, unknown>[]>([]);
// let bankBoookFilter: (
// value: string,
// update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
// ) => void;
// onMounted(() => {
// if (optionStore.globalOption) {
// bankBoookFilter = selectFilterOptionRefMod(
// ref(optionStore.globalOption.bankBook),
// bankBookOptions,
// 'label',
// );
// }
// });
// watch(
// () => optionStore.globalOption,
// () => {
// bankBoookFilter = selectFilterOptionRefMod(
// ref(optionStore.globalOption.bankBook),
// bankBookOptions,
// 'label',
// );
// },
// );
function calculateInstallments(param: {
customIndex?: number;
customAmount?: number;