บรรจุ ทดลองงาน
This commit is contained in:
parent
a8fdca1138
commit
4cfcc2d018
21 changed files with 113 additions and 199 deletions
|
|
@ -24,7 +24,7 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
success,
|
||||
dateToISO,
|
||||
convertDateToAPI,
|
||||
dialogConfirm,
|
||||
} = mixin;
|
||||
|
||||
|
|
@ -228,8 +228,8 @@ function savaForm() {
|
|||
function save() {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
knowledge_level: knowledge_level.value,
|
||||
skill_level: skill_level.value,
|
||||
competency_level: competency_level.value,
|
||||
|
|
@ -256,7 +256,7 @@ function save() {
|
|||
self_learning: Number(self_learning.value),
|
||||
training_seminar: Number(training_seminar.value),
|
||||
other_training: Number(other_training.value),
|
||||
commander_dated: dateToISO(dateAutherise.value),
|
||||
commander_dated: convertDateToAPI(dateAutherise.value),
|
||||
};
|
||||
|
||||
dialogConfirm($q, async () => {
|
||||
|
|
@ -266,12 +266,12 @@ function save() {
|
|||
config.API.editFormEvaluateCommader(assignId.value, evaluate_id.value),
|
||||
data
|
||||
)
|
||||
.then((res: any) => {
|
||||
.then(() => {
|
||||
status.value = false;
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
hideLoader();
|
||||
})
|
||||
.catch((e: any) => {
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
hideLoader();
|
||||
});
|
||||
|
|
@ -304,7 +304,9 @@ onMounted(async () => {
|
|||
<div v-if="!status">
|
||||
<q-btn
|
||||
v-if="
|
||||
!checkRoutePermisson && probationStore.dataPermissions?.tab4.isEdit && !isCheckFile
|
||||
!checkRoutePermisson &&
|
||||
probationStore.dataPermissions?.tab4.isEdit &&
|
||||
!isCheckFile
|
||||
"
|
||||
dense
|
||||
flat
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
success,
|
||||
dateToISO,
|
||||
convertDateToAPI,
|
||||
dialogConfirm,
|
||||
dialogMessageNotify,
|
||||
} = mixin;
|
||||
|
|
@ -197,8 +197,8 @@ async function fecthAssign(id: string) {
|
|||
function putformData() {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
knowledge_level: knowledge_level.value,
|
||||
skill_level: skill_level.value,
|
||||
competency_level: competency_level.value,
|
||||
|
|
@ -225,7 +225,7 @@ function putformData() {
|
|||
self_learning: Number(self_learning.value),
|
||||
training_seminar: Number(training_seminar.value),
|
||||
other_training: Number(other_training.value),
|
||||
commander_dated: dateToISO(dateAutherise.value),
|
||||
commander_dated: convertDateToAPI(dateAutherise.value),
|
||||
};
|
||||
dialogConfirm($q, async () => {
|
||||
showLoader();
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const {
|
|||
messageError,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
dateToISO,
|
||||
convertDateToAPI,
|
||||
success,
|
||||
dialogConfirm,
|
||||
} = mixin;
|
||||
|
|
@ -364,8 +364,8 @@ function savaForm() {
|
|||
function putformData() {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
knowledge_level: learn_level.value,
|
||||
apply_level: apply_level.value,
|
||||
success_level: success_level.value,
|
||||
|
|
@ -401,11 +401,11 @@ function putformData() {
|
|||
behavior_result: Number(behavior_result.value),
|
||||
sum_score: (Number(score1Per60.value) + Number(score2.value)) / 2,
|
||||
sum_percent: percent_sum.value,
|
||||
chairman_dated: dateToISO(dateAutherise.value),
|
||||
chairman_dated: convertDateToAPI(dateAutherise.value),
|
||||
develop_result: Number(develop_result.value),
|
||||
evaluate_result: Number(evaluate_result.value),
|
||||
director1_dated: dateToISO(director1_dated.value),
|
||||
director2_dated: dateToISO(director2_dated.value),
|
||||
director1_dated: convertDateToAPI(director1_dated.value),
|
||||
director2_dated: convertDateToAPI(director2_dated.value),
|
||||
};
|
||||
|
||||
dialogConfirm($q, async () => {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ const {
|
|||
messageError,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
dateToISO,
|
||||
convertDateToAPI,
|
||||
success,
|
||||
dialogConfirm,
|
||||
dialogMessageNotify,
|
||||
|
|
@ -336,8 +336,8 @@ async function savaForm() {
|
|||
const putformData = () => {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
knowledge_level: learn_level.value,
|
||||
apply_level: apply_level.value,
|
||||
success_level: success_level.value,
|
||||
|
|
@ -374,10 +374,10 @@ const putformData = () => {
|
|||
sum_score: (Number(score1Per60.value) + Number(score2.value)) / 2,
|
||||
sum_percent: percent_sum.value,
|
||||
develop_result: Number(develop_result.value),
|
||||
chairman_dated: dateToISO(dateAutherise.value),
|
||||
chairman_dated: convertDateToAPI(dateAutherise.value),
|
||||
evaluate_result: Number(evaluate_result.value),
|
||||
director1_dated: dateToISO(director1_dated.value),
|
||||
director2_dated: dateToISO(director2_dated.value),
|
||||
director1_dated: convertDateToAPI(director1_dated.value),
|
||||
director2_dated: convertDateToAPI(director2_dated.value),
|
||||
};
|
||||
dialogConfirm($q, async () => {
|
||||
showLoader();
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
dialogConfirm,
|
||||
convertDateToAPI,
|
||||
dialogMessageNotify,
|
||||
} = mixin;
|
||||
const route = useRoute();
|
||||
|
|
@ -187,8 +188,8 @@ async function savaForm() {
|
|||
*/
|
||||
async function postData(action: string) {
|
||||
const data = {
|
||||
start_date: date_start.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(date_start.value),
|
||||
date_finish: date_finish.value ? convertDateToAPI(date_finish.value) : null,
|
||||
develop_complete: props.tab === "save1" ? 0 : develop.value,
|
||||
pass_result: result.value,
|
||||
reson: reson.value,
|
||||
|
|
@ -201,7 +202,7 @@ async function postData(action: string) {
|
|||
authority_pos: authority_pos.value,
|
||||
authority_type: authority_type.value,
|
||||
authority_level: authority_level.value,
|
||||
authority_dated: authority_dated.value,
|
||||
authority_dated: convertDateToAPI(authority_dated.value),
|
||||
};
|
||||
if (action === "post") {
|
||||
showLoader();
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ const {
|
|||
date2Thai,
|
||||
success,
|
||||
notifyError,
|
||||
dateToISO,
|
||||
convertDateToAPI,
|
||||
messageError,
|
||||
hideLoader,
|
||||
showLoader,
|
||||
|
|
@ -278,8 +278,8 @@ function savaForm() {
|
|||
function putformData() {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||
evaluate_ouptut: evaluate_ouptut.value,
|
||||
knowledge_level: knowledge_level.value,
|
||||
|
|
@ -309,7 +309,7 @@ function putformData() {
|
|||
self_learning: Number(self_learning.value),
|
||||
training_seminar: Number(training_seminar.value),
|
||||
other_training: Number(other_training.value),
|
||||
assessor_dated: dateToISO(dateAutherise.value),
|
||||
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||
};
|
||||
|
||||
dialogConfirm($q, () =>
|
||||
|
|
@ -380,7 +380,9 @@ onMounted(async () => {
|
|||
<div v-if="!status">
|
||||
<q-btn
|
||||
v-if="
|
||||
!checkRoutePermisson && probationStore.dataPermissions?.tab2.isEdit && !isCheckFile
|
||||
!checkRoutePermisson &&
|
||||
probationStore.dataPermissions?.tab2.isEdit &&
|
||||
!isCheckFile
|
||||
"
|
||||
dense
|
||||
flat
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ const mixin = useCounterMixin();
|
|||
const {
|
||||
date2Thai,
|
||||
success,
|
||||
notifyError,
|
||||
dateToISO,
|
||||
convertDateToAPI,
|
||||
messageError,
|
||||
dialogConfirm,
|
||||
dialogMessageNotify,
|
||||
|
|
@ -252,8 +251,8 @@ function savaForm() {
|
|||
function putformData() {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||
evaluate_ouptut: evaluate_ouptut.value,
|
||||
knowledge_level: knowledge_level.value,
|
||||
|
|
@ -284,7 +283,7 @@ function putformData() {
|
|||
self_learning: Number(self_learning.value),
|
||||
training_seminar: Number(training_seminar.value),
|
||||
other_training: Number(other_training.value),
|
||||
assessor_dated: dateToISO(dateAutherise.value),
|
||||
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||
};
|
||||
dialogConfirm($q, async () => await saveformdata(data));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ const {
|
|||
messageError,
|
||||
dialogConfirm,
|
||||
dialogMessageNotify,
|
||||
convertDateToAPI
|
||||
} = mixin;
|
||||
|
||||
const assignId = ref<string>(route.params.form.toString());
|
||||
|
|
@ -257,8 +258,8 @@ async function fecthFormdata(id: string) {
|
|||
function putformData() {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||
evaluate_ouptut: evaluate_ouptut.value,
|
||||
knowledge_level: knowledge_level.value,
|
||||
|
|
@ -289,7 +290,7 @@ function putformData() {
|
|||
self_learning: Number(self_learning.value),
|
||||
training_seminar: Number(training_seminar.value),
|
||||
other_training: Number(other_training.value),
|
||||
assessor_dated: dateToISO(dateAutherise.value),
|
||||
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||
};
|
||||
dialogConfirm($q, async () => await saveformdata(data));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
dialogConfirm,
|
||||
convertDateToAPI
|
||||
} = mixin;
|
||||
|
||||
const assignId = ref<string>(route.params.form.toString());
|
||||
|
|
@ -288,8 +289,8 @@ function savaForm() {
|
|||
function putformData() {
|
||||
const data = {
|
||||
evaluate_no: evaluate_no.value,
|
||||
start_date: start_date.value,
|
||||
date_finish: date_finish.value,
|
||||
start_date: convertDateToAPI(start_date.value),
|
||||
date_finish: convertDateToAPI(date_finish.value),
|
||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||
evaluate_ouptut: evaluate_ouptut.value,
|
||||
knowledge_level: knowledge_level.value,
|
||||
|
|
@ -319,7 +320,7 @@ function putformData() {
|
|||
self_learning: Number(self_learning.value),
|
||||
training_seminar: Number(training_seminar.value),
|
||||
other_training: Number(other_training.value),
|
||||
assessor_dated: dateToISO(dateAutherise.value),
|
||||
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||
};
|
||||
|
||||
dialogConfirm($q, () =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue