parent
f7c9db9aba
commit
241eea0010
@ -0,0 +1,105 @@
|
|||||||
|
package com.hw.wms.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.hw.common.log.annotation.Log;
|
||||||
|
import com.hw.common.log.enums.BusinessType;
|
||||||
|
import com.hw.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.hw.wms.domain.WmsMove;
|
||||||
|
import com.hw.wms.service.IWmsMoveService;
|
||||||
|
import com.hw.common.core.web.controller.BaseController;
|
||||||
|
import com.hw.common.core.web.domain.AjaxResult;
|
||||||
|
import com.hw.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.hw.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移库合库记录Controller
|
||||||
|
*
|
||||||
|
* @author xins
|
||||||
|
* @date 2024-01-09
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/move")
|
||||||
|
public class WmsMoveController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IWmsMoveService wmsMoveService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询移库合库记录列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("wms:move:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<WmsMove> list = wmsMoveService.selectWmsMoveList(wmsMove);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出移库合库记录列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("wms:move:export")
|
||||||
|
@Log(title = "移库合库记录", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
List<WmsMove> list = wmsMoveService.selectWmsMoveList(wmsMove);
|
||||||
|
ExcelUtil<WmsMove> util = new ExcelUtil<WmsMove>(WmsMove.class);
|
||||||
|
util.exportExcel(response, list, "移库合库记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取移库合库记录详细信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("wms:move:query")
|
||||||
|
@GetMapping(value = "/{moveId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("moveId") Long moveId)
|
||||||
|
{
|
||||||
|
return success(wmsMoveService.selectWmsMoveByMoveId(moveId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增移库合库记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("wms:move:add")
|
||||||
|
@Log(title = "移库合库记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
return toAjax(wmsMoveService.insertWmsMove(wmsMove));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改移库合库记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("wms:move:edit")
|
||||||
|
@Log(title = "移库合库记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
return toAjax(wmsMoveService.updateWmsMove(wmsMove));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除移库合库记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("wms:move:remove")
|
||||||
|
@Log(title = "移库合库记录", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{moveIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] moveIds)
|
||||||
|
{
|
||||||
|
return toAjax(wmsMoveService.deleteWmsMoveByMoveIds(moveIds));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,87 @@
|
|||||||
|
package com.hw.wms.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.hw.wms.domain.WmsMove;
|
||||||
|
import com.hw.wms.domain.WmsMoveDetail;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移库合库记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author xins
|
||||||
|
* @date 2024-01-09
|
||||||
|
*/
|
||||||
|
public interface WmsMoveMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询移库合库记录
|
||||||
|
*
|
||||||
|
* @param moveId 移库合库记录主键
|
||||||
|
* @return 移库合库记录
|
||||||
|
*/
|
||||||
|
public WmsMove selectWmsMoveByMoveId(Long moveId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询移库合库记录列表
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 移库合库记录集合
|
||||||
|
*/
|
||||||
|
public List<WmsMove> selectWmsMoveList(WmsMove wmsMove);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增移库合库记录
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertWmsMove(WmsMove wmsMove);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改移库合库记录
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateWmsMove(WmsMove wmsMove);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除移库合库记录
|
||||||
|
*
|
||||||
|
* @param moveId 移库合库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWmsMoveByMoveId(Long moveId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除移库合库记录
|
||||||
|
*
|
||||||
|
* @param moveIds 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWmsMoveByMoveIds(Long[] moveIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除移库合库记录明细;原材料入库记录对应的明细信息
|
||||||
|
*
|
||||||
|
* @param moveIds 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWmsMoveDetailByMoveIds(Long[] moveIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量新增移库合库记录明细;原材料入库记录对应的明细信息
|
||||||
|
*
|
||||||
|
* @param wmsMoveDetailList 移库合库记录明细;原材料入库记录对应的明细信息列表
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int batchWmsMoveDetail(List<WmsMoveDetail> wmsMoveDetailList);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过移库合库记录主键删除移库合库记录明细;原材料入库记录对应的明细信息信息
|
||||||
|
*
|
||||||
|
* @param moveId 移库合库记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWmsMoveDetailByMoveId(Long moveId);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.hw.wms.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.hw.wms.domain.WmsMove;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移库合库记录Service接口
|
||||||
|
*
|
||||||
|
* @author xins
|
||||||
|
* @date 2024-01-09
|
||||||
|
*/
|
||||||
|
public interface IWmsMoveService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询移库合库记录
|
||||||
|
*
|
||||||
|
* @param moveId 移库合库记录主键
|
||||||
|
* @return 移库合库记录
|
||||||
|
*/
|
||||||
|
public WmsMove selectWmsMoveByMoveId(Long moveId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询移库合库记录列表
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 移库合库记录集合
|
||||||
|
*/
|
||||||
|
public List<WmsMove> selectWmsMoveList(WmsMove wmsMove);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增移库合库记录
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertWmsMove(WmsMove wmsMove);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改移库合库记录
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateWmsMove(WmsMove wmsMove);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除移库合库记录
|
||||||
|
*
|
||||||
|
* @param moveIds 需要删除的移库合库记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWmsMoveByMoveIds(Long[] moveIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除移库合库记录信息
|
||||||
|
*
|
||||||
|
* @param moveId 移库合库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWmsMoveByMoveId(Long moveId);
|
||||||
|
}
|
@ -0,0 +1,131 @@
|
|||||||
|
package com.hw.wms.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import com.hw.common.core.utils.StringUtils;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import com.hw.wms.domain.WmsMoveDetail;
|
||||||
|
import com.hw.wms.mapper.WmsMoveMapper;
|
||||||
|
import com.hw.wms.domain.WmsMove;
|
||||||
|
import com.hw.wms.service.IWmsMoveService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移库合库记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author xins
|
||||||
|
* @date 2024-01-09
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class WmsMoveServiceImpl implements IWmsMoveService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private WmsMoveMapper wmsMoveMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询移库合库记录
|
||||||
|
*
|
||||||
|
* @param moveId 移库合库记录主键
|
||||||
|
* @return 移库合库记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public WmsMove selectWmsMoveByMoveId(Long moveId)
|
||||||
|
{
|
||||||
|
return wmsMoveMapper.selectWmsMoveByMoveId(moveId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询移库合库记录列表
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 移库合库记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<WmsMove> selectWmsMoveList(WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
return wmsMoveMapper.selectWmsMoveList(wmsMove);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增移库合库记录
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public int insertWmsMove(WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
int rows = wmsMoveMapper.insertWmsMove(wmsMove);
|
||||||
|
insertWmsMoveDetail(wmsMove);
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改移库合库记录
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public int updateWmsMove(WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
wmsMoveMapper.deleteWmsMoveDetailByMoveId(wmsMove.getMoveId());
|
||||||
|
insertWmsMoveDetail(wmsMove);
|
||||||
|
return wmsMoveMapper.updateWmsMove(wmsMove);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除移库合库记录
|
||||||
|
*
|
||||||
|
* @param moveIds 需要删除的移库合库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public int deleteWmsMoveByMoveIds(Long[] moveIds)
|
||||||
|
{
|
||||||
|
wmsMoveMapper.deleteWmsMoveDetailByMoveIds(moveIds);
|
||||||
|
return wmsMoveMapper.deleteWmsMoveByMoveIds(moveIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除移库合库记录信息
|
||||||
|
*
|
||||||
|
* @param moveId 移库合库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public int deleteWmsMoveByMoveId(Long moveId)
|
||||||
|
{
|
||||||
|
wmsMoveMapper.deleteWmsMoveDetailByMoveId(moveId);
|
||||||
|
return wmsMoveMapper.deleteWmsMoveByMoveId(moveId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增移库合库记录明细;原材料入库记录对应的明细信息信息
|
||||||
|
*
|
||||||
|
* @param wmsMove 移库合库记录对象
|
||||||
|
*/
|
||||||
|
public void insertWmsMoveDetail(WmsMove wmsMove)
|
||||||
|
{
|
||||||
|
List<WmsMoveDetail> wmsMoveDetailList = wmsMove.getWmsMoveDetailList();
|
||||||
|
Long moveId = wmsMove.getMoveId();
|
||||||
|
if (StringUtils.isNotNull(wmsMoveDetailList))
|
||||||
|
{
|
||||||
|
List<WmsMoveDetail> list = new ArrayList<WmsMoveDetail>();
|
||||||
|
for (WmsMoveDetail wmsMoveDetail : wmsMoveDetailList)
|
||||||
|
{
|
||||||
|
wmsMoveDetail.setMoveId(moveId);
|
||||||
|
list.add(wmsMoveDetail);
|
||||||
|
}
|
||||||
|
if (list.size() > 0)
|
||||||
|
{
|
||||||
|
wmsMoveMapper.batchWmsMoveDetail(list);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,191 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hw.wms.mapper.WmsMoveMapper">
|
||||||
|
|
||||||
|
<resultMap type="WmsMove" id="WmsMoveResult">
|
||||||
|
<result property="moveId" column="move_id" />
|
||||||
|
<result property="taskCode" column="task_code" />
|
||||||
|
<result property="warehouseId" column="warehouse_id" />
|
||||||
|
<result property="oriLocationCode" column="ori_location_code" />
|
||||||
|
<result property="targetLocationCode" column="target_location_code" />
|
||||||
|
<result property="operationType" column="operation_type" />
|
||||||
|
<result property="moveWay" column="move_way" />
|
||||||
|
<result property="moveType" column="move_type" />
|
||||||
|
<result property="applyReason" column="apply_reason" />
|
||||||
|
<result property="auditReason" column="audit_reason" />
|
||||||
|
<result property="auditStatus" column="audit_status" />
|
||||||
|
<result property="executeStatus" column="execute_status" />
|
||||||
|
<result property="applyBy" column="apply_by" />
|
||||||
|
<result property="applyDate" column="apply_date" />
|
||||||
|
<result property="auditBy" column="audit_by" />
|
||||||
|
<result property="auditDate" column="audit_date" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateDate" column="update_date" />
|
||||||
|
<result property="beginTime" column="begin_time" />
|
||||||
|
<result property="endTime" column="end_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<resultMap id="WmsMoveWmsMoveDetailResult" type="WmsMove" extends="WmsMoveResult">
|
||||||
|
<collection property="wmsMoveDetailList" notNullColumn="sub_move_detail_id" javaType="java.util.List" resultMap="WmsMoveDetailResult" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<resultMap type="WmsMoveDetail" id="WmsMoveDetailResult">
|
||||||
|
<result property="moveDetailId" column="sub_move_detail_id" />
|
||||||
|
<result property="moveId" column="sub_move_id" />
|
||||||
|
<result property="locationCode" column="sub_location_code" />
|
||||||
|
<result property="materialBarcode" column="sub_material_barcode" />
|
||||||
|
<result property="instockBatch" column="sub_instock_batch" />
|
||||||
|
<result property="materialId" column="sub_material_id" />
|
||||||
|
<result property="planAmount" column="sub_plan_amount" />
|
||||||
|
<result property="realAmount" column="sub_real_amount" />
|
||||||
|
<result property="executeStatus" column="sub_execute_status" />
|
||||||
|
<result property="executePerson" column="sub_execute_person" />
|
||||||
|
<result property="executeTime" column="sub_execute_time" />
|
||||||
|
<result property="moveDetailType" column="sub_move_detail_type" />
|
||||||
|
<result property="machineName" column="sub_machine_name" />
|
||||||
|
<result property="createBy" column="sub_create_by" />
|
||||||
|
<result property="createDate" column="sub_create_date" />
|
||||||
|
<result property="updateBy" column="sub_update_by" />
|
||||||
|
<result property="updateDate" column="sub_update_date" />
|
||||||
|
<result property="activeFlag" column="sub_active_flag" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectWmsMoveVo">
|
||||||
|
select move_id, task_code, warehouse_id, ori_location_code, target_location_code, operation_type, move_way, move_type, apply_reason, audit_reason, audit_status, execute_status, apply_by, apply_date, audit_by, audit_date, update_by, update_date, begin_time, end_time from wms_move
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectWmsMoveList" parameterType="WmsMove" resultMap="WmsMoveResult">
|
||||||
|
<include refid="selectWmsMoveVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="taskCode != null and taskCode != ''"> and task_code = #{taskCode}</if>
|
||||||
|
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
|
||||||
|
<if test="oriLocationCode != null and oriLocationCode != ''"> and ori_location_code = #{oriLocationCode}</if>
|
||||||
|
<if test="targetLocationCode != null and targetLocationCode != ''"> and target_location_code = #{targetLocationCode}</if>
|
||||||
|
<if test="operationType != null and operationType != ''"> and operation_type = #{operationType}</if>
|
||||||
|
<if test="moveWay != null and moveWay != ''"> and move_way = #{moveWay}</if>
|
||||||
|
<if test="moveType != null and moveType != ''"> and move_type = #{moveType}</if>
|
||||||
|
<if test="applyReason != null and applyReason != ''"> and apply_reason = #{applyReason}</if>
|
||||||
|
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
|
||||||
|
<if test="executeStatus != null and executeStatus != ''"> and execute_status = #{executeStatus}</if>
|
||||||
|
<if test="applyBy != null and applyBy != ''"> and apply_by = #{applyBy}</if>
|
||||||
|
<if test="applyDate != null "> and apply_date = #{applyDate}</if>
|
||||||
|
<if test="auditBy != null and auditBy != ''"> and audit_by = #{auditBy}</if>
|
||||||
|
<if test="auditDate != null "> and audit_date = #{auditDate}</if>
|
||||||
|
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
||||||
|
<if test="beginTime != null "> and begin_time = #{beginTime}</if>
|
||||||
|
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectWmsMoveByMoveId" parameterType="Long" resultMap="WmsMoveWmsMoveDetailResult">
|
||||||
|
select a.move_id, a.task_code, a.warehouse_id, a.ori_location_code, a.target_location_code, a.operation_type, a.move_way, a.move_type, a.apply_reason, a.audit_reason, a.audit_status, a.execute_status, a.apply_by, a.apply_date, a.audit_by, a.audit_date, a.update_by, a.update_date, a.begin_time, a.end_time,
|
||||||
|
b.move_detail_id as sub_move_detail_id, b.move_id as sub_move_id, b.location_code as sub_location_code, b.material_barcode as sub_material_barcode, b.instock_batch as sub_instock_batch, b.material_id as sub_material_id, b.plan_amount as sub_plan_amount, b.real_amount as sub_real_amount, b.execute_status as sub_execute_status, b.execute_person as sub_execute_person, b.execute_time as sub_execute_time, b.move_detail_type as sub_move_detail_type, b.machine_name as sub_machine_name, b.create_by as sub_create_by, b.create_date as sub_create_date, b.update_by as sub_update_by, b.update_date as sub_update_date, b.active_flag as sub_active_flag
|
||||||
|
from wms_move a
|
||||||
|
left join wms_move_detail b on b.move_id = a.move_id
|
||||||
|
where a.move_id = #{moveId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertWmsMove" parameterType="WmsMove" useGeneratedKeys="true" keyProperty="moveId">
|
||||||
|
insert into wms_move
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="taskCode != null">task_code,</if>
|
||||||
|
<if test="warehouseId != null">warehouse_id,</if>
|
||||||
|
<if test="oriLocationCode != null and oriLocationCode != ''">ori_location_code,</if>
|
||||||
|
<if test="targetLocationCode != null and targetLocationCode != ''">target_location_code,</if>
|
||||||
|
<if test="operationType != null and operationType != ''">operation_type,</if>
|
||||||
|
<if test="moveWay != null and moveWay != ''">move_way,</if>
|
||||||
|
<if test="moveType != null and moveType != ''">move_type,</if>
|
||||||
|
<if test="applyReason != null">apply_reason,</if>
|
||||||
|
<if test="auditReason != null">audit_reason,</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''">audit_status,</if>
|
||||||
|
<if test="executeStatus != null and executeStatus != ''">execute_status,</if>
|
||||||
|
<if test="applyBy != null">apply_by,</if>
|
||||||
|
<if test="applyDate != null">apply_date,</if>
|
||||||
|
<if test="auditBy != null">audit_by,</if>
|
||||||
|
<if test="auditDate != null">audit_date,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateDate != null">update_date,</if>
|
||||||
|
<if test="beginTime != null">begin_time,</if>
|
||||||
|
<if test="endTime != null">end_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="taskCode != null">#{taskCode},</if>
|
||||||
|
<if test="warehouseId != null">#{warehouseId},</if>
|
||||||
|
<if test="oriLocationCode != null and oriLocationCode != ''">#{oriLocationCode},</if>
|
||||||
|
<if test="targetLocationCode != null and targetLocationCode != ''">#{targetLocationCode},</if>
|
||||||
|
<if test="operationType != null and operationType != ''">#{operationType},</if>
|
||||||
|
<if test="moveWay != null and moveWay != ''">#{moveWay},</if>
|
||||||
|
<if test="moveType != null and moveType != ''">#{moveType},</if>
|
||||||
|
<if test="applyReason != null">#{applyReason},</if>
|
||||||
|
<if test="auditReason != null">#{auditReason},</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''">#{auditStatus},</if>
|
||||||
|
<if test="executeStatus != null and executeStatus != ''">#{executeStatus},</if>
|
||||||
|
<if test="applyBy != null">#{applyBy},</if>
|
||||||
|
<if test="applyDate != null">#{applyDate},</if>
|
||||||
|
<if test="auditBy != null">#{auditBy},</if>
|
||||||
|
<if test="auditDate != null">#{auditDate},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateDate != null">#{updateDate},</if>
|
||||||
|
<if test="beginTime != null">#{beginTime},</if>
|
||||||
|
<if test="endTime != null">#{endTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateWmsMove" parameterType="WmsMove">
|
||||||
|
update wms_move
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="taskCode != null">task_code = #{taskCode},</if>
|
||||||
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||||
|
<if test="oriLocationCode != null and oriLocationCode != ''">ori_location_code = #{oriLocationCode},</if>
|
||||||
|
<if test="targetLocationCode != null and targetLocationCode != ''">target_location_code = #{targetLocationCode},</if>
|
||||||
|
<if test="operationType != null and operationType != ''">operation_type = #{operationType},</if>
|
||||||
|
<if test="moveWay != null and moveWay != ''">move_way = #{moveWay},</if>
|
||||||
|
<if test="moveType != null and moveType != ''">move_type = #{moveType},</if>
|
||||||
|
<if test="applyReason != null">apply_reason = #{applyReason},</if>
|
||||||
|
<if test="auditReason != null">audit_reason = #{auditReason},</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''">audit_status = #{auditStatus},</if>
|
||||||
|
<if test="executeStatus != null and executeStatus != ''">execute_status = #{executeStatus},</if>
|
||||||
|
<if test="applyBy != null">apply_by = #{applyBy},</if>
|
||||||
|
<if test="applyDate != null">apply_date = #{applyDate},</if>
|
||||||
|
<if test="auditBy != null">audit_by = #{auditBy},</if>
|
||||||
|
<if test="auditDate != null">audit_date = #{auditDate},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateDate != null">update_date = #{updateDate},</if>
|
||||||
|
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
||||||
|
<if test="endTime != null">end_time = #{endTime},</if>
|
||||||
|
</trim>
|
||||||
|
where move_id = #{moveId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteWmsMoveByMoveId" parameterType="Long">
|
||||||
|
delete from wms_move where move_id = #{moveId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteWmsMoveByMoveIds" parameterType="String">
|
||||||
|
delete from wms_move where move_id in
|
||||||
|
<foreach item="moveId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{moveId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteWmsMoveDetailByMoveIds" parameterType="String">
|
||||||
|
delete from wms_move_detail where move_id in
|
||||||
|
<foreach item="moveId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{moveId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteWmsMoveDetailByMoveId" parameterType="Long">
|
||||||
|
delete from wms_move_detail where move_id = #{moveId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<insert id="batchWmsMoveDetail">
|
||||||
|
insert into wms_move_detail( move_detail_id, move_id, location_code, material_barcode, instock_batch, material_id, plan_amount, real_amount, execute_status, execute_person, execute_time, move_detail_type, machine_name, create_by, create_date, update_by, update_date, active_flag) values
|
||||||
|
<foreach item="item" index="index" collection="list" separator=",">
|
||||||
|
( #{item.moveDetailId}, #{item.moveId}, #{item.locationCode}, #{item.materialBarcode}, #{item.instockBatch}, #{item.materialId}, #{item.planAmount}, #{item.realAmount}, #{item.executeStatus}, #{item.executePerson}, #{item.executeTime}, #{item.moveDetailType}, #{item.machineName}, #{item.createBy}, #{item.createDate}, #{item.updateBy}, #{item.updateDate}, #{item.activeFlag})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询移库合库记录列表
|
||||||
|
export function listMove(query) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/move/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询移库合库记录详细
|
||||||
|
export function getMove(moveId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/move/' + moveId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增移库合库记录
|
||||||
|
export function addMove(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/move',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改移库合库记录
|
||||||
|
export function updateMove(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/move',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除移库合库记录
|
||||||
|
export function delMove(moveId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/move/' + moveId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询库位列表
|
||||||
|
export function listWmslocation(query) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询库位详细
|
||||||
|
export function getWmslocation(locationId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation/' + locationId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增库位
|
||||||
|
export function addWmslocation(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改库位
|
||||||
|
export function updateWmslocation(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除库位
|
||||||
|
export function delWmslocation(locationId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation/' + locationId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询仓库列表
|
||||||
|
export function getWarehouses(query) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation/getWarehouses',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 锁定库位
|
||||||
|
export function lockWmslocation(locationId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation/lockWmsLocation/' + locationId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 解锁库位
|
||||||
|
export function unlockWmslocation(locationId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmslocation/unlockWmsLocation/' + locationId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
@ -0,0 +1,100 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询仓库列表
|
||||||
|
export function listWmswarehouse(query) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询仓库详细
|
||||||
|
export function getWmswarehouse(warehouseId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse/' + warehouseId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增仓库
|
||||||
|
export function addWmswarehouse(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改仓库
|
||||||
|
export function updateWmswarehouse(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除仓库
|
||||||
|
export function delWmswarehouse(warehouseId) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse/' + warehouseId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 查询仓库类别
|
||||||
|
export function getWarehouseCategories() {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse/getWarehouseCategories',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 查询部门下拉树结构
|
||||||
|
export function getDeptTreeForWarehouse() {
|
||||||
|
return request({
|
||||||
|
url: '/system/hwcommon/getDeptTreeForWarehouse',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询物料信息列表
|
||||||
|
export function selectMaterialInfos4AllocationWarehouse(query) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/materialinfo/selectMaterialInfos4AllocationWarehouse',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询已配置物料信息列表
|
||||||
|
export function selectWmsWarehouseMaterialList(query) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse/selectWmsWarehouseMaterialList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 保存仓库分配的物料信息列表
|
||||||
|
export function allocateMaterials(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse/allocateMaterials',
|
||||||
|
method: 'put',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 删除仓库分配的物料信息列表
|
||||||
|
export function unallocateMaterials(data) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/wmswarehouse/unallocateMaterials',
|
||||||
|
method: 'post',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
@ -0,0 +1,762 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<!--仓库数据-->
|
||||||
|
<el-col :span="4" :xs="24">
|
||||||
|
<div class="head-container">
|
||||||
|
<el-input
|
||||||
|
v-model="warehouseName"
|
||||||
|
placeholder="请输入仓库名称"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
prefix-icon="el-icon-search"
|
||||||
|
style="margin-bottom: 20px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="head-container">
|
||||||
|
<el-tree
|
||||||
|
:data="warehouseList"
|
||||||
|
:props="defaultProps"
|
||||||
|
:expand-on-click-node="false"
|
||||||
|
:filter-node-method="filterNode"
|
||||||
|
ref="tree"
|
||||||
|
node-key="warehouseId"
|
||||||
|
default-expand-all
|
||||||
|
highlight-current
|
||||||
|
@node-click="handleNodeClick"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
|
||||||
|
<!--库位数据-->
|
||||||
|
<el-col :span="20" :xs="24">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||||
|
label-width="68px">
|
||||||
|
<el-form-item label="库位编号" prop="locationCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.locationCode"
|
||||||
|
placeholder="请输入库位编号"
|
||||||
|
style="width: 200px"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="层" prop="layerNum">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.layerNum"
|
||||||
|
placeholder="请输入层"
|
||||||
|
style="width: 100px"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="排" prop="locRow">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.locRow"
|
||||||
|
placeholder="请输入排"
|
||||||
|
style="width: 100px"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="列" prop="locColumn">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.locColumn"
|
||||||
|
placeholder="请输入列"
|
||||||
|
style="width: 100px"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="人工处理标识" prop="manualFlag" label-width="98px">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.manualFlag"
|
||||||
|
placeholder="请选择人工处理标识"
|
||||||
|
style="width:170px;"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.wms_location_manual_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="入库过度标识" prop="instockFlag" label-width="98px">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.instockFlag"
|
||||||
|
placeholder="请选择入库过度标识"
|
||||||
|
style="width:160px;"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.wms_location_instock_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出库过度标识" prop="outstockFlag" label-width="98px">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.outstockFlag"
|
||||||
|
placeholder="请选择出库过度标识"
|
||||||
|
style="width:160px;"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.wms_location_outstock_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="激活标识" prop="activeFlag">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.activeFlag"
|
||||||
|
placeholder="请选择激活标识"
|
||||||
|
style="width:160px;"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.wms_location_active_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="库位状态" prop="locationStatus">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.locationStatus"
|
||||||
|
placeholder="请选择库位状态"
|
||||||
|
style="width:160px;"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.wms_location_status"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['wms:wmslocation:add']"
|
||||||
|
>新增
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['wms:wmslocation:edit']"
|
||||||
|
>修改
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['wms:wmslocation:remove']"
|
||||||
|
>删除
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
|
<!--el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['wms:wmslocation:export']"
|
||||||
|
>导出
|
||||||
|
</el-button>
|
||||||
|
</el-col-->
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="wmslocationList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column label="库位编号" align="center" prop="locationCode"/>
|
||||||
|
<el-table-column label="仓库" align="center" prop="warehouseName"/>
|
||||||
|
<el-table-column label="层" align="center" prop="layerNum"/>
|
||||||
|
<el-table-column label="排" align="center" prop="locRow"/>
|
||||||
|
<el-table-column label="列" align="center" prop="locColumn"/>
|
||||||
|
<el-table-column label="数量限制" align="center" prop="qtyLimit"/>
|
||||||
|
<el-table-column label="人工处理标识" align="center" prop="manualFlag">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.wms_location_manual_flag" :value="scope.row.manualFlag"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="入库过度标识" align="center" prop="instockFlag">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.wms_location_instock_flag" :value="scope.row.manualFlag"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="出库过度标识" align="center" prop="outstockFlag">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.wms_location_outstock_flag" :value="scope.row.manualFlag"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="激活标识" align="center" prop="activeFlag">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.wms_location_active_flag" :value="scope.row.manualFlag"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="库位状态" align="center" prop="locationStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.wms_location_status" :value="scope.row.locationStatus"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['wms:wmslocation:edit']"
|
||||||
|
>修改
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="scope.row.locationStatus=='3'"
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-unlock"
|
||||||
|
@click="handleUnlock(scope.row)"
|
||||||
|
v-hasPermi="['wms:wmslocation:edit']"
|
||||||
|
>
|
||||||
|
解锁
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="scope.row.locationStatus=='1'"
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-lock"
|
||||||
|
@click="handleLock(scope.row)"
|
||||||
|
v-hasPermi="['wms:wmslocation:edit']"
|
||||||
|
>
|
||||||
|
锁定
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['wms:wmslocation:remove']"
|
||||||
|
>删除
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 添加或修改库位对话框 -->
|
||||||
|
<el-dialog :title="title" :visible.sync="open" width="660px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
||||||
|
<el-form-item label="仓库" prop="warehouseId">
|
||||||
|
<el-select v-model="form.warehouseId" placeholder="请选择仓库" style="width:300px;">
|
||||||
|
<el-option
|
||||||
|
v-for="item in warehouseList"
|
||||||
|
:key="item.warehouseId"
|
||||||
|
:label="item.warehouseName"
|
||||||
|
:value="item.warehouseId"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="库位编号" prop="locationCode">
|
||||||
|
<el-input v-model="form.locationCode" placeholder="请输入库位编号"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="数量限制" prop="qtyLimit">
|
||||||
|
<el-input v-model="form.qtyLimit" placeholder="请输入数量限制"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="7">
|
||||||
|
<el-form-item label="层" prop="layerNum">
|
||||||
|
<el-input-number v-model="form.layerNum" placeholder="请输入层" :min="1" :max="10000"
|
||||||
|
style="width:130px;"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="7">
|
||||||
|
<el-form-item label="排" prop="locRow">
|
||||||
|
<el-input-number v-model="form.locRow" placeholder="请输入排" :min="1" :max="10000" style="width:130px;"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="列" prop="locColumn">
|
||||||
|
<el-input-number v-model="form.locColumn" placeholder="请输入列" :min="1" :max="10000"
|
||||||
|
style="width:130px;"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="入库过度标识" prop="instockFlag">
|
||||||
|
<el-radio-group v-model="form.instockFlag">
|
||||||
|
<el-radio
|
||||||
|
v-for="dict in dict.type.wms_location_instock_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.value"
|
||||||
|
>{{ dict.label }}
|
||||||
|
</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="出库过度标识" prop="outstockFlag">
|
||||||
|
<el-radio-group v-model="form.outstockFlag">
|
||||||
|
<el-radio
|
||||||
|
v-for="dict in dict.type.wms_location_outstock_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.value"
|
||||||
|
>{{ dict.label }}
|
||||||
|
</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="人工处理标识" prop="manualFlag">
|
||||||
|
<el-radio-group v-model="form.manualFlag">
|
||||||
|
<el-radio
|
||||||
|
v-for="dict in dict.type.wms_location_manual_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.value"
|
||||||
|
>{{ dict.label }}
|
||||||
|
</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="激活标识" prop="activeFlag">
|
||||||
|
<el-radio-group v-model="form.activeFlag">
|
||||||
|
<el-radio
|
||||||
|
v-for="dict in dict.type.wms_location_active_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.value"
|
||||||
|
>{{ dict.label }}
|
||||||
|
</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listWmslocation,
|
||||||
|
getWmslocation,
|
||||||
|
delWmslocation,
|
||||||
|
addWmslocation,
|
||||||
|
updateWmslocation,
|
||||||
|
getWarehouses,
|
||||||
|
lockWmslocation,
|
||||||
|
unlockWmslocation
|
||||||
|
} from "@/api/wms/wmslocation";
|
||||||
|
import Treeselect from "@riophae/vue-treeselect";
|
||||||
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||||
|
|
||||||
|
import toggleMenuLeftImg from '@/assets/images/togglemenu-left.png'
|
||||||
|
import toggleMenuRightImg from '@/assets/images/togglemenu-right.png'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Wmslocation",
|
||||||
|
components: {Treeselect},
|
||||||
|
dicts: ['wms_location_active_flag', 'wms_location_manual_flag', 'wms_location_instock_flag', 'wms_location_outstock_flag', 'wms_location_status'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 选中数组code
|
||||||
|
codes: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
warehouseId: null,
|
||||||
|
locationCode: null,
|
||||||
|
locRow: null,
|
||||||
|
layerNum: null,
|
||||||
|
locColumn: null,
|
||||||
|
activeFlag: null,
|
||||||
|
manualFlag: null,
|
||||||
|
materialTypeId: null,
|
||||||
|
qtyLimit: null,
|
||||||
|
instockFlag: null,
|
||||||
|
outstockFlag: null,
|
||||||
|
locationStatus: null,
|
||||||
|
batchMix: null,
|
||||||
|
shelfOrder: null,
|
||||||
|
checkOrder: null,
|
||||||
|
pickOrder: null,
|
||||||
|
pickFlag: null,
|
||||||
|
isOpenKnFlag: null,
|
||||||
|
locationScrapType: null,
|
||||||
|
locationAttr: null,
|
||||||
|
turnDemand: null,
|
||||||
|
checkCode: null,
|
||||||
|
workArea: null,
|
||||||
|
volumeLimit: null,
|
||||||
|
weightLimit: null,
|
||||||
|
boxLimit: null,
|
||||||
|
palletLimit: null,
|
||||||
|
length: null,
|
||||||
|
width: null,
|
||||||
|
height: null,
|
||||||
|
xPixels: null,
|
||||||
|
yPixels: null,
|
||||||
|
zPixels: null,
|
||||||
|
bord: null,
|
||||||
|
productMix: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
warehouseId: [
|
||||||
|
{required: true, message: "仓库不能为空", trigger: "blur"}
|
||||||
|
],
|
||||||
|
locationCode: [
|
||||||
|
{required: true, message: "库位编号不能为空", trigger: "blur"},
|
||||||
|
{
|
||||||
|
pattern: /^[a-zA-Z0-9_]+$/,
|
||||||
|
message: "由字母、数字或下划线组成",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
activeFlag: [
|
||||||
|
{required: true, message: "激活标记 1是 0否不能为空", trigger: "blur"}
|
||||||
|
],
|
||||||
|
materialTypeId: [
|
||||||
|
{required: true, message: "存放物料类型,关联material_type的material_type_id不能为空", trigger: "blur"}
|
||||||
|
],
|
||||||
|
qtyLimit: [
|
||||||
|
{required: true, message: "数量限制不能为空", trigger: "blur"}
|
||||||
|
],
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
globalVariables: {
|
||||||
|
WMS_LOCATION_STATUS_NORMAL: 1,//正常
|
||||||
|
WMS_LOCATION_STATUS_MANUAL_LOCK: 3 //人工锁定
|
||||||
|
},
|
||||||
|
toggleMenuLeftImg: toggleMenuLeftImg,
|
||||||
|
toggleMenuRightImg: toggleMenuRightImg,
|
||||||
|
toggleLeftDisplay: true,
|
||||||
|
toggleRightDisplay: false,
|
||||||
|
// 仓库名称
|
||||||
|
warehouseName: undefined,
|
||||||
|
warehouseList: [],
|
||||||
|
defaultProps: {
|
||||||
|
children: "children",
|
||||||
|
label: "warehouseName"
|
||||||
|
},
|
||||||
|
// 库位表格数据
|
||||||
|
wmslocationList: [],
|
||||||
|
lockBtn: "锁定",
|
||||||
|
lockIcon: 'el-icon-lock'
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
// 根据名称筛选仓库列表
|
||||||
|
warehouseName(val) {
|
||||||
|
this.$refs.tree.filter(val);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
this.getWarehouseList();
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询库位列表 */
|
||||||
|
getList() {
|
||||||
|
|
||||||
|
this.loading = true;
|
||||||
|
listWmslocation(this.queryParams).then(response => {
|
||||||
|
this.wmslocationList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
locationId: null,
|
||||||
|
warehouseId: this.queryParams.warehouseId,
|
||||||
|
locationCode: null,
|
||||||
|
locRow: null,
|
||||||
|
layerNum: null,
|
||||||
|
locColumn: null,
|
||||||
|
activeFlag: null,
|
||||||
|
manualFlag: null,
|
||||||
|
materialTypeId: null,
|
||||||
|
qtyLimit: null,
|
||||||
|
instockFlag: null,
|
||||||
|
outstockFlag: null,
|
||||||
|
locationStatus: null,
|
||||||
|
batchMix: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
remark: null,
|
||||||
|
delFlag: null,
|
||||||
|
shelfOrder: null,
|
||||||
|
checkOrder: null,
|
||||||
|
pickOrder: null,
|
||||||
|
pickFlag: null,
|
||||||
|
isOpenKnFlag: null,
|
||||||
|
locationScrapType: null,
|
||||||
|
locationAttr: null,
|
||||||
|
turnDemand: null,
|
||||||
|
checkCode: null,
|
||||||
|
workArea: null,
|
||||||
|
volumeLimit: null,
|
||||||
|
weightLimit: null,
|
||||||
|
boxLimit: null,
|
||||||
|
palletLimit: null,
|
||||||
|
length: null,
|
||||||
|
width: null,
|
||||||
|
height: null,
|
||||||
|
xPixels: null,
|
||||||
|
yPixels: null,
|
||||||
|
zPixels: null,
|
||||||
|
bord: null,
|
||||||
|
productMix: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.queryParams.warehouseId = undefined;
|
||||||
|
this.$refs.tree.setCurrentKey(null);
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.locationId)
|
||||||
|
this.codes = selection.map(item => item.locationCode)
|
||||||
|
this.single = selection.length !== 1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加库位";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const locationId = row.locationId || this.ids
|
||||||
|
getWmslocation(locationId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改库位";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.locationId != null) {
|
||||||
|
updateWmslocation(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addWmslocation(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const locationIds = row.locationId || this.ids;
|
||||||
|
const locationCodes = row.locationCode || this.codes;
|
||||||
|
this.$modal.confirm('是否确认删除库位编号为"' + locationCodes + '"的数据项?').then(function () {
|
||||||
|
return delWmslocation(locationIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('wms/wmslocation/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `wmslocation_${new Date().getTime()}.xlsx`)
|
||||||
|
},
|
||||||
|
|
||||||
|
toggleClick() {
|
||||||
|
if (this.toggleLeftDisplay) {
|
||||||
|
this.toggleRightDisplay = true;
|
||||||
|
this.toggleLeftDisplay = false;
|
||||||
|
} else if (this.toggleRightDisplay) {
|
||||||
|
this.toggleRightDisplay = false;
|
||||||
|
this.toggleLeftDisplay = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 筛选节点
|
||||||
|
filterNode(value, data) {
|
||||||
|
if (!value) return true;
|
||||||
|
return data.warehouseName.indexOf(value) !== -1;
|
||||||
|
},
|
||||||
|
// 节点单击事件
|
||||||
|
handleNodeClick(data) {
|
||||||
|
this.queryParams.warehouseId = data.warehouseId;
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
|
||||||
|
getWarehouseList() {
|
||||||
|
this.loading = true;
|
||||||
|
getWarehouses().then(response => {
|
||||||
|
this.warehouseList = response.data;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handleLock(row) {
|
||||||
|
const locationId = row.locationId;
|
||||||
|
const locationCode = row.locationCode;
|
||||||
|
this.$modal.confirm('是否确认锁定库位编号为"' + locationCode + '"的数据项?').then(function () {
|
||||||
|
return lockWmslocation(locationId);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("锁定成功");
|
||||||
|
}).catch(() => {
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handleUnlock(row) {
|
||||||
|
const locationId = row.locationId;
|
||||||
|
const locationCode = row.locationCode;
|
||||||
|
this.$modal.confirm('是否确认解锁库位编号为"' + locationCode + '"的数据项?').then(function () {
|
||||||
|
return unlockWmslocation(locationId);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("解锁成功");
|
||||||
|
}).catch(() => {
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.hamburger {
|
||||||
|
display: inline-block;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin: 5px 5px 0 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue