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

@@ -110,11 +110,11 @@
</template>
<script setup>
import { savePayment, wxPay, WxPayResult } from './outpatientregistration';
import { computed, watch, reactive, ref, getCurrentInstance, nextTick } from 'vue';
import { Delete } from '@element-plus/icons-vue';
import { debounce } from 'lodash-es';
import printUtils, { PRINT_TEMPLATE } from '@/utils/printUtils';
import {savePayment, wxPay, WxPayResult} from './outpatientregistration';
import {computed, getCurrentInstance, nextTick, reactive, ref, watch} from 'vue';
import {Delete} from '@element-plus/icons-vue';
import {debounce} from 'lodash-es';
import printUtils, {PRINT_TEMPLATE} from '@/utils/printUtils';
// 获取费用性质文本
const getFeeTypeText = computed(() => {

View File

@@ -1,5 +1,4 @@
import request from '@/utils/request';
import { parseStrEmpty } from '@/utils/openhis';
// 查询初期所需数据
export function getInit() {

View File

@@ -340,16 +340,10 @@
</template>
<script setup name="PatientAddDialog">
import { watch } from 'vue';
import pcas from 'china-division/dist/pcas-code.json';
import { addPatient, patientlLists, getOutpatientRegistrationList } from './outpatientregistration';
import {
isValidCNPhoneNumber,
isValidCNidCardNumber,
getGenderAndAge,
} from '../../../../utils/validate';
import { fromPairs } from 'lodash';
import { ElMessage } from 'element-plus';
import {addPatient, getOutpatientRegistrationList, patientlLists} from './outpatientregistration';
import {getGenderAndAge, isValidCNidCardNumber, isValidCNPhoneNumber,} from '../../../../utils/validate';
import {ElMessage} from 'element-plus';
const router = useRouter();
const { proxy } = getCurrentInstance();

View File

@@ -74,9 +74,8 @@
</template>
<script setup name="PatientInfoDialog">
import {
getOutpatientRegistrationList,
} from "./outpatientregistration";
import {getOutpatientRegistrationList,} from "./outpatientregistration";
const { proxy } = getCurrentInstance();

View File

@@ -21,7 +21,8 @@
</template>
<script setup>
import { getOutpatientRegistrationList } from "./outpatientregistration";
import {getOutpatientRegistrationList} from "./outpatientregistration";
const props = defineProps({
searchkey: {
type: String,

View File

@@ -111,11 +111,8 @@
</template>
<script setup>
import { cancelRegister, preCancelReg } from './outpatientregistration';
import { computed, watch, reactive, ref, getCurrentInstance } from 'vue';
import { Delete } from '@element-plus/icons-vue';
import useUserStore from '@/store/modules/user';
import { formatDateStr } from '@/utils/index';
import {cancelRegister, preCancelReg} from './outpatientregistration';
import {computed, getCurrentInstance, reactive, ref, watch} from 'vue';
// 获取费用性质文本
const getFeeTypeText = computed(() => {

View File

@@ -132,10 +132,10 @@
</template>
<script setup>
import { ref, reactive, getCurrentInstance, watch } from 'vue';
import { getOutpatientRegistrationCurrent, getOutpatientRegistrationList, reprintRegistration } from './outpatientregistration';
import { parseTime } from '@/utils/his';
import { formatDateStr } from '@/utils/index';
import {getCurrentInstance, reactive, ref, watch} from 'vue';
import {getOutpatientRegistrationCurrent, reprintRegistration} from './outpatientregistration';
import {parseTime} from '@/utils/his';
import {formatDateStr} from '@/utils/index';
const { proxy } = getCurrentInstance();

View File

@@ -630,34 +630,30 @@
<script setup name="OutpatientRegistration">
import {
getOutpatientRegistrationList,
getInit,
getContractList,
getConditionDefinitionMetadata,
getLocationTree,
getPractitionerMetadata,
getHealthcareMetadata,
addOutpatientRegistration,
getOutpatientRegistrationCurrent,
returnRegister,
precharge,
cancelRegister,
gerPreInfo,
getContractList,
getHealthcareMetadata,
getInit,
getLocationTree,
getOutpatientRegistrationCurrent,
getOutpatientRegistrationList,
getPractitionerMetadata,
returnRegister,
updatePatientPhone,
} from './components/outpatientregistration';
import { invokeYbPlugin5000, invokeYbPlugin5001 } from '@/api/public';
import {invokeYbPlugin5000, invokeYbPlugin5001} from '@/api/public';
import patientInfoDialog from './components/patientInfoDialog';
import PatientAddDialog from './components/patientAddDialog';
import patientList from './components/patientList';
import { nextTick, ref, onMounted, onUnmounted } from 'vue';
import {nextTick, onMounted, onUnmounted, ref} from 'vue';
import ChargeDialog from './components/chargeDialog.vue';
import RefundDialog from './components/refundDialog.vue';
import ReprintDialog from './components/reprintDialog.vue';
import { handleColor } from '@/utils/his';
import {handleColor} from '@/utils/his';
import useUserStore from '@/store/modules/user';
import { formatDate, formatDateStr } from '@/utils/index';
import { isValidCNPhoneNumber } from '../../../utils/validate';
import { ElMessage } from 'element-plus';
import {formatDateStr} from '@/utils/index';
import {isValidCNPhoneNumber} from '../../../utils/validate';
import {ElMessage} from 'element-plus';
const patientInfo = ref({});
const eventType = ref(0);