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,9 +85,10 @@
<script setup>
// 原有逻辑代码保持不变
import { savePayment } from './api';
import { computed, watch, reactive, ref, getCurrentInstance, nextTick } from 'vue';
import { ElMessage } from 'element-plus';
import {savePayment} from './api';
import {getCurrentInstance, reactive, ref, watch} from 'vue';
import {ElMessage} from 'element-plus';
const props = defineProps({
open: {
type: Boolean,

View File

@@ -65,9 +65,9 @@
</template>
<script setup>
import { reactive } from 'vue';
import { getWardList } from '../../../../drug/inpatientMedicationDispensing/components/api';
import { getDepositInfo } from './api';
import {reactive} from 'vue';
import {getWardList} from '../../../../drug/inpatientMedicationDispensing/components/api';
import {getDepositInfo} from './api';
// Props
const props = defineProps({

View File

@@ -77,8 +77,8 @@
</template>
<script setup>
import { refund } from './api';
import { reactive, ref, getCurrentInstance, nextTick } from 'vue';
import {refund} from './api';
import {getCurrentInstance, reactive, ref} from 'vue';
const props = defineProps({
open: {

View File

@@ -158,11 +158,12 @@
</template>
<script setup>
import { ref, nextTick } from 'vue';
import { getDepositInfo, getDepositInfoPage } from './components/api';
import {nextTick, ref} from 'vue';
import {getDepositInfo, getDepositInfoPage} from './components/api';
import PatientList from './components/patientList.vue';
import ChargeDialog from './components/chargeDialog.vue';
import RefundDialog from './components/refundDialog.vue';
const showPatientList = ref(false);
const showPatientRef = ref();
const openDialog = ref(false);

View File

@@ -153,23 +153,16 @@
</template>
<script setup>
import {
savePayment,
unprecharge,
dispenseMedicalConsumables,
wxPay,
WxPayResult,
getChargeInfo,
} from './api';
import { computed, watch, reactive, ref, getCurrentInstance, nextTick } from 'vue';
import { Delete } from '@element-plus/icons-vue';
import { debounce } from 'lodash-es';
import {dispenseMedicalConsumables, getChargeInfo, savePayment, wxPay, WxPayResult,} from './api';
import {computed, getCurrentInstance, nextTick, reactive, ref, watch} from 'vue';
import {Delete} from '@element-plus/icons-vue';
import {debounce} from 'lodash-es';
import useUserStore from '@/store/modules/user';
import { hiprint } from 'vue-plugin-hiprint';
import {hiprint} from 'vue-plugin-hiprint';
import templateJson from './template.json';
import { pa } from 'element-plus/es/locales.mjs';
import image1 from '../../../../../assets/images/weixinzhifu.png';
import image2 from '../../../../../assets/images/zhifubaozhifu.png';
const imgs = ref([image1, image2]);
const props = defineProps({
open: {

View File

@@ -291,23 +291,22 @@
<script setup name="ClinicCharge">
import {
getList1,
getChargeList,
changeToSelfPay,
changeToMedicalInsurance,
init1,
precharge,
getChargeInfo,
changeStudentPayTosStudentSelf,
changeStudentSelfToStudentPay,
changeToMedicalInsurance,
changeToSelfPay,
getChargeInfo,
getChargeList,
getList1,
init1,
precharge,
} from './components/api';
import { invokeYbPlugin5001 } from '@/api/public';
import {invokeYbPlugin5001} from '@/api/public';
import ChargeDialog from './components/chargeDialog.vue';
import { formatDateStr } from '@/utils';
import {formatDateStr} from '@/utils';
import useUserStore from '@/store/modules/user';
import Decimal from 'decimal.js';
import moment from 'moment';
import { onMounted } from 'vue';
const { proxy } = getCurrentInstance();
const userStore = useUserStore();

View File

@@ -61,7 +61,6 @@
</div>
</template>
<script setup >
import { ref } from 'vue';
// interface FormData {
// patientId: string;

View File

@@ -114,7 +114,6 @@
</template>
<script setup>
import { ref } from 'vue';
defineOptions({
name: 'YbregisterEdit',
});

View File

@@ -55,8 +55,8 @@
</div>
</template>
<script setup >
import { onMounted, ref } from 'vue';
<script setup>
import {onMounted, ref} from 'vue';
const visitCode = ref('');

View File

@@ -22,7 +22,6 @@
</template>
<script setup >
import { ref, onMounted } from 'vue';
// import { store } from '@hip/portal';
// const { userInfo } = store.useGlobalStore();

View File

@@ -24,7 +24,6 @@
</template>
<script setup >
import { ref, inject } from 'vue';
// const form = inject('formState') as any;
// const formRef = ref<FormInstance>();

View File

@@ -20,8 +20,8 @@
</div>
</template>
<script setup >
import { provide, reactive, ref } from 'vue';
<script setup>
import {provide, reactive, ref} from 'vue';
import SearchForm from './components/SearchForm.vue';
import PatientList from './components/PatientList.vue';
import PatientDetail from './components/PatientDetail.vue';

View File

@@ -81,8 +81,8 @@
</template>
<script setup>
import PatientRegister from './patientRegister.vue';
import { getAdmissionPage, getPatientBasicInfo, getInHospitalInfo } from './api';
import { getContractList } from './api';
import {getAdmissionPage, getContractList, getInHospitalInfo, getPatientBasicInfo} from './api';
const { proxy } = getCurrentInstance();
const { admit_source_code } = proxy.useDict('admit_source_code');
//const { proxy } = getCurrentInstance();

View File

@@ -67,7 +67,8 @@
</template>
<script setup>
import PatientRegister from './patientRegister.vue';
import { getAdmissionPage, getPatientBasicInfo, getInHospitalInfo } from './api';
import {getAdmissionPage, getInHospitalInfo, getPatientBasicInfo} from './api';
const emits = defineEmits(['okList']);
const total = ref();

View File

@@ -42,8 +42,8 @@
</div>
</div>
</template>
<script setup >
import { getAdmissionPage } from './api';
<script setup>
import {getAdmissionPage} from './api';
//const { proxy } = getCurrentInstance();
const emits = defineEmits([]);
// const props = defineProps({});

View File

@@ -1,4 +1,5 @@
import AwaitList from "./awaitList.vue";
import AccomplishList from "./accomplishList.vue";
import ExistList from "./existList.vue";
import AwaitList from "./awaitList.vue";
import AccomplishList from "./accomplishList.vue";
import ExistList from "./existList.vue";
export {AwaitList,AccomplishList,ExistList}

View File

@@ -163,12 +163,12 @@
</template>
<script setup>
import { ref, reactive, watch, onMounted } from 'vue';
import {onMounted, reactive, ref, watch} from 'vue';
import PatientInfoForm from './patientInfoForm.vue';
import { patientlLists, getOrgList, gerPreInfo } from './api';
import { invokeYbPlugin5001 } from '@/api/public';
import {gerPreInfo, getOrgList, patientlLists} from './api';
import {invokeYbPlugin5001} from '@/api/public';
import useUserStore from '@/store/modules/user';
import { useRouter } from 'vue-router';
import {useRouter} from 'vue-router';
const { proxy } = getCurrentInstance();
const typeList = ref({});

View File

@@ -221,9 +221,9 @@
</template>
<script setup>
import { watch } from 'vue';
import {watch} from 'vue';
import pcas from 'china-division/dist/pcas-code.json';
import { patientFormInit } from './api';
import {patientFormInit} from './api';
const { proxy } = getCurrentInstance();
const {

View File

@@ -97,14 +97,17 @@
</template>
<script setup>
const { proxy } = getCurrentInstance();
import { ElMessageBox } from 'element-plus';
import {ElMessage, ElMessageBox} from 'element-plus';
import PatientInfoComp from './patientInfo.vue';
import RegisterForm from './registerForm.vue';
import { noFilesRegister, registerInHospital, getProvincesAndCities } from './api';
import { getInit } from '@/views/doctorstation/components/api';
import { useRouter } from 'vue-router';
import { wxPay, WxPayResult } from '../../../../charge/cliniccharge/components/api';
import {noFilesRegister, registerInHospital} from './api';
import {getInit} from '@/views/doctorstation/components/api';
import {useRouter} from 'vue-router';
import {wxPay, WxPayResult} from '../../../../charge/cliniccharge/components/api';
import printUtils from '@/utils/printUtils';
/* 导入用户信息 */
import useUserStore from '@/store/modules/user';
const txtCode = ref('');
const router = useRouter();
const emits = defineEmits(['okAct', 'cancelAct']);
@@ -148,7 +151,6 @@ const dialogVisible = defineModel('dialogVisible', {
default: false,
});
const code = defineModel('code');
import { ElMessage } from 'element-plus';
const width = '1128px';
const patientApiInfo = ref({});
const initOptions = ref({});
@@ -586,8 +588,6 @@ const convertToChineseNumber = (amount) => {
return result;
};
/* 导入用户信息 */
import useUserStore from '@/store/modules/user';
const userStore = useUserStore();
function handleWxPay() {
wxPay({

View File

@@ -201,15 +201,16 @@
</template>
<script setup>
import {
getInit,
getOrgList,
wardList,
diagnosisInit,
getBedInfo,
getContractList,
getDiagnosisDefinitionList,
getOrgList,
getProvincesAndCities,
wardList,
} from './api';
import {formatDateStr} from '@/utils';
const { proxy } = getCurrentInstance();
const { in_way_code, admit_source_code, med_type } = proxy.useDict(
'in_way_code',
@@ -217,7 +218,6 @@ const { in_way_code, admit_source_code, med_type } = proxy.useDict(
'med_type'
);
import { formatDateStr } from '@/utils';
const emits = defineEmits([]);
const props = defineProps({
patientInfo: {

View File

@@ -14,8 +14,9 @@
</div>
</template>
<script setup>
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue';
import { AwaitList, AccomplishList, ExistList } from './components/index.js';
import {getCurrentInstance, reactive, ref} from 'vue';
import {AccomplishList, AwaitList} from './components/index.js';
const { proxy } = getCurrentInstance();
const emits = defineEmits([]);
const props = defineProps({});

View File

@@ -160,8 +160,9 @@
<script setup name="ClinicRecord">
const { proxy } = getCurrentInstance();
import { getList ,invoiceMzInvoice,invoiceReissue,invoiceWriteoff,invoiceOpen,paymentDetail,inpaUnPay} from './components/api.js';
import { formatDate } from '@/utils/index';
import {getList, inpaUnPay, invoiceOpen, invoiceReissue, invoiceWriteoff, paymentDetail} from './components/api.js';
import {formatDate} from '@/utils/index';
const occurrenceTime = ref([
formatDate(new Date(new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate())),
formatDate(new Date())

View File

@@ -114,11 +114,10 @@
</div>
</div>
</template>
<script setup >
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue'
import { ElMessage } from 'element-plus'
import dayjs from 'dayjs'
import { round } from 'lodash-es'
<script setup>
import {reactive, ref} from 'vue'
import {ElMessage} from 'element-plus'
const emits = defineEmits([])
const props = defineProps({})
const state = reactive({})

View File

@@ -22,8 +22,8 @@
</el-dialog>
</template>
<script setup lang='ts'>
import { FormRules } from 'element-plus';
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue'
import {FormRules} from 'element-plus';
import {onMounted, reactive, ref} from 'vue'
// const { proxy } = getCurrentInstance();
const emits = defineEmits(["derateOk"])
const props = defineProps({

View File

@@ -10,4 +10,5 @@ import invoiceSkip from './invoiceSkip.vue'
import derate from './derate.vue'
import patientListDialog from './patientListDialog.vue'
import preSettlement from './preSettlement.vue'
export { receipt, refund, patientList, invoiceSkip, derate, patientListDialog, preSettlement }

View File

@@ -122,11 +122,11 @@
<patientListDialog v-model:visible="patientListDialogVisible" :patientList="queryPpatientList" />
</div>
</template>
<script setup >
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue'
import { ElMessage } from 'element-plus'
<script setup>
import {reactive, ref} from 'vue'
import {ElMessage} from 'element-plus'
import dayjs from 'dayjs'
import { round } from 'lodash-es'
import {round} from 'lodash-es'
// const { proxy } = getCurrentInstance();
const emits = defineEmits([])
const props = defineProps({})

View File

@@ -39,9 +39,9 @@
</template>
</el-dialog>
</template>
<script setup >
import { ElMessage } from 'element-plus'
import { onMounted, ref } from 'vue'
<script setup>
import {ElMessage} from 'element-plus'
import {onMounted, ref} from 'vue'
// const { proxy } = getCurrentInstance();
const emits = defineEmits([])

View File

@@ -69,7 +69,7 @@
</el-drawer>
</template>
<script setup lang="ts">
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref, h } from 'vue'
import {onMounted, reactive, ref} from 'vue'
// const { proxy } = getCurrentInstance();
const emits = defineEmits(['settling', 'paying'])

View File

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

View File

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

View File

@@ -94,10 +94,10 @@
</el-dialog>
</template>
<script setup lang="ts">
import { getCurrentInstance, onActivated, onBeforeMount, onMounted, reactive, ref } from 'vue'
import {onActivated, reactive, ref} from 'vue'
import invoiceSkip from './invoiceSkip.vue'
import { ElMessage } from 'element-plus'
import {ElMessage} from 'element-plus'
// const { proxy } = getCurrentInstance();
const emits = defineEmits([])

View File

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

View File

@@ -170,15 +170,7 @@
</div>
</template>
<script setup>
import {
computed,
getCurrentInstance,
onBeforeMount,
onMounted,
reactive,
ref,
watchEffect,
} from 'vue'
import {computed, getCurrentInstance, reactive, ref, watchEffect,} from 'vue'
import receipt from './components/receipt.vue';
import refund from './components/refund.vue';
import patientList from './components/patientList.vue';
@@ -187,7 +179,8 @@ import derate from './components/derate.vue';
import patientListDialog from './components/patientListDialog.vue';
import preSettlement from './components/preSettlement.vue';
import { ElMessage } from 'element-plus'
import {ElMessage} from 'element-plus'
const { proxy } = getCurrentInstance()
const emits = defineEmits([])
const props = defineProps({})

View File

@@ -46,15 +46,8 @@
</div>
</el-drawer>
</template>
<script setup >
import {
getCurrentInstance,
onBeforeMount,
onMounted,
reactive,
ref,
h,
} from 'vue';
<script setup>
import {onMounted, reactive, ref,} from 'vue';
// const { proxy } = getCurrentInstance();
const emits = defineEmits(['settling', 'paying']);

View File

@@ -26,16 +26,11 @@
</template>
</el-drawer>
</template>
<script setup >
import {
getCurrentInstance,
onBeforeMount,
onMounted,
reactive,
ref,
} from 'vue';
<script setup>
import {reactive, ref,} from 'vue';
// const { proxy } = getCurrentInstance();
import dayjs from 'dayjs';
const emits = defineEmits(['selectOk']);
const showDrawer = defineModel('showDrawer', { type: Boolean, default: false });
// const props = defineProps<{

View File

@@ -196,16 +196,12 @@
</div>
</template>
<script setup lang="ts">
import { computed, getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue'
import {computed, getCurrentInstance, reactive, ref} from 'vue'
import dayjs from 'dayjs'
import {
patientList,
selectSettlement,
} from './components/index'
import {patientList, selectSettlement,} from './components/index'
import { ElMessage } from 'element-plus'
import { method } from 'lodash-es'
import {ElMessage} from 'element-plus'
const { proxy } = getCurrentInstance() as any
const emits = defineEmits([])

View File

@@ -18,8 +18,8 @@
</el-tabs>
</div>
</template>
<script setup >
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue'
<script setup>
import {onBeforeMount, onMounted, reactive, ref} from 'vue'
import SettlementHome from './components/home/index.vue'
import SettlementCancel from './components/cancel/index.vue'

View File

@@ -95,8 +95,9 @@
</el-form>
</div>
</template>
<script setup >
import { getCurrentInstance, onBeforeMount, onMounted, reactive } from 'vue'
<script setup>
import {getCurrentInstance, onBeforeMount, onMounted, reactive} from 'vue'
const { proxy } = getCurrentInstance();
const emits = defineEmits([]);
const props = defineProps({})