updated placement appoint
This commit is contained in:
parent
4e1a8aa39e
commit
6da1827526
3 changed files with 35 additions and 48 deletions
|
|
@ -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 และล้างค่าที่เลือก */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue