style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -348,8 +348,8 @@
|
||||
</template>
|
||||
|
||||
<script setup name="MedicineDialog">
|
||||
import { editDevice, addDevice, deptTreeSelect, locationTreeSelect } from './device';
|
||||
import { getDicts } from '@/api/system/dict/data';
|
||||
import {addDevice, deptTreeSelect, editDevice, locationTreeSelect} from './device';
|
||||
import {getDicts} from '@/api/system/dict/data';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { device_type_code, unit_code, fin_type_code, chrgitm_lv, med_chrgitm_type } = proxy.useDict(
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getYbDeviceList } from './device';
|
||||
import {getYbDeviceList} from './device';
|
||||
|
||||
const emit = defineEmits(['selectDevice']);
|
||||
const visible = ref(false);
|
||||
|
||||
@@ -442,18 +442,18 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Device">
|
||||
import { getToken } from '@/utils/auth';
|
||||
import {getToken} from '@/utils/auth';
|
||||
import {
|
||||
getDeviceList,
|
||||
stopDevice,
|
||||
startDevice,
|
||||
getDiseaseTreatmentInit,
|
||||
getDeviceOne,
|
||||
getDiseaseTreatmentInit,
|
||||
startDevice,
|
||||
stopDevice,
|
||||
validateEditDevice,
|
||||
} from './components/device';
|
||||
import deviceDialog from './components/deviceDialog';
|
||||
import DeviceYbDialog from './components/deviceYbDialog';
|
||||
import { nextTick } from 'vue';
|
||||
import {nextTick} from 'vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getYbDiagnosisTreatmentList } from './diagnosistreatment';
|
||||
import {getYbDiagnosisTreatmentList} from './diagnosistreatment';
|
||||
|
||||
const emit = defineEmits(['selectDiagnosisTreatment']);
|
||||
const visible = ref(false);
|
||||
|
||||
@@ -350,17 +350,18 @@
|
||||
|
||||
<script setup name="DiagnosisTreatmentDialog">
|
||||
import {
|
||||
getDiagnosisTreatmentList,
|
||||
editDiagnosisTreatment,
|
||||
addDiagnosisTreatment,
|
||||
deptTreeSelect,
|
||||
bodyTreeSelect,
|
||||
deptTreeSelect,
|
||||
editDiagnosisTreatment,
|
||||
getDiagnosisTreatmentList,
|
||||
locationTreeSelect,
|
||||
} from './diagnosistreatment';
|
||||
import PopoverList from '@/components/OpenHis/popoverList/index.vue';
|
||||
import medicineList from './medicineList.vue';
|
||||
import MedicineList from '../components/medicineList.vue';
|
||||
import { getCurrentInstance, nextTick, watch } from 'vue';
|
||||
import {getCurrentInstance, nextTick, watch} from 'vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { unit_code, med_chrgitm_type, fin_type_code, activity_category_code, chrgitm_lv } =
|
||||
proxy.useDict(
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getDiagnosisTreatmentList } from './diagnosistreatment';
|
||||
import { ref, watch } from 'vue';
|
||||
import {getDiagnosisTreatmentList} from './diagnosistreatment';
|
||||
import {ref, watch} from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
itemType: {
|
||||
|
||||
@@ -276,18 +276,18 @@
|
||||
</template>
|
||||
|
||||
<script setup name="DiagnosisTreatment">
|
||||
import { getToken } from '@/utils/auth';
|
||||
import {getToken} from '@/utils/auth';
|
||||
import {
|
||||
getDiagnosisTreatmentList,
|
||||
stopDiseaseTreatment,
|
||||
startDiseaseTreatment,
|
||||
getDiseaseTreatmentInit,
|
||||
getDiagnosisTreatmentOne,
|
||||
getDiseaseTreatmentInit,
|
||||
startDiseaseTreatment,
|
||||
stopDiseaseTreatment,
|
||||
validateActivityEdit,
|
||||
} from './components/diagnosistreatment';
|
||||
import diagnosisTreatmentDialog from './components/diagnosisTreatmentDialog';
|
||||
import DiagTreYbDialog from './components/diagTreYbDialog';
|
||||
import { nextTick } from 'vue';
|
||||
import {nextTick} from 'vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
|
||||
@@ -298,14 +298,15 @@
|
||||
|
||||
<script setup name="Disease">
|
||||
import {
|
||||
getDiseaseList,
|
||||
editDisease,
|
||||
addDisease,
|
||||
editDisease,
|
||||
getDiseaseCategory,
|
||||
getDiseaseList,
|
||||
getDiseaseOne,
|
||||
stopDisease,
|
||||
startDisease,
|
||||
stopDisease,
|
||||
} from './components/disease';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { condition_type_code } = proxy.useDict('condition_type_code');
|
||||
|
||||
|
||||
@@ -655,11 +655,9 @@
|
||||
</template>
|
||||
|
||||
<script setup name="MedicineDialog">
|
||||
import { deptTreeSelect, locationTreeSelect } from './medicine';
|
||||
import moment from 'moment';
|
||||
import {deptTreeSelect, locationTreeSelect, medicineDictMap} from './medicine';
|
||||
|
||||
const router = useRouter();
|
||||
import { medicineDictMap } from './medicine'
|
||||
const { proxy } = getCurrentInstance();
|
||||
const {
|
||||
med_category_code,
|
||||
|
||||
@@ -79,8 +79,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getYbMedicationList, queryYbCatalogue } from './medicine';
|
||||
import { formatDateStr } from '@/utils/index';
|
||||
import {getYbMedicationList, queryYbCatalogue} from './medicine';
|
||||
import {formatDateStr} from '@/utils/index';
|
||||
|
||||
const emit = defineEmits(['selectMedicine']);
|
||||
const visible = ref(false);
|
||||
|
||||
@@ -340,21 +340,21 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Medication">
|
||||
import { getToken } from '@/utils/auth';
|
||||
import {getToken} from '@/utils/auth';
|
||||
import {
|
||||
getMedicationList,
|
||||
editMedication,
|
||||
addMedication,
|
||||
editMedication,
|
||||
getMedicationCategory,
|
||||
validateEditMedictaion,
|
||||
getMedicationList,
|
||||
getMedicationOne,
|
||||
getYbCatalogResult,
|
||||
startMedication,
|
||||
stopMedication,
|
||||
getYbCatalogResult,
|
||||
validateEditMedictaion,
|
||||
} from './components/medicine';
|
||||
import medicineDialog from './components/medicineDialog';
|
||||
import MedicineYbDialog from './components/medicineYbDialog';
|
||||
import { nextTick } from 'vue';
|
||||
import {nextTick} from 'vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
|
||||
@@ -151,10 +151,11 @@
|
||||
</template>
|
||||
|
||||
<script setup name="NationalCode">
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import { useRouter, useRoute } from 'vue-router';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import {onMounted, reactive, ref} from 'vue';
|
||||
import {useRoute, useRouter} from 'vue-router';
|
||||
import {ElMessage, ElMessageBox} from 'element-plus';
|
||||
import request from '@/utils/request';
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user