fix showSalary ออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-13 15:27:14 +07:00
parent 02fcc956e7
commit 181a85384d

View file

@ -48,29 +48,29 @@ function checkCommandSysId() {
}
}
const chechCommandCode = computed(() => {
const listCommandCode = [
"C-PM-01",
"C-PM-02",
"C-PM-03",
"C-PM-04",
"C-PM-05",
"C-PM-07",
"C-PM-08",
"C-PM-09",
"C-PM-21",
"C-PM-22",
"C-PM-24",
"C-PM-29",
"C-PM-38",
"C-PM-39",
];
if (listCommandCode.includes(props.commandCode)) {
return true;
} else {
return false;
}
});
// const chechCommandCode = computed(() => {
// const listCommandCode = [
// "C-PM-01",
// "C-PM-02",
// "C-PM-03",
// "C-PM-04",
// "C-PM-05",
// "C-PM-07",
// "C-PM-08",
// "C-PM-09",
// "C-PM-21",
// "C-PM-22",
// "C-PM-24",
// "C-PM-29",
// "C-PM-38",
// "C-PM-39",
// ];
// if (listCommandCode.includes(props.commandCode)) {
// return true;
// } else {
// return false;
// }
// });
function onSubmit() {
dialogConfirm($q, () => {
@ -159,7 +159,7 @@ watch(
<div class="row col-12 q-col-gutter-sm">
<div
class="row col-12 q-col-gutter-sm"
v-if="chechCommandCode || readonly"
v-if="storeDetail.isSalary || readonly"
>
<div
v-if="store.isShowSalary(type)"