Mr.Zhang
2023-08-22 b156667a61df815ad145d0069570595f5f2e0c91
api文件合并
已删除1个文件
已修改3个文件
50 ■■■■■ 文件已修改
screen_standard/src/components/AppLayout.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/utils/api.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/utils/apis.js 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/views/process.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/components/AppLayout.vue
@@ -53,7 +53,7 @@
<script setup>
import { getAssets } from '@/utils'
import { getDepartmentList } from '@/utils/apis.js'
import { getDepartmentList } from '@/utils/api.js'
import { reactive, toRefs, onMounted, computed } from 'vue';
import { useCounterStore } from '@/stores/counter.js'
import { RouterView, useRoute, useRouter } from 'vue-router'
screen_standard/src/utils/api.js
@@ -1,8 +1,8 @@
import axiosInstance from './request';
// å‘˜å·¥äº§å“ç»Ÿè®¡TOP10
export function getTop (companyId, departId) {
    return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`)
export function getTop (companyId, departId, params) {
    return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`, { params })
}
// æˆå“è®¡åˆ’-实时仓库余量统计
@@ -38,4 +38,20 @@
// è¿‘7天不良品分布-不良品数量-按不良项统计
export function getUnqualifiedCateData (companyId, departId, procedureId) {
    return axiosInstance.get(`statistics/getUnqualifiedCateData/${companyId}/${departId}?procedureId=${procedureId}`)
}
// æ•°æ®ç»Ÿè®¡-成品计划,执行中、延期计划数、今日生产人数、今日生产设备数、今日不良品
export function getProcedurePlansList (companyId, departId, params) {
  return axiosInstance.get(`statistics/getProcedurePlansList/${companyId}/${departId}`, {params} )
}
// æŸ¥è¯¢ä¼ä¸šå…¨éƒ¨å…¬å¸éƒ¨é—¨
export function getDepartmentList (companyId) {
  return axiosInstance.get(`statistics/getDepartmentList/${companyId}`)
}
// æ•°æ®ç»Ÿè®¡-成品计划,执行中、延期计划数、今日生产人数、今日生产设备数、今日不良品
export function getProcedurePlanData (companyId, departId, params) {
  return axiosInstance.get(`statistics/getProcedurePlanData/${companyId}/${departId}`, {params} )
}
screen_standard/src/utils/apis.js
ÎļþÒÑɾ³ý
screen_standard/src/views/process.vue
@@ -108,7 +108,7 @@
<script setup>
import { reactive, ref, toRefs, onMounted, onBeforeUnmount, onUnmounted, nextTick } from 'vue'
import { getProcedurePlanData, getTop, getProcedurePlansList, getRecordLogPage } from '@/utils/apis.js'
import { getProcedurePlanData, getTop, getProcedurePlansList, getRecordLogPage } from '@/utils/api.js'
import { useCounterStore } from '@/stores/counter.js'
import { useRoute } from 'vue-router'
import * as echarts from 'echarts'