diff --git a/src/modules/02_transfer/views/AddTransfer.vue b/src/modules/02_transfer/views/AddTransfer.vue index 30ba6fd..93e819c 100644 --- a/src/modules/02_transfer/views/AddTransfer.vue +++ b/src/modules/02_transfer/views/AddTransfer.vue @@ -143,7 +143,7 @@ const fileUploadDoc = async (file: any) => { :readonly="routeName != 'addTransfer'" :rules="[(val:string) => !!val || `${'กรุณากรอกเหตุผล'}`]" /> -
+
{ @removed="filesNull" />
+
+
+
เอกสารเพิ่มเติม
+
+ + + + + + {{ file.fileName }} + + + + + + + +
diff --git a/src/modules/03_leave/views/AddLeave.vue b/src/modules/03_leave/views/AddLeave.vue index cdf8faf..c266f3b 100644 --- a/src/modules/03_leave/views/AddLeave.vue +++ b/src/modules/03_leave/views/AddLeave.vue @@ -143,17 +143,19 @@ const deleteResting = async (id: string) => { //บันทึกข้อมูล const createFormresign = async () => { const formData = new FormData() - - // const blob = files.value.slice(0, files.value[0].size) - // const newFile = new File(blob, nameFile.value, { - // type: files.value[0].type, - // }) + if (files.value > 0) { + const blob = files.value.slice(0, files.value[0].size) + const newFile = new File(blob, nameFile.value, { + type: files.value[0].type, + }) + formData.append("file", newFile) + } formData.append("Location", tranferOrg.value) formData.append("SendDate", dateToISO(dateCommand.value)) formData.append("ActiveDate", dateToISO(dateLeave.value)) formData.append("Reason", noteReason.value) - formData.append("file", files.value) + await http .post(config.API.listResign(), formData) .then((res: any) => { @@ -277,7 +279,7 @@ const fectDataresign = async (id: string) => { :rules="[val => !!val || `${'กรุณากรอกเหตุผลที่ลาออกจากราชการ'}`]" /> -
+
{ style="max-width: px" />
-
- - -
-
ผลการพิจารณาของผู้บังคับบัญชา
-
- -
-
-
-
สถานะ
-
- {{ dataDetail.commanderReject !== null ? statusOrder(dataDetail.commanderReject) : "-" }} -
+
+
+
เอกสารเพิ่มเติม
-
-
วันสุดท้ายที่ยับยั้ง
-
- {{ dataDetail.commanderRejectDate !== null ? date2Thai(dataDetail.commanderRejectDate) : "-" }} -
-
-
-
ความคิดเห็นและเหตุผล
-
- {{ dataDetail.commanderApproveReason !== null ? dataDetail.commanderApproveReason : "-" }} -
-
- {{ dataDetail.commanderRejectReason !== null ? dataDetail.commanderRejectReason : "-" }} -
-
-
-
- + + + + + + {{ file.fileName }} + - -
-
ผลการพิจารณาของผู้มีอำนาจ
+ + + + + +
- -
-
-
-
สถานะ
-
- {{ dataDetail.oligarchReject !== null ? statusOrder(dataDetail.oligarchReject) : "-" }} + +
+
ผลการพิจารณาของผู้บังคับบัญชา
+
+ +
+
+
+
สถานะ
+
+ {{ dataDetail.commanderReject !== null ? statusOrder(dataDetail.commanderReject) : "-" }} +
-
-
-
วันสุดท้ายที่ยับยั้ง
-
- {{ dataDetail.oligarchRejectDate !== null ? date2Thai(dataDetail.oligarchRejectDate) : "-" }} +
+
วันสุดท้ายที่ยับยั้ง
+
+ {{ dataDetail.commanderRejectDate !== null ? date2Thai(dataDetail.commanderRejectDate) : "-" }} +
-
-
-
ความคิดเห็นและเหตุผล
-
- {{ dataDetail.oligarchApproveReason !== null ? dataDetail.oligarchApproveReason : "-" }} -
-
- {{ dataDetail.oligarchRejectReason !== null ? dataDetail.oligarchRejectReason : "-" }} +
+
ความคิดเห็นและเหตุผล
+
+ {{ dataDetail.commanderApproveReason !== null ? dataDetail.commanderApproveReason : "-" }} +
+
+ {{ dataDetail.commanderRejectReason !== null ? dataDetail.commanderRejectReason : "-" }} +
-
- + + + +
+
ผลการพิจารณาของผู้มีอำนาจ
+
+ +
+
+
+
สถานะ
+
+ {{ dataDetail.oligarchReject !== null ? statusOrder(dataDetail.oligarchReject) : "-" }} +
+
+
+
วันสุดท้ายที่ยับยั้ง
+
+ {{ dataDetail.oligarchRejectDate !== null ? date2Thai(dataDetail.oligarchRejectDate) : "-" }} +
+
+
+
ความคิดเห็นและเหตุผล
+
+ {{ dataDetail.oligarchApproveReason !== null ? dataDetail.oligarchApproveReason : "-" }} +
+
+ {{ dataDetail.oligarchRejectReason !== null ? dataDetail.oligarchRejectReason : "-" }} +
+
+
+
+
+
+