updated placement appoint

This commit is contained in:
Warunee Tamkoo 2024-10-25 17:20:52 +07:00
parent 4e1a8aa39e
commit 6da1827526
3 changed files with 35 additions and 48 deletions

View file

@ -174,25 +174,7 @@ function saveOrder() {
function filterSelectOrder() {
const data = props.rows ? props.rows : [];
selected.value = [];
rows.value = data.filter((v: any) => {
switch (commandType.value) {
case "C-PM-01":
case "C-PM-02":
return v.typeCommand === "APPOINTED" && v.bmaOfficerCheck === null;
case "C-PM-03":
return v.typeCommand === "APPOINT" && v.bmaOfficerCheck !== null;
case "C-PM-04":
return v.typeCommand === "MOVE" && v.bmaOfficerCheck !== null;
case "C-PM-06":
return v.typeCommand === "SLIP" && v.bmaOfficerCheck !== null;
default:
return [];
}
});
rows.value = data;
}
/** ปิด Modal และล้างค่าที่เลือก */