fix: แก้ กดดู สินค้าและบริการไม่ได้

This commit is contained in:
Net 2024-07-15 16:05:40 +07:00
parent c54e26c59a
commit 389876efb3

View file

@ -1410,7 +1410,7 @@ watch(inputSearchProductAndService, async () => {
if (node.type === 'group' && node._count.type > 0) {
pathGroupName = node.name;
currentId = node.id;
productMode = 'type';
await fetchListType();
expandedTree.push(node.id);
flowStore.rotate();
@ -1421,6 +1421,8 @@ watch(inputSearchProductAndService, async () => {
:class="{
'cursor-pointer':
node.type === 'group' && node._count.type > 0,
'selector-tree':
node.type === 'group' && node._count.type > 0,
}"
>
<div class="col row full-width">
@ -3125,17 +3127,15 @@ watch(inputSearchProductAndService, async () => {
v-model:drawerOpen="drawerInfo"
:title="
$t(
editByTree !== undefined
? editByTree === 'group'
? 'productGroup'
: editByTree === 'type'
? 'productType'
: undefined
: productMode === 'group'
? 'productGroup'
: productMode === 'type'
? 'productType'
: undefined,
editByTree === 'group'
? 'productGroup'
: editByTree === 'type'
? 'productType'
: productMode === 'group'
? 'productGroup'
: productMode === 'type'
? 'productType'
: 'defaultKey',
{
name: formDataGroup.code,
},