style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import PfPatientCard from './PfPatientCard'
|
||||
|
||||
export default {
|
||||
name: 'PfPatientCardB',
|
||||
components: { PfPatientCard },
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import emptyBed from '@/assets/png/emptyBed.png'
|
||||
|
||||
export default {
|
||||
name: 'TriageTicket',
|
||||
props: {
|
||||
|
||||
@@ -61,7 +61,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getLodop } from '../../../plugins/print/LodopFuncs'
|
||||
import {getLodop} from '../../../plugins/print/LodopFuncs'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -86,7 +86,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getLodop } from '../../../plugins/print/LodopFuncs'
|
||||
import {getLodop} from '../../../plugins/print/LodopFuncs'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
printData: {
|
||||
|
||||
@@ -47,7 +47,8 @@
|
||||
</template>
|
||||
<script>
|
||||
// import QRCode from 'qrcodejs2'
|
||||
import { getLodop } from '../../../plugins/print/LodopFuncs'
|
||||
import {getLodop} from '../../../plugins/print/LodopFuncs'
|
||||
|
||||
export default {
|
||||
name: 'VuePrintNb',
|
||||
props: {
|
||||
|
||||
@@ -60,7 +60,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getLodop } from '../../../plugins/print/LodopFuncs'
|
||||
import {getLodop} from '../../../plugins/print/LodopFuncs'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<script>
|
||||
import Print from 'vue-print-nb'
|
||||
import injectLabel from './injectLabel'
|
||||
|
||||
export default {
|
||||
components: { injectLabel },
|
||||
props: {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
import Print from 'vue-print-nb'
|
||||
import orderSheet from './orderSheet'
|
||||
import exeOrderSheet from './exeOrderSheet'
|
||||
|
||||
export default {
|
||||
name: 'VuePrintNb',
|
||||
components: { orderSheet, exeOrderSheet },
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import JsBarcode from 'jsbarcode';
|
||||
|
||||
export default {
|
||||
name: 'TriageTicket',
|
||||
props: {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<script>
|
||||
import Print from 'vue-print-nb'
|
||||
import triageTicketNew from './triageTicketNew'
|
||||
|
||||
export default {
|
||||
components: { triageTicketNew },
|
||||
props: {
|
||||
|
||||
@@ -117,7 +117,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getLodop } from '../../../plugins/print/LodopFuncs'
|
||||
import {getLodop} from '../../../plugins/print/LodopFuncs'
|
||||
|
||||
export default {
|
||||
name: 'VuePrintNb',
|
||||
props: {
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
</template>
|
||||
<script>
|
||||
import QRCode from 'qrcodejs2'
|
||||
import { getLodop } from '../../../plugins/print/LodopFuncs'
|
||||
import {getLodop} from '../../../plugins/print/LodopFuncs'
|
||||
|
||||
export default {
|
||||
name: 'WristPrint',
|
||||
data() {
|
||||
|
||||
@@ -129,6 +129,7 @@ import CrontabMonth from "./month.vue"
|
||||
import CrontabWeek from "./week.vue"
|
||||
import CrontabYear from "./year.vue"
|
||||
import CrontabResult from "./result.vue"
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const emit = defineEmits(['hide', 'fill'])
|
||||
const props = defineProps({
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { QuillEditor } from "@vueup/vue-quill";
|
||||
import {QuillEditor} from "@vueup/vue-quill";
|
||||
import "@vueup/vue-quill/dist/vue-quill.snow.css";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { ref, computed, watch, onMounted } from 'vue';
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {computed, onMounted, ref, watch} from 'vue';
|
||||
import modal from '@/plugins/modal';
|
||||
|
||||
const quillEditorRef = ref();
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, watch } from 'vue';
|
||||
import { getToken } from "@/utils/auth";
|
||||
import {computed, ref, watch} from 'vue';
|
||||
import {getToken} from "@/utils/auth";
|
||||
import modal from '@/plugins/modal';
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
|
||||
<script setup>
|
||||
import Fuse from 'fuse.js';
|
||||
import { getNormalPath } from '@/utils/openhis';
|
||||
import { isHttp } from '@/utils/validate';
|
||||
import {getNormalPath} from '@/utils/openhis';
|
||||
import {isHttp} from '@/utils/validate';
|
||||
import usePermissionStore from '@/store/modules/permission';
|
||||
|
||||
const search = ref('');
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { isExternal } from "@/utils/validate";
|
||||
import {isExternal} from "@/utils/validate";
|
||||
|
||||
const props = defineProps({
|
||||
src: {
|
||||
|
||||
@@ -46,8 +46,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { ref, computed, watch, getCurrentInstance } from 'vue';
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {computed, ref, watch} from 'vue';
|
||||
import modal from '@/plugins/modal';
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
@@ -56,8 +56,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { getPublicNoticeList, getUserNotices, markAsRead, getReadNoticeIds } from '@/api/system/notice'
|
||||
import {ref} from 'vue'
|
||||
import {getPublicNoticeList, getReadNoticeIds, getUserNotices, markAsRead} from '@/api/system/notice'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
|
||||
@@ -107,9 +107,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { watch } from 'vue';
|
||||
import { searchTraceNo } from '@/api/public';
|
||||
import { debounce } from 'lodash-es';
|
||||
import {watch} from 'vue';
|
||||
import {searchTraceNo} from '@/api/public';
|
||||
import {debounce} from 'lodash-es';
|
||||
|
||||
const props = defineProps({
|
||||
openDialog: {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { scrollTo } from '@/utils/scroll-to'
|
||||
import {scrollTo} from '@/utils/scroll-to'
|
||||
|
||||
const props = defineProps({
|
||||
total: {
|
||||
|
||||
@@ -167,9 +167,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, watch } from 'vue';
|
||||
import { Search, Refresh, Expand, Fold } from '@element-plus/icons-vue';
|
||||
import type { ElScrollbar } from 'element-plus';
|
||||
import {computed, ref, watch} from 'vue';
|
||||
import {Expand, Fold, Refresh, Search} from '@element-plus/icons-vue';
|
||||
import type {ElScrollbar} from 'element-plus';
|
||||
|
||||
interface PatientCardItem {
|
||||
encounterId: string;
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, onMounted, reactive, ref, watch } from 'vue';
|
||||
import {computed, onMounted, reactive, ref, watch} from 'vue';
|
||||
import BasePatientList from './index.vue';
|
||||
import { getPatientList } from '@/views/inpatientDoctor/home/components/api';
|
||||
import {getPatientList} from '@/views/inpatientDoctor/home/components/api';
|
||||
|
||||
defineOptions({
|
||||
name: 'PatientListWithData',
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { formatDate } from '@/utils/index';
|
||||
import {formatDate} from '@/utils/index';
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useFullscreen } from '@vueuse/core'
|
||||
import {useFullscreen} from '@vueuse/core'
|
||||
|
||||
const { isFullscreen, enter, exit, toggle } = useFullscreen();
|
||||
</script>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import {ref} from 'vue';
|
||||
import EditableTable from './EditableTable.vue';
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -228,9 +228,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, watch, nextTick, computed } from 'vue';
|
||||
import { Search } from '@element-plus/icons-vue';
|
||||
import type { EditableTableProps } from '../types/EditableTable.d';
|
||||
import {computed, nextTick, ref, watch} from 'vue';
|
||||
import {Search} from '@element-plus/icons-vue';
|
||||
import type {EditableTableProps} from '../types/EditableTable.d';
|
||||
|
||||
defineOptions({
|
||||
name: 'EditableTable',
|
||||
|
||||
@@ -36,9 +36,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue';
|
||||
import {computed, ref} from 'vue';
|
||||
import FormItem from './FormItem.vue';
|
||||
import type { FilterProps } from '../types/Filter.d';
|
||||
import type {FilterProps} from '../types/Filter.d';
|
||||
|
||||
defineOptions({
|
||||
name: 'Filter'
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue';
|
||||
import {computed, ref} from 'vue';
|
||||
import FormItem from './FormItem.vue';
|
||||
import type { FormProps } from '../types/Form.d';
|
||||
import type {FormProps} from '../types/Form.d';
|
||||
|
||||
defineOptions({
|
||||
name: 'Form'
|
||||
|
||||
@@ -93,8 +93,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import type { FormItemProps } from '../types/FormItem.d';
|
||||
import {computed} from 'vue';
|
||||
import type {FormItemProps} from '../types/FormItem.d';
|
||||
import QuickDateRange from './QuickDateRange.vue';
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -43,9 +43,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue';
|
||||
import {computed, ref} from 'vue';
|
||||
import FormItem from './FormItem.vue';
|
||||
import type { FormLayoutProps } from '../types/FormLayout.d';
|
||||
import type {FormLayoutProps} from '../types/FormLayout.d';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormLayout',
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import {ref} from 'vue';
|
||||
import FormLayout from './FormLayout.vue';
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, watch } from 'vue';
|
||||
import {computed} from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: [Number, String],
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, watch, computed } from 'vue';
|
||||
import type { QuickDateRangeProps } from '../types/QuickDateRange.d';
|
||||
import {computed, ref, watch} from 'vue';
|
||||
import type {QuickDateRangeProps} from '../types/QuickDateRange.d';
|
||||
|
||||
defineOptions({
|
||||
name: 'QuickDateRange'
|
||||
|
||||
@@ -99,9 +99,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, watch, onMounted, onUnmounted, nextTick } from 'vue';
|
||||
import {computed, nextTick, onMounted, onUnmounted, ref, watch} from 'vue';
|
||||
import Pagination from '@/components/Pagination/index.vue';
|
||||
import type { TableProps } from '../types/Table.d';
|
||||
import type {TableProps} from '../types/Table.d';
|
||||
|
||||
defineOptions({
|
||||
name: 'Table',
|
||||
|
||||
@@ -109,10 +109,11 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue';
|
||||
import {computed, ref} from 'vue';
|
||||
import Filter from './Filter.vue';
|
||||
import Table from './Table.vue';
|
||||
import type { TableLayoutProps, TreeNodeData } from '../types/TableLayout.d';
|
||||
import type {TableLayoutProps, TreeNodeData} from '../types/TableLayout.d';
|
||||
import type {FilterExpose} from '../types/Filter.d';
|
||||
|
||||
defineOptions({
|
||||
name: 'TableLayout',
|
||||
@@ -154,7 +155,6 @@ const emit = defineEmits<{
|
||||
}>();
|
||||
|
||||
const queryFormRef = ref<InstanceType<typeof import('element-plus').ElForm> | null>(null);
|
||||
import type { FilterExpose } from '../types/Filter.d';
|
||||
const queryFormComponentRef = ref<FilterExpose | null>(null);
|
||||
const sideSearchKeyword = ref<string>('');
|
||||
const treeRef = ref<InstanceType<typeof import('element-plus').ElTree> | null>(null);
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { constantRoutes } from "@/router"
|
||||
import { isHttp } from '@/utils/validate'
|
||||
import {constantRoutes} from "@/router"
|
||||
import {isHttp} from '@/utils/validate'
|
||||
import useAppStore from '@/store/modules/app'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import usePermissionStore from '@/store/modules/permission'
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, watch, onMounted, nextTick } from 'vue';
|
||||
import { getCurrentInstance } from 'vue';
|
||||
import {computed, nextTick, onMounted, ref, watch} from 'vue';
|
||||
|
||||
const selectTree = ref(null);
|
||||
const treeSelect = ref(null);
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import {computed} from 'vue'
|
||||
|
||||
const props = defineProps({
|
||||
tagId: {
|
||||
type: String,
|
||||
|
||||
@@ -130,9 +130,10 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue';
|
||||
import {ref} from 'vue';
|
||||
import BallTag from './components/BallTag.vue';
|
||||
import { patientInfo } from '@/views/inpatientDoctor/home/store/patient.js';
|
||||
import {patientInfo} from '@/views/inpatientDoctor/home/store/patient.js';
|
||||
|
||||
interface Props {
|
||||
visitCode?: string;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FormItemOption } from './FormItem.d';
|
||||
import type {FormItemOption} from './FormItem.d';
|
||||
|
||||
/**
|
||||
* 可编辑表格列配置类型
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { FormItemConfig } from './FormItem.d';
|
||||
import type { DefineComponent } from 'vue';
|
||||
import type {FormItemConfig} from './FormItem.d';
|
||||
|
||||
/**
|
||||
* Filter 组件的 Props 类型
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FormItemConfig } from './FormItem.d';
|
||||
import type {FormItemConfig} from './FormItem.d';
|
||||
|
||||
/**
|
||||
* Form 组件的 Props 类型
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { CSSProperties } from 'vue';
|
||||
import type {CSSProperties} from 'vue';
|
||||
|
||||
/**
|
||||
* 表单项选项类型
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FormItemConfig } from './FormItem.d';
|
||||
import type {FormItemConfig} from './FormItem.d';
|
||||
|
||||
/**
|
||||
* FormLayout 组件的 Props 类型
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DefineComponent } from 'vue';
|
||||
import type {DefineComponent} from 'vue';
|
||||
|
||||
/**
|
||||
* Pagination 组件的 Props 类型
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import type { DefineComponent } from 'vue';
|
||||
|
||||
/**
|
||||
* QuickDateRange 组件的 Props 类型
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TableColumn } from './TableLayout.d';
|
||||
import type {TableColumn} from './TableLayout.d';
|
||||
|
||||
/**
|
||||
* Table 组件的 Props 类型
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FormItemConfig } from './FormItem.d';
|
||||
import type {FormItemConfig} from './FormItem.d';
|
||||
|
||||
/**
|
||||
* 表格列配置类型
|
||||
|
||||
Reference in New Issue
Block a user