From d45bce2ef8f8a8f06647231609c27845cfb23ee1 Mon Sep 17 00:00:00 2001 From: taoge1020 Date: Fri, 22 Aug 2025 19:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/materials/materialsUseRecord/index.ts | 70 +++ src/api/materials/materialsUseRecord/types.ts | 111 ++++ src/assets/styles/ruoyi.scss | 11 + .../biddingManagemen/appointment/index.vue | 4 +- .../biddingManagemen/biddingLimit/index.vue | 8 +- .../listOfWinningBids/index copy 2.vue | 524 ++++++++++++++++++ .../listOfWinningBids/index copy.vue | 344 ------------ .../listOfWinningBids/index.vue | 456 ++++++++------- .../materialIssue/index.vue | 14 +- .../materialIssue/word/index.vue | 36 +- .../materials/materialsUseRecord/index.vue | 327 +++++++++++ src/views/progress/plan/index.vue | 2 +- 13 files changed, 1346 insertions(+), 563 deletions(-) create mode 100644 src/api/materials/materialsUseRecord/index.ts create mode 100644 src/api/materials/materialsUseRecord/types.ts create mode 100644 src/views/biddingManagemen/listOfWinningBids/index copy 2.vue delete mode 100644 src/views/biddingManagemen/listOfWinningBids/index copy.vue create mode 100644 src/views/materials/materialsUseRecord/index.vue diff --git a/.env.development b/.env.development index b59befd..d905b86 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.180:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 无人机接口地址 diff --git a/src/api/materials/materialsUseRecord/index.ts b/src/api/materials/materialsUseRecord/index.ts new file mode 100644 index 0000000..177b5b2 --- /dev/null +++ b/src/api/materials/materialsUseRecord/index.ts @@ -0,0 +1,70 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { MaterialsUseRecordVO, MaterialsUseRecordForm, MaterialsUseRecordQuery } from '@/api/materials/materialsUseRecord/types'; + +/** + * 查询材料使用登记列表 + * @param query + * @returns {*} + */ + +export const listMaterialsUseInventory = (query?: MaterialsUseRecordQuery): AxiosPromise => { + return request({ + url: '/materials/materialsInventory/list', + method: 'get', + params: query + }); +}; +export const listMaterialsUseRecord = (query?: MaterialsUseRecordQuery): AxiosPromise => { + return request({ + url: '/materials/materialsUseRecord/list', + method: 'get', + params: query + }); +}; + +/** + * 查询材料使用登记详细 + * @param id + */ +export const getMaterialsUseRecord = (id: string | number): AxiosPromise => { + return request({ + url: '/materials/materialsUseRecord/' + id, + method: 'get' + }); +}; + +/** + * 新增材料使用登记 + * @param data + */ +export const addMaterialsUseRecord = (data: MaterialsUseRecordForm) => { + return request({ + url: '/materials/materialsUseRecord', + method: 'post', + data: data + }); +}; + +/** + * 修改材料使用登记 + * @param data + */ +export const updateMaterialsUseRecord = (data: MaterialsUseRecordForm) => { + return request({ + url: '/materials/materialsUseRecord', + method: 'put', + data: data + }); +}; + +/** + * 删除材料使用登记 + * @param id + */ +export const delMaterialsUseRecord = (id: string | number | Array) => { + return request({ + url: '/materials/materialsUseRecord/' + id, + method: 'delete' + }); +}; diff --git a/src/api/materials/materialsUseRecord/types.ts b/src/api/materials/materialsUseRecord/types.ts new file mode 100644 index 0000000..697f347 --- /dev/null +++ b/src/api/materials/materialsUseRecord/types.ts @@ -0,0 +1,111 @@ +export interface MaterialsUseRecordVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 库存ID + */ + inventoryId: string | number; + + /** + * 使用部位 + */ + usePart: string; + + /** + * 使用数量 + */ + useNumber: number; + + /** + * 剩余量 + */ + residueNumber: string | number; + + /** + * 备注 + */ + remark: string; + +} + +export interface MaterialsUseRecordForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 库存ID + */ + inventoryId?: string | number; + + /** + * 使用部位 + */ + usePart?: string; + + /** + * 使用数量 + */ + useNumber?: number; + + /** + * 剩余量 + */ + residueNumber?: string | number; + + /** + * 备注 + */ + remark?: string; + +} + +export interface MaterialsUseRecordQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 库存ID + */ + inventoryId?: string | number; + + /** + * 使用部位 + */ + usePart?: string; + + /** + * 使用数量 + */ + useNumber?: number; + + /** + * 剩余量 + */ + residueNumber?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index d2ecb24..d9409ed 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -288,3 +288,14 @@ h6 { .top-right-btn { margin-left: auto; } + +.text-two-lines { + display: -webkit-box; /* 触发弹性盒模型 */ + -webkit-box-orient: vertical; /* 垂直排列文本行 */ + -webkit-line-clamp: 2; /* 限制显示2行 */ + /* 3. 超出部分处理 */ + overflow: hidden; /* 隐藏超出容器的内容 */ + text-overflow: ellipsis; /* 超出部分显示省略号 */ + /* 可选:优化文本间距 */ + line-height: 1.5; /* 行高,控制两行的垂直间距 */ +} diff --git a/src/views/biddingManagemen/appointment/index.vue b/src/views/biddingManagemen/appointment/index.vue index 7c45599..ce519ad 100644 --- a/src/views/biddingManagemen/appointment/index.vue +++ b/src/views/biddingManagemen/appointment/index.vue @@ -58,7 +58,7 @@ import type { ComponentInternalInstance } from 'vue'; import { useUserStoreHook } from '@/store/modules/user'; import { ElMessage, ElLoading } from 'element-plus'; import { biddingGetUser, AddbiddingUser, biddingUserList } from '@/api/bidding/appointment'; - +import { getProject } from '@/api/project/project'; // 获取当前实例 const { proxy } = getCurrentInstance() as ComponentInternalInstance; // 获取用户 store @@ -68,7 +68,7 @@ const currentProject = computed(() => userStore.selectedProject); // 专业字典数据 const { des_user_major } = toRefs(proxy?.useDict('des_user_major')); const isDisabled = ref(false); - +const projectInfo = ref({}); //项目信息 // 表单数据 const form = reactive({ id: null, diff --git a/src/views/biddingManagemen/biddingLimit/index.vue b/src/views/biddingManagemen/biddingLimit/index.vue index 79b4d4f..ce13de3 100644 --- a/src/views/biddingManagemen/biddingLimit/index.vue +++ b/src/views/biddingManagemen/biddingLimit/index.vue @@ -16,7 +16,7 @@ {{ isExpandAll ? '一键收起' : '一键展开' }} - + 导出excel @@ -78,7 +78,7 @@ {{ scope.row.price }} - + diff --git a/src/views/biddingManagemen/listOfWinningBids/index copy 2.vue b/src/views/biddingManagemen/listOfWinningBids/index copy 2.vue new file mode 100644 index 0000000..1e7356c --- /dev/null +++ b/src/views/biddingManagemen/listOfWinningBids/index copy 2.vue @@ -0,0 +1,524 @@ + + + + + diff --git a/src/views/biddingManagemen/listOfWinningBids/index copy.vue b/src/views/biddingManagemen/listOfWinningBids/index copy.vue deleted file mode 100644 index cd2f39a..0000000 --- a/src/views/biddingManagemen/listOfWinningBids/index copy.vue +++ /dev/null @@ -1,344 +0,0 @@ - - - diff --git a/src/views/biddingManagemen/listOfWinningBids/index.vue b/src/views/biddingManagemen/listOfWinningBids/index.vue index f2c7700..a7f7b43 100644 --- a/src/views/biddingManagemen/listOfWinningBids/index.vue +++ b/src/views/biddingManagemen/listOfWinningBids/index.vue @@ -2,18 +2,66 @@
- + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + 中标 + 未中标 - - - + + + + - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -142,125 +117,154 @@ diff --git a/src/views/materials/materialsEquipment/materialIssue/index.vue b/src/views/materials/materialsEquipment/materialIssue/index.vue index c0c360f..b4ae57e 100644 --- a/src/views/materials/materialsEquipment/materialIssue/index.vue +++ b/src/views/materials/materialsEquipment/materialIssue/index.vue @@ -140,7 +140,7 @@ @@ -149,7 +149,7 @@ @@ -158,7 +158,7 @@ @@ -167,7 +167,7 @@ @@ -176,7 +176,7 @@ @@ -185,7 +185,7 @@ @@ -193,7 +193,7 @@ - + diff --git a/src/views/materials/materialsEquipment/materialIssue/word/index.vue b/src/views/materials/materialsEquipment/materialIssue/word/index.vue index 4cfb5d9..7298339 100644 --- a/src/views/materials/materialsEquipment/materialIssue/word/index.vue +++ b/src/views/materials/materialsEquipment/materialIssue/word/index.vue @@ -54,31 +54,32 @@ - 序号 - 名称 - 规格 - 单位 - 库存 - 领取 - 剩余 - 备注 + + 序号 + 名称 + 规格 + 单位 + 库存 + 领取 + 剩余 + 备注 - {{ i + 1 }} - {{ item.name }} - {{ item.specification }} - {{ item.unit }} - {{ item.stockQuantity }} - {{ item.issuedQuantity }} - {{ item.remainingQuantity }} - {{ item.remark }} + {{ i + 1 }} + {{ item.name }} + {{ item.specification }} + {{ item.unit }} + {{ item.stockQuantity }} + {{ item.issuedQuantity }} + {{ item.remainingQuantity }} + {{ item.remark }} - +
缺陷情况:
{{ formData.defectDescription }} @@ -296,5 +297,6 @@ tbody { box-shadow: 0px 0px 10px #ddd; padding: 20px; position: relative; + /* overflow: auto; */ } diff --git a/src/views/materials/materialsUseRecord/index.vue b/src/views/materials/materialsUseRecord/index.vue new file mode 100644 index 0000000..c4a7866 --- /dev/null +++ b/src/views/materials/materialsUseRecord/index.vue @@ -0,0 +1,327 @@ + + + diff --git a/src/views/progress/plan/index.vue b/src/views/progress/plan/index.vue index 2f22b3f..822c6cb 100644 --- a/src/views/progress/plan/index.vue +++ b/src/views/progress/plan/index.vue @@ -288,7 +288,7 @@ const getList = async () => { matrixOptions.value = matrixList; queryParams.value.matrixId = matrixList[0].children[0].matrixId; } catch (error) { - proxy?.$modal.msgError('获取方阵失败'); + // proxy?.$modal.msgError('获取方阵失败'); } } }