feat: แสดง service

This commit is contained in:
Net 2024-06-21 11:40:42 +07:00
parent 37f1289b76
commit 21b4b25110

View file

@ -877,6 +877,7 @@ watch(currentStatus, async () => {
currentIdType = v.id;
productMode = 'service';
await fetchListOfProduct(currentIdType);
await fetchListOfService();
}
"
/>
@ -1081,6 +1082,11 @@ watch(currentStatus, async () => {
<div v-for="i in product" :key="i.id">
<TotalProductCardComponent
:data="i"
:key="i.id"
:code="i.code"
:price="i.price"
:process="i.process"
:id="i.id"
typeProduct="product"
:title="i.name"
:status="i.status === 'INACTIVE' ? true : false"
@ -1109,6 +1115,39 @@ watch(currentStatus, async () => {
"
/>
</div>
<div v-for="i in service" :key="i.id">
<TotalProductCardComponent
typeProduct="service"
:code="i.code"
:id="i.id"
:title="i.name"
:status="i.status === 'INACTIVE' ? true : false"
@menuViewDetail="
() => {
currentIdProduct = i.id;
assignFormDataProductService(i.id);
dialogProductEdit = true;
}
"
@menuEdit="
() => {
currentIdProduct = i.id;
infoProductEdit = true;
assignFormDataProductService(i.id);
dialogProductEdit = true;
}
"
@viewDetail="
() => {
currentIdProduct = i.id;
infoProductEdit = false;
assignFormDataProductService(i.id);
dialogProductEdit = true;
}
"
/>
</div>
</div>
</AppBox>
</div>