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

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

View File

@@ -107,10 +107,10 @@
</template>
<script setup>
import { ref, computed, watch } from 'vue';
import { ElMessage } from 'element-plus';
import { totalSendDrug, totalReturnDrug } from './api';
import { getCurrentInstance } from 'vue';
import {computed, getCurrentInstance, ref, watch} from 'vue';
import {ElMessage} from 'element-plus';
import {totalReturnDrug, totalSendDrug} from './api';
const { proxy } = getCurrentInstance();
const emit = defineEmits(['call-medication-summary-detail']);
// 定义props接收父组件传递的表格数据和选中的ID

View File

@@ -272,30 +272,28 @@
</template>
<script setup name="westernmedicine">
import { ref, computed, onMounted, onBeforeMount, nextTick } from 'vue';
import { ElMessage } from 'element-plus';
import {onMounted, ref} from 'vue';
import {ElMessage} from 'element-plus';
import {
listWesternmedicine,
listPatient,
updateMedicion,
listInit,
backMedicion,
prepareMedicion,
itemTraceNo,
getReportRegisterInit,
deviceDispense,
deviceInvalid,
devicePatientList,
medicineMatch,
getReportRegisterInit,
itemTraceNo,
listInit,
listPatient,
listWesternmedicine,
prepareMedicion,
updateMedicion,
} from './api';
import { advicePrint, getAdjustPriceSwitchState, lotNumberMatch } from '@/api/public';
import { formatDate, formatDateStr } from '@/utils/index';
import { debounce } from 'lodash-es';
import {advicePrint, getAdjustPriceSwitchState, lotNumberMatch} from '@/api/public';
import {debounce} from 'lodash-es';
import TraceNoDialog from '@/components/OpenHis/TraceNoDialog/index.vue';
import { hiprint } from 'vue-plugin-hiprint';
import {hiprint} from 'vue-plugin-hiprint';
// import templateJson from './components/templateJson.json';
// import disposalTemplate from './components/disposalTemplate.json';
import { formatInventory } from '@/utils/his.js';
import {formatInventory} from '@/utils/his.js';
const { proxy } = getCurrentInstance();
const showSearch = ref(true);

View File

@@ -134,14 +134,8 @@
</template>
<script setup>
import { ref } from 'vue';
import {
totalSendDrug,
getFromSummaryList,
getFromSummaryDetails,
getFromSummaryInit,
} from './api.js';
import { getCurrentInstance } from 'vue';
import {getCurrentInstance, ref} from 'vue';
import {getFromSummaryDetails, getFromSummaryInit, getFromSummaryList, totalSendDrug,} from './api.js';
const { proxy } = getCurrentInstance();
const statusEnumOptions = ref([]);

View File

@@ -66,10 +66,10 @@
</template>
<script setup>
import { ref } from 'vue';
import { ElMessage } from 'element-plus';
import { totalSendDrug } from './api.js';
import { getCurrentInstance } from 'vue';
import {getCurrentInstance, ref} from 'vue';
import {ElMessage} from 'element-plus';
import {totalSendDrug} from './api.js';
const { proxy } = getCurrentInstance();
// 定义组件属性
const props = defineProps({

View File

@@ -184,10 +184,10 @@
</template>
<script setup name="ReturnDrug">
import { getCurrentInstance, nextTick } from 'vue';
import { getList, getReturnDrugList, returnDrug, init, itemTraceNo } from './api';
import { formatDateStr } from '@/utils/index';
import { debounce } from 'lodash-es';
import {getCurrentInstance, nextTick} from 'vue';
import {getList, getReturnDrugList, init, itemTraceNo, returnDrug} from './api';
import {formatDateStr} from '@/utils/index';
import {debounce} from 'lodash-es';
import TraceNoDialog from '@/components/OpenHis/TraceNoDialog/index.vue';
const queryParams = ref({

View File

@@ -15,20 +15,12 @@
</template>
<script setup>
import { ref, reactive, onMounted } from 'vue';
import { ElMessage } from 'element-plus';
import MedicationTable from './components/MedicationTable.vue';
import {getCurrentInstance, onMounted, reactive, ref} from 'vue';
import {ElMessage} from 'element-plus';
import MedicationSummary from './components/MedicationSummary.vue';
import MedicationDetails from './components/MedicationDetails.vue';
import ReturnDrug from './components/ReturnDrug.vue';
import DetailMedicationTable from './components/DetailMedicationTable.vue';
import { getCurrentInstance } from 'vue';
import {
getFromSummaryList,
getEncounterList,
getMedicationSummaryDetail,
getFromDetailList,
} from './components/api';
import {getEncounterList, getFromDetailList, getFromSummaryList, getMedicationSummaryDetail,} from './components/api';
const activeName = ref('summary');
const loading = ref(false);