feat(biz): 添加物料名称查询参数并优化库存选择功能

This commit is contained in:
zxy 2026-05-21 09:05:41 +08:00
parent e193dacc4f
commit 71d1d6e707
5 changed files with 19 additions and 17 deletions

View File

@ -1,12 +1,12 @@
package com.ningxia.yunxi.chemmes.module.biz.controller.admin.millparamact.vo; package com.ningxia.yunxi.chemmes.module.biz.controller.admin.millparamact.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.Data;
import java.util.*;
import java.util.*; import java.time.LocalDate;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
@Schema(description = "管理后台 - 制粉工序参数实绩 Response VO") @Schema(description = "管理后台 - 制粉工序参数实绩 Response VO")
@Data @Data

View File

@ -1,11 +1,9 @@
package com.ningxia.yunxi.chemmes.module.biz.controller.admin.millparamact.vo; package com.ningxia.yunxi.chemmes.module.biz.controller.admin.millparamact.vo;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.Data;
import java.util.*;
import javax.validation.constraints.*; import java.time.LocalDate;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@Schema(description = "管理后台 - 制粉工序参数实绩新增/修改 Request VO") @Schema(description = "管理后台 - 制粉工序参数实绩新增/修改 Request VO")

View File

@ -7,8 +7,6 @@ export {}
declare global { declare global {
const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE'] const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE']
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp'] const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef'] const customRef: typeof import('vue')['customRef']

View File

@ -134,6 +134,7 @@ const queryParams = reactive({
storeHouseId: undefined, storeHouseId: undefined,
storeAreaId: undefined, storeAreaId: undefined,
yardQty: 1, yardQty: 1,
matName: undefined,
}) })
// store_type = '3' // store_type = '3'
@ -277,12 +278,17 @@ const handleSave = () => {
} }
/** 打开弹窗 */ /** 打开弹窗 */
const open = () => { const open = (params?: { materialName?: string }) => {
dialogVisible.value = true dialogVisible.value = true
//
queryParams.pageNo = 1
queryParams.storeHouseId = undefined
queryParams.storeAreaId = undefined
queryParams.matName = params?.materialName
// //
getStoreHouseList() getStoreHouseList()
// //
// handleQuery() getList()
} }
defineExpose({ open, setSelectedIds }) defineExpose({ open, setSelectedIds })

View File

@ -651,8 +651,8 @@ const addProductItem = () => {
// ID便 // ID便
inventorySelectRef.value.setSelectedIds(selectedIds) inventorySelectRef.value.setSelectedIds(selectedIds)
// //
inventorySelectRef.value.open() inventorySelectRef.value.open({ materialName: formData.materialName })
} }
/** 处理库存选择 */ /** 处理库存选择 */