style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listUser } from '@/api/system/user';
|
||||
import {listUser} from '@/api/system/user';
|
||||
import request from '@/utils/request'; // 导入请求工具
|
||||
import useUserStore from '@/store/modules/user'; // 导入用户store
|
||||
|
||||
|
||||
@@ -98,12 +98,12 @@
|
||||
|
||||
<script setup name="BodyStructure">
|
||||
import {
|
||||
getList,
|
||||
deleteBodyStructure,
|
||||
addBodyStructure,
|
||||
updateBodyStructure,
|
||||
deleteBodyStructure,
|
||||
disableBodyStructure,
|
||||
enableBodyStructure,
|
||||
getList,
|
||||
updateBodyStructure,
|
||||
} from './components/api';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
@@ -85,12 +85,13 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script setup >
|
||||
import { ref, onMounted } from 'vue'
|
||||
<script setup>
|
||||
import {onMounted, ref} from 'vue'
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { add, update,getLocationTree } from '../api';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { components } from '@/template';
|
||||
import {add, getLocationTree, update} from '../api';
|
||||
import {ElMessage} from 'element-plus';
|
||||
import {components} from '@/template';
|
||||
|
||||
const emits = defineEmits(['submitOk'])
|
||||
const props = defineProps({
|
||||
title: {
|
||||
|
||||
@@ -78,9 +78,9 @@
|
||||
</template>
|
||||
<script setup>
|
||||
// 从Vue导入所需的API
|
||||
import { ref, reactive, onMounted, defineAsyncComponent, nextTick, watch } from 'vue';
|
||||
import { ElMessageBox, ElMessage, ElLoading, ElTree } from 'element-plus';
|
||||
import { getTreeList, init, getDefinitionById, deleteDefinition,getLocationTree } from './api';
|
||||
import {nextTick, onMounted, reactive, ref} from 'vue';
|
||||
import {ElLoading, ElMessage, ElMessageBox, ElTree} from 'element-plus';
|
||||
import {deleteDefinition, getDefinitionById, getLocationTree, getTreeList, init} from './api';
|
||||
import EditTemplate from './components/editTemplate.vue';
|
||||
// 添加当前模板路径和组件的响应式变量
|
||||
const currentComponent = ref('');
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const baseUrl='/document/statistics/definition'
|
||||
// 初始化
|
||||
export function init() {
|
||||
|
||||
@@ -40,10 +40,9 @@
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { components } from '@/template';
|
||||
import {onMounted, ref} from 'vue';
|
||||
import {ElMessage} from 'element-plus';
|
||||
|
||||
const emits = defineEmits(['submitOk']);
|
||||
const props = defineProps({
|
||||
formData: {
|
||||
|
||||
@@ -144,8 +144,9 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Post">
|
||||
import { init, add, update, getPageList, deleteStatistics } from './api';
|
||||
import { optionselect as getDictOptionselect, getType } from '@/api/system/dict/type';
|
||||
import {add, deleteStatistics, getPageList, init, update} from './api';
|
||||
import {optionselect as getDictOptionselect} from '@/api/system/dict/type';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { sys_normal_disable } = proxy.useDict('sys_normal_disable');
|
||||
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
</template>
|
||||
<script setup>
|
||||
// 从Vue导入所需的API
|
||||
import { ref, reactive, onMounted, defineAsyncComponent, nextTick, watch } from 'vue';
|
||||
import { ElMessageBox, ElMessage, } from 'element-plus';
|
||||
import { getPageList, init, } from './api';
|
||||
import {onMounted, reactive, ref} from 'vue';
|
||||
import {init,} from './api';
|
||||
import EditStatistics from './components/editStatistics.vue';
|
||||
|
||||
const queryParams = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getActivityList } from './api';
|
||||
import { watch } from 'vue';
|
||||
import { throttle } from 'lodash-es';
|
||||
import {getActivityList} from './api';
|
||||
import {watch} from 'vue';
|
||||
import {throttle} from 'lodash-es';
|
||||
|
||||
const props = defineProps({
|
||||
searchKey: {
|
||||
|
||||
@@ -173,8 +173,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, watch } from 'vue';
|
||||
import { bind, deleteBind, init } from './api';
|
||||
import {reactive, watch} from 'vue';
|
||||
import {bind, deleteBind, init} from './api';
|
||||
import PopoverList from '@/components/OpenHis/popoverList/index.vue';
|
||||
import DeviceList from './deviceList.vue';
|
||||
import ActivityList from './activityList.vue';
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getFullDeviceList } from './api';
|
||||
import { watch } from 'vue';
|
||||
import { throttle } from 'lodash-es';
|
||||
import {getFullDeviceList} from './api';
|
||||
import {watch} from 'vue';
|
||||
import {throttle} from 'lodash-es';
|
||||
|
||||
const props = defineProps({
|
||||
searchKey: {
|
||||
|
||||
@@ -74,8 +74,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { getActivityList, getBindList, getRegistrationfeeList } from './components/api.js';
|
||||
import {ref} from 'vue';
|
||||
import {getActivityList, getBindList, getRegistrationfeeList} from './components/api.js';
|
||||
import ConsumablesList from './components/consumablesList.vue';
|
||||
|
||||
const activityList = ref([]);
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
</style>
|
||||
|
||||
<script setup>
|
||||
import { ref, watch, defineProps, defineEmits } from "vue";
|
||||
import {defineEmits, defineProps, ref, watch} from "vue";
|
||||
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
@@ -171,15 +171,11 @@
|
||||
</template>
|
||||
|
||||
<script setup name="frequency">
|
||||
import {
|
||||
addFrequencyDetail, deleteFrequencyDetail,
|
||||
getFrequencyDetailList
|
||||
} from './components/frequency.js';
|
||||
import { ElMessage } from "element-plus";
|
||||
import {
|
||||
listData
|
||||
} from "@/api/system/dict/data.js";
|
||||
import {addFrequencyDetail, deleteFrequencyDetail, getFrequencyDetailList} from './components/frequency.js';
|
||||
import {ElMessage} from "element-plus";
|
||||
import {listData} from "@/api/system/dict/data.js";
|
||||
import FreForm from "@/views/basicmanage/frequency/components/FreForm.vue";
|
||||
|
||||
const frequency = ref([]);
|
||||
const frequencyDetail = ref([]);
|
||||
const frequencyTotal = ref(0);
|
||||
|
||||
@@ -55,12 +55,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup name="LaboratoryTests">
|
||||
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue';
|
||||
import {
|
||||
getApplicationList,
|
||||
editImplementDepartment,
|
||||
addImplementDepartment,
|
||||
} from './implementDepartment.js';
|
||||
import {getCurrentInstance, onMounted, reactive, ref} from 'vue';
|
||||
import {addImplementDepartment, editImplementDepartment, getApplicationList,} from './implementDepartment.js';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
// 属性
|
||||
const props = defineProps({
|
||||
|
||||
@@ -178,17 +178,18 @@
|
||||
</template>
|
||||
|
||||
<script setup name="implementDepartment">
|
||||
import { ref } from 'vue';
|
||||
import {ref} from 'vue';
|
||||
import {
|
||||
getImplementDepartmentList,
|
||||
addImplementDepartment,
|
||||
deleteImplementDepartment,
|
||||
editImplementDepartment,
|
||||
getAllTreatmentList,
|
||||
getDiagnosisTreatmentList,
|
||||
getDiseaseTreatmentInit,
|
||||
getAllTreatmentList,
|
||||
addImplementDepartment,
|
||||
editImplementDepartment,
|
||||
deleteImplementDepartment,
|
||||
getImplementDepartmentList,
|
||||
} from './components/implementDepartment';
|
||||
import BacthAddItemDialog from './components/batchAddDialog.vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const organization = ref([]);
|
||||
const loading = ref(true);
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { nextTick } from 'vue';
|
||||
import { getAdviceBaseInfo } from './api';
|
||||
import { throttle } from 'lodash-es';
|
||||
import {nextTick} from 'vue';
|
||||
import {getAdviceBaseInfo} from './api';
|
||||
import {throttle} from 'lodash-es';
|
||||
|
||||
const props = defineProps({
|
||||
adviceQueryParams: {
|
||||
|
||||
@@ -368,21 +368,21 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import {onMounted, reactive, ref} from 'vue';
|
||||
import {
|
||||
getPersonalList,
|
||||
getDeptList,
|
||||
getAllList,
|
||||
queryParticipantList,
|
||||
savePersonal,
|
||||
saveDepartment,
|
||||
saveAll,
|
||||
queryGroupDetail,
|
||||
getOrgTree,
|
||||
deleteGroup,
|
||||
getAllList,
|
||||
getDeptList,
|
||||
getOrgTree,
|
||||
getPersonalList,
|
||||
queryGroupDetail,
|
||||
queryParticipantList,
|
||||
saveAll,
|
||||
saveDepartment,
|
||||
savePersonal,
|
||||
} from './components/api.js';
|
||||
import adviceBaseList from './components/adviceBaseList';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import {ElMessage} from 'element-plus';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
|
||||
// 获取当前实例用于使用proxy
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { nextTick } from 'vue';
|
||||
import { getAdviceBaseInfo } from './api';
|
||||
import { throttle } from 'lodash-es';
|
||||
import {nextTick} from 'vue';
|
||||
import {getAdviceBaseInfo} from './api';
|
||||
import {throttle} from 'lodash-es';
|
||||
|
||||
const props = defineProps({
|
||||
adviceQueryParams: {
|
||||
|
||||
@@ -569,10 +569,10 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getOrgTree, saveOrderGroup } from './api';
|
||||
import {getOrgTree, saveOrderGroup} from './api';
|
||||
import adviceBaseList from './adviceBaseList';
|
||||
import { getCurrentInstance, nextTick, watch } from 'vue';
|
||||
import { calculateQuantityByDays, formatNumber } from '@/utils/his';
|
||||
import {getCurrentInstance, nextTick, watch} from 'vue';
|
||||
import {calculateQuantityByDays, formatNumber} from '@/utils/his';
|
||||
|
||||
const emit = defineEmits(['selectDiagnosis']);
|
||||
const total = ref(0);
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
|
||||
<script setup>
|
||||
import Prescriptionlist from './components/prescriptionlist.vue';
|
||||
import { getOrderGroup, deleteOrderGroup } from './components/api.js';
|
||||
import {deleteOrderGroup, getOrderGroup} from './components/api.js';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { use_range } = proxy.useDict('use_range');
|
||||
|
||||
@@ -178,7 +178,16 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Organization">
|
||||
import { getList, deleteOrganization, addOrganization, updateOrganization, disableOrg, initOrgTypeOption, enableOrg, getOrgDetail } from './components/api';
|
||||
import {
|
||||
addOrganization,
|
||||
deleteOrganization,
|
||||
disableOrg,
|
||||
enableOrg,
|
||||
getList,
|
||||
getOrgDetail,
|
||||
initOrgTypeOption,
|
||||
updateOrganization
|
||||
} from './components/api';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const loading = ref(true);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 操作日志工具
|
||||
* 所有操作必须有操作日志
|
||||
*/
|
||||
import { addOperationLog } from './outpatientNumber'
|
||||
import {addOperationLog} from './outpatientNumber'
|
||||
|
||||
/**
|
||||
* 记录操作日志
|
||||
|
||||
@@ -133,11 +133,11 @@
|
||||
</template>
|
||||
|
||||
<script setup name="outpatientNoManagement">
|
||||
import { ref, reactive, toRefs, onActivated, getCurrentInstance } from 'vue'
|
||||
import {getCurrentInstance, onActivated, reactive, ref, toRefs} from 'vue'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
import { getConfigKey } from '@/api/system/config'
|
||||
import { logQuery, logCreate, logUpdate, logDelete } from './components/operationLog'
|
||||
import { listOutpatientNo, addOutpatientNo, updateOutpatientNo, deleteOutpatientNo } from './components/outpatientNumber'
|
||||
import {getConfigKey} from '@/api/system/config'
|
||||
import {logCreate, logDelete, logQuery, logUpdate} from './components/operationLog'
|
||||
import {addOutpatientNo, deleteOutpatientNo, listOutpatientNo, updateOutpatientNo} from './components/outpatientNumber'
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const userStore = useUserStore()
|
||||
|
||||
@@ -208,21 +208,20 @@
|
||||
|
||||
<script setup name="pharmacyDepartment">
|
||||
import {
|
||||
getPharmacyDepartmentList,
|
||||
getDiseaseTreatmentInit,
|
||||
getPharmacyDepartmentOne,
|
||||
getDiseaseTreatmentInitLoc,
|
||||
addPharmacyDepartment,
|
||||
editPharmacyDepartment,
|
||||
deletePharmacyDepartment,
|
||||
editPharmacyDepartment,
|
||||
getDiseaseTreatmentInit,
|
||||
getDiseaseTreatmentInitLoc,
|
||||
getPharmacyDepartmentList,
|
||||
} from './components/pharmacyDepartment';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { distribution_category_code, med_category_code, device_category_code } = proxy.useDict(
|
||||
'distribution_category_code',
|
||||
'med_category_code',
|
||||
'device_category_code'
|
||||
);
|
||||
import { nextTick } from 'vue';
|
||||
|
||||
const diagnosisTreatmentList = ref([]);
|
||||
const loading = ref(false);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import request from '@/utils/request'
|
||||
import { parseStrEmpty } from "@/utils/openhis";
|
||||
|
||||
// 查询厂商列表
|
||||
export function getSupplierList(query) {
|
||||
|
||||
@@ -218,14 +218,14 @@
|
||||
|
||||
<script setup name="Supplier">
|
||||
import {
|
||||
getSupplierList,
|
||||
editSupplier,
|
||||
addSupplier,
|
||||
getSupplierOne,
|
||||
stopSupplier,
|
||||
startSupplier,
|
||||
getSupplierInit,
|
||||
deptTreeSelect,
|
||||
editSupplier,
|
||||
getSupplierInit,
|
||||
getSupplierList,
|
||||
getSupplierOne,
|
||||
startSupplier,
|
||||
stopSupplier,
|
||||
} from './components/supplier';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
@@ -306,17 +306,18 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Ward">
|
||||
import { onMounted, ref } from 'vue';
|
||||
import {onMounted, ref} from 'vue';
|
||||
import {
|
||||
getList,
|
||||
addLocation,
|
||||
getOrgList,
|
||||
deleteLocation,
|
||||
editLocation,
|
||||
unableLocation,
|
||||
enableLocation,
|
||||
getList,
|
||||
getOrgList,
|
||||
unableLocation,
|
||||
} from './components/api';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import {ElMessage} from 'element-plus';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
// 病区参数
|
||||
const queryParams = ref({
|
||||
|
||||
@@ -138,15 +138,13 @@
|
||||
|
||||
<script setup name="Organization">
|
||||
import {
|
||||
getList,
|
||||
addWarehouse,
|
||||
updateWarehouse,
|
||||
deleteWarehouse,
|
||||
enableLocation,
|
||||
unableLocation,
|
||||
// disableOrg,
|
||||
getList,
|
||||
init,
|
||||
// enableOrg,
|
||||
unableLocation,
|
||||
updateWarehouse,
|
||||
} from './components/api';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
Reference in New Issue
Block a user