Merge branch 'develop' into dev-tee
This commit is contained in:
commit
91935f9f6f
6 changed files with 29 additions and 2 deletions
|
|
@ -31,6 +31,7 @@
|
||||||
"quasar": "^2.11.1",
|
"quasar": "^2.11.1",
|
||||||
"structure-chart": "^0.0.9",
|
"structure-chart": "^0.0.9",
|
||||||
"vue": "^3.2.45",
|
"vue": "^3.2.45",
|
||||||
|
"vue-currency-input": "^3.0.5",
|
||||||
"vue-router": "^4.1.6",
|
"vue-router": "^4.1.6",
|
||||||
"vue3-datepicker": "^0.3.4",
|
"vue3-datepicker": "^0.3.4",
|
||||||
"vue3-pdfjs": "^0.1.6"
|
"vue3-pdfjs": "^0.1.6"
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,8 @@ const config = ref<any>({
|
||||||
API_URI_ORG_TREE:
|
API_URI_ORG_TREE:
|
||||||
"https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json",
|
"https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json",
|
||||||
MEET_URI: "meet.frappet.com",
|
MEET_URI: "meet.frappet.com",
|
||||||
|
API_RETIREMENT_URI: `${window.location.protocol}//${window.location.host}/api/v1`,
|
||||||
|
API_PROBATION_URI: "https://bmaehr.joolsoft.com/nodeapi/v1",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
20
src/modules/06_retirement/components/CurrencyInput.vue
Normal file
20
src/modules/06_retirement/components/CurrencyInput.vue
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<template>
|
||||||
|
<input ref="inputRef" type="text" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { useCurrencyInput } from "vue-currency-input";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "CurrencyInput",
|
||||||
|
props: {
|
||||||
|
modelValue: Number,
|
||||||
|
options: Object,
|
||||||
|
},
|
||||||
|
setup(props) {
|
||||||
|
const { inputRef } = useCurrencyInput(props.options);
|
||||||
|
|
||||||
|
return { inputRef };
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
@ -271,11 +271,13 @@
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="salary"
|
v-model="salary"
|
||||||
|
@update:model-value="salary.toLocaleString('en-US')"
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือน'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือน'}`]"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:label="`${'เงินเดือน'}`"
|
:label="`${'เงินเดือน'}`"
|
||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
|
<CurrencyInput v-model="salary" :options="{ currency: 'EUR' }" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
|
|
@ -364,6 +366,7 @@ import { onMounted, ref } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
import CurrencyInput from "@/modules/06_retirement/components/CurrencyInput.vue";
|
||||||
|
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
@ -477,6 +480,7 @@ const getData = async () => {
|
||||||
responseData.value.positionTypeOld = data.positionTypeOld ?? "";
|
responseData.value.positionTypeOld = data.positionTypeOld ?? "";
|
||||||
responseData.value.reason = data.reason ?? "";
|
responseData.value.reason = data.reason ?? "";
|
||||||
responseData.value.salary = data.salary !== null ? data.salary : 0;
|
responseData.value.salary = data.salary !== null ? data.salary : 0;
|
||||||
|
|
||||||
responseData.value.status = data.status ?? "";
|
responseData.value.status = data.status ?? "";
|
||||||
responseData.value.avataPath = data.avataPath ?? "";
|
responseData.value.avataPath = data.avataPath ?? "";
|
||||||
responseData.value.fullname = `${data.firstName ?? "-"} ${
|
responseData.value.fullname = `${data.firstName ?? "-"} ${
|
||||||
|
|
|
||||||
|
|
@ -331,7 +331,7 @@ const updateDateRange = () => {
|
||||||
console.log(1)
|
console.log(1)
|
||||||
} else if (roundInsig.value.value == 2) {
|
} else if (roundInsig.value.value == 2) {
|
||||||
dateStart.value = new Date(new Date().getFullYear(), 3, 29);
|
dateStart.value = new Date(new Date().getFullYear(), 3, 29);
|
||||||
dateEnd.value = new Date(new Date().getFullYear() + 1, 6, 28);
|
dateEnd.value = new Date(new Date().getFullYear(), 4, 29);
|
||||||
console.log(2)
|
console.log(2)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -354,7 +354,7 @@ const updateDateRange = () => {
|
||||||
console.log(1)
|
console.log(1)
|
||||||
} else if (roundCoin.value.value == 2) {
|
} else if (roundCoin.value.value == 2) {
|
||||||
dateStart.value = new Date(new Date().getFullYear(), 3, 29);
|
dateStart.value = new Date(new Date().getFullYear(), 3, 29);
|
||||||
dateEnd.value = new Date(new Date().getFullYear() + 1, 6, 28);
|
dateEnd.value = new Date(new Date().getFullYear(), 4, 29);
|
||||||
console.log(2)
|
console.log(2)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue