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;
|
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
|
||||||
|
|||||||
@ -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")
|
||||||
|
|||||||
@ -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']
|
||||||
|
|||||||
@ -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 })
|
||||||
|
|||||||
@ -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 })
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 处理库存选择 */
|
/** 处理库存选择 */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user