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