feat(物资管理): 新增备件出入库总览功能并优化采购计划单
添加备件出入库总览API接口及前端展示 在采购计划单中增加设备类型字段及相关展示逻辑 优化文件上传组件处理逻辑 修复采购计划单表单验证及数据统计问题 移除备件管理页面多余操作按钮
This commit is contained in:
@ -214,7 +214,7 @@
|
||||
<dict-tag :options="wz_inventory_type" :value="scope.row.kucunStatus"></dict-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button type="text" @click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['personnel:beipinBeijian:edit']">编辑</el-button>
|
||||
@ -223,7 +223,7 @@
|
||||
<el-button type="text" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['personnel:beipinBeijian:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
</el-table>
|
||||
<div class="pagination-section">
|
||||
<div class="pagination-info">
|
||||
@ -260,12 +260,12 @@
|
||||
:value="dict.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备类型" prop="shebeiType">
|
||||
<!-- <el-form-item label="设备类型" prop="shebeiType">
|
||||
<el-select v-model="form.shebeiType" placeholder="请选择设备类型">
|
||||
<el-option v-for="dict in wz_device_type" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
@ -408,7 +408,7 @@ const userStore = useUserStore();
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
|
||||
import { listBeipinBeijian, getBeipinBeijian, delBeipinBeijian, updateBeipinBeijian } from '@/api/wuziguanli/beijian';
|
||||
import { listBeipinBeijian, getBeipinBeijian, delBeipinBeijian, updateBeipinBeijian,chuRuKuTotal } from '@/api/wuziguanli/beijian';
|
||||
import { BeipinBeijianVO, BeipinBeijianQuery, BeipinBeijianForm } from '@/api/wuziguanli/beijian/types';
|
||||
|
||||
|
||||
@ -502,6 +502,18 @@ const getDictLabel = (dictType, value) => {
|
||||
return option?.label || value;
|
||||
};
|
||||
|
||||
//查询总览
|
||||
const getTotalView= async () => {
|
||||
try {
|
||||
const res = await chuRuKuTotal({projectId: queryParams.value.projectId});
|
||||
console.log(res);
|
||||
|
||||
total.value = res.total;
|
||||
} catch (error) {
|
||||
proxy?.$modal.msgError('获取数据失败,请重试');
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询运维-物资-备品配件列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true;
|
||||
@ -639,6 +651,8 @@ watch(() => userStore.selectedProject, (newProject) => {
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
// 初始化查询总览
|
||||
getTotalView();
|
||||
});
|
||||
|
||||
// 组件卸载时清空projectId
|
||||
|
||||
Reference in New Issue
Block a user