From 0a4eedfb8179e9a984fd8d72663861c25e930074 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 4 Jan 2026 18:58:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=85=A5=E5=BA=93=E8=AE=B0=E5=BD=95):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3=E4=B8=BA?= =?UTF-8?q?POST=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=85=A5=E5=BA=93=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将listMmRecordInbound接口从GET改为POST以支持更复杂的查询条件 - 在查询表单中添加入库类型筛选下拉框 - 将创建日期选择器改为日期时间范围选择器 --- .../productionMaterial/mmrecordinbound.js | 6 ++--- .../productionMaterial/MmRecordInbound.vue | 23 +++++++++++++++---- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/api/materialManagement/productionMaterial/mmrecordinbound.js b/src/api/materialManagement/productionMaterial/mmrecordinbound.js index c10b06a..3fc4fa5 100644 --- a/src/api/materialManagement/productionMaterial/mmrecordinbound.js +++ b/src/api/materialManagement/productionMaterial/mmrecordinbound.js @@ -4,11 +4,11 @@ import request from '@/utils/request' * 入库记录表分页查询 * @param {查询条件} data */ -export function listMmRecordInbound(query) { +export function listMmRecordInbound(data) { return request({ url: 'mes/productionMaterial/MmRecordInbound/list', - method: 'get', - params: query + method: 'post', + data: data }) } diff --git a/src/views/materialManagement/productionMaterial/MmRecordInbound.vue b/src/views/materialManagement/productionMaterial/MmRecordInbound.vue index 6c8d7b2..442684f 100644 --- a/src/views/materialManagement/productionMaterial/MmRecordInbound.vue +++ b/src/views/materialManagement/productionMaterial/MmRecordInbound.vue @@ -9,6 +9,11 @@ + + + + + @@ -24,7 +29,16 @@ - + + {{ $t('btn.search') }} @@ -49,7 +63,7 @@ header-cell-class-name="el-table-header-cell" highlight-current-row @sort-change="sortChange" - :default-sort = "{prop: 'createdTime', order: 'descending'}"> + :default-sort="{ prop: 'createdTime', order: 'descending' }"> @@ -154,7 +168,8 @@ - + + @@ -229,7 +244,7 @@ import { getMmRecordInbound } from '@/api/materialManagement/productionMaterial/mmrecordinbound.js' import { listMmTransactionType } from '@/api/materialManagement/productionMaterial/mmtransactiontype.js' -import { getMaterialOption, getLocationOption } from '@/api/materialManagement/productionMaterial/mminventory.js' +import { getMaterialOption, getLocationOption } from '@/api/materialManagement/productionMaterial/mminventory.js' const { proxy } = getCurrentInstance() const ids = ref([]) const loading = ref(false)