refactor: เพิ่ม สาขาต่อสร้าง
This commit is contained in:
parent
11f90445f8
commit
0651f374ac
2 changed files with 71 additions and 19 deletions
|
|
@ -1,8 +1,10 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch } from 'vue';
|
||||
|
||||
import { Status } from 'src/stores/types';
|
||||
import useCustomerStore from 'src/stores/customer';
|
||||
import useFlowStore from 'src/stores/flow';
|
||||
|
||||
import { Status } from 'src/stores/types';
|
||||
import { CustomerBranch, CustomerType } from 'src/stores/customer/types';
|
||||
|
||||
import AppBox from 'components/app/AppBox.vue';
|
||||
|
|
@ -10,8 +12,10 @@ import BranchCardCustomer from 'components/03_customer-management/BranchCardCust
|
|||
import PaginationComponent from 'src/components/PaginationComponent.vue';
|
||||
import NoData from 'components/NoData.vue';
|
||||
|
||||
const flowStore = useFlowStore();
|
||||
|
||||
const userCustomer = useCustomerStore();
|
||||
const { fetchListBranch } = userCustomer;
|
||||
const { fetchListCustomeBranch } = userCustomer;
|
||||
|
||||
const inputSearch = ref<string>('');
|
||||
|
||||
|
|
@ -52,7 +56,7 @@ onMounted(async () => {
|
|||
});
|
||||
|
||||
async function fetchList() {
|
||||
const result = await fetchListBranch({
|
||||
const result = await fetchListCustomeBranch({
|
||||
customerId: prop.customerId,
|
||||
query: !!inputSearch.value ? inputSearch.value : undefined,
|
||||
page: currentPageBranch.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue