feat: add shared product group
This commit is contained in:
parent
dc84178e06
commit
795a87312e
4 changed files with 8 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ export default {
|
|||
due: 'Due',
|
||||
overDue: 'Overdue',
|
||||
status: 'Status',
|
||||
shared: 'Shared',
|
||||
},
|
||||
|
||||
menu: {
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ export default {
|
|||
due: 'ครบกำหนด',
|
||||
overDue: 'เลยกำหนด',
|
||||
status: 'สถานะ',
|
||||
shared: 'ใช้ร่วมกัน',
|
||||
},
|
||||
|
||||
menu: {
|
||||
|
|
|
|||
|
|
@ -244,6 +244,7 @@ const formDataGroup = ref<ProductGroupCreate>({
|
|||
detail: '',
|
||||
name: '',
|
||||
code: '',
|
||||
shared: false,
|
||||
registeredBranchId: '',
|
||||
});
|
||||
|
||||
|
|
@ -867,6 +868,7 @@ async function assignFormDataGroup(data: ProductGroup) {
|
|||
detail: data.detail,
|
||||
name: data.name,
|
||||
code: data.code,
|
||||
shared: data.shared,
|
||||
registeredBranchId: data.registeredBranchId,
|
||||
};
|
||||
|
||||
|
|
@ -3046,6 +3048,7 @@ watch(
|
|||
v-model:remark="formDataGroup.remark"
|
||||
v-model:name="formDataGroup.name"
|
||||
v-model:detail="formDataGroup.detail"
|
||||
v-model:shared="formDataGroup.shared"
|
||||
v-model:registered-branch-id="formDataGroup.registeredBranchId"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -3227,6 +3230,7 @@ watch(
|
|||
v-model:remark="formDataGroup.remark"
|
||||
v-model:name="formDataGroup.name"
|
||||
v-model:code="formDataGroup.code"
|
||||
v-model:shared="formDataGroup.shared"
|
||||
v-model:detail="formDataGroup.detail"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ export type ProductGroup = {
|
|||
name: string;
|
||||
detail: string;
|
||||
remark: string;
|
||||
shared: boolean;
|
||||
status: Status;
|
||||
registeredBranchId: string;
|
||||
registeredBranch: { id: string; name: string };
|
||||
|
|
@ -219,6 +220,7 @@ export interface ProductGroupCreate {
|
|||
detail: string;
|
||||
name: string;
|
||||
code: string;
|
||||
shared?: boolean;
|
||||
registeredBranchId: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue