updated เงินเดือน
This commit is contained in:
parent
16a6a4255b
commit
44d22a9b13
4 changed files with 32 additions and 56 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, defineModel } from "vue";
|
||||
import { ref, defineModel, computed } from "vue";
|
||||
import Header from "@/components/DialogHeader.vue";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import type { DataOption } from "@/modules/13_salary/interface/response/Main";
|
||||
|
|
@ -61,6 +61,21 @@ function onSubmit() {
|
|||
});
|
||||
}
|
||||
|
||||
const typeRangeOps = computed(() => {
|
||||
return store.roundMainCode == "OCT"
|
||||
? [
|
||||
{ id: "NONE", name: "ไม่ได้เลื่อน" },
|
||||
{ id: "HAFT", name: "0.5 ขั้น" },
|
||||
{ id: "FULL", name: "1 ขั้น" },
|
||||
{ id: "FULLHAFT", name: "1.5 ขั้น" },
|
||||
]
|
||||
: [
|
||||
{ id: "NONE", name: "ไม่ได้เลื่อน" },
|
||||
{ id: "HAFT", name: "0.5 ขั้น" },
|
||||
{ id: "FULL", name: "1 ขั้น" },
|
||||
];
|
||||
});
|
||||
|
||||
function inputEdit(val: boolean) {
|
||||
return {
|
||||
"full-width cursor-pointer inputgreen ": val,
|
||||
|
|
@ -88,7 +103,7 @@ function inputEdit(val: boolean) {
|
|||
map-options
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
:options="store.typeRangeOps.filter((e) => e.id !== store.tabType)"
|
||||
:options="typeRangeOps.filter((e) => e.id !== store.tabType)"
|
||||
:rules="[(val) => !!val || `${'กรุณาเลือก ขั้น'}`]"
|
||||
lazy-rules
|
||||
hide-bottom-space
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue