fix: แก้ไขสาขาไม่ได้

This commit is contained in:
Net 2024-07-05 09:34:17 +07:00
parent 47c6a7dc2d
commit f8ec82626c

View file

@ -336,11 +336,13 @@ const useCustomerStore = defineStore('api-customer', () => {
transactionId?: string; transactionId?: string;
}, },
) { ) {
const { code, branchNo, ...playload } = data;
const res = await api.put< const res = await api.put<
Customer & { Customer & {
branch: CustomerBranch[]; branch: CustomerBranch[];
} }
>(`/customer-branch/${id}`, data, { >(`/customer-branch/${id}`, playload, {
headers: { headers: {
'X-Session-Id': flow?.sessionId, 'X-Session-Id': flow?.sessionId,
'X-Rtid': flow?.refTransactionId || flowStore.rtid, 'X-Rtid': flow?.refTransactionId || flowStore.rtid,