style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup >
|
||||
import { ref } from 'vue';
|
||||
|
||||
// interface FormData {
|
||||
// patientId: string;
|
||||
|
||||
@@ -114,7 +114,6 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
defineOptions({
|
||||
name: 'YbregisterEdit',
|
||||
});
|
||||
|
||||
@@ -55,8 +55,8 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup >
|
||||
import { onMounted, ref } from 'vue';
|
||||
<script setup>
|
||||
import {onMounted, ref} from 'vue';
|
||||
|
||||
const visitCode = ref('');
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
</template>
|
||||
|
||||
<script setup >
|
||||
import { ref, onMounted } from 'vue';
|
||||
// import { store } from '@hip/portal';
|
||||
|
||||
// const { userInfo } = store.useGlobalStore();
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
</template>
|
||||
|
||||
<script setup >
|
||||
import { ref, inject } from 'vue';
|
||||
|
||||
// const form = inject('formState') as any;
|
||||
// const formRef = ref<FormInstance>();
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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({});
|
||||
|
||||
@@ -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}
|
||||
@@ -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({});
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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({});
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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({})
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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({})
|
||||
|
||||
@@ -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([])
|
||||
|
||||
@@ -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'])
|
||||
|
||||
@@ -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<{
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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([])
|
||||
|
||||
@@ -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<{
|
||||
|
||||
@@ -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({})
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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<{
|
||||
|
||||
@@ -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([])
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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({})
|
||||
|
||||
Reference in New Issue
Block a user