fix: product service => min installment 0

This commit is contained in:
puriphatt 2024-12-23 10:56:05 +07:00
parent 15d30f3349
commit 63021e2b5c

View file

@ -282,6 +282,7 @@ const formService = ref<ServiceCreate>({
name: '', name: '',
code: '', code: '',
productGroupId: '', productGroupId: '',
installments: 0,
}); });
const hideStat = ref(false); const hideStat = ref(false);
@ -933,6 +934,8 @@ async function assignFormService(id: string) {
if (workflowRet) currWorkflow.value = workflowRet; if (workflowRet) currWorkflow.value = workflowRet;
} }
console.log(res);
prevService.value = { prevService.value = {
code: res.code, code: res.code,
name: res.name, name: res.name,
@ -1077,6 +1080,7 @@ function clearFormService() {
work: [], work: [],
status: undefined, status: undefined,
productGroupId: '', productGroupId: '',
installments: 0,
}; };
tempWorkItems.value = []; tempWorkItems.value = [];
workItems.value = []; workItems.value = [];
@ -1136,7 +1140,6 @@ async function submitService(notClose = false) {
const res = await createService( const res = await createService(
{ {
...formService.value, ...formService.value,
workflowId: currWorkflow.value?.id || '', workflowId: currWorkflow.value?.id || '',
}, },
onCreateImageList.value, onCreateImageList.value,
@ -4079,6 +4082,7 @@ watch(
style="width: 54px" style="width: 54px"
dense dense
outlined outlined
min="0"
class="split-pay q-mx-sm" class="split-pay q-mx-sm"
input-class="text-caption text-right" input-class="text-caption text-right"
type="number" type="number"
@ -4511,6 +4515,7 @@ watch(
:readonly="!infoServiceEdit" :readonly="!infoServiceEdit"
dense dense
outlined outlined
min="0"
class="split-pay q-mx-sm" class="split-pay q-mx-sm"
input-class="text-caption text-right" input-class="text-caption text-right"
type="number" type="number"