style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -285,15 +285,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
savePrescription,
|
||||
getPrescriptionList,
|
||||
getOrgTree,
|
||||
savePrescriptionSign,
|
||||
singOut,
|
||||
} from './api';
|
||||
import {getOrgTree, getPrescriptionList, savePrescription, savePrescriptionSign, singOut,} from './api';
|
||||
import adviceBaseList from './adviceBaseList';
|
||||
import { getCurrentInstance, nextTick, ref, watch } from 'vue';
|
||||
import {getCurrentInstance, nextTick, ref, watch} from 'vue';
|
||||
|
||||
const emit = defineEmits(['selectDiagnosis']);
|
||||
const prescriptionList = ref([]);
|
||||
|
||||
@@ -81,12 +81,11 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { getList } from './component/api.js';
|
||||
import { formatDate } from '@/utils/index';
|
||||
import {getList} from './component/api.js';
|
||||
import {formatDate} from '@/utils/index';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { nextTick } from 'vue';
|
||||
import {nextTick} from 'vue';
|
||||
import Prescriptionlist from './component/prescriptionlist.vue';
|
||||
import { onBeforeRouteLeave } from 'vue-router';
|
||||
|
||||
// // 监听路由离开事件
|
||||
// onBeforeRouteLeave((to, from, next) => {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import request from '@/utils/request'
|
||||
import axios from 'axios';
|
||||
|
||||
export function getRreportReturnIssue(query) {
|
||||
return request({
|
||||
url:'/report-manage/return-issue/report-return-issue',
|
||||
@@ -50,8 +52,6 @@ export function getAllUser(params) {
|
||||
}
|
||||
|
||||
|
||||
import axios from 'axios';
|
||||
|
||||
export function testWithAxios() {
|
||||
return axios.create(
|
||||
{
|
||||
|
||||
@@ -232,10 +232,9 @@
|
||||
</template>
|
||||
|
||||
<script setup name="dayEnd">
|
||||
import { getRreportReturnIssue, getTotal, getContractList } from './component/api';
|
||||
import dayjs from 'dayjs';
|
||||
import {getContractList, getRreportReturnIssue, getTotal} from './component/api';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { formatDate, formatDateStr } from '@/utils/index';
|
||||
import {formatDateStr} from '@/utils/index';
|
||||
import Decimal from 'decimal.js';
|
||||
|
||||
const userStore = useUserStore();
|
||||
|
||||
@@ -356,11 +356,11 @@
|
||||
</template>
|
||||
|
||||
<script setup name="dayEnd">
|
||||
import { getAllUser, getContractList, getClincReport, testWithAxios } from './component/api';
|
||||
import {getAllUser, getClincReport, getContractList} from './component/api';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { formatDate, formatDateStr } from '@/utils/index';
|
||||
import {formatDateStr} from '@/utils/index';
|
||||
import Decimal from 'decimal.js';
|
||||
import { hiprint } from 'vue-plugin-hiprint';
|
||||
import {hiprint} from 'vue-plugin-hiprint';
|
||||
import templateJson from './component/template.json';
|
||||
|
||||
const userStore = useUserStore();
|
||||
|
||||
@@ -313,30 +313,28 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getCurrentInstance, ref, computed } from 'vue';
|
||||
import {computed, getCurrentInstance, ref} from 'vue';
|
||||
import {
|
||||
getList,
|
||||
getDisposalList,
|
||||
execute,
|
||||
cancel,
|
||||
execute,
|
||||
getDisposalList,
|
||||
getEnPrescriptionInfo,
|
||||
getList,
|
||||
getPerformRecord,
|
||||
listWesternmedicine,
|
||||
printBloodCode,
|
||||
} from './components/api';
|
||||
import PerformRecordDialog from './components/performRecordDialog';
|
||||
import PrescriptionInfo from '../../doctorstation/components/prescription/prescriptionInfo.vue';
|
||||
import templateJson from './components/template.json';
|
||||
import prescriptionTemplate from './components/prescriptionTemplate.json';
|
||||
import bloodTemplate from './components/bloodTemplate.json';
|
||||
import disposalTemplate from './components/disposalTemplate.json';
|
||||
import { advicePrint, getAdjustPriceSwitchState, lotNumberMatch } from '@/api/public';
|
||||
import { formatDateStr } from '@/utils';
|
||||
import { hiprint } from 'vue-plugin-hiprint';
|
||||
import {advicePrint, getAdjustPriceSwitchState, lotNumberMatch} from '@/api/public';
|
||||
import {formatDateStr} from '@/utils';
|
||||
import {hiprint} from 'vue-plugin-hiprint';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { getGroupMarkers } from '@/utils/his';
|
||||
import {getGroupMarkers} from '@/utils/his';
|
||||
|
||||
import { simplePrint, PRINT_TEMPLATE } from '@/utils/printUtils.js';
|
||||
import {PRINT_TEMPLATE, simplePrint} from '@/utils/printUtils.js';
|
||||
// 患者搜索
|
||||
const queryParams = ref({
|
||||
pageNo: 1,
|
||||
|
||||
@@ -81,7 +81,8 @@
|
||||
</template>
|
||||
|
||||
<script setup name="EPrescribingDetailDialog">
|
||||
import { formatDate, formatDateStr } from '@/utils/index';
|
||||
import {formatDate} from '@/utils/index';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { unit_code, yb_type, fin_type_code, activity_category_code, chrgitm_lv } = proxy.useDict(
|
||||
'unit_code',
|
||||
|
||||
@@ -124,7 +124,6 @@
|
||||
// deptTreeSelect,
|
||||
// locationTreeSelect,
|
||||
// } from './diagnosistreatment';
|
||||
import { formatDate, formatDateStr } from '@/utils/index';
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { unit_code, yb_type, fin_type_code, activity_category_code, chrgitm_lv } = proxy.useDict(
|
||||
'unit_code',
|
||||
|
||||
@@ -288,7 +288,8 @@
|
||||
</template>
|
||||
|
||||
<script setup name="PrescriptionQueryDialog">
|
||||
import { formatDate, formatDateStr } from '@/utils/index';
|
||||
import {formatDate} from '@/utils/index';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const title = ref('');
|
||||
|
||||
@@ -169,28 +169,28 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
getVeriPrescriptionInfo,
|
||||
queryMedPrescription,
|
||||
queryPrescription,
|
||||
getPrescriptionDetailInfo,
|
||||
uploadPrescriptionStatus,
|
||||
refusePrescriptionStatus,
|
||||
quashPrescriptionStatus,
|
||||
preVerification,
|
||||
eleSignature,
|
||||
uploadElePrescription,
|
||||
revokePrescription,
|
||||
} from './components/api';
|
||||
import medicinePickupQueryDialog from './components/medicinePickupQueryDialog.vue';
|
||||
import prescriptionQueryDialog from './components/prescriptionQueryDialog.vue';
|
||||
import ePrescribingDetailDialog from './components/ePrescribingDetailDialog.vue';
|
||||
import { getCurrentInstance } from 'vue';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { dayjs, ElMessage } from 'element-plus';
|
||||
import { formatDate, formatDateStr } from '@/utils/index';
|
||||
import {
|
||||
eleSignature,
|
||||
getPrescriptionDetailInfo,
|
||||
getVeriPrescriptionInfo,
|
||||
preVerification,
|
||||
quashPrescriptionStatus,
|
||||
queryMedPrescription,
|
||||
queryPrescription,
|
||||
refusePrescriptionStatus,
|
||||
revokePrescription,
|
||||
uploadElePrescription,
|
||||
uploadPrescriptionStatus,
|
||||
} from './components/api';
|
||||
import medicinePickupQueryDialog from './components/medicinePickupQueryDialog.vue';
|
||||
import prescriptionQueryDialog from './components/prescriptionQueryDialog.vue';
|
||||
import ePrescribingDetailDialog from './components/ePrescribingDetailDialog.vue';
|
||||
import {getCurrentInstance} from 'vue';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import {dayjs, ElMessage} from 'element-plus';
|
||||
import {formatDate} from '@/utils/index';
|
||||
|
||||
const userStore = useUserStore();
|
||||
const userStore = useUserStore();
|
||||
|
||||
const emit = defineEmits(['selectDiagnosis']);
|
||||
const open = ref(false);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getPrescriptionPageInfo(queryParams) {
|
||||
return request({
|
||||
url: '/doctor-station/main/prescription-page-info',
|
||||
|
||||
@@ -195,9 +195,7 @@
|
||||
</template>
|
||||
|
||||
<script setup name="historicalPrescriptionDetail">
|
||||
import {
|
||||
getPrescriptionDetail
|
||||
} from "./api";
|
||||
import {getPrescriptionDetail} from "./api";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
</template>
|
||||
|
||||
<script setup name="historicalPrescriptionDetail">
|
||||
import { getPrescriptionDetail } from './api';
|
||||
import {getPrescriptionDetail} from './api';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
|
||||
@@ -106,10 +106,10 @@
|
||||
</template>
|
||||
|
||||
<script setup name="historicalPrescription">
|
||||
import { ref } from 'vue';
|
||||
import { getPrescriptionPageInfo } from './component/api';
|
||||
import historicalPrescriptionDetail from './component/details.vue';
|
||||
import {ref} from 'vue';
|
||||
import {getPrescriptionPageInfo} from './component/api';
|
||||
import Prescription from './component/prescription.vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const { item_category_code } = proxy.useDict('item_category_code');
|
||||
|
||||
@@ -67,8 +67,9 @@
|
||||
|
||||
<script setup name="incomeStatement">
|
||||
const { proxy } = getCurrentInstance();
|
||||
import { getChargeItemByOrg, getDepartmentList } from './components/api.js';
|
||||
import { formatDate } from '@/utils/index';
|
||||
import {getChargeItemByOrg, getDepartmentList} from './components/api.js';
|
||||
import {formatDate} from '@/utils/index';
|
||||
|
||||
const occurrenceTime = ref([formatDate(new Date()),formatDate(new Date())]);
|
||||
const total = ref(0);
|
||||
const queryParams = ref({
|
||||
|
||||
@@ -163,20 +163,19 @@
|
||||
</template>
|
||||
|
||||
<script setup name="InfusionRecord">
|
||||
import { ref, computed } from 'vue';
|
||||
import {ref} from 'vue';
|
||||
import {
|
||||
cancelPerform,
|
||||
editPatientInfusionTime,
|
||||
getAdvice,
|
||||
init,
|
||||
listInfusionRecord,
|
||||
listPatientInfusionPerformRecord,
|
||||
listPatients,
|
||||
updateInfusionRecord,
|
||||
listInfusionRecord,
|
||||
editPatientInfusionTime,
|
||||
listPatientInfusionPerformRecord,
|
||||
getBottleLabel,
|
||||
cancelPerform,
|
||||
init,
|
||||
getAdvice,
|
||||
} from './component/api';
|
||||
import AdviceListDialog from './component/adviceListDialog.vue';
|
||||
import { formatDate, formatDateStr } from '@/utils/index';
|
||||
import {formatDate, formatDateStr} from '@/utils/index';
|
||||
|
||||
const showSearch = ref(true);
|
||||
const total = ref(1);
|
||||
|
||||
@@ -184,10 +184,10 @@
|
||||
</template>
|
||||
|
||||
<script setup name="ReturnDrug">
|
||||
import { getCurrentInstance, nextTick } from 'vue';
|
||||
import { getList, getReturnDrugList, returnDrug, init, itemTraceNo } from './components/api';
|
||||
import { formatDateStr } from '@/utils/index';
|
||||
import { debounce } from 'lodash-es';
|
||||
import {getCurrentInstance, nextTick} from 'vue';
|
||||
import {getList, getReturnDrugList, init, itemTraceNo, returnDrug} from './components/api';
|
||||
import {formatDateStr} from '@/utils/index';
|
||||
import {debounce} from 'lodash-es';
|
||||
import TraceNoDialog from '@/components/OpenHis/TraceNoDialog/index.vue';
|
||||
|
||||
const queryParams = ref({
|
||||
|
||||
@@ -225,18 +225,17 @@
|
||||
</template>
|
||||
|
||||
<script setup name="SkinRecord">
|
||||
import { ref, reactive, toRefs, getCurrentInstance } from 'vue';
|
||||
import {getCurrentInstance, reactive, ref, toRefs} from 'vue';
|
||||
import {
|
||||
addSkinTestRecord,
|
||||
getList,
|
||||
getNurseList,
|
||||
listSkinRecord,
|
||||
updateNurseSign,
|
||||
updateSkinTestRecord,
|
||||
lists,
|
||||
getNurseList,
|
||||
addSkinTestRecord,
|
||||
} from './component/api';
|
||||
import { parseTime } from '@/utils/openhis';
|
||||
import { formatDateStr } from '@/utils/index';
|
||||
import {parseTime} from '@/utils/openhis';
|
||||
import {formatDateStr} from '@/utils/index';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
Reference in New Issue
Block a user