refactor: by ค่า registeredBranchId
This commit is contained in:
parent
b5925cb6ee
commit
417f3ef422
1 changed files with 13 additions and 0 deletions
|
|
@ -810,6 +810,11 @@ async function submitService() {
|
|||
|
||||
if (dialogService.value) {
|
||||
formDataProductService.value.productTypeId = currentIdType.value;
|
||||
|
||||
if (formDataProductService.value.registeredBranchId === '') {
|
||||
formDataProductService.value.registeredBranchId = null;
|
||||
}
|
||||
|
||||
await createService(formDataProductService.value);
|
||||
totalService.value = totalService.value + 1;
|
||||
}
|
||||
|
|
@ -2075,6 +2080,10 @@ watch(inputSearchProductAndService, async () => {
|
|||
<BasicInformation
|
||||
dense
|
||||
service
|
||||
:options-branch="branchOption"
|
||||
v-model:registered-branch-id="
|
||||
formDataProductService.registeredBranchId
|
||||
"
|
||||
v-model:service-code="formDataProductService.code"
|
||||
v-model:service-description="formDataProductService.detail"
|
||||
v-model:service-name-th="formDataProductService.name"
|
||||
|
|
@ -2234,6 +2243,10 @@ watch(inputSearchProductAndService, async () => {
|
|||
v-if="currentServiceTab === 'serviceInformation'"
|
||||
dense
|
||||
service
|
||||
:options-branch="branchOption"
|
||||
v-model:registered-branch-id="
|
||||
formDataProductService.registeredBranchId
|
||||
"
|
||||
v-model:service-code="formDataProductService.code"
|
||||
v-model:service-description="formDataProductService.detail"
|
||||
v-model:service-name-th="formDataProductService.name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue