Merge branch 'develop' of github.com:Frappet/hrms-mgt into develop

This commit is contained in:
Warunee Tamkoo 2025-06-13 17:24:42 +07:00
commit 1d512528b7

View file

@ -536,9 +536,15 @@ function onClickCloseDialog() {
* map อมลตาม option id
* @param id id
*/
function updatePosTypeName(id: string,index:number) {
formGroupTarget.positions[index].posLevel = ''
function updatePosTypeName(id: string, index?: number | null, type?: string) {
if (index && index >= 0) {
formGroupTarget.positions[index].posLevel = "";
}
if (type && type == "targetReal") {
formGroupTarget.posLevel = "";
}
const posLevel = posTypeMain.value.find((e: ResGroup) => e.id === id);
posLevelOp.value =
posLevel?.posLevels.map((e: ResLevel) => ({
@ -1127,7 +1133,7 @@ onMounted(() => {
: 'กลุ่มงาน'
"
clearable
@update:model-value="updatePosTypeName"
@update:model-value="(value:string)=>{updatePosTypeName(value,null,'targetReal')}"
/>
</div>
<div