diff --git a/package.json b/package.json index 86d69369e..893544660 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@quasar/extras": "^1.15.8", "@tato30/vue-pdf": "^1.5.1", "@vuepic/vue-datepicker": "^3.6.3", - "bma-org-chart": "^0.0.7", + "bma-org-chart": "^0.0.8", "keycloak-js": "^20.0.2", "moment": "^2.29.4", "pinia": "^2.0.29", diff --git a/src/modules/05_placement/components/probation/FormAssign.vue b/src/modules/05_placement/components/probation/FormAssign.vue index 3724bae39..e654ca766 100644 --- a/src/modules/05_placement/components/probation/FormAssign.vue +++ b/src/modules/05_placement/components/probation/FormAssign.vue @@ -10,13 +10,17 @@ color="primary" class="q-mr-sm" @click="router.go(-1)" + v-if="routeName == 'probationWorkAdd'" />
เพิ่มแบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
- +
@@ -241,22 +245,21 @@ :disable="routeName != 'probationWorkAdd'" />
-
1. รัฐธรรมนูญ
+
1. รัฐธรรมนูญ
2.กฎหมายปกครอง
-
+
-
2.1 ทำงานได้
+
2.1 ทำงานได้
{{ item.text }}
-
+
-
2.2 ด้านการปฏิบัติราชการ
+
+ 2.2 ด้านการปฏิบัติราชการ +
-
{{ item.text }}
-
+
-
2.3 ด้านการบริหารทรัพยากรบุคคล
+
+ 2.3 ด้านการบริหารทรัพยากรบุคคล +
-
{{ item.text }}
-
+
-
2.4 ด้านการบริหารงบประมาณและการคลัง
+
+ 2.4 ด้านการบริหารงบประมาณและการคลัง +
-
{{ item.text }}
-
+
-
3. กฎหมายอื่นๆ ที่เกี่ยวข้องกับการปฏิบัติงาน
+
+ 3. กฎหมายอื่นๆ ที่เกี่ยวข้องกับการปฏิบัติงาน +
@@ -631,9 +642,9 @@ icon="mdi-plus" flat class="q-ml-sm" - @click="addProductivity" + @click="addProductivity" /> -
- +
@@ -669,7 +685,7 @@ dense borderless :outlined="routeName == 'probationWorkAdd'" - v-model="goals1[item-1]" + v-model="goals1[item - 1]" label="ตัวชี้วัดความสําเร็จของงาน (ไม่เกิน 10 บรรทัด)" />
@@ -1131,48 +1147,156 @@ const Productivitys = ref(Array(productivityCount.value).fill("")); const goals1 = ref(Array(productivityCount.value).fill("")); const addProductivity = () => { - productivityCount.value++; + productivityCount.value++; }; const resetProductivity = () => { - productivityCount.value = 1; + productivityCount.value = 1; Productivitys.value = Array(productivityCount.value).fill(""); goals1.value = Array(productivityCount.value).fill(""); }; const checkList21 = ref([ - { id: 1, text: '2.1.1 กฎหมายว่าด้วยระเบียบบริหารราชการกรุงเทพมหานคร', checked: false }, - { id: 2, text: '2.1.2 กฎหมายว่าด้วยระเบียบบริหารราชการแผ่นดิน', checked: false }, - { id: 3, text: '2.1.3 กฎหมายว่าด้วยลักษณะปกครองทองที่', checked: false }, - { id: 4, text: '2.1.4 ระเบียบสำนักนายกรัฐมนตรี ว่าด้วยการรับฟังความคิดเห็นสาธารณะโดยวิธีประชาพิจารณ์ พ.ศ. ๒๕๓๙', checked: false }, - { id: 5, text: '2.1.5 ระเบียบสำนักนายกรัฐมนตรี ว่าด้วยการสร้างระบบบริหารกิจการบ้านเมืองและสังคมที่ดี พ.ศ. ๒๕๔๒', checked: false }, - { id: 6, text: '2.1.6 พระราชกฤษฏีกาว่าด้วยหลักเกณฑ์และวิธีการบริหารกิจการบ้านเมืองที่ดี พ.ศ. ๒๕๔๖', checked: false }, + { + id: 1, + text: "2.1.1 กฎหมายว่าด้วยระเบียบบริหารราชการกรุงเทพมหานคร", + checked: false, + }, + { + id: 2, + text: "2.1.2 กฎหมายว่าด้วยระเบียบบริหารราชการแผ่นดิน", + checked: false, + }, + { id: 3, text: "2.1.3 กฎหมายว่าด้วยลักษณะปกครองทองที่", checked: false }, + { + id: 4, + text: "2.1.4 ระเบียบสำนักนายกรัฐมนตรี ว่าด้วยการรับฟังความคิดเห็นสาธารณะโดยวิธีประชาพิจารณ์ พ.ศ. ๒๕๓๙", + checked: false, + }, + { + id: 5, + text: "2.1.5 ระเบียบสำนักนายกรัฐมนตรี ว่าด้วยการสร้างระบบบริหารกิจการบ้านเมืองและสังคมที่ดี พ.ศ. ๒๕๔๒", + checked: false, + }, + { + id: 6, + text: "2.1.6 พระราชกฤษฏีกาว่าด้วยหลักเกณฑ์และวิธีการบริหารกิจการบ้านเมืองที่ดี พ.ศ. ๒๕๔๖", + checked: false, + }, ]); const checkList22 = ref([ - { id: 1, text: '2.2.1 ระเบียบกรุงเทพมหานครว่าด้วยวิธีปฏิบัติงานสารบรรณ พ.ศ.๒๕๔๖', checked: false }, - { id: 2, text: '2.2.2 กฎหมายว่าด้วยวิธีปฏิบัติราชการทางปกครอง', checked: false }, - { id: 3, text: '2.2.3 กฎหมายว่าด้วยความรับผิดทางละเมิดของเจ้าหน้าที่', checked: false }, - { id: 4, text: '2.2.4 กฎหมายว่าด้วยการข้อมูลข่าวสารของทางราชการ', checked: false }, - { id: 5, text: '2.2.5 ระเบียบสำนักนายกรัฐมนตรีว่าด้วยงานสารบรรณ พ.ศ.๒๕๒๖', checked: false }, - { id: 6, text: '2.2.6 ระเบียบว่าด้วยการรักษาความลับของทางราชการ พ.ศ.๒๕๔๔', checked: false }, + { + id: 1, + text: "2.2.1 ระเบียบกรุงเทพมหานครว่าด้วยวิธีปฏิบัติงานสารบรรณ พ.ศ.๒๕๔๖", + checked: false, + }, + { + id: 2, + text: "2.2.2 กฎหมายว่าด้วยวิธีปฏิบัติราชการทางปกครอง", + checked: false, + }, + { + id: 3, + text: "2.2.3 กฎหมายว่าด้วยความรับผิดทางละเมิดของเจ้าหน้าที่", + checked: false, + }, + { + id: 4, + text: "2.2.4 กฎหมายว่าด้วยการข้อมูลข่าวสารของทางราชการ", + checked: false, + }, + { + id: 5, + text: "2.2.5 ระเบียบสำนักนายกรัฐมนตรีว่าด้วยงานสารบรรณ พ.ศ.๒๕๒๖", + checked: false, + }, + { + id: 6, + text: "2.2.6 ระเบียบว่าด้วยการรักษาความลับของทางราชการ พ.ศ.๒๕๔๔", + checked: false, + }, ]); const checkList23 = ref([ - { id: 1, text: '2.3.1กฎหมายว่าด้วยระเบียบข้าราชการกรุงเทพมหานครและบุคลากรกรุงเทพมหานคร/กฎ ก.ก./หลักเกณฑ์ วิธีการ/มติ ก.ก. ที่เกี่ยวข้อง', checked: false }, - { id: 2, text: '2.3.2 กฎหมายว่าด้วยระเบียบข้าราชการพลเรือนและกฎ ก.พ. ที่เกี่ยวข้อง', checked: false }, + { + id: 1, + text: "2.3.1กฎหมายว่าด้วยระเบียบข้าราชการกรุงเทพมหานครและบุคลากรกรุงเทพมหานคร/กฎ ก.ก./หลักเกณฑ์ วิธีการ/มติ ก.ก. ที่เกี่ยวข้อง", + checked: false, + }, + { + id: 2, + text: "2.3.2 กฎหมายว่าด้วยระเบียบข้าราชการพลเรือนและกฎ ก.พ. ที่เกี่ยวข้อง", + checked: false, + }, ]); const checkList24 = ref([ - { id: 1, text: '2.4.1 ข้อบัญญัติกรุงเทพมหานคร เรื่อง วิธีการงบประมาณ พ.ศ.๒๕๒๙ ซึ่งแก้ไขเพิ่มเติมโดย(ฉบับที่๒)พ.ศ.๒๕๓๓ และ(ฉบับที่๓)พ.ศ.๒๕๓๖', checked: false }, - { id: 2, text: '2.4.2 ระเบียบกรุงเทพมหานครว่าด้วยการรับเงิน การเบิกจ่ายเงิน การเก็บรักษาเงิน การนำส่งเงินและการตรวจเงิน(ฉบับที่๘) พ.ศ.๒๕๔๔ (ฉบับที่๙)พ.ศ.๒๕๔๘', checked: false }, - { id: 3, text: '2.4.3 ระเบียบกรุงเทพมหานครว่าด้วยค่าใช้จ่ายในการฝึกอบรบ พ.ศ.๒๕๔๑', checked: false }, - { id: 4, text: '2.4.4 พระราชบัญญัติวิธีการงบประมาณ พ.ศ.๒๕๐๒', checked: false }, - { id: 5, text: '2.4.5 ระเบียบคณะกรรมการการตรวจเงินแผ่นดินว่าด้วยวินัยทางงบประมาณและการคลัง พ.ศ.๒๕๔๔', checked: false }, - { id: 6, text: '2.4.6 กฎหมายว่าด้วยความผิดเกี่ยวกับการเสนอราคาต่อหน่วยของรัฐ', checked: false }, - { id: 7, text: '2.4.7 พระราชกฤษฎีกาการจ่ายเงินเดือน เงินปี บำเหน็จ บำนาญ และเงินอื่นในลักษณะเดียวกัน พ.ศ.๒๕๓๕', checked: false }, - { id: 8, text: '2.4.8 พระราชกฤษฎีกาค่าใช้จ่ายในการเดินทางไปราชการ พ.ศ.๒๕๒๖', checked: false }, - { id: 9, text: '2.4.9 ระเบียบกระทรวงการคลังว่าด้วยการเบิกจ่ายเบี้ยเลี้ยงเดินทาง และค่าเช่าที่พักในการเดินทางไปราชการ พ.ศ.๒๕๓๔ (ฉบับที่๙) พ.ศ.๒๕๔๔', checked: false }, - { id: 10, text: '2.4.10 ระเบียบสำนักนายกรัฐมนตรีว่าด้วยการพัสดุ พ.ศ.๒๕๓๕ (ฉบับที่๒) พ.ศ.๒๕๓๘ (ฉบับที่๓) พ.ศ.๒๕๓๙ (ฉบับที่๔) พ.ศ.๒๕๔๑ (ฉบับที่๕) พ.ศ.๒๕๔๒ (ฉบับที่๖) พ.ศ.๒๕๔๔', checked: false }, - { id: 11, text: '2.4.11 ระเบียบกระทรวงการคลัง ว่าด้วยค่าใช้จ่ายในการฝึกอบรมของส่วนราชการ พ.ศ.๒๕๔๕', checked: false }, - { id: 12, text: '2.4.12 ระเบียบกระทรวงการคลัง ว่าด้วยการเบิกค่าใช้จ่ายเกี่ยวกับการรักษาพยาบาลข้าราชการผู้ได้รับอันตราย หรือการป่วยเจ็บเพราะเหตุปฏิบัติราชการ พ.ศ.๒๕๔๗', checked: false }, - { id: 13, text: '2.4.13 ระเบียบกระทรวงการคลัง ว่าด้วยการเบิกเงินสวัสดิการเกี่ยวกับการศึกษาบุตร พ.ศ.๒๕๔๗', checked: false }, - { id: 14, text: '2.4.14 ประกาศกระทรวงการคลัง เรื่อง หลักเกณฑ์การจัดหาพัสดุ โดยการประมูลด้วยระบบอิเล็กทรอนิกส์ (e-Auction) พ.ศ.๒๕๔๘', checked: false }, + { + id: 1, + text: "2.4.1 ข้อบัญญัติกรุงเทพมหานคร เรื่อง วิธีการงบประมาณ พ.ศ.๒๕๒๙ ซึ่งแก้ไขเพิ่มเติมโดย(ฉบับที่๒)พ.ศ.๒๕๓๓ และ(ฉบับที่๓)พ.ศ.๒๕๓๖", + checked: false, + }, + { + id: 2, + text: "2.4.2 ระเบียบกรุงเทพมหานครว่าด้วยการรับเงิน การเบิกจ่ายเงิน การเก็บรักษาเงิน การนำส่งเงินและการตรวจเงิน(ฉบับที่๘) พ.ศ.๒๕๔๔ (ฉบับที่๙)พ.ศ.๒๕๔๘", + checked: false, + }, + { + id: 3, + text: "2.4.3 ระเบียบกรุงเทพมหานครว่าด้วยค่าใช้จ่ายในการฝึกอบรบ พ.ศ.๒๕๔๑", + checked: false, + }, + { + id: 4, + text: "2.4.4 พระราชบัญญัติวิธีการงบประมาณ พ.ศ.๒๕๐๒", + checked: false, + }, + { + id: 5, + text: "2.4.5 ระเบียบคณะกรรมการการตรวจเงินแผ่นดินว่าด้วยวินัยทางงบประมาณและการคลัง พ.ศ.๒๕๔๔", + checked: false, + }, + { + id: 6, + text: "2.4.6 กฎหมายว่าด้วยความผิดเกี่ยวกับการเสนอราคาต่อหน่วยของรัฐ", + checked: false, + }, + { + id: 7, + text: "2.4.7 พระราชกฤษฎีกาการจ่ายเงินเดือน เงินปี บำเหน็จ บำนาญ และเงินอื่นในลักษณะเดียวกัน พ.ศ.๒๕๓๕", + checked: false, + }, + { + id: 8, + text: "2.4.8 พระราชกฤษฎีกาค่าใช้จ่ายในการเดินทางไปราชการ พ.ศ.๒๕๒๖", + checked: false, + }, + { + id: 9, + text: "2.4.9 ระเบียบกระทรวงการคลังว่าด้วยการเบิกจ่ายเบี้ยเลี้ยงเดินทาง และค่าเช่าที่พักในการเดินทางไปราชการ พ.ศ.๒๕๓๔ (ฉบับที่๙) พ.ศ.๒๕๔๔", + checked: false, + }, + { + id: 10, + text: "2.4.10 ระเบียบสำนักนายกรัฐมนตรีว่าด้วยการพัสดุ พ.ศ.๒๕๓๕ (ฉบับที่๒) พ.ศ.๒๕๓๘ (ฉบับที่๓) พ.ศ.๒๕๓๙ (ฉบับที่๔) พ.ศ.๒๕๔๑ (ฉบับที่๕) พ.ศ.๒๕๔๒ (ฉบับที่๖) พ.ศ.๒๕๔๔", + checked: false, + }, + { + id: 11, + text: "2.4.11 ระเบียบกระทรวงการคลัง ว่าด้วยค่าใช้จ่ายในการฝึกอบรมของส่วนราชการ พ.ศ.๒๕๔๕", + checked: false, + }, + { + id: 12, + text: "2.4.12 ระเบียบกระทรวงการคลัง ว่าด้วยการเบิกค่าใช้จ่ายเกี่ยวกับการรักษาพยาบาลข้าราชการผู้ได้รับอันตราย หรือการป่วยเจ็บเพราะเหตุปฏิบัติราชการ พ.ศ.๒๕๔๗", + checked: false, + }, + { + id: 13, + text: "2.4.13 ระเบียบกระทรวงการคลัง ว่าด้วยการเบิกเงินสวัสดิการเกี่ยวกับการศึกษาบุตร พ.ศ.๒๕๔๗", + checked: false, + }, + { + id: 14, + text: "2.4.14 ประกาศกระทรวงการคลัง เรื่อง หลักเกณฑ์การจัดหาพัสดุ โดยการประมูลด้วยระบบอิเล็กทรอนิกส์ (e-Auction) พ.ศ.๒๕๔๘", + checked: false, + }, ]); const law = ref([]); const listlaw = [ @@ -1225,12 +1349,12 @@ const date3 = ref(new Date()); const date4 = ref(new Date()); \ No newline at end of file + diff --git a/src/modules/05_placement/components/probation/MainDetail.vue b/src/modules/05_placement/components/probation/MainDetail.vue index 551575019..f1a22fc3e 100644 --- a/src/modules/05_placement/components/probation/MainDetail.vue +++ b/src/modules/05_placement/components/probation/MainDetail.vue @@ -1,171 +1,170 @@ \ No newline at end of file + diff --git a/src/modules/05_placement/components/probation/ProbationDetail.vue b/src/modules/05_placement/components/probation/ProbationDetail.vue index 7faf54272..cb43dad2d 100644 --- a/src/modules/05_placement/components/probation/ProbationDetail.vue +++ b/src/modules/05_placement/components/probation/ProbationDetail.vue @@ -1,274 +1,302 @@ + + +
+
+ + + diff --git a/src/modules/05_placement/components/probation/form/formEva2.vue b/src/modules/05_placement/components/probation/form/formEva2.vue new file mode 100644 index 000000000..0b4771475 --- /dev/null +++ b/src/modules/05_placement/components/probation/form/formEva2.vue @@ -0,0 +1,289 @@ + + + diff --git a/src/modules/05_placement/components/probation/form/formEva3.vue b/src/modules/05_placement/components/probation/form/formEva3.vue new file mode 100644 index 000000000..e368f2dc6 --- /dev/null +++ b/src/modules/05_placement/components/probation/form/formEva3.vue @@ -0,0 +1,130 @@ + + + + diff --git a/src/modules/05_placement/components/probation/form/formEvaOrder.vue b/src/modules/05_placement/components/probation/form/formEvaOrder.vue new file mode 100644 index 000000000..2a0c7f662 --- /dev/null +++ b/src/modules/05_placement/components/probation/form/formEvaOrder.vue @@ -0,0 +1,83 @@ + + + diff --git a/src/modules/05_placement/components/probation/form/formEvacomment.vue b/src/modules/05_placement/components/probation/form/formEvacomment.vue new file mode 100644 index 000000000..5dc58496c --- /dev/null +++ b/src/modules/05_placement/components/probation/form/formEvacomment.vue @@ -0,0 +1,45 @@ + + diff --git a/src/modules/05_placement/components/probation/tabs/tabs2.vue b/src/modules/05_placement/components/probation/tabs/tabs2.vue new file mode 100644 index 000000000..60ed911ee --- /dev/null +++ b/src/modules/05_placement/components/probation/tabs/tabs2.vue @@ -0,0 +1,116 @@ + + diff --git a/src/modules/05_placement/components/probation/tabs/tabs3.vue b/src/modules/05_placement/components/probation/tabs/tabs3.vue new file mode 100644 index 000000000..62cebf32c --- /dev/null +++ b/src/modules/05_placement/components/probation/tabs/tabs3.vue @@ -0,0 +1,116 @@ + + diff --git a/src/modules/05_placement/components/probation/tabs/tabs4.vue b/src/modules/05_placement/components/probation/tabs/tabs4.vue new file mode 100644 index 000000000..62cebf32c --- /dev/null +++ b/src/modules/05_placement/components/probation/tabs/tabs4.vue @@ -0,0 +1,116 @@ + + diff --git a/src/modules/05_placement/router.ts b/src/modules/05_placement/router.ts index 8b1d5a8d3..90d23090b 100644 --- a/src/modules/05_placement/router.ts +++ b/src/modules/05_placement/router.ts @@ -21,7 +21,7 @@ const detailOrderReplace = () => "@/modules/05_placement/components/OrderPlacement/detailOrderPlacement.vue" ); - // ระบบทดลองงาน +// ระบบทดลองงาน const mainProbation = () => import("@/modules/05_placement/components/probation/MainProbation.vue"); @@ -33,179 +33,178 @@ const probationFormEvaluation = () => const probationWorkAdd = () => import("@/modules/05_placement/components/probation/MainDetail.vue"); - const probationFormAssign = () => - import("@/modules/05_placement/components/probation/FormAssign.vue"); - const transfer = () => - import("@/modules/05_placement/components/Transfer/transferMain.vue"); - const transferbyId = () => - import("@/modules/05_placement/components/Transfer/transferRegistry.vue"); +const probationFormAssign = () => + import("@/modules/05_placement/components/probation/FormAssign.vue"); +const transfer = () => + import("@/modules/05_placement/components/Transfer/transferMain.vue"); +const transferbyId = () => + import("@/modules/05_placement/components/Transfer/transferRegistry.vue"); - - // คำสั่งช่วยราชการ/ส่งตัวกลับ - const RepatriationOrder = () => +// คำสั่งช่วยราชการ/ส่งตัวกลับ +const RepatriationOrder = () => import("@/modules/05_placement/components/RepatriationOrder/List.vue"); - const RepatriationOrderAdd = () => +const RepatriationOrderAdd = () => import("@/modules/05_placement/components/RepatriationOrder/AddOrder.vue"); - export default [ - { - path: "/placement", - name: "placement", - component: PlacementMain, - meta: { - Auth: true, - Key: [6.1], - Role: "placement", - }, +export default [ + { + path: "/placement", + name: "placement", + component: PlacementMain, + meta: { + Auth: true, + Key: [6.1], + Role: "placement", }, - { - path: "/placement/personal-list/:examId", - name: "placementDetail", - component: PlacementDetail, - meta: { - Auth: true, - Key: [6.1], - Role: "placement", - }, + }, + { + path: "/placement/personal-list/:examId", + name: "placementDetail", + component: PlacementDetail, + meta: { + Auth: true, + Key: [6.1], + Role: "placement", }, - { - path: "/placement/personal-detail/:personalId", - name: "PlacementPersonalDetail", - component: PlacementPersonalDetail, - meta: { - Auth: true, - Key: [6.1], - Role: "placement", - }, + }, + { + path: "/placement/personal-detail/:personalId", + name: "PlacementPersonalDetail", + component: PlacementPersonalDetail, + meta: { + Auth: true, + Key: [6.1], + Role: "placement", }, - { - path: "/placement/order", - name: "Orderplacement", - component: MainOrderPlacement, - meta: { - Auth: true, - Key: [6.2], - Role: "placement", - }, + }, + { + path: "/placement/order", + name: "Orderplacement", + component: MainOrderPlacement, + meta: { + Auth: true, + Key: [6.2], + Role: "placement", }, - { - path: "/placement/order/detail", - name: "OrderplacementDetail", - component: detailOrderReplace, - meta: { - Auth: true, - Key: [6.2], - Role: "placement", - }, + }, + { + path: "/placement/order/detail", + name: "OrderplacementDetail", + component: detailOrderReplace, + meta: { + Auth: true, + Key: [6.2], + Role: "placement", }, - { - path: "/placement/addOrderPlacement", - name: "addOrderPlacement", - component: addOrderPlacement, - meta: { - Auth: true, - Key: [6.2], - Role: "placement", - }, + }, + { + path: "/placement/addOrderPlacement", + name: "addOrderPlacement", + component: addOrderPlacement, + meta: { + Auth: true, + Key: [6.2], + Role: "placement", }, - { - path: "/probation", - name: "probation", - component: mainProbation, - meta: { - Auth: true, - Key: [6.3], - Role: "placement", - }, + }, + { + path: "/probation", + name: "probation", + component: mainProbation, + meta: { + Auth: true, + Key: [6.3], + Role: "placement", }, - { - path: "/probation/detail/:id", - name: "probationDetail", - component: probationDetail, - meta: { - Auth: true, - Key: [6.3], - Role: "placement", - }, + }, + { + path: "/probation/detail/:id", + name: "probationDetail", + component: probationDetail, + meta: { + Auth: true, + Key: [6.3], + Role: "placement", }, - { - path: "/probation/form", - name: "probationForm", - component: probationFormEvaluation, - meta: { - Auth: true, - Key: [6.3], - Role: "placement", - }, + }, + { + path: "/probation/detail/:id/:form", + name: "probationForm", + component: probationFormEvaluation, + meta: { + Auth: true, + Key: [6.3], + Role: "placement", }, - { - path: "/probation/work/add", - name: "probationWorkAdd", - component: probationWorkAdd, - meta: { - Auth: true, - Key: [6.3], - Role: "placement", - }, + }, + { + path: "/probation/work/add", + name: "probationWorkAdd", + component: probationWorkAdd, + meta: { + Auth: true, + Key: [6.3], + Role: "placement", }, - { - path: "/probation/work/:id", - name: "probationWork", - component: probationWorkAdd, - meta: { - Auth: true, - Key: [6.3], - Role: "placement", - }, + }, + { + path: "/probation/work/:id", + name: "probationWork", + component: probationWorkAdd, + meta: { + Auth: true, + Key: [6.3], + Role: "placement", }, - { - path: "/probation/add", - name: "probationWorkAdd", - component: probationFormAssign, - meta: { - Auth: true, - Key: [6.3], - Role: "placement", - }, + }, + { + path: "/probation/add", + name: "probationWorkAdd", + component: probationFormAssign, + meta: { + Auth: true, + Key: [6.3], + Role: "placement", }, - { - path: "/transfer", - name: "transfer", - component: transfer, - meta: { - Auth: true, - Key: [6.4], - Role: "placement", - } + }, + { + path: "/transfer", + name: "transfer", + component: transfer, + meta: { + Auth: true, + Key: [6.4], + Role: "placement", }, - { - path: "/transfer/:id", - name: "transfer-id", - component: transferbyId, - meta: { - Auth: true, - Key: [6.4], - Role: "placement", - } + }, + { + path: "/transfer/:id", + name: "transfer-id", + component: transferbyId, + meta: { + Auth: true, + Key: [6.4], + Role: "placement", }, - { - path: "/repatriation-order", - name: "repatriation-order", - component: RepatriationOrder, - meta: { - Auth: true, - Key: [6.6], - Role: "placement", - }, + }, + { + path: "/repatriation-order", + name: "repatriation-order", + component: RepatriationOrder, + meta: { + Auth: true, + Key: [6.6], + Role: "placement", }, - { - path: "/repatriation-order/add", - name: "repatriation-order-add", - component: RepatriationOrderAdd, - meta: { - Auth: true, - Key: [6.6], - Role: "placement", - }, + }, + { + path: "/repatriation-order/add", + name: "repatriation-order-add", + component: RepatriationOrderAdd, + meta: { + Auth: true, + Key: [6.6], + Role: "placement", }, - ]; + }, +]; diff --git a/src/modules/05_placement/store.ts b/src/modules/05_placement/store.ts index 3f51227be..29f73c9b7 100644 --- a/src/modules/05_placement/store.ts +++ b/src/modules/05_placement/store.ts @@ -281,3 +281,17 @@ export const useOrderPlacementDataStore = defineStore("placementOrder", () => { DataMainOrder, }; }); + +export const useProbationDataStore = defineStore("probationDataStore", () => { + const ratingColors = ref([ + "light-blue-3", + "light-blue-6", + "blue", + "blue-9", + "blue-10", + ]); + + return { + ratingColors, + }; +}); diff --git a/src/modules/06_retirement/components/ListRetirement/AddList.vue b/src/modules/06_retirement/components/ListRetirement/AddList.vue index 01c06f54c..7f72cdc63 100644 --- a/src/modules/06_retirement/components/ListRetirement/AddList.vue +++ b/src/modules/06_retirement/components/ListRetirement/AddList.vue @@ -4,24 +4,35 @@ import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; import { useQuasar } from "quasar"; +import { useRoute } from "vue-router"; const $q = useQuasar(); //ใช้ noti quasar const mixin = useCounterMixin(); -const { messageError, success } = mixin; +const { messageError, success, showLoader, hideLoader } = mixin; +const route = useRoute(); +const type_params = route.params.type; +const id = route.params.id; const props = defineProps({ retireld: String, + listId: String, + UpdateListId: { + type: Function, + default: () => console.log("UpdateListId"), + }, }); const modal = ref(false); const retireld = ref(); +const type = ref(); +const listId = ref(props.listId); const columns = ref([ { - name: "order", + name: "index", required: true, label: "ลำดับ", - field: "order", + field: "index", align: "left", }, { @@ -106,29 +117,80 @@ const rows = ref([ ]); const filter = ref(""); watch(modal, () => { + // console.log(props); + if (modal.value === true) { retireld.value = props.retireld; - fecthlistRetire(retireld.value); + if (type_params === "officer") { + type.value = type_params; + } else type.value = "all"; + + fecthlistRetire(); } }); -const fecthlistRetire = async (retireld: any) => { - // await http - // .get(config.API.listRetire(retireld)) - // .then((res) => { - // console.log(res); - // rows.value = res.data.result.map((e: any) => ({ - // order: e.order, - // fullname: e.fullName, - // position: e.position, - // level: e.positionEmployeeLevel, - // organizationOrganization: e.organizationOrganization, - // })); - // }) - // .catch((e) => { - // messageError($q, e); - // }); +const updateListData = (retireld: string, pId: string) => { + props.UpdateListId(retireld, pId); }; -const clickAdd = () => { +const fecthlistRetire = async () => { + showLoader(); + await http + .get(config.API.profileOrganizRoot) + .then((res) => { + const id = res.data.result[0].id; + // console.log(id); + if (id !== "") { + findlist(id); + } + }) + .catch((e) => { + messageError($q, e); + }); +}; + +const findlist = async (id: string) => { + let data = [{}]; + if (type.value === "officer") { + data = [{ criteriaType: "is_retire", criteriaValue: "false" }]; + } else if (type.value === "all") { + // console.log("all"); + data = [ + { criteriaType: "is_retire", criteriaValue: "false" }, + { criteriaType: "employee_class", criteriaValue: "perm" }, + ]; + } + // console.log(data); + + await http + .post(config.API.profileSearchNewOcIdType(id, type.value), { + criterias: data, + }) + .then((res) => { + // console.log(res.data.result); + rows.value = res.data.result.map((e: any) => ({ + id: e.id, + fullname: e.fullname, + position: e.position, + level: e.positionEmployeeLevel, + organizationOrganization: e.oc, + })); + }) + .catch((e) => { + console.log(e); + }) + .finally(() => { + hideLoader(); + }); +}; +const clickAdd = (props: any) => { + // console.log("props===>",props.row.id) + if (retireld.value == undefined) { + retireld.value = id; + } + + let data: any = props.row.id; + + console.log("retireld & profileId",retireld.value, data); + $q.dialog({ title: "ยืนยันการเพิ่มข้อมูล", message: "ต้องการเพิ่มข้อมูลนี้ใช่หรือไม่?", @@ -139,17 +201,19 @@ const clickAdd = () => { persistent: true, }) .onOk(async () => { - console.log("เพิ่มข้อมูล"); + // console.log("เพิ่มข้อมูล"); await http - .put(config.API.profileRetire("123")) - .then(() => { + .put(config.API.profileRetire(retireld.value), { profileId: data }) + .then((res) => { success($q, "เพิ่มข้อมูลสำเร็จ"); + updateListData(retireld.value, data); }) .catch((e) => { messageError($q, e); }) .finally(() => { - fecthlistRetire(); + // fecthlistRetire(); + modal.value = false; }); }) .onCancel(() => {}) @@ -236,10 +300,10 @@ const paginationLabel = (start: number, end: number, total: number) => {