From 18957eb7a73e7f0a0299f8f55da0767b733ee2da Mon Sep 17 00:00:00 2001 From: taoge1020 Date: Tue, 26 Aug 2025 21:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/materials/materialReceive/index.ts | 13 + src/api/message/notice/index.ts | 63 +++ src/api/message/notice/types.ts | 156 ++++++ .../landTransfer/landTransferLedger/index.ts | 10 + .../biddingManagemen/appointment/index.vue | 14 +- .../listOfWinningBids/index.vue | 102 ++-- src/views/contract/limitPrice/index.vue | 16 +- src/views/ctr/expensesContract/index.vue | 173 +++---- src/views/ctr/incomeContract/index.vue | 195 +++----- src/views/ctr/index.vue | 4 +- src/views/ctr/update/index.vue | 462 +++++++----------- src/views/design/Professional/index.vue | 2 +- src/views/design/condition/comm/filePage.vue | 2 +- src/views/design/designChange/index.vue | 4 +- src/views/design/designChange/indexEdit.vue | 128 +++-- src/views/design/drawing/index.vue | 11 +- src/views/design/scheme/index.vue | 12 +- src/views/design/subcontract/index.vue | 2 +- .../design/volumeCatalog/blueprintEdit.vue | 2 +- src/views/design/volumeCatalog/index.vue | 10 +- src/views/materials/appointment/index.vue | 9 +- .../materialIssue/index.vue | 35 +- .../materialReceive/index.vue | 67 +-- .../materials/materialsInventory/index.vue | 34 +- .../materials/materialsUseRecord/index.vue | 34 +- .../overallPlanMaterialSupply/index.vue | 4 +- src/views/materials/purchaseDoc/index.vue | 12 +- .../usageMaterials/material/index.vue | 28 +- .../usageMaterials/purchase/index.vue | 89 +++- src/views/message/notice/index.vue | 256 ++++++++++ src/views/out/constructionValue/index.vue | 230 ++++----- src/views/out/designCompletion/index.vue | 40 +- src/views/out/monthPlan/index.vue | 30 +- src/views/out/outDesignTable/index.vue | 14 +- src/views/out/purchase/comm/purchPage.vue | 209 ++++---- src/views/out/purchase/index.vue | 1 - src/views/out/settlementValueOwner/index.vue | 25 +- .../out/settlementValueSubcontract/index.vue | 37 +- src/views/patch/index.vue | 71 ++- .../landTransferLedger/index.vue | 38 +- 41 files changed, 1486 insertions(+), 1162 deletions(-) create mode 100644 src/api/message/notice/index.ts create mode 100644 src/api/message/notice/types.ts create mode 100644 src/views/message/notice/index.vue diff --git a/.env.development b/.env.development index 0181823..2ef074f 100644 --- a/.env.development +++ b/.env.development @@ -6,13 +6,13 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 # VITE_APP_BASE_API = 'http://192.168.110.213:8899' # 朱银 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +# VITE_APP_BASE_API = 'http://192.168.110.149:8899' #曾涛 # VITE_APP_BASE_API = 'http://192.168.110.171:8899' diff --git a/src/api/materials/materialReceive/index.ts b/src/api/materials/materialReceive/index.ts index 0e9f582..376e804 100644 --- a/src/api/materials/materialReceive/index.ts +++ b/src/api/materials/materialReceive/index.ts @@ -61,3 +61,16 @@ export const delMaterialReceive = (id: string | number | Array) method: 'delete' }); }; +/** + * 获取合同列表数据 + * @param id + */ +export const getContractNameList = (id: string | number | Array) => { + return request({ + url: '/materials/materialReceive/ctrList', + params: { + projectId: id + }, + method: 'get' + }); +}; diff --git a/src/api/message/notice/index.ts b/src/api/message/notice/index.ts new file mode 100644 index 0000000..224934c --- /dev/null +++ b/src/api/message/notice/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { NoticeVO, NoticeForm, NoticeQuery } from '@/api/message/notice/types'; + +/** + * 查询消息列表 + * @param query + * @returns {*} + */ + +export const listNotice = (query?: NoticeQuery): AxiosPromise => { + return request({ + url: '/message/notice/list', + method: 'get', + params: query + }); +}; + +/** + * 查询消息详细 + * @param id + */ +export const getNotice = (id: string | number): AxiosPromise => { + return request({ + url: '/message/notice/' + id, + method: 'get' + }); +}; + +/** + * 新增消息 + * @param data + */ +export const addNotice = (data: NoticeForm) => { + return request({ + url: '/message/notice', + method: 'post', + data: data + }); +}; + +/** + * 修改消息 + * @param data + */ +export const updateNotice = (data: NoticeForm) => { + return request({ + url: '/message/notice', + method: 'put', + data: data + }); +}; + +/** + * 删除消息 + * @param id + */ +export const delNotice = (id: string | number | Array) => { + return request({ + url: '/message/notice/' + id, + method: 'delete' + }); +}; diff --git a/src/api/message/notice/types.ts b/src/api/message/notice/types.ts new file mode 100644 index 0000000..c38fdad --- /dev/null +++ b/src/api/message/notice/types.ts @@ -0,0 +1,156 @@ +export interface NoticeVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 接收通知的用户ID + */ + recipientId: string | number; + + /** + * 发送通知的用户ID(系统通知 0) + */ + senderId: string | number; + + /** + * 配置id + */ + configId: string | number; + + /** + * 详情id + */ + detailId: string | number; + + /** + * 通知内容 + */ + content: string; + + /** + * 查看状态(0未读 1已读) + */ + viewStatus: string; + + /** + * 查看时间 + */ + viewTime: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface NoticeForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 接收通知的用户ID + */ + recipientId?: string | number; + + /** + * 发送通知的用户ID(系统通知 0) + */ + senderId?: string | number; + + /** + * 配置id + */ + configId?: string | number; + + /** + * 详情id + */ + detailId?: string | number; + + /** + * 通知内容 + */ + content?: string; + + /** + * 查看状态(0未读 1已读) + */ + viewStatus?: string; + + /** + * 查看时间 + */ + viewTime?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface NoticeQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 接收通知的用户ID + */ + recipientId?: string | number; + + /** + * 发送通知的用户ID(系统通知 0) + */ + senderId?: string | number; + + /** + * 配置id + */ + configId?: string | number; + + /** + * 详情id + */ + detailId?: string | number; + + /** + * 通知内容 + */ + content?: string; + + /** + * 查看状态(0未读 1已读) + */ + viewStatus?: string; + + /** + * 查看时间 + */ + viewTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/system/landTransfer/landTransferLedger/index.ts b/src/api/system/landTransfer/landTransferLedger/index.ts index 2fdefb9..fbd949e 100644 --- a/src/api/system/landTransfer/landTransferLedger/index.ts +++ b/src/api/system/landTransfer/landTransferLedger/index.ts @@ -69,3 +69,13 @@ export const delLandTransferLedger = (id: string | number | Array) => { + return request({ + url: '/land/landTransferLedger/count/' + id, + method: 'get' + }); +}; diff --git a/src/views/biddingManagemen/appointment/index.vue b/src/views/biddingManagemen/appointment/index.vue index ce519ad..c71349c 100644 --- a/src/views/biddingManagemen/appointment/index.vue +++ b/src/views/biddingManagemen/appointment/index.vue @@ -10,12 +10,11 @@ @click="isDisabled = false" class="px-8 py-2.5 transition-all duration-300 font-medium" v-if="isDisabled" - v-hasPermi="['cailiaoshebei:purchaseUser:addOrUpdate']" + v-hasPermi="['bidding:biddingUser:add']" > 点击编辑 - @@ -30,7 +29,6 @@ -
确认提交 @@ -53,22 +51,14 @@ diff --git a/src/views/design/Professional/index.vue b/src/views/design/Professional/index.vue index 6726936..017ce41 100644 --- a/src/views/design/Professional/index.vue +++ b/src/views/design/Professional/index.vue @@ -19,7 +19,7 @@ - + @@ -58,23 +53,13 @@ - + @@ -144,7 +129,7 @@ :prop="`itemList.${index}.name`" :rules="[{ required: true, message: '名称不能为空', trigger: 'blur' }]" > - + diff --git a/src/views/materials/materialsEquipment/materialReceive/index.vue b/src/views/materials/materialsEquipment/materialReceive/index.vue index d7c1b27..d6f9b55 100644 --- a/src/views/materials/materialsEquipment/materialReceive/index.vue +++ b/src/views/materials/materialsEquipment/materialReceive/index.vue @@ -13,8 +13,8 @@ - - + + @@ -23,8 +23,8 @@ - 搜索 - 重置 + 搜索 + 重置 @@ -37,23 +37,12 @@ 新增 - - 删除 - - + @@ -66,19 +55,17 @@ - + @@ -126,8 +113,16 @@ - - + + + + + @@ -255,7 +250,8 @@ import { getMaterialReceive, delMaterialReceive, addMaterialReceive, - updateMaterialReceive + updateMaterialReceive, + getContractNameList } from '@/api/materials/materialReceive'; import { MaterialReceiveVO, MaterialReceiveQuery, MaterialReceiveForm } from '@/api/materials/materialReceive/types'; import { useUserStoreHook } from '@/store/modules/user'; @@ -288,7 +284,7 @@ const queryFormRef = ref(); const materialReceiveFormRef = ref(); const purchaseDocList = ref([]); // 物资采购单列表 const purchaseMap = new Map(); // 采购单映射(id -> 采购单对象) - +const contractNameList = ref([]); //合同列表 // 对话框配置 const dialog = reactive({ visible: false, @@ -378,7 +374,11 @@ const getList = async () => { loading.value = false; } }; - +// 获取合同列表数据 +const getContractList = async () => { + let res = await getContractNameList(currentProject.value?.id); + contractNameList.value = res.rows; +}; /** 取消按钮 */ const cancel = () => { reset(); @@ -463,13 +463,14 @@ const submitForm = () => { if (form.value.id) { await updateMaterialReceive({ ...form.value }); } else { + form.value.itemList.forEach((item) => { + delete item.id; + }); await addMaterialReceive({ ...form.value }); } proxy?.$modal.msgSuccess('操作成功'); dialog.visible = false; await getList(); - } catch (err) { - proxy?.$modal.msgError('操作失败'); } finally { buttonLoading.value = false; } @@ -664,6 +665,7 @@ watch( /** 页面挂载时初始化 */ onMounted(() => { + getContractList(); getList(); getlistPurchase(); // 监听初始验收条目 @@ -678,6 +680,7 @@ const listeningProject = watch( (nid) => { queryParams.value.projectId = nid; form.value.projectId = nid; + getContractList(); getList(); getlistPurchase(); } diff --git a/src/views/materials/materialsInventory/index.vue b/src/views/materials/materialsInventory/index.vue index 5cba59e..3a2d13b 100644 --- a/src/views/materials/materialsInventory/index.vue +++ b/src/views/materials/materialsInventory/index.vue @@ -1,20 +1,16 @@ --> - + @@ -130,8 +129,7 @@ - + @@ -176,9 +174,7 @@ import { } from '@/api/materials/materialsInventory'; import { MaterialsInventoryForm, MaterialsInventoryQuery, MaterialsInventoryVO } from '@/api/materials/materialsInventory/types'; import { useUserStoreHook } from '@/store/modules/user'; -import { - listMaterialsUseRecord, -} from '@/api/materials/materialsUseRecord'; +import { listMaterialsUseRecord } from '@/api/materials/materialsUseRecord'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { out_put_type } = toRefs(proxy?.useDict('out_put_type')); diff --git a/src/views/materials/materialsUseRecord/index.vue b/src/views/materials/materialsUseRecord/index.vue index 18c0679..c4a7866 100644 --- a/src/views/materials/materialsUseRecord/index.vue +++ b/src/views/materials/materialsUseRecord/index.vue @@ -1,7 +1,6 @@ diff --git a/src/views/materials/usageMaterials/material/index.vue b/src/views/materials/usageMaterials/material/index.vue index f94ef0f..b776989 100644 --- a/src/views/materials/usageMaterials/material/index.vue +++ b/src/views/materials/usageMaterials/material/index.vue @@ -23,7 +23,7 @@ style="width: 100%; margin-bottom: 20px; height: calc(100vh - 305px)" :row-class-name="tableRowClassName" > - + @@ -45,31 +45,29 @@ {{ formatDate(scope.row.createTime) }} - + diff --git a/src/views/materials/usageMaterials/purchase/index.vue b/src/views/materials/usageMaterials/purchase/index.vue index 84d24cb..e2778d1 100644 --- a/src/views/materials/usageMaterials/purchase/index.vue +++ b/src/views/materials/usageMaterials/purchase/index.vue @@ -1,22 +1,36 @@ - + - +
- + @@ -105,8 +145,12 @@ - + @@ -119,8 +163,7 @@ - + diff --git a/src/views/message/notice/index.vue b/src/views/message/notice/index.vue new file mode 100644 index 0000000..6763a33 --- /dev/null +++ b/src/views/message/notice/index.vue @@ -0,0 +1,256 @@ + + + diff --git a/src/views/out/constructionValue/index.vue b/src/views/out/constructionValue/index.vue index 82af6af..0887fb5 100644 --- a/src/views/out/constructionValue/index.vue +++ b/src/views/out/constructionValue/index.vue @@ -1,120 +1,124 @@ - diff --git a/src/views/out/purchase/index.vue b/src/views/out/purchase/index.vue index eba6578..d2daee5 100644 --- a/src/views/out/purchase/index.vue +++ b/src/views/out/purchase/index.vue @@ -23,7 +23,6 @@ const handleClick = (val) => { purchPageRef1.value.getList(val.props.name); //子组件方法 } else { purchPageRef2.value.getList(val.props.name); //子组件方法 - } }; onMounted(() => { diff --git a/src/views/out/settlementValueOwner/index.vue b/src/views/out/settlementValueOwner/index.vue index 33afbfb..abcb961 100644 --- a/src/views/out/settlementValueOwner/index.vue +++ b/src/views/out/settlementValueOwner/index.vue @@ -27,17 +27,12 @@ 新增 - - 删除 - - + @@ -58,18 +53,12 @@ diff --git a/src/views/out/settlementValueSubcontract/index.vue b/src/views/out/settlementValueSubcontract/index.vue index d25c1fd..99480d8 100644 --- a/src/views/out/settlementValueSubcontract/index.vue +++ b/src/views/out/settlementValueSubcontract/index.vue @@ -28,23 +28,12 @@ 新增 - - 删除 - - + @@ -65,24 +54,12 @@ diff --git a/src/views/patch/index.vue b/src/views/patch/index.vue index 1aaa708..a4b9ad7 100644 --- a/src/views/patch/index.vue +++ b/src/views/patch/index.vue @@ -1,8 +1,7 @@