style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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([]);
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user