diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 7720f10f..345d2e9e 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -393,7 +393,10 @@ async function openProductServiceTree(node: Node, anchestor?: Node[]) { id: w.id, title: w.name, subtitle: ' ', - attributes: w.attributes, + attributes: { + additional: w.attributes.additional, + showTotalPrice: w.attributes.showTotalPrice, + }, type: 'work', displayDropIcon: w.productOnWork.length > 0, children: w.productOnWork.map((p) => ({ diff --git a/src/pages/05_quotation/ProductServiceForm.vue b/src/pages/05_quotation/ProductServiceForm.vue index bc83c760..1d54335e 100644 --- a/src/pages/05_quotation/ProductServiceForm.vue +++ b/src/pages/05_quotation/ProductServiceForm.vue @@ -2,12 +2,7 @@ import DialogForm from 'src/components/DialogForm.vue'; import { onMounted, ref, watch } from 'vue'; import TreeView from 'src/components/shared/TreeView.vue'; - -import { - ProductGroup, - ProductList, - Service, -} from 'src/stores/product-service/types'; +import useOptionStore from 'stores/options'; type Node = { [key: string]: any; @@ -23,6 +18,7 @@ defineEmits<{ (e: 'open', node: Node, ancestorNode?: Node[]): void; }>(); +const optionStore = useOptionStore(); const model = defineModel(); const inputSearch = defineModel('inputSearch'); const nodes = defineModel('nodes', { default: [] }); @@ -84,9 +80,25 @@ watch( {{ $t('productService.group.title') }} -
- - waiting for tree +
+
@@ -253,7 +265,7 @@ watch( -
+
{{ @@ -269,7 +281,9 @@ watch( }) }} - + @@ -291,11 +305,26 @@ watch( v-if="currentSelectedType !== 'work'" class="surface-3 q-pa-md" > - - + {{ currentSelectedNode[0].remark || '-' }} @@ -326,4 +355,9 @@ watch( .info-slide-leave-to { transform: translate(100%, 0); } + +.active-nav { + background: hsla(var(--info-bg) / 0.1); + color: hsl(var(--info-bg)); +}