Browse Source
出库单 新增出库单前端列表页面warehouseOutOrder.html 新增出库单Controller 新增出库单Mapper 新增出库单Mapper.xml 新增出库单Service 新增出库单ServiceImpl 完成数据填充,页面展示,条件查询操作 修改售后管理 后端类名,避免重复 WarehouseOutOrderController -> AftersalesWarehouseOutController IWarehouseOutOrderService -> IAftersalesWarehouseOutService IWarehouseOutOrderServiceImpl -> IAftersalesWarehouseOutServiceImpldev
liuxiaoxu
5 months ago
13 changed files with 1176 additions and 51 deletions
@ -0,0 +1,151 @@ |
|||
package com.ruoyi.warehouse.controller; |
|||
|
|||
import java.util.List; |
|||
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.ui.ModelMap; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.ResponseBody; |
|||
import com.ruoyi.common.annotation.Log; |
|||
import com.ruoyi.common.enums.BusinessType; |
|||
import com.ruoyi.warehouse.domain.WarehouseOutOrder; |
|||
import com.ruoyi.warehouse.service.IWarehouseOutOrderService; |
|||
import com.ruoyi.common.core.controller.BaseController; |
|||
import com.ruoyi.common.core.domain.AjaxResult; |
|||
import com.ruoyi.common.utils.poi.ExcelUtil; |
|||
import com.ruoyi.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 仓库出库单Controller |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-06-04 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/warehouse/warehouseOutOrder") |
|||
public class WarehouseOutOrderController extends BaseController |
|||
{ |
|||
private String prefix = "warehouse/warehouseOutOrder"; |
|||
|
|||
@Autowired |
|||
private IWarehouseOutOrderService warehouseOutOrderService; |
|||
|
|||
@RequiresPermissions("warehouse:warehouseOutOrder:view") |
|||
@GetMapping() |
|||
public String warehouseOutOrder() |
|||
{ |
|||
return prefix + "/warehouseOutOrder"; |
|||
} |
|||
|
|||
/** |
|||
* 查询仓库出库单列表 |
|||
*/ |
|||
@RequiresPermissions("warehouse:warehouseOutOrder:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(WarehouseOutOrder warehouseOutOrder) |
|||
{ |
|||
startPage(); |
|||
List<WarehouseOutOrder> list = warehouseOutOrderService.selectWarehouseOutOrderList(warehouseOutOrder); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出仓库出库单列表 |
|||
*/ |
|||
@RequiresPermissions("warehouse:warehouseOutOrder:export") |
|||
@Log(title = "仓库出库单", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(WarehouseOutOrder warehouseOutOrder) |
|||
{ |
|||
List<WarehouseOutOrder> list = warehouseOutOrderService.selectWarehouseOutOrderList(warehouseOutOrder); |
|||
ExcelUtil<WarehouseOutOrder> util = new ExcelUtil<WarehouseOutOrder>(WarehouseOutOrder.class); |
|||
return util.exportExcel(list, "仓库出库单数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增仓库出库单 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存仓库出库单 |
|||
*/ |
|||
@RequiresPermissions("warehouse:warehouseOutOrder:add") |
|||
@Log(title = "仓库出库单", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(WarehouseOutOrder warehouseOutOrder) |
|||
{ |
|||
return toAjax(warehouseOutOrderService.insertWarehouseOutOrder(warehouseOutOrder)); |
|||
} |
|||
|
|||
/** |
|||
* 修改仓库出库单 |
|||
*/ |
|||
@GetMapping("/edit/{outOrderId}") |
|||
public String edit(@PathVariable("outOrderId") Long outOrderId, ModelMap mmap) |
|||
{ |
|||
WarehouseOutOrder warehouseOutOrder = warehouseOutOrderService.selectWarehouseOutOrderById(outOrderId); |
|||
mmap.put("warehouseOutOrder", warehouseOutOrder); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存仓库出库单 |
|||
*/ |
|||
@RequiresPermissions("warehouse:warehouseOutOrder:edit") |
|||
@Log(title = "仓库出库单", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(WarehouseOutOrder warehouseOutOrder) |
|||
{ |
|||
return toAjax(warehouseOutOrderService.updateWarehouseOutOrder(warehouseOutOrder)); |
|||
} |
|||
|
|||
/** |
|||
* 删除仓库出库单 |
|||
*/ |
|||
@RequiresPermissions("warehouse:warehouseOutOrder:remove") |
|||
@Log(title = "仓库出库单", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(warehouseOutOrderService.deleteWarehouseOutOrderByIds(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 作废仓库出库单 |
|||
*/ |
|||
@RequiresPermissions("warehouse:warehouseOutOrder:cancel") |
|||
@Log(title = "仓库出库单", businessType = BusinessType.CANCEL) |
|||
@GetMapping( "/cancel/{id}") |
|||
@ResponseBody |
|||
public AjaxResult cancel(@PathVariable("id") Long id){ |
|||
return toAjax(warehouseOutOrderService.cancelWarehouseOutOrderById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 恢复仓库出库单 |
|||
*/ |
|||
@RequiresPermissions("warehouse:warehouseOutOrder:restore") |
|||
@Log(title = "仓库出库单", businessType = BusinessType.RESTORE) |
|||
@GetMapping( "/restore/{id}") |
|||
@ResponseBody |
|||
public AjaxResult restore(@PathVariable("id")Long id) |
|||
{ |
|||
return toAjax(warehouseOutOrderService.restoreWarehouseOutOrderById(id)); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.ruoyi.warehouse.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.warehouse.domain.WarehouseOutOrder; |
|||
|
|||
/** |
|||
* 仓库出库单Service接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-06-04 |
|||
*/ |
|||
public interface IWarehouseOutOrderService |
|||
{ |
|||
/** |
|||
* 查询仓库出库单 |
|||
* |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return 仓库出库单 |
|||
*/ |
|||
public WarehouseOutOrder selectWarehouseOutOrderById(Long outOrderId); |
|||
|
|||
/** |
|||
* 查询仓库出库单列表 |
|||
* |
|||
* @param warehouseOutOrder 仓库出库单 |
|||
* @return 仓库出库单集合 |
|||
*/ |
|||
public List<WarehouseOutOrder> selectWarehouseOutOrderList(WarehouseOutOrder warehouseOutOrder); |
|||
|
|||
/** |
|||
* 新增仓库出库单 |
|||
* |
|||
* @param warehouseOutOrder 仓库出库单 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder); |
|||
|
|||
/** |
|||
* 修改仓库出库单 |
|||
* |
|||
* @param warehouseOutOrder 仓库出库单 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder); |
|||
|
|||
/** |
|||
* 批量删除仓库出库单 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseOutOrderByIds(String ids); |
|||
|
|||
/** |
|||
* 删除仓库出库单信息 |
|||
* |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseOutOrderById(Long outOrderId); |
|||
|
|||
/** |
|||
* 作废仓库出库单 |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return |
|||
*/ |
|||
int cancelWarehouseOutOrderById(Long outOrderId); |
|||
|
|||
/** |
|||
* 恢复仓库出库单 |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return |
|||
*/ |
|||
int restoreWarehouseOutOrderById(Long outOrderId); |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ruoyi.warehouse.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.common.utils.DateUtils; |
|||
import com.ruoyi.common.utils.ShiroUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.ruoyi.warehouse.mapper.WarehouseOutOrderMapper; |
|||
import com.ruoyi.warehouse.domain.WarehouseOutOrder; |
|||
import com.ruoyi.warehouse.service.IWarehouseOutOrderService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 仓库出库单Service业务层处理 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-06-04 |
|||
*/ |
|||
@Service |
|||
public class WarehouseOutOrderServiceImpl implements IWarehouseOutOrderService |
|||
{ |
|||
@Autowired |
|||
private WarehouseOutOrderMapper warehouseOutOrderMapper; |
|||
|
|||
/** |
|||
* 查询仓库出库单 |
|||
* |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return 仓库出库单 |
|||
*/ |
|||
@Override |
|||
public WarehouseOutOrder selectWarehouseOutOrderById(Long outOrderId) |
|||
{ |
|||
return warehouseOutOrderMapper.selectWarehouseOutOrderById(outOrderId); |
|||
} |
|||
|
|||
/** |
|||
* 查询仓库出库单列表 |
|||
* |
|||
* @param warehouseOutOrder 仓库出库单 |
|||
* @return 仓库出库单 |
|||
*/ |
|||
@Override |
|||
public List<WarehouseOutOrder> selectWarehouseOutOrderList(WarehouseOutOrder warehouseOutOrder) |
|||
{ |
|||
return warehouseOutOrderMapper.selectWarehouseOutOrderList(warehouseOutOrder); |
|||
} |
|||
|
|||
/** |
|||
* 新增仓库出库单 |
|||
* |
|||
* @param warehouseOutOrder 仓库出库单 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
warehouseOutOrder.setCreateBy(loginName); |
|||
warehouseOutOrder.setCreateTime(DateUtils.getNowDate()); |
|||
return warehouseOutOrderMapper.insertWarehouseOutOrder(warehouseOutOrder); |
|||
} |
|||
|
|||
/** |
|||
* 修改仓库出库单 |
|||
* |
|||
* @param warehouseOutOrder 仓库出库单 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
warehouseOutOrder.setUpdateBy(loginName); |
|||
warehouseOutOrder.setUpdateTime(DateUtils.getNowDate()); |
|||
return warehouseOutOrderMapper.updateWarehouseOutOrder(warehouseOutOrder); |
|||
} |
|||
|
|||
/** |
|||
* 删除仓库出库单对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteWarehouseOutOrderByIds(String ids) |
|||
{ |
|||
return warehouseOutOrderMapper.deleteWarehouseOutOrderByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除仓库出库单信息 |
|||
* |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteWarehouseOutOrderById(Long outOrderId) |
|||
{ |
|||
return warehouseOutOrderMapper.deleteWarehouseOutOrderById(outOrderId); |
|||
} |
|||
|
|||
/** |
|||
* 作废仓库出库单 |
|||
* |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelWarehouseOutOrderById(Long outOrderId) |
|||
{ |
|||
return warehouseOutOrderMapper.cancelWarehouseOutOrderById(outOrderId); |
|||
} |
|||
|
|||
/** |
|||
* 恢复仓库出库单信息 |
|||
* |
|||
* @param outOrderId 仓库出库单ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreWarehouseOutOrderById(Long outOrderId) |
|||
{ |
|||
return warehouseOutOrderMapper.restoreWarehouseOutOrderById(outOrderId); |
|||
} |
|||
} |
@ -0,0 +1,252 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('新增仓库出库单')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-warehouseOutOrder-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联生产订单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="makeNo" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="warehouseOutStatus" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_status')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联订单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="relatedOrderCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联销售订单编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="salesOrderCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">订单类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="warehouseOrderType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_order_type')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">委外单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outMakeCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="warehouseOutType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_type')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">请购单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="requisitioningCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">业务人员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="businessName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">售后人员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="aftersalesName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">仓库员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="warehouseName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出货设备id:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="shippingDeviceId" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">料号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNo" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料合计:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialSum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">数量合计:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="enterpriseSum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库数:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderSum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库对象:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="outOrderTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">客户ID:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="customerId" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">客户名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="customerName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">申请人员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="applyName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">供应商ID:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="supplierCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">计划交付时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="planDeliveryTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">供应商名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="supplierName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">交付条件:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryCondition" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">收货地址:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryAddress" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">联系人:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">联系电话:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryNumber" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">送货日期:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="deliveryDate" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备注:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="remark" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "warehouse/warehouseOutOrder" |
|||
$("#form-warehouseOutOrder-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-warehouseOutOrder-add').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='outOrderTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='planDeliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='deliveryDate']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,253 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改仓库出库单')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-warehouseOutOrder-edit" th:object="${warehouseOutOrder}"> |
|||
<input name="outOrderId" th:field="*{outOrderId}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderCode" th:field="*{outOrderCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联生产订单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="makeNo" th:field="*{makeNo}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="warehouseOutStatus" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_status')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseOutStatus}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联订单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="relatedOrderCode" th:field="*{relatedOrderCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联销售订单编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="salesOrderCode" th:field="*{salesOrderCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">订单类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="warehouseOrderType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_order_type')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseOrderType}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">委外单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outMakeCode" th:field="*{outMakeCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="warehouseOutType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_type')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseOutType}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">请购单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="requisitioningCode" th:field="*{requisitioningCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">业务人员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="businessName" th:field="*{businessName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">售后人员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="aftersalesName" th:field="*{aftersalesName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">仓库员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="warehouseName" th:field="*{warehouseName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出货设备id:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="shippingDeviceId" th:field="*{shippingDeviceId}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">料号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNo" th:field="*{materialNo}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialName" th:field="*{materialName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料合计:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialSum" th:field="*{materialSum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">数量合计:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="enterpriseSum" th:field="*{enterpriseSum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库数:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderSum" th:field="*{outOrderSum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库对象:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderName" th:field="*{outOrderName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="outOrderTime" th:value="${#dates.format(warehouseOutOrder.outOrderTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">客户ID:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="customerId" th:field="*{customerId}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">客户名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="customerName" th:field="*{customerName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">申请人员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="applyName" th:field="*{applyName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">供应商ID:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="supplierCode" th:field="*{supplierCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">计划交付时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="planDeliveryTime" th:value="${#dates.format(warehouseOutOrder.planDeliveryTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">供应商名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="supplierName" th:field="*{supplierName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">交付条件:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryCondition" th:field="*{deliveryCondition}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">收货地址:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryAddress" th:field="*{deliveryAddress}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">联系人:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryName" th:field="*{deliveryName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">联系电话:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="deliveryNumber" th:field="*{deliveryNumber}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">送货日期:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="deliveryDate" th:value="${#dates.format(warehouseOutOrder.deliveryDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备注:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="remark" th:field="*{remark}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "warehouse/warehouseOutOrder"; |
|||
$("#form-warehouseOutOrder-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-warehouseOutOrder-edit').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='outOrderTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='planDeliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='deliveryDate']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,184 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="include :: header('仓库出库单列表')" /> |
|||
</head> |
|||
<body class="gray-bg"> |
|||
<div class="container-div"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 search-collapse"> |
|||
<form id="formId"> |
|||
<div class="select-list"> |
|||
<ul> |
|||
<li> |
|||
<label>出库单号:</label> |
|||
<input type="text" name="outOrderCode"/> |
|||
</li> |
|||
<li> |
|||
<label>出库状态:</label> |
|||
<select name="warehouseOutStatus" th:with="type=${@dict.getType('warehouse_out_status')}"> |
|||
<option value="">所有</option> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</li> |
|||
<li> |
|||
<label>关联订单号:</label> |
|||
<input type="text" name="relatedOrderCode"/> |
|||
</li> |
|||
<li> |
|||
<label>申请人员:</label> |
|||
<input type="text" name="applyName"/> |
|||
</li> |
|||
<li> |
|||
<label>仓库员:</label> |
|||
<input type="text" name="warehouseName"/> |
|||
</li> |
|||
<li> |
|||
<label>订单类型:</label> |
|||
<select name="warehouseOrderType" th:with="type=${@dict.getType('warehouse_order_type')}"> |
|||
<option value="">所有</option> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</li> |
|||
<li class="select-time"> |
|||
<label>录入时间:</label> |
|||
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
|||
<span>-</span> |
|||
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateTime]"/> |
|||
</li> |
|||
<li> |
|||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
|
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="warehouse:warehouseOutOrder:export"> |
|||
<i class="fa fa-download"></i> 导出 |
|||
</a> |
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('warehouse:warehouseOutOrder:edit')}]]; |
|||
|
|||
|
|||
var warehouseOutStatusDatas = [[${@dict.getType('warehouse_out_status')}]]; |
|||
var warehouseOrderTypeDatas = [[${@dict.getType('warehouse_order_type')}]]; |
|||
var warehouseOutTypeDatas = [[${@dict.getType('warehouse_out_type')}]]; |
|||
var prefix = ctx + "warehouse/warehouseOutOrder"; |
|||
|
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
cancelUrl: prefix + "/cancel/{id}", |
|||
restoreUrl: prefix + "/restore/{id}", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "仓库出库单", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
title: '出库单Id', |
|||
field: 'outOrderId', |
|||
visible: false |
|||
}, |
|||
{ |
|||
title: '出库单号', |
|||
field: 'outOrderCode', |
|||
}, |
|||
{ |
|||
title: '出库状态', |
|||
field: 'warehouseOutStatus', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(warehouseOutStatusDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
title: '关联订单号', |
|||
field: 'relatedOrderCode', |
|||
}, |
|||
{ |
|||
title: '订单类型', |
|||
field: 'warehouseOrderType', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(warehouseOrderTypeDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
title: '出库类型', |
|||
field: 'warehouseOutType', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(warehouseOutTypeDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
title: '业务员', |
|||
field: 'businessName', |
|||
}, |
|||
{ |
|||
title: '物料合计', |
|||
field: 'materialSum', |
|||
}, |
|||
{ |
|||
title: '数量合计', |
|||
field: 'enterpriseSum', |
|||
}, |
|||
{ |
|||
title: '出库数', |
|||
field: 'outOrderSum', |
|||
}, |
|||
{ |
|||
title: '出库时间', |
|||
field: 'outOrderTime', |
|||
}, |
|||
{ |
|||
title: '录入人', |
|||
field: 'createBy', |
|||
}, |
|||
{ |
|||
title: '录入时间', |
|||
field: 'createTime', |
|||
}, |
|||
{ |
|||
title: '仓库员', |
|||
field: 'warehouseName', |
|||
}, |
|||
{ |
|||
title: '更新人', |
|||
field: 'updateBy', |
|||
}, |
|||
{ |
|||
title: '上次更新时间', |
|||
field: 'updateTime', |
|||
}, |
|||
{ |
|||
title: '备注', |
|||
field: 'remark', |
|||
}, |
|||
{ |
|||
title: '操作', |
|||
align: 'center', |
|||
formatter: function(value, row, index) { |
|||
var actions = []; |
|||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.outOrderId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|||
|
|||
return actions.join(''); |
|||
} |
|||
}] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue