clean code

This commit is contained in:
HAM!DREZA
2024-07-05 19:39:39 +03:30
parent ad7a4b839d
commit 852b6962c6
58 changed files with 911 additions and 2847 deletions
+4 -16
View File
@@ -69,12 +69,7 @@
</FloatLabel>
</div>
<!-- <div class="flex flex-col gap-1 my-custom-container inline">
<FloatLabel>
<InputText class="w-full" />
<label>{{ $t("تخفیف برای همه کاربران") }}</label>
</FloatLabel>
</div> -->
</div>
<div class="flex pt-4 justify-end">
@@ -93,16 +88,11 @@
<script setup>
import { useProductsStore } from "@/stores/products";
import { useDiscountStore } from "@/stores/discounts";
import { ref, watchEffect, reactive, inject } from "vue";
import moment from "moment-jalaali";
import { ref, reactive, inject } from "vue";
import { useRouter } from "vue-router";
const { dialog, confirm, toast, t } = inject("service");
const date = ref(null);
const date2 = ref(null);
const noe = ref("مبلغ");
const store = useProductsStore();
const { toast, t } = inject("service");
const discount = useDiscountStore();
const data = ref(null);
const type = ref(null);
const router = useRouter()
const setType = (val) => {
@@ -113,8 +103,6 @@ const setType = (val) => {
}
};
//const { dialog, confirm, toast, t } = inject("service");
const coupon = reactive({
startDate: "",
endDate: "",