diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/material/MaterialController.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/material/MaterialController.java index 6e95ff00..4e94cfc6 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/material/MaterialController.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/material/MaterialController.java @@ -1,95 +1,103 @@ -package com.chanko.yunxi.mes.module.heli.controller.admin.material; - -import org.springframework.web.bind.annotation.*; -import javax.annotation.Resource; -import org.springframework.validation.annotation.Validated; -import org.springframework.security.access.prepost.PreAuthorize; -import io.swagger.v3.oas.annotations.tags.Tag; -import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.Operation; - -import javax.validation.constraints.*; -import javax.validation.*; -import javax.servlet.http.*; -import java.util.*; -import java.io.IOException; - -import com.chanko.yunxi.mes.framework.common.pojo.PageParam; -import com.chanko.yunxi.mes.framework.common.pojo.PageResult; -import com.chanko.yunxi.mes.framework.common.pojo.CommonResult; -import com.chanko.yunxi.mes.framework.common.util.object.BeanUtils; -import static com.chanko.yunxi.mes.framework.common.pojo.CommonResult.success; - -import com.chanko.yunxi.mes.framework.excel.core.util.ExcelUtils; - -import com.chanko.yunxi.mes.framework.operatelog.core.annotations.OperateLog; -import static com.chanko.yunxi.mes.framework.operatelog.core.enums.OperateTypeEnum.*; - -import com.chanko.yunxi.mes.module.heli.controller.admin.material.vo.*; -import com.chanko.yunxi.mes.module.heli.dal.dataobject.material.MaterialDO; -import com.chanko.yunxi.mes.module.heli.service.material.MaterialService; - -@Tag(name = "管理后台 - 物料") -@RestController -@RequestMapping("/heli/material") -@Validated -public class MaterialController { - - @Resource - private MaterialService materialService; - - @PostMapping("/create") - @Operation(summary = "创建物料") - @PreAuthorize("@ss.hasPermission('heli:material:create')") - public CommonResult createMaterial(@Valid @RequestBody MaterialSaveReqVO createReqVO) { - return success(materialService.createMaterial(createReqVO)); - } - - @PutMapping("/update") - @Operation(summary = "更新物料") - @PreAuthorize("@ss.hasPermission('heli:material:update')") - public CommonResult updateMaterial(@Valid @RequestBody MaterialSaveReqVO updateReqVO) { - materialService.updateMaterial(updateReqVO); - return success(true); - } - - @DeleteMapping("/delete") - @Operation(summary = "删除物料") - @Parameter(name = "id", description = "编号", required = true) - @PreAuthorize("@ss.hasPermission('heli:material:delete')") - public CommonResult deleteMaterial(@RequestParam("id") Long id) { - materialService.deleteMaterial(id); - return success(true); - } - - @GetMapping("/get") - @Operation(summary = "获得物料") - @Parameter(name = "id", description = "编号", required = true, example = "1024") - @PreAuthorize("@ss.hasPermission('heli:material:query')") - public CommonResult getMaterial(@RequestParam("id") Long id) { - MaterialDO material = materialService.getMaterial(id); - return success(BeanUtils.toBean(material, MaterialRespVO.class)); - } - - @GetMapping("/page") - @Operation(summary = "获得物料分页") - @PreAuthorize("@ss.hasPermission('heli:material:query')") - public CommonResult> getMaterialPage(@Valid MaterialPageReqVO pageReqVO) { - PageResult pageResult = materialService.getMaterialPage(pageReqVO); - return success(BeanUtils.toBean(pageResult, MaterialRespVO.class)); - } - - @GetMapping("/export-excel") - @Operation(summary = "导出物料 Excel") - @PreAuthorize("@ss.hasPermission('heli:material:export')") - @OperateLog(type = EXPORT) - public void exportMaterialExcel(@Valid MaterialPageReqVO pageReqVO, - HttpServletResponse response) throws IOException { - pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); - List list = materialService.getMaterialPage(pageReqVO).getList(); - // 导出 Excel - ExcelUtils.write(response, "物料.xls", "数据", MaterialRespVO.class, - BeanUtils.toBean(list, MaterialRespVO.class)); - } - -} \ No newline at end of file +package com.chanko.yunxi.mes.module.heli.controller.admin.material; + +import org.springframework.web.bind.annotation.*; +import javax.annotation.Resource; +import org.springframework.validation.annotation.Validated; +import org.springframework.security.access.prepost.PreAuthorize; +import io.swagger.v3.oas.annotations.tags.Tag; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.Operation; + +import javax.validation.constraints.*; +import javax.validation.*; +import javax.servlet.http.*; +import java.util.*; +import java.io.IOException; + +import com.chanko.yunxi.mes.framework.common.pojo.PageParam; +import com.chanko.yunxi.mes.framework.common.pojo.PageResult; +import com.chanko.yunxi.mes.framework.common.pojo.CommonResult; +import com.chanko.yunxi.mes.framework.common.util.object.BeanUtils; +import static com.chanko.yunxi.mes.framework.common.pojo.CommonResult.success; + +import com.chanko.yunxi.mes.framework.excel.core.util.ExcelUtils; + +import com.chanko.yunxi.mes.framework.operatelog.core.annotations.OperateLog; +import static com.chanko.yunxi.mes.framework.operatelog.core.enums.OperateTypeEnum.*; + +import com.chanko.yunxi.mes.module.heli.controller.admin.material.vo.*; +import com.chanko.yunxi.mes.module.heli.dal.dataobject.material.MaterialDO; +import com.chanko.yunxi.mes.module.heli.service.material.MaterialService; + +@Tag(name = "管理后台 - 物料") +@RestController +@RequestMapping("/heli/material") +@Validated +public class MaterialController { + + @Resource + private MaterialService materialService; + + @PostMapping("/create") + @Operation(summary = "创建物料") + @PreAuthorize("@ss.hasPermission('heli:material:create')") + public CommonResult createMaterial(@Valid @RequestBody MaterialSaveReqVO createReqVO) { + return success(materialService.createMaterial(createReqVO)); + } + + @PutMapping("/update") + @Operation(summary = "更新物料") + @PreAuthorize("@ss.hasPermission('heli:material:update')") + public CommonResult updateMaterial(@Valid @RequestBody MaterialSaveReqVO updateReqVO) { + materialService.updateMaterial(updateReqVO); + return success(true); + } + + @DeleteMapping("/delete") + @Operation(summary = "删除物料") + @Parameter(name = "id", description = "编号", required = true) + @PreAuthorize("@ss.hasPermission('heli:material:delete')") + public CommonResult deleteMaterial(@RequestParam("id") Long id) { + materialService.deleteMaterial(id); + return success(true); + } + + @GetMapping("/get") + @Operation(summary = "获得物料") + @Parameter(name = "id", description = "编号", required = true, example = "1024") + @PreAuthorize("@ss.hasPermission('heli:material:query')") + public CommonResult getMaterial(@RequestParam("id") Long id) { + MaterialDO material = materialService.getMaterial(id); + return success(BeanUtils.toBean(material, MaterialRespVO.class)); + } + + @GetMapping("/page") + @Operation(summary = "获得物料分页") + @PreAuthorize("@ss.hasPermission('heli:material:query')") + public CommonResult> getMaterialPage(@Valid MaterialPageReqVO pageReqVO) { + PageResult pageResult = materialService.getMaterialPage(pageReqVO); + return success(BeanUtils.toBean(pageResult, MaterialRespVO.class)); + } + + @GetMapping("/export-excel") + @Operation(summary = "导出物料 Excel") + @PreAuthorize("@ss.hasPermission('heli:material:export')") + @OperateLog(type = EXPORT) + public void exportMaterialExcel(@Valid MaterialPageReqVO pageReqVO, + HttpServletResponse response) throws IOException { + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); + List list = materialService.getMaterialPage(pageReqVO).getList(); + // 导出 Excel + ExcelUtils.write(response, "物料.xls", "数据", MaterialRespVO.class, + BeanUtils.toBean(list, MaterialRespVO.class)); + } + + @GetMapping({"/all-simples"}) + @Operation(summary = "TODO:获取物料精简信息列表", description = "只包含被开启的物料,主要用于前端的下拉选项") + public CommonResult> > getSimpleList() { + List> list = materialService.getSimpleList(); + // 拼接数据 + return success(list); + } + +} diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java index 00f3b61d..b7bd71fd 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java @@ -87,8 +87,8 @@ public class StorageMatController { @GetMapping("/page") @Operation(summary = "获得入/出库物料分页") @PreAuthorize("@ss.hasPermission('heli:storage-mat:query')") - public CommonResult> getStorageMatPage(@Valid StorageMatPageReqVO pageReqVO) { - PageResult pageResult = storageMatService.getStorageMatPage(pageReqVO); + public CommonResult> getStorageMatPage(@Valid StorageMatPageReqVO pageReqVO) { + List pageResult = storageMatService.getStorageMatPage(pageReqVO); return success(BeanUtils.toBean(pageResult, StorageMatRespVO.class)); } @@ -99,7 +99,7 @@ public class StorageMatController { public void exportStorageMatExcel(@Valid StorageMatPageReqVO pageReqVO, HttpServletResponse response) throws IOException { pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); - List list = storageMatService.getStorageMatPage(pageReqVO).getList(); + List list = storageMatService.getStorageMatPage(pageReqVO); // 导出 Excel ExcelUtils.write(response, "入/出库物料.xls", "数据", StorageMatRespVO.class, BeanUtils.toBean(list, StorageMatRespVO.class)); @@ -110,8 +110,8 @@ public class StorageMatController { @Operation(summary = "获得入/出库物料") @Parameter(name = "id", description = "编号", required = true, example = "1024") @PreAuthorize("@ss.hasPermission('heli:storage-mat:query')") - public CommonResult> getStorageMatList() { - List list = storageMatService.getStorageMatList(); + public CommonResult> getStorageMatList(@RequestParam("whId") Long whId) { + List list = storageMatService.getStorageMatList(whId); return success(BeanUtils.toBean(list, StorageMatValidRespVO.class)); } diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/material/MaterialMapper.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/material/MaterialMapper.java index e465763f..ca39905c 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/material/MaterialMapper.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/material/MaterialMapper.java @@ -1,14 +1,19 @@ package com.chanko.yunxi.mes.module.heli.dal.mysql.material; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.chanko.yunxi.mes.framework.common.pojo.PageResult; import com.chanko.yunxi.mes.framework.mybatis.core.mapper.BaseMapperX; import com.chanko.yunxi.mes.module.heli.controller.admin.material.vo.MaterialPageReqVO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.material.MaterialDO; +import com.chanko.yunxi.mes.module.heli.dal.dataobject.pn.PnDO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.supplier.SupplierDO; import com.github.yulichang.wrapper.MPJLambdaWrapper; import org.apache.ibatis.annotations.Mapper; import org.springframework.util.StringUtils; +import java.util.List; +import java.util.Map; + /** * 物料 Mapper * @@ -32,4 +37,9 @@ public interface MaterialMapper extends BaseMapperX { return selectPage(reqVO, query); } + default List> selectSimpleList() { + + return selectMaps(new QueryWrapper().select("id", "name","code","material_type","spec","unit").lambda()); + + } } diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/pn/PnMapper.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/pn/PnMapper.java index b3070b9b..af21388c 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/pn/PnMapper.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/pn/PnMapper.java @@ -37,7 +37,7 @@ public interface PnMapper extends BaseMapperX { } default List> selectSimpleList() { - return selectMaps(new QueryWrapper().select("id", "pn_name","rg_id").lambda()); + return selectMaps(new QueryWrapper().select("id", "pn_name","rg_id","wh_id").lambda()); } } \ No newline at end of file diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagemat/StorageMatMapper.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagemat/StorageMatMapper.java index ce146ab1..616451e4 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagemat/StorageMatMapper.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagemat/StorageMatMapper.java @@ -42,9 +42,8 @@ public interface StorageMatMapper extends BaseMapperX { default List selectMatByStorckID(Long stockId) { MPJLambdaWrapper query = new MPJLambdaWrapper<>(); - query.selectAll(StorageMatDO.class) - .eq(StorageMatDO::getStockId, stockId); + query.selectAll(StorageMatDO.class).eq(stockId!= null && stockId!= 0,StorageMatDO::getStockId, stockId); return selectList(query); } - List selectStorageMatValid(); + List selectStorageMatValid(Long whId); } \ No newline at end of file diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialService.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialService.java index 81155827..7260961c 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialService.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialService.java @@ -1,55 +1,57 @@ -package com.chanko.yunxi.mes.module.heli.service.material; - -import java.util.*; -import javax.validation.*; -import com.chanko.yunxi.mes.module.heli.controller.admin.material.vo.*; -import com.chanko.yunxi.mes.module.heli.dal.dataobject.material.MaterialDO; -import com.chanko.yunxi.mes.framework.common.pojo.PageResult; -import com.chanko.yunxi.mes.framework.common.pojo.PageParam; - -/** - * 物料 Service 接口 - * - * @author 开发者 - */ -public interface MaterialService { - - /** - * 创建物料 - * - * @param createReqVO 创建信息 - * @return 编号 - */ - Long createMaterial(@Valid MaterialSaveReqVO createReqVO); - - /** - * 更新物料 - * - * @param updateReqVO 更新信息 - */ - void updateMaterial(@Valid MaterialSaveReqVO updateReqVO); - - /** - * 删除物料 - * - * @param id 编号 - */ - void deleteMaterial(Long id); - - /** - * 获得物料 - * - * @param id 编号 - * @return 物料 - */ - MaterialDO getMaterial(Long id); - - /** - * 获得物料分页 - * - * @param pageReqVO 分页查询 - * @return 物料分页 - */ - PageResult getMaterialPage(MaterialPageReqVO pageReqVO); - -} \ No newline at end of file +package com.chanko.yunxi.mes.module.heli.service.material; + +import java.util.*; +import javax.validation.*; +import com.chanko.yunxi.mes.module.heli.controller.admin.material.vo.*; +import com.chanko.yunxi.mes.module.heli.dal.dataobject.material.MaterialDO; +import com.chanko.yunxi.mes.framework.common.pojo.PageResult; +import com.chanko.yunxi.mes.framework.common.pojo.PageParam; + +/** + * 物料 Service 接口 + * + * @author 开发者 + */ +public interface MaterialService { + + /** + * 创建物料 + * + * @param createReqVO 创建信息 + * @return 编号 + */ + Long createMaterial(@Valid MaterialSaveReqVO createReqVO); + + /** + * 更新物料 + * + * @param updateReqVO 更新信息 + */ + void updateMaterial(@Valid MaterialSaveReqVO updateReqVO); + + /** + * 删除物料 + * + * @param id 编号 + */ + void deleteMaterial(Long id); + + /** + * 获得物料 + * + * @param id 编号 + * @return 物料 + */ + MaterialDO getMaterial(Long id); + + /** + * 获得物料分页 + * + * @param pageReqVO 分页查询 + * @return 物料分页 + */ + PageResult getMaterialPage(MaterialPageReqVO pageReqVO); + + List> getSimpleList(); + +} diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialServiceImpl.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialServiceImpl.java index b499428b..20ebf656 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialServiceImpl.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/material/MaterialServiceImpl.java @@ -12,6 +12,9 @@ import org.springframework.validation.annotation.Validated; import javax.annotation.Resource; +import java.util.List; +import java.util.Map; + import static com.chanko.yunxi.mes.framework.common.exception.util.ServiceExceptionUtil.exception; import static com.chanko.yunxi.mes.module.heli.enums.ErrorCodeConstants.CODE_REPEAT; import static com.chanko.yunxi.mes.module.heli.enums.ErrorCodeConstants.MATERIAL_NOT_EXISTS; @@ -85,4 +88,8 @@ public class MaterialServiceImpl implements MaterialService { return materialMapper.selectPage(pageReqVO); } + @Override + public List> getSimpleList() { + return materialMapper.selectSimpleList(); + } } diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatService.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatService.java index 8d5d1354..c2deb6ad 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatService.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatService.java @@ -50,14 +50,14 @@ public interface StorageMatService { * @param pageReqVO 分页查询 * @return 入/出库物料分页 */ - PageResult getStorageMatPage(StorageMatPageReqVO pageReqVO); + List getStorageMatPage(StorageMatPageReqVO pageReqVO); /** * 获得入/出库物料列表 * * @return 入/出库物料分页 */ - List getStorageMatList(); + List getStorageMatList(Long whId); int deleteStorageMatList(Long stockId); diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatServiceImpl.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatServiceImpl.java index 0bf3f0dd..0838a9cd 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatServiceImpl.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/storagemat/StorageMatServiceImpl.java @@ -73,13 +73,13 @@ public class StorageMatServiceImpl implements StorageMatService { } @Override - public PageResult getStorageMatPage(StorageMatPageReqVO pageReqVO) { - return storageMatMapper.selectPage(pageReqVO); + public List getStorageMatPage(StorageMatPageReqVO pageReqVO) { + return storageMatMapper.selectMatByStorckID(pageReqVO.getStockId()); } @Override - public List getStorageMatList() { - return storageMatMapper.selectStorageMatValid(); + public List getStorageMatList(Long whId) { + return storageMatMapper.selectStorageMatValid(whId); } @Override diff --git a/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/storagemat/StorageMatMapper.xml b/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/storagemat/StorageMatMapper.xml index 73a91ddf..a5a263b2 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/storagemat/StorageMatMapper.xml +++ b/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/storagemat/StorageMatMapper.xml @@ -22,7 +22,10 @@ - select mat_id,mat_name,mat_code,mat_rest,material_type,wh_id,rg_id,pn_id,spec as mat_spec,unit as mat_unit,'' as lot_no,storage_ok_qty from v_storage_material_amount where mat_rest > 0 + + AND wh_id = #{wh_id} + \ No newline at end of file diff --git a/mes-ui/mes-ui-admin-vue3/src/api/heli/material/index.ts b/mes-ui/mes-ui-admin-vue3/src/api/heli/material/index.ts index 5e26667b..b0a272bc 100644 --- a/mes-ui/mes-ui-admin-vue3/src/api/heli/material/index.ts +++ b/mes-ui/mes-ui-admin-vue3/src/api/heli/material/index.ts @@ -29,6 +29,11 @@ export interface MaterialVO { logo: string } +// 查询物料 +export const getSimpList = async () => { + return await request.get({ url: `/heli/material/all-simples` }) +} + // 查询物料分页 export const getMaterialPage = async (params) => { return await request.get({ url: `/heli/material/page`, params }) diff --git a/mes-ui/mes-ui-admin-vue3/src/api/heli/storagemat/index.ts b/mes-ui/mes-ui-admin-vue3/src/api/heli/storagemat/index.ts index 8bc6f8fe..97124e70 100644 --- a/mes-ui/mes-ui-admin-vue3/src/api/heli/storagemat/index.ts +++ b/mes-ui/mes-ui-admin-vue3/src/api/heli/storagemat/index.ts @@ -14,8 +14,8 @@ export interface StorageMatVO { } // 查询入/出库物料详情 -export const getStorageMatList = async () => { - return await request.get({ url: `/heli/storage-mat/get-materials`}) +export const getStorageMatList = async (whId:number) => { + return await request.get({ url: `/heli/storage-mat/get-materials?whId=`+whId}) } // 查询入/出库物料分页 diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue index 1c8b3607..6bdcced6 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue @@ -27,7 +27,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -67,8 +67,8 @@ - - + + @@ -78,7 +78,7 @@ - + @@ -92,7 +92,7 @@ - 新增 + 新增 @@ -102,7 +102,7 @@