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

@@ -1,5 +1,4 @@
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/openhis";
// 查询盘点列表
export function getStockinventoryList(query) {

View File

@@ -41,9 +41,9 @@
</template>
<script setup>
import { getMedicineList } from "./api";
import { watch } from "vue";
import { throttle } from "lodash-es";
import {getMedicineList} from "./api";
import {watch} from "vue";
import {throttle} from "lodash-es";
const props = defineProps({
searchKey: {

View File

@@ -692,30 +692,27 @@
<script setup name="chkstockBatch">
import {
submitApproval,
getInit,
addBatch,
delProductStocktaking,
getCount,
getMedicineList,
getDetailInit,
getstocktakingDetail, //查询盘点详情
getStocktakingReceiptBatch, //生成批量盘点
addBatch, //保存批量盘点
getInit,
getstocktakingDetail,
getStocktakingReceiptBatch,
productStocktakingApproved,
reject,
submitApproval,
} from '../components/api';
import PopoverList from '@/components/OpenHis/popoverList/index.vue';
import MedicineList from '../components/medicineList.vue';
import TraceNoDialog from '@/components/OpenHis/TraceNoDialog/index.vue';
import { formatDate, formatDateymd } from '@/utils/index';
import { ref } from 'vue';
import {formatDate, formatDateymd} from '@/utils/index';
import {ref} from 'vue';
import useUserStore from '@/store/modules/user';
import {useStore} from '@/store/store';
import useTagsViewStore from '@/store/modules/tagsView';
const router = useRouter();
const route = useRoute();
const userStore = useUserStore();
import useUserStore from '@/store/modules/user';
import { useStore } from '@/store/store';
import useTagsViewStore from '@/store/modules/tagsView';
const tagsViewStore = useTagsViewStore();
const store = useStore();
const { proxy } = getCurrentInstance();

View File

@@ -1,5 +1,4 @@
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/openhis";
// 查询盘点列表
export function getStockinventoryList(query) {

View File

@@ -46,9 +46,9 @@
</template>
<script setup>
import { getMedicineList } from "./api";
import { watch } from "vue";
import { throttle } from "lodash-es";
import {getMedicineList} from "./api";
import {watch} from "vue";
import {throttle} from "lodash-es";
const props = defineProps({
searchKey: {

View File

@@ -520,28 +520,28 @@
<script setup name="chkstockPart">
import {
submitApproval,
addProductStocktaking,
delProductStocktaking,
getPharmacyList,
getCount,
getDispensaryList,
getDetailInit,
getDispensaryList,
getPharmacyList,
getstocktakingDetail,
submitApproval,
} from '../components/api';
import PopoverList from '@/components/OpenHis/popoverList/index.vue';
import TraceNoDialog from '@/components/OpenHis/TraceNoDialog/index.vue';
import MedicineList from '../components/medicineList.vue';
import { formatDate } from '@/utils/index';
import {formatDate} from '@/utils/index';
import useUserStore from '@/store/modules/user';
import { useRoute } from 'vue-router';
import { ref, reactive, watch, onMounted, onUnmounted, toRefs, defineEmits, getCurrentInstance } from 'vue';
import { useStore } from '@/store/store';
import {useRoute} from 'vue-router';
import {computed, defineEmits, getCurrentInstance, reactive, ref, toRefs, watch} from 'vue';
import {useStore} from '@/store/store';
import useTagsViewStore from '@/store/modules/tagsView';
import templateJson from './components/template';
import { hiprint } from 'vue-plugin-hiprint';
import {hiprint} from 'vue-plugin-hiprint';
import Decimal from 'decimal.js';
import { computed } from 'vue';
const tagsViewStore = useTagsViewStore();
const store = useStore();
const route = useRoute();

View File

@@ -1,5 +1,4 @@
import request from '@/utils/request';
import {parseStrEmpty} from '@/utils/openhis';
// 查询盘点列表
export function getStockTakeList (query) {

View File

@@ -46,9 +46,9 @@
</template>
<script setup>
import { getMedicineList } from "./api";
import { watch } from "vue";
import { throttle } from "lodash-es";
import {getMedicineList} from "./api";
import {watch} from "vue";
import {throttle} from "lodash-es";
const props = defineProps({
searchKey: {

View File

@@ -153,13 +153,9 @@
</div>
</template>
<script setup>
import { ref, reactive, getCurrentInstance, onMounted } from 'vue';
import {
getStockTakeList,
getPharmacyList,
getDispensaryList,
saveOrgDeviceSummary,
} from './components/api.js';
import {getCurrentInstance, onMounted, reactive, ref} from 'vue';
import {getDispensaryList, getPharmacyList, getStockTakeList, saveOrgDeviceSummary,} from './components/api.js';
const { proxy } = getCurrentInstance();
const { warehous_type } = proxy.useDict('warehous_type');
const dataList = ref([]);

View File

@@ -1,5 +1,4 @@
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/openhis";
// 查询盘点列表
export function getStockinventoryList(query) {

View File

@@ -41,9 +41,9 @@
</template>
<script setup>
import { getMedicineList } from "./api";
import { watch } from "vue";
import { throttle } from "lodash-es";
import {getMedicineList} from "./api";
import {watch} from "vue";
import {throttle} from "lodash-es";
const props = defineProps({
searchKey: {

View File

@@ -233,18 +233,11 @@
</template>
<script setup name="ChkstockRecord">
// 导入onActivated钩子
import { onMounted, onActivated } from 'vue';
import {
getStockinventoryList,
getstocktakingDetail,
getInit,
submitApproval,
withdrawApproval,
getDetailInit,
} from '../components/api';
import ChkstockDetailsDialog from '../components/chkstockDetailsDialog.vue';
// import stockReceiptDialog from "./components/stockReceiptDialog";
// 导入onActivated钩子
import {onActivated, onMounted} from 'vue';
import {getInit, getStockinventoryList, submitApproval, withdrawApproval,} from '../components/api';
import ChkstockDetailsDialog from '../components/chkstockDetailsDialog.vue';
// import stockReceiptDialog from "./components/stockReceiptDialog";
const router = useRouter();
const { proxy } = getCurrentInstance();

View File

@@ -1,5 +1,4 @@
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/openhis";
// 查询盘点列表
export function getStockinventoryList(query) {

View File

@@ -130,10 +130,10 @@
</template>
<script setup>
import { getCurrentInstance } from 'vue';
import { getstocktakingDetail, productStocktakingApproved, reject } from './api';
import {getCurrentInstance} from 'vue';
import {getstocktakingDetail, productStocktakingApproved, reject} from './api';
import templateJson from '@/views/medicationmanagement/chkstock/chkstockPart/components/template.json';
import { hiprint } from 'vue-plugin-hiprint';
import {hiprint} from 'vue-plugin-hiprint';
import useUserStore from '@/store/modules/user';
const detailsList = ref([]);

View File

@@ -66,9 +66,9 @@
</template>
<script setup>
import { getMedicineList } from "./api";
import { ref, watch } from "vue";
import { throttle } from "lodash-es";
import {getMedicineList} from "./api";
import {ref, watch} from "vue";
import {throttle} from "lodash-es";
const router = useRouter();
const route = useRoute();