feat: by ค่า
This commit is contained in:
parent
2b0d1a2e4a
commit
9b6aaebe97
1 changed files with 9 additions and 9 deletions
|
|
@ -2,7 +2,14 @@
|
||||||
import { Icon } from '@iconify/vue';
|
import { Icon } from '@iconify/vue';
|
||||||
import { formatNumberDecimal } from 'src/stores/utils';
|
import { formatNumberDecimal } from 'src/stores/utils';
|
||||||
|
|
||||||
|
import useProductServiceStore from 'src/stores/product-service';
|
||||||
import { ProductList } from 'src/stores/product-service/types';
|
import { ProductList } from 'src/stores/product-service/types';
|
||||||
|
import { storeToRefs } from 'pinia';
|
||||||
|
|
||||||
|
const productServiceStore = useProductServiceStore();
|
||||||
|
|
||||||
|
const { fetchListOfWork } = productServiceStore;
|
||||||
|
const { workNameItems } = storeToRefs(productServiceStore);
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
workIndex: number;
|
workIndex: number;
|
||||||
|
|
@ -18,14 +25,6 @@ const productItems = defineModel<(ProductList & { nameEn: string })[]>(
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const testName = [
|
|
||||||
'ทดสอบการขาย 1',
|
|
||||||
'ทดสอบการขาย 2',
|
|
||||||
'ทดสอบการขาย 3',
|
|
||||||
'ทดสอบการขาย 4',
|
|
||||||
'ทดสอบการขาย 5',
|
|
||||||
];
|
|
||||||
|
|
||||||
defineEmits<{
|
defineEmits<{
|
||||||
(e: 'moveWorkUp'): void;
|
(e: 'moveWorkUp'): void;
|
||||||
(e: 'moveWorkDown'): void;
|
(e: 'moveWorkDown'): void;
|
||||||
|
|
@ -76,6 +75,7 @@ defineEmits<{
|
||||||
:placeholder="$t('workName')"
|
:placeholder="$t('workName')"
|
||||||
:input-style="'color: hsl(var(--text-mute-2))'"
|
:input-style="'color: hsl(var(--text-mute-2))'"
|
||||||
style="background-color: var(--surface-1); z-index: 2"
|
style="background-color: var(--surface-1); z-index: 2"
|
||||||
|
@click="fetchListOfWork()"
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
dense
|
dense
|
||||||
|
|
@ -120,7 +120,7 @@ defineEmits<{
|
||||||
<q-item
|
<q-item
|
||||||
@click="workName = item"
|
@click="workName = item"
|
||||||
clickable
|
clickable
|
||||||
v-for="item in testName"
|
v-for="item in workNameItems"
|
||||||
:key="item"
|
:key="item"
|
||||||
>
|
>
|
||||||
<div class="full-width flex items-center">
|
<div class="full-width flex items-center">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue