ส่งออกคำสั่ง ==> โครงสร้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-16 11:30:09 +07:00
parent fcb444db77
commit c6efe264b0
3 changed files with 296 additions and 72 deletions

View file

@ -28,7 +28,6 @@ import DialogMovePos from "@/modules/02_organization/components/DialogMovePos.vu
import DialogHistoryPos from "@/modules/02_organization/components/DialogHistoryPos.vue"; //
import DialogSelectPerson from "@/modules/02_organization/components/DialogSelectPerson.vue"; //
import DialogSuccession from "@/modules/02_organization/components/DialogSuccession.vue"; //
import DialogCreateCommandORG from "@/modules/18_command/components/DialogCreateCommandORG.vue";
const $q = useQuasar();
const store = useOrganizational();
@ -252,7 +251,6 @@ const columnsExpand = ref<QTableProps["columns"]>([
]);
const dialogPosition = ref<boolean>(false); //
const modalCommand = ref<boolean>(false); //
/**
* function openPopup เพมอตรากำล
@ -542,18 +540,6 @@ watch(
<q-tooltip>ดาวนโหลด</q-tooltip>
</q-btn>
<q-btn
v-if="store.typeOrganizational === 'draft'"
flat
round
dense
color="add"
icon="mdi-account-arrow-right"
@click.prevent="modalCommand = true"
>
<q-tooltip>งไปออกคำส</q-tooltip>
</q-btn>
<q-space />
<div class="row q-gutter-md">
<div>
@ -905,12 +891,6 @@ watch(
<!-- บทอดตำแหน -->
<DialogSuccession v-model:modal="modalDialogSuccession" :rowId="rowId" />
<!-- dialog สรางคำส -->
<DialogCreateCommandORG
v-model:modal="modalCommand"
command-type-code="C-PM-38"
/>
</template>
<style lang="scss" scoped>

View file

@ -22,6 +22,7 @@ import StructureView from "@/modules/02_organization/components/StructureMain.vu
import StructureOrgMain from "@/modules/02_organization/components/StructureOrgMain.vue";
import DialogFormNewStructure from "@/modules/02_organization/components/DialogNewStructure.vue";
import DialogDateTime from "@/modules/02_organization/components/DialogFormDateTime.vue";
import DialogCreateCommandORG from "@/modules/18_command/components/DialogCreateCommandORG.vue"; //
/**
* use
@ -30,9 +31,7 @@ const $q = useQuasar();
const { showLoader, hideLoader, messageError, date2Thai } = useCounterMixin();
const store = useOrganizational();
/**
* วแปร
*/
/** ตัวแปร*/
const modalNewStructure = ref<boolean>(false); //
const modalDateTime = ref<boolean>(false); //
const isStatusData = ref<boolean>(false); //
@ -43,29 +42,10 @@ const historyId = ref<string>(""); // ID ประวัติโครงสร
const labelHistory = ref<string>("ประวัติโครงสร้าง"); //
const count = ref<number>(0);
//
const itemStructure = ref<DataOption[]>([
{
id: "NEW",
name: "สร้างใหม่",
},
{
id: "ORG",
name: "ทำสำเนาเฉพาะโครงสร้าง",
},
{
id: "ORG_POSITION",
name: "ทำสำเนาโครงสร้างและตำแหน่ง",
},
{
id: "ORG_POSITION_PERSON",
name: "ทำสำเนาโครงสร้าง ตำแหน่งและคนครอง",
},
]);
const modalCommand = ref<boolean>(false); //
/**
* function เรยกขอมลโครงสราง แบบปนและ แบบราง
*
* เกบขอมลใน store
*/
async function fetchOrganizationActive() {
@ -225,6 +205,7 @@ onMounted(async () => {
</div>
</q-card>
</div>
<div v-else>
<q-card class="my-card">
<q-card-section class="q-pa-sm">
@ -294,6 +275,17 @@ onMounted(async () => {
@click="ocClickAddStructure('ADD')"
class="q-px-md"
/>
<q-btn
v-if="store.typeOrganizational === 'draft'"
flat
round
dense
color="add"
icon="mdi-account-arrow-right"
@click.prevent="modalCommand = true"
>
<q-tooltip>งไปออกคำส</q-tooltip>
</q-btn>
<!-- <q-btn-dropdown
v-if="checkPermission($route)?.attrOwnership == 'OWNER'"
@ -383,6 +375,13 @@ onMounted(async () => {
:close="onClickDateTime"
:fetch-active="fetchOrganizationActive"
/>
<!-- dialog งไปออกคำส -->
<DialogCreateCommandORG
v-model:modal="modalCommand"
command-type-code="C-PM-38"
:org-publish-date="store.orgPublishDate as Date | undefined"
/>
</template>
<style scoped></style>