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