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

@@ -155,12 +155,10 @@
</template>
<script setup name="awaitingMedicineDetails">
import {
getAwaitingPendingMedicationPageList,
getPharmacyCabinetList,
} from "./statisticalManagent";
import {getAwaitingPendingMedicationPageList,} from "./statisticalManagent";
import useUserStore from "@/store/modules/user";
import { ref } from "vue";
import {ref} from "vue";
const userStore = useUserStore();
const { proxy } = getCurrentInstance();
const inventoryOptions = ref([])

View File

@@ -56,11 +56,9 @@
</template>
<script setup name="basicInformationDetails">
import { ElMessage } from 'element-plus';
import {
getReportBasicInformationDetails,
} from './statisticalManagent';
import { onMounted } from 'vue';
import {ElMessage} from 'element-plus';
import {getReportBasicInformationDetails,} from './statisticalManagent';
import {onMounted} from 'vue';
const basicInformationDetailsList = ref([]);
const loading = ref(false);

View File

@@ -254,12 +254,10 @@
<script setup name="ChkstockPartDetails">
import {
getReportStocktakingPage,
getInit,
getPharmacyCabinetList,
getReportStocktakingPage,
getReportStocktakingPageAuto,
cancelSupply,
stopSupply,
} from "./statisticalManagent";
const { proxy } = getCurrentInstance();

View File

@@ -121,9 +121,7 @@
</template>
<script setup name="diseaseDetails">
import {
getDiseaseDetails,
} from './statisticalManagent';
import {getDiseaseDetails,} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -86,9 +86,7 @@
</template>
<script setup name="drugExpensesGrowthRate">
import {
getDrugExpensesGrowthRate
} from './statisticalManagent';
import {getDrugExpensesGrowthRate} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const drugExpensesGrowthRateList = ref([]);

View File

@@ -199,7 +199,6 @@
</template>
<script setup name="earlyWarning">
import { getExpirationWarning } from './statisticalManagent';
const { proxy } = getCurrentInstance();

View File

@@ -168,15 +168,9 @@
</template>
<script setup name="reconciliationDetails">
import {
applyFinancialClearingList,
applyUnClearing,
autoApplyFinancialClearing,
applyFinancialClearing,
reconcileDetailList
} from "./statisticalManagent";
import { getToken } from "@/utils/auth";
import { formatDateStr } from '@/utils/index';
import {applyUnClearing, autoApplyFinancialClearing, reconcileDetailList} from "./statisticalManagent";
import {formatDateStr} from '@/utils/index';
const { proxy } = getCurrentInstance();
const purchaseinventoryList = ref([]);
const loading = ref(false);

View File

@@ -460,20 +460,21 @@
<script setup name="StatisticalManagement">
import {
getproductReturnPage,
cancelSupply,
getInit,
getPharmacyCabinetList,
cancelSupply,
stopSupply,
productPageTotal,
productBackupPageTotal,
getproductReturnBackUpPage,
getproductReturnPage,
productBackupPageTotal,
productPageTotal,
stopSupply,
} from './statisticalManagent';
import traceabilityCodeManagement from './traceabilityCodeManagement.vue';
import { formatDateStr } from '@/utils/index';
import { getSupplierList } from '@/api/public';
import { useStore } from '@/store/store';
import { computed, watch } from 'vue';
import {formatDateStr} from '@/utils/index';
import {getSupplierList} from '@/api/public';
import {useStore} from '@/store/store';
import {computed, watch} from 'vue';
const store = useStore();
const { proxy } = getCurrentInstance();

View File

@@ -323,15 +323,8 @@
</template>
<script setup name="InventoryProductDetails">
import {
getReportProductPage,
getInit,
getPharmacyCabinetList,
getBusNoInit,
cancelSupply,
stopSupply,
} from "./statisticalManagent";
import { watch } from "vue";
import {getInit, getPharmacyCabinetList, getReportProductPage,} from "./statisticalManagent";
import {watch} from "vue";
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -478,13 +478,12 @@ import {
applyFinancialClearingList,
applyUnClearing,
autoApplyFinancialClearing,
reconcileDetailList,
handOperatedApplyFinancialClearing,
handOperatedApplyReconcileAccounts,
} from './statisticalManagent';
import { getToken } from '@/utils/auth';
import { formatDateStr } from '@/utils/index';
import { ref } from 'vue';
import {formatDateStr} from '@/utils/index';
import {ref} from 'vue';
const { proxy } = getCurrentInstance();
const purchaseinventoryList = ref([]);
const loading = ref(false);

View File

@@ -244,12 +244,7 @@
</template>
<script setup name="lossReportingDetails">
import {
getReportLossPage,
getInit,
getPharmacyCabinetList,
} from "./statisticalManagent";
import {getInit, getPharmacyCabinetList, getReportLossPage,} from "./statisticalManagent";
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -476,14 +476,14 @@
<script setup name="medicationDetails">
import {
getPharmacyCabinetList,
getAmbMedicationDetail,
getAmbPractitionerDetail,
getMedicationDetailsInit,
getPharmacyCabinetList,
} from './statisticalManagent';
import useUserStore from '@/store/modules/user';
import { watch } from 'vue';
import { endsWith } from 'lodash';
import {watch} from 'vue';
const userStore = useUserStore();
const route = useRoute();

View File

@@ -115,9 +115,7 @@
</template>
<script setup name="medicationInboundDetails">
import {
getMedicationInboundDetails,
} from './statisticalManagent';
import {getMedicationInboundDetails,} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -165,9 +165,7 @@
</template>
<script setup name="medicationSaleDetails">
import {
getMedicationSaleDetails,
} from './statisticalManagent';
import {getMedicationSaleDetails,} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -143,11 +143,9 @@
</template>
<script setup name="medicationStockOutDetails">
import {
getReportMedicationStockOutDetails,
getPharmacyCabinetList,
} from './statisticalManagent';
import { ElMessage } from 'element-plus';
import {getPharmacyCabinetList, getReportMedicationStockOutDetails,} from './statisticalManagent';
import {ElMessage} from 'element-plus';
const { proxy } = getCurrentInstance();
const medicationStockOutDetailsList = ref([]);
const loading = ref(false);

View File

@@ -134,8 +134,8 @@
</template>
<script setup name="medicationUsageDetails">
import { ref, onMounted } from 'vue';
import { getReportMedicationUsage } from './statisticalManagent';
import {onMounted, ref} from 'vue';
import {getReportMedicationUsage} from './statisticalManagent';
// 表格数据
const medicationUsageList = ref([]);

View File

@@ -90,9 +90,7 @@
</template>
<script setup name="nonWinQtyRatio">
import {
getReportNonWinQtyRatio,
} from './statisticalManagent';
import {getReportNonWinQtyRatio,} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -149,13 +149,9 @@
</template>
<script setup name="numberOfVisits">
import {
getReportLossPage,
import {getReportLossPage,} from "./statisticalManagent";
} from "./statisticalManagent";
const { proxy } = getCurrentInstance();
import moment from "moment";
const purchaseinventoryList = ref([]);
const loading = ref(true);
const ids = ref([]);

View File

@@ -50,9 +50,7 @@
</template>
<script setup name="offlinePurchaseRatioDetails">
import {
getReportOfflinePurchaseRatio
} from './statisticalManagent';
import {getReportOfflinePurchaseRatio} from './statisticalManagent';
const offlinePurchaseRatioList = ref([]);
const loading = ref(true);

View File

@@ -287,15 +287,10 @@
</template>
<script setup name="outPatientCharge">
import {
getReportChargePage,
getAmbPractitionerDetail,
getDepartmentList,
getReportChargeInit,
} from './statisticalManagent';
import {getDepartmentList, getReportChargeInit, getReportChargePage,} from './statisticalManagent';
import useUserStore from '@/store/modules/user';
import { get } from 'lodash';
import { watch } from 'vue';
import {watch} from 'vue';
const userStore = useUserStore();
const router = useRouter();

View File

@@ -118,10 +118,8 @@
</template>
<script setup name="OutpatientDepartmentMetrics">
import {
getOutpatientDepartmentMetrics
} from './statisticalManagent';
import { ref, reactive, computed, toRefs, watch } from 'vue';
import {getOutpatientDepartmentMetrics} from './statisticalManagent';
import {computed, reactive, ref, toRefs} from 'vue';
const loading = ref(true);
const total = ref(0);

View File

@@ -163,8 +163,8 @@
</template>
<script setup name="patientDetails">
import { ref, onMounted, getCurrentInstance } from 'vue';
import { getReportPatientDetails } from './statisticalManagent';
import {getCurrentInstance, onMounted, ref} from 'vue';
import {getReportPatientDetails} from './statisticalManagent';
// 获取当前实例的proxy
const { proxy } = getCurrentInstance();

View File

@@ -134,9 +134,7 @@
</template>
<script setup name="patientMasterDetails">
import {
getReportPatientMasterDetail
} from './statisticalManagent';
import {getReportPatientMasterDetail} from './statisticalManagent';
const patientMasterList = ref([]);

View File

@@ -139,9 +139,9 @@
</template>
<script setup name="pharmacyStatisticsDetails">
import { ref, reactive, toRefs, onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { getMedDevInfo, getMedDevAll } from './statisticalManagent';
import {onMounted, reactive, ref, toRefs} from 'vue';
import {useRouter} from 'vue-router';
import {getMedDevAll, getMedDevInfo} from './statisticalManagent';
const router = useRouter();
const { proxy } = getCurrentInstance();

View File

@@ -144,9 +144,7 @@
</template>
<script setup name="productUsageDetails">
import {
getReportProductUsageDetails,
} from './statisticalManagent';
import {getReportProductUsageDetails,} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -354,12 +354,12 @@
<script setup name="PurchaseDocumentDetsils">
import {
getReportInboundPCage,
getPharmacyCabinetList,
getInboundInit,
getDocumentDetails,
getInboundInit,
getPharmacyCabinetList,
getReportInboundPCage,
} from './statisticalManagent';
import { formatDateStr } from '@/utils/index';
import {formatDateStr} from '@/utils/index';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -334,11 +334,7 @@
</template>
<script setup name="PurchaseReturnDetsils">
import {
getReportPurchaseReturn,
getPharmacyCabinetList,
getPurchaseReturnInit
} from "./statisticalManagent";
import {getPharmacyCabinetList, getPurchaseReturnInit, getReportPurchaseReturn} from "./statisticalManagent";
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -156,13 +156,9 @@
</template>
<script setup name="Reconciliation">
import {
ybRequestReconcile, // 医保对账
getReconcileList, // 对账列表 结算
getContractList, // 合同
getClroptins,
} from './statisticalManagent';
import { formatDate, formatDateStr } from '@/utils/index';
import {getClroptins, getContractList, getReconcileList, ybRequestReconcile,} from './statisticalManagent';
import {formatDateStr} from '@/utils/index';
const { proxy } = getCurrentInstance();
const { insutype } = proxy.useDict('insutype');
// 险种类型

View File

@@ -395,15 +395,15 @@
<script setup name="reconciliationDetails">
import {
applyFinancialClearing,
reconcileDetailList,
reconcileDetailTxt,
reconcileGeneral,
getPharmacyCabinetList,
ybRequestFileUp,
applyFinancialClearing
ybRequestFileUp
} from "./statisticalManagent";
import { getToken } from "@/utils/auth";
import { formatDate } from '@/utils/index';
import {getToken} from "@/utils/auth";
import {formatDate} from '@/utils/index';
const { proxy } = getCurrentInstance();
const purchaseinventoryList = ref([]);
const loading = ref(false);

View File

@@ -196,13 +196,9 @@
</template>
<script setup name="registrationFeeDetails">
import {
getReportRegisterPage,
getDepartmentList,
getReportRegisterInit
} from "./statisticalManagent";
import {getDepartmentList, getReportRegisterInit, getReportRegisterPage} from "./statisticalManagent";
import useUserStore from "@/store/modules/user";
import { watch } from "vue";
const userStore = useUserStore();
const { proxy } = getCurrentInstance();

View File

@@ -318,10 +318,10 @@
<script setup name="requisitionDetails">
import {
getRreportOutboundPage,
getPharmacyCabinetList,
getDepartmentList,
getOutboundInit
getOutboundInit,
getPharmacyCabinetList,
getRreportOutboundPage
} from "./statisticalManagent";
const { proxy } = getCurrentInstance();

View File

@@ -353,11 +353,10 @@
<script setup name="returnOrutboundDetails">
import {
getRreportReturnIssue,
getReturnIssueInit,
getPharmacyCabinetList,
getDepartmentList,
getPharmacyCabinetList,
getReturnIssueInit,
getRreportReturnIssue,
} from "./statisticalManagent";
const { proxy } = getCurrentInstance();

View File

@@ -278,7 +278,7 @@
</template>
<script setup name="settlementDoc">
import { getproductReturnPage, getInit, getPharmacyCabinetList } from './statisticalManagent';
import {getInit, getPharmacyCabinetList, getproductReturnPage} from './statisticalManagent';
const { proxy } = getCurrentInstance();

View File

@@ -1,4 +1,5 @@
import request from '@/utils/request';
// 查询库存明细列表
export function getproductReturnPage(query) {
return request({

View File

@@ -168,9 +168,7 @@
</template>
<script setup name="getStockOutDetail">
import {
getStockOutDetail,
} from './statisticalManagent';
import {getStockOutDetail,} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -86,9 +86,7 @@
</template>
<script setup name="thirtyDayCollectionRate">
import {
getThirtyDayCollectionRate
} from './statisticalManagent';
import {getThirtyDayCollectionRate} from './statisticalManagent';
const { proxy } = getCurrentInstance();
const route = useRoute();

View File

@@ -162,9 +162,9 @@
</template>
<script setup name="earlyWarning">
import { inventoryReceiptPage, traceabilityCodeManagementInit } from './statisticalManagent';
import { nextTick, onMounted } from 'vue';
import { formatDateStr } from '@/utils';
import {inventoryReceiptPage, traceabilityCodeManagementInit} from './statisticalManagent';
import {nextTick, onMounted} from 'vue';
import {formatDateStr} from '@/utils';
import traceabilityPersonInfo from './traceabilityPersonInfo.vue';
const { proxy } = getCurrentInstance();

View File

@@ -15,9 +15,10 @@
</template>
<script setup>
import { ref, watch } from 'vue';
import {ref, watch} from 'vue';
import moment from 'moment';
import { tracePatient } from './statisticalManagent';
import {tracePatient} from './statisticalManagent';
const tableData = ref([]);
const props = defineProps({
infoIdParams: {

View File

@@ -253,10 +253,7 @@
</template>
<script setup name="transferManagentDetails">
import {
getReportTransferPage,
getPharmacyCabinetList,
} from "./statisticalManagent";
import {getPharmacyCabinetList, getReportTransferPage,} from "./statisticalManagent";
const { proxy } = getCurrentInstance();
const purchaseinventoryList = ref([]);