style(flowable): 优化流程相关代码的import顺序和代码结构

This commit is contained in:
2025-12-30 15:11:32 +08:00
parent 54cde91aac
commit d1670b79a0
2528 changed files with 7710 additions and 10794 deletions

View File

@@ -86,13 +86,11 @@
</template>
<script setup lang="ts">
import Filter from '@/components/TableLayout/Filter.vue';
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref, computed } from 'vue';
import {computed, onBeforeMount, onMounted, reactive, ref} from 'vue';
import TransferInDialog from './transferInDialog.vue';
import SignEntryDialog from './signEntryDialog.vue';
import { getPendingInfo, getBedInfo, getInit, childLocationList, getPractitionerWard } from './api';
import { formatDate } from '@/utils/index';
import { init } from '../../../basicmanage/consumablesBinding/components/api';
import { ElMessage, ElMessageBox, ElLoading } from 'element-plus';
import {childLocationList, getBedInfo, getInit, getPendingInfo, getPractitionerWard} from './api';
import {ElLoading, ElMessage, ElMessageBox} from 'element-plus';
import PendingPatientList from '@/components/PendingPatientList/index.vue';
// 定义相关类型

View File

@@ -18,7 +18,7 @@
</div>
</template>
<script setup lang="ts">
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue'
import {reactive, ref} from 'vue'
// const { proxy } = getCurrentInstance();
const emits = defineEmits(['drop_handler', 'click_handler'])
const props = defineProps({

View File

@@ -60,10 +60,10 @@
</el-dialog>
</template>
<script lang="ts" setup>
import { reactive, ref, onMounted, inject } from 'vue'
import type { FormInstance, FormRules } from 'element-plus'
import { dayjs, ElMessage } from 'element-plus'
import type { IInPatient } from '@/model/IInPatient'
import {onMounted, reactive, ref} from 'vue'
import type {FormInstance, FormRules} from 'element-plus'
import {dayjs} from 'element-plus'
import type {IInPatient} from '@/model/IInPatient'
const currentInPatient = ref<Partial<IInPatient>>({})
const initCurrentInPatient = () => {

View File

@@ -332,18 +332,11 @@
</el-dialog>
</template>
<script lang="ts" setup>
import { reactive, ref, onMounted, inject, type Ref, watch, nextTick } from 'vue';
import type { FormInstance, FormRules } from 'element-plus';
import { dayjs, ElMessage } from 'element-plus';
import {nextTick, onMounted, reactive, ref, watch} from 'vue';
import type {FormInstance, FormRules} from 'element-plus';
import {dayjs, ElMessage} from 'element-plus';
// import type { IInPatient } from '@/model/IInPatient'
import {
getBedInfo,
getDoctorInfo,
getNurseInfo,
getInit,
bedAssignment,
getPatientInfo,
} from './api';
import {bedAssignment, getBedInfo, getDoctorInfo, getInit, getNurseInfo, getPatientInfo,} from './api';
const props = defineProps({
pendingInfo: {

View File

@@ -364,24 +364,24 @@
</template>
<script setup lang="ts">
import { onMounted, ref, getCurrentInstance, nextTick, watch, defineProps } from 'vue';
import {defineProps, getCurrentInstance, nextTick, onMounted, ref, watch} from 'vue';
import {
childLocationList,
getDRMedication,
getInit,
getPatientInfo,
getPendingInfo,
getPersonAccount,
getPractitionerWard,
getPrescriptionList,
getPersonAccount,
getDRMedication,
updateTransferDepartment,
updateOutHospital,
getPendingInfo,
getPatientInfo,
getInit,
terminalCleaning,
updateOutHospital,
updateTransferDepartment,
} from './api';
import { formatDate, formatDateStr } from '@/utils/index';
import { ElMessage } from 'element-plus';
import { init } from '../../../basicmanage/consumablesBinding/components/api';
import {formatDate} from '@/utils/index';
import {ElMessage} from 'element-plus';
import moment from 'moment';
interface OptionItemTwo {
value: string | number;
label: string;

View File

@@ -30,7 +30,7 @@
</div>
</template>
<script setup lang="ts">
import { getCurrentInstance, nextTick, onBeforeMount, onMounted, reactive, ref } from 'vue';
import {nextTick, onBeforeMount, onMounted, reactive, ref} from 'vue';
import BedAllocation from './components/bedAllocation.vue';
import TransferOut from './components/transferOut.vue';