21/8/1404

This commit is contained in:
2025-11-12 20:53:44 +03:30
parent d6c507c1bd
commit b7a1db6157
8 changed files with 28 additions and 21 deletions
@@ -1,34 +1,34 @@
<template>
<div class="rounded-lg shadow-md mx-2 bg-gradient-to-l from-primary rounded-lg p-[2px] to-transparent ">
<div class="rounded-lg shadow-md mx-2 bg-gradient-to-l from-primary rounded-lg p-[2px] to-transparent ">
<div class="rounded-lg flex flex-col gap-2 bg-white p-2 ">
<div class="flex justify-between ">
<div class="font-bold">شماره سند: {{ props.item.id }}</div>
<div class="font-bold">{{ toJalali(props.item.created_at) }}</div>
<div class="font-bold">{{ toJalali(props?.item?.created_at) }}</div>
</div>
<div class="flex justify-between">
<div class="flex flex-col w-full gap-1 ">
<div class="w-full flex justify-between" v-for="item in props.item.transaction">
<div class="flex items-center gap-1 ">
<div class="flex items-center gap-1">
<div class="w-7 h-7 flex justify-center rounded-lg bg-gray-100 ">
<img width="30" class="p-1" :src="item.product.group_type=='گوی'?goyImg:mokaabImg">
</div>
<div>{{ item.title }}</div>
<div class="text-xs">{{ item?.title }}</div>
</div>
<div>{{ item.gold * -1 }} عدد</div>
<div class="text-xs" style="align-content: center;">{{ item?.gold * -1 }} عدد</div>
</div>
</div>
</div>
<div class="flex justify-between">
<div class="font-bold">وضعیت:</div>
<ATag color="blue" class="!py-1 !px-2 !ml-0">
{{ props.item.sts_str }}
{{ props?.item?.sts_str }}
</ATag>
</div>
<ADivider class="!m-1"></ADivider>
<div class="flex flex-col justify-between">
<ADivider v-if="props?.item?.address" class="!m-1"></ADivider>
<div v-if="props?.item?.address" class="flex flex-col justify-between">
<div class="font-bold">آدرس:</div>
<div>{{ props.item.address.province }}/{{ props.item.address.city }}/{{ props.item.address.address }}</div>
<div>{{ props?.item?.address?.province }}/{{ props?.item?.address?.city }}/{{ props?.item?.address?.address }}</div>
</div>
</div>
@@ -26,7 +26,6 @@ import {onMounted, ref} from "vue";
import {getPhysicalReceiveList} from "@/api/physicalreceive";
import type {Physicalreceive} from "@/models/physicalreceive";
import RequestItem from "@/views/base/physicalReceive/components/RequestItem.vue";
import BasicIcon from "@/components/BasicPacks/BasicIcon.vue";
import router from "@/router";
const requestItems = ref<Physicalreceive[]>([])
@@ -36,7 +35,7 @@ const openAdd = () => {
onMounted(async () => {
let {rows} = await getPhysicalReceiveList()
requestItems.value = rows
console.log(rows)
console.log('rows',requestItems.value)
})
</script>