feat: แสดง service
This commit is contained in:
parent
37f1289b76
commit
21b4b25110
1 changed files with 39 additions and 0 deletions
|
|
@ -877,6 +877,7 @@ watch(currentStatus, async () => {
|
||||||
currentIdType = v.id;
|
currentIdType = v.id;
|
||||||
productMode = 'service';
|
productMode = 'service';
|
||||||
await fetchListOfProduct(currentIdType);
|
await fetchListOfProduct(currentIdType);
|
||||||
|
await fetchListOfService();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
@ -1081,6 +1082,11 @@ watch(currentStatus, async () => {
|
||||||
<div v-for="i in product" :key="i.id">
|
<div v-for="i in product" :key="i.id">
|
||||||
<TotalProductCardComponent
|
<TotalProductCardComponent
|
||||||
:data="i"
|
:data="i"
|
||||||
|
:key="i.id"
|
||||||
|
:code="i.code"
|
||||||
|
:price="i.price"
|
||||||
|
:process="i.process"
|
||||||
|
:id="i.id"
|
||||||
typeProduct="product"
|
typeProduct="product"
|
||||||
:title="i.name"
|
:title="i.name"
|
||||||
:status="i.status === 'INACTIVE' ? true : false"
|
:status="i.status === 'INACTIVE' ? true : false"
|
||||||
|
|
@ -1109,6 +1115,39 @@ watch(currentStatus, async () => {
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</AppBox>
|
</AppBox>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue