feat(biz): 添加物料名称查询参数并优化库存选择功能
This commit is contained in:
parent
e193dacc4f
commit
71d1d6e707
@ -1,12 +1,12 @@
|
||||
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 lombok.*;
|
||||
import java.util.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 制粉工序参数实绩 Response VO")
|
||||
@Data
|
||||
@ -89,4 +89,4 @@ public class MillParamActRespVO {
|
||||
@ExcelProperty("采集日期")
|
||||
private LocalDate collectDate;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,11 +1,9 @@
|
||||
package com.ningxia.yunxi.chemmes.module.biz.controller.admin.millparamact.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import javax.validation.constraints.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 制粉工序参数实绩新增/修改 Request VO")
|
||||
|
||||
@ -7,8 +7,6 @@ export {}
|
||||
declare global {
|
||||
const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE']
|
||||
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 createApp: typeof import('vue')['createApp']
|
||||
const customRef: typeof import('vue')['customRef']
|
||||
|
||||
@ -134,6 +134,7 @@ const queryParams = reactive({
|
||||
storeHouseId: undefined,
|
||||
storeAreaId: undefined,
|
||||
yardQty: 1,
|
||||
matName: undefined,
|
||||
})
|
||||
|
||||
// 仓储列表(条件:store_type = '3' )
|
||||
@ -277,12 +278,17 @@ const handleSave = () => {
|
||||
}
|
||||
|
||||
/** 打开弹窗 */
|
||||
const open = () => {
|
||||
const open = (params?: { materialName?: string }) => {
|
||||
dialogVisible.value = true
|
||||
// 重置查询参数
|
||||
queryParams.pageNo = 1
|
||||
queryParams.storeHouseId = undefined
|
||||
queryParams.storeAreaId = undefined
|
||||
queryParams.matName = params?.materialName
|
||||
// 初始化仓储列表
|
||||
getStoreHouseList()
|
||||
// 执行搜索
|
||||
// handleQuery()
|
||||
getList()
|
||||
}
|
||||
|
||||
defineExpose({ open, setSelectedIds })
|
||||
|
||||
@ -651,8 +651,8 @@ const addProductItem = () => {
|
||||
// 设置已选择的ID,以便弹窗打开时自动选中
|
||||
inventorySelectRef.value.setSelectedIds(selectedIds)
|
||||
|
||||
// 打开弹窗
|
||||
inventorySelectRef.value.open()
|
||||
// 打开弹窗,传入产品名称作为查询参数
|
||||
inventorySelectRef.value.open({ materialName: formData.materialName })
|
||||
}
|
||||
|
||||
/** 处理库存选择 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user