自动化立体仓库 - WMS系统
--
whycq
2024-10-08 735c99bbbcba0fc0a68e60bec4d6e8c64b9d729d
--
8个文件已添加
1个文件已修改
958 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/FlowLogController.java 125 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/FlowLog.java 262 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/mapper/FlowLogMapper.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/FlowLogService.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/FlowLogServiceImpl.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/CodeBuilder.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/FlowLogMapper.xml 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/flowLog/flowLog.js 273 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/flowLog/flowLog.html 230 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/FlowLogController.java
New file
@@ -0,0 +1,125 @@
package com.zy.asrs.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.core.common.DateUtils;
import com.zy.asrs.entity.FlowLog;
import com.zy.asrs.service.FlowLogService;
import com.core.annotations.ManagerAuth;
import com.core.common.BaseRes;
import com.core.common.Cools;
import com.core.common.R;
import com.zy.common.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.*;
@RestController
public class FlowLogController extends BaseController {
    @Autowired
    private FlowLogService flowLogService;
    @RequestMapping(value = "/flowLog/{id}/auth")
    @ManagerAuth
    public R get(@PathVariable("id") String id) {
        return R.ok(flowLogService.selectById(String.valueOf(id)));
    }
    @RequestMapping(value = "/flowLog/list/auth")
    @ManagerAuth
    public R list(@RequestParam(defaultValue = "1")Integer curr,
                  @RequestParam(defaultValue = "10")Integer limit,
                  @RequestParam(required = false)String orderByField,
                  @RequestParam(required = false)String orderByType,
                  @RequestParam(required = false)String condition,
                  @RequestParam Map<String, Object> param){
        EntityWrapper<FlowLog> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
        allLike(FlowLog.class, param.keySet(), wrapper, condition);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        return R.ok(flowLogService.selectPage(new Page<>(curr, limit), wrapper));
    }
    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
        for (Map.Entry<String, Object> entry : map.entrySet()){
            String val = String.valueOf(entry.getValue());
            if (val.contains(RANGE_TIME_LINK)){
                String[] dates = val.split(RANGE_TIME_LINK);
                wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
                wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
            } else {
                wrapper.like(entry.getKey(), val);
            }
        }
    }
    @RequestMapping(value = "/flowLog/add/auth")
    @ManagerAuth
    public R add(FlowLog flowLog) {
        flowLogService.insert(flowLog);
        return R.ok();
    }
    @RequestMapping(value = "/flowLog/update/auth")
    @ManagerAuth
    public R update(FlowLog flowLog){
        if (Cools.isEmpty(flowLog) || null==flowLog.getId()){
            return R.error();
        }
        flowLogService.updateById(flowLog);
        return R.ok();
    }
    @RequestMapping(value = "/flowLog/delete/auth")
    @ManagerAuth
    public R delete(@RequestParam(value="ids[]") Long[] ids){
         for (Long id : ids){
            flowLogService.deleteById(id);
        }
        return R.ok();
    }
    @RequestMapping(value = "/flowLog/export/auth")
    @ManagerAuth
    public R export(@RequestBody JSONObject param){
        EntityWrapper<FlowLog> wrapper = new EntityWrapper<>();
        List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class);
        Map<String, Object> map = excludeTrash(param.getJSONObject("flowLog"));
        convert(map, wrapper);
        List<FlowLog> list = flowLogService.selectList(wrapper);
        return R.ok(exportSupport(list, fields));
    }
    @RequestMapping(value = "/flowLogQuery/auth")
    @ManagerAuth
    public R query(String condition) {
        EntityWrapper<FlowLog> wrapper = new EntityWrapper<>();
        wrapper.like("id", condition);
        Page<FlowLog> page = flowLogService.selectPage(new Page<>(0, 10), wrapper);
        List<Map<String, Object>> result = new ArrayList<>();
        for (FlowLog flowLog : page.getRecords()){
            Map<String, Object> map = new HashMap<>();
            map.put("id", flowLog.getId());
            map.put("value", flowLog.getId());
            result.add(map);
        }
        return R.ok(result);
    }
    @RequestMapping(value = "/flowLog/check/column/auth")
    @ManagerAuth
    public R query(@RequestBody JSONObject param) {
        Wrapper<FlowLog> wrapper = new EntityWrapper<FlowLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val"));
        if (null != flowLogService.selectOne(wrapper)){
            return R.parse(BaseRes.REPEAT).add(getComment(FlowLog.class, String.valueOf(param.get("key"))));
        }
        return R.ok();
    }
}
src/main/java/com/zy/asrs/entity/FlowLog.java
New file
@@ -0,0 +1,262 @@
package com.zy.asrs.entity;
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
@Data
@TableName("man_flow_log")
public class FlowLog implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 数据编号
     */
    @ApiModelProperty(value= "数据编号")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    /**
     * 流水号
     */
    @ApiModelProperty(value= "流水号")
    private String fid;
    /**
     * 操作类型
     */
    @ApiModelProperty(value= "操作类型")
    @TableField("op_type")
    private Long opType;
    /**
     * 订单号
     */
    @ApiModelProperty(value= "订单号")
    @TableField("order_no")
    private String orderNo;
    /**
     * 销售单号
     */
    @ApiModelProperty(value= "销售单号")
    @TableField("three_code")
    private String threeCode;
    /**
     * 库位号
     */
    @ApiModelProperty(value= "库位号")
    @TableField("loc_no")
    private String locNo;
    /**
     * 物料号
     */
    @ApiModelProperty(value= "物料号")
    private String matnr;
    /**
     * 物料名称
     */
    @ApiModelProperty(value= "物料名称")
    private String maktx;
    /**
     * 订单数量变更前
     */
    @ApiModelProperty(value= "订单数量变更前")
    @TableField("order_previous")
    private Double orderPrevious;
    /**
     * 订单数量变更后
     */
    @ApiModelProperty(value= "订单数量变更后")
    @TableField("order_current")
    private Double orderCurrent;
    /**
     * 订单数量变更
     */
    @ApiModelProperty(value= "订单数量变更")
    @TableField("order_changed")
    private Double orderChanged;
    /**
     * 作业数量变更前
     */
    @ApiModelProperty(value= "作业数量变更前")
    @TableField("qty_previous")
    private Double qtyPrevious;
    /**
     * 作业数量变更后
     */
    @ApiModelProperty(value= "作业数量变更后")
    @TableField("qty_current")
    private Double qtyCurrent;
    /**
     * 作业数量变更
     */
    @ApiModelProperty(value= "作业数量变更")
    @TableField("qty_changed")
    private Double qtyChanged;
    /**
     * 变更前数量
     */
    @ApiModelProperty(value= "变更前数量")
    @TableField("loc_previous")
    private Double locPrevious;
    /**
     * 变更后数量
     */
    @ApiModelProperty(value= "变更后数量")
    @TableField("loc_current")
    private Double locCurrent;
    /**
     * 变更值
     */
    @ApiModelProperty(value= "变更值")
    @TableField("loc_changed")
    private Double locChanged;
    /**
     * 备用1
     */
    @ApiModelProperty(value= "备用1")
    private String spare1;
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    private String spare2;
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    private String spare3;
    /**
     * 备用4
     */
    @ApiModelProperty(value= "备用4")
    private String spare4;
    /**
     * 备用5
     */
    @ApiModelProperty(value= "备用5")
    private String spare5;
    /**
     * 操作员
     */
    @ApiModelProperty(value= "操作员")
    @TableField("user_id")
    private Long userId;
    /**
     * 更新时间
     */
    @ApiModelProperty(value= "更新时间")
    @TableField("appe_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date appeTime;
    public FlowLog() {}
    public FlowLog(Long id,String fid,Long opType,String orderNo,String threeCode,String locNo,String matnr,String maktx,Double orderPrevious,Double orderCurrent,Double orderChanged,Double qtyPrevious,Double qtyCurrent,Double qtyChanged,Double locPrevious,Double locCurrent,Double locChanged,String spare1,String spare2,String spare3,String spare4,String spare5,Long userId,Date appeTime) {
        this.id = id;
        this.fid = fid;
        this.opType = opType;
        this.orderNo = orderNo;
        this.threeCode = threeCode;
        this.locNo = locNo;
        this.matnr = matnr;
        this.maktx = maktx;
        this.orderPrevious = orderPrevious;
        this.orderCurrent = orderCurrent;
        this.orderChanged = orderChanged;
        this.qtyPrevious = qtyPrevious;
        this.qtyCurrent = qtyCurrent;
        this.qtyChanged = qtyChanged;
        this.locPrevious = locPrevious;
        this.locCurrent = locCurrent;
        this.locChanged = locChanged;
        this.spare1 = spare1;
        this.spare2 = spare2;
        this.spare3 = spare3;
        this.spare4 = spare4;
        this.spare5 = spare5;
        this.userId = userId;
        this.appeTime = appeTime;
    }
//    FlowLog flowLog = new FlowLog(
//            null,    // 数据编号[非空]
//            null,    // 流水号
//            null,    // 操作类型
//            null,    // 订单号
//            null,    // 销售单号
//            null,    // 库位号
//            null,    // 物料号
//            null,    // 物料名称
//            null,    // 订单数量变更前
//            null,    // 订单数量变更后
//            null,    // 订单数量变更
//            null,    // 作业数量变更前
//            null,    // 作业数量变更后
//            null,    // 作业数量变更
//            null,    // 变更前数量
//            null,    // 变更后数量
//            null,    // 变更值
//            null,    // 备用1
//            null,    // 备用2
//            null,    // 备用3
//            null,    // 备用4
//            null,    // 备用5
//            null,    // 操作员
//            null    // 更新时间
//    );
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public String getOpType$() {
        String otp = "";
        if (this.opType == 1L) {
            otp = "1";
        } else if (this.opType == 2L) {
            otp = "2";
        } else if (this.opType == 3L) {
            otp = "3";
        } else if (this.opType == 3L) {
            otp = "3";
        } else if (this.opType == 3L) {
            otp = "3";
        }
        return "";
    }
}
src/main/java/com/zy/asrs/mapper/FlowLogMapper.java
New file
@@ -0,0 +1,12 @@
package com.zy.asrs.mapper;
import com.zy.asrs.entity.FlowLog;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@Mapper
@Repository
public interface FlowLogMapper extends BaseMapper<FlowLog> {
}
src/main/java/com/zy/asrs/service/FlowLogService.java
New file
@@ -0,0 +1,8 @@
package com.zy.asrs.service;
import com.zy.asrs.entity.FlowLog;
import com.baomidou.mybatisplus.service.IService;
public interface FlowLogService extends IService<FlowLog> {
}
src/main/java/com/zy/asrs/service/impl/FlowLogServiceImpl.java
New file
@@ -0,0 +1,12 @@
package com.zy.asrs.service.impl;
import com.zy.asrs.mapper.FlowLogMapper;
import com.zy.asrs.entity.FlowLog;
import com.zy.asrs.service.FlowLogService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
@Service("flowLogService")
public class FlowLogServiceImpl extends ServiceImpl<FlowLogMapper, FlowLog> implements FlowLogService {
}
src/main/java/com/zy/common/CodeBuilder.java
@@ -20,7 +20,7 @@
        generator.url="127.0.0.1:1433;databasename=phyzasrs";
        generator.username="sa";
        generator.password="sa@123";
        generator.table="agv_wrk_log";
        generator.table="man_flow_log";
        generator.packagePath="com.zy.asrs";
        generator.sql = false;
        generator.build();
src/main/resources/mapper/FlowLogMapper.xml
New file
@@ -0,0 +1,34 @@
<?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.zy.asrs.mapper.FlowLogMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.FlowLog">
        <result column="id" property="id" />
        <result column="fid" property="fid" />
        <result column="op_type" property="opType" />
        <result column="order_no" property="orderNo" />
        <result column="three_code" property="threeCode" />
        <result column="loc_no" property="locNo" />
        <result column="matnr" property="matnr" />
        <result column="maktx" property="maktx" />
        <result column="order_previous" property="orderPrevious" />
        <result column="order_current" property="orderCurrent" />
        <result column="order_changed" property="orderChanged" />
        <result column="qty_previous" property="qtyPrevious" />
        <result column="qty_current" property="qtyCurrent" />
        <result column="qty_changed" property="qtyChanged" />
        <result column="loc_previous" property="locPrevious" />
        <result column="loc_current" property="locCurrent" />
        <result column="loc_changed" property="locChanged" />
        <result column="spare1" property="spare1" />
        <result column="spare2" property="spare2" />
        <result column="spare3" property="spare3" />
        <result column="spare4" property="spare4" />
        <result column="spare5" property="spare5" />
        <result column="user_id" property="userId" />
        <result column="appe_time" property="appeTime" />
    </resultMap>
</mapper>
src/main/webapp/static/js/flowLog/flowLog.js
New file
@@ -0,0 +1,273 @@
var pageCurr;
layui.config({
    base: baseUrl + "/static/layui/lay/modules/"
}).use(['table','laydate', 'form', 'admin'], function(){
    var table = layui.table;
    var $ = layui.jquery;
    var layer = layui.layer;
    var layDate = layui.laydate;
    var form = layui.form;
    var admin = layui.admin;
    // 数据渲染
    tableIns = table.render({
        elem: '#flowLog',
        headers: {token: localStorage.getItem('token')},
        url: baseUrl+'/flowLog/list/auth',
        page: true,
        limit: 15,
        limits: [15, 30, 50, 100, 200, 500],
        toolbar: '#toolbar',
        cellMinWidth: 50,
        height: 'full-120',
        cols: [[
            {type: 'checkbox'}
            ,{field: 'id', align: 'center',title: '数据编号',hide: true}
            ,{field: 'fid', align: 'center',title: '流水号'}
            ,{field: 'opType', align: 'center',title: '操作类型'}
            ,{field: 'orderNo', align: 'center',title: '订单号'}
            ,{field: 'threeCode', align: 'center',title: '销售单号'}
            ,{field: 'locNo', align: 'center',title: '库位号'}
            ,{field: 'matnr', align: 'center',title: '物料号'}
            ,{field: 'maktx', align: 'center',title: '物料名称'}
            ,{field: 'orderPrevious', align: 'center',title: '订单数量变更前'}
            ,{field: 'orderCurrent', align: 'center',title: '订单数量变更后'}
            ,{field: 'orderChanged', align: 'center',title: '订单数量变更'}
            ,{field: 'qtyPrevious', align: 'center',title: '作业数量变更前'}
            ,{field: 'qtyCurrent', align: 'center',title: '作业数量变更后'}
            ,{field: 'qtyChanged', align: 'center',title: '作业数量变更'}
            ,{field: 'locPrevious', align: 'center',title: '变更前数量'}
            ,{field: 'locCurrent', align: 'center',title: '变更后数量'}
            ,{field: 'locChanged', align: 'center',title: '变更值'}
            ,{field: 'spare1', align: 'center',title: '备用1',hide: true}
            ,{field: 'spare2', align: 'center',title: '备用2',hide: true}
            ,{field: 'spare3', align: 'center',title: '备用3',hide: true}
            ,{field: 'spare4', align: 'center',title: '备用4',hide: true}
            ,{field: 'spare5', align: 'center',title: '备用5',hide: true}
            ,{field: 'userId', align: 'center',title: '操作员'}
            ,{field: 'appeTime$', align: 'center',title: '更新时间'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120,hide: true}
        ]],
        request: {
            pageName: 'curr',
            pageSize: 'limit'
        },
        parseData: function (res) {
            return {
                'code': res.code,
                'msg': res.msg,
                'count': res.data.total,
                'data': res.data.records
            }
        },
        response: {
            statusCode: 200
        },
        done: function(res, curr, count) {
            if (res.code === 403) {
                top.location.href = baseUrl+"/";
            }
            pageCurr=curr;
            limit();
        }
    });
    // 监听排序事件
    table.on('sort(flowLog)', function (obj) {
        var searchData = {};
        $.each($('#search-box [name]').serializeArray(), function() {
            searchData[this.name] = this.value;
        });
        searchData['orderByField'] = obj.field;
        searchData['orderByType'] = obj.type;
        tableIns.reload({
            where: searchData,
            page: {curr: 1}
        });
    });
    // 监听头工具栏事件
    table.on('toolbar(flowLog)', function (obj) {
        var checkStatus = table.checkStatus(obj.config.id).data;
        switch(obj.event) {
            case 'addData':
                showEditModel();
                break;
            case 'deleteData':
               if (checkStatus.length === 0) {
                   layer.msg('请选择要删除的数据', {icon: 2});
                   return;
               }
               del(checkStatus.map(function (d) {
                   return d.id;
               }));
               break;
            case 'exportData':
                admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {
                        if (col.type === 'normal' && col.hide === false && col.toolbar == null) {
                            titles.push(col.title);
                            fields.push(col.field);
                        }
                    });
                    var exportData = {};
                    $.each($('#search-box [name]').serializeArray(), function() {
                        exportData[this.name] = this.value;
                    });
                    var param = {
                        'flowLog': exportData,
                        'fields': fields
                    };
                    $.ajax({
                        url: baseUrl+"/flowLog/export/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: JSON.stringify(param),
                        dataType:'json',
                        contentType:'application/json;charset=UTF-8',
                        method: 'POST',
                        success: function (res) {
                            layer.closeAll();
                            if (res.code === 200) {
                                table.exportFile(titles,res.data,'xls');
                            } else if (res.code === 403) {
                                top.location.href = baseUrl+"/";
                            } else {
                                layer.msg(res.msg, {icon: 2})
                            }
                        }
                    });
                });
                break;
        }
    });
    // 监听行工具事件
    table.on('tool(flowLog)', function(obj){
        var data = obj.data;
        switch (obj.event) {
            case 'edit':
                showEditModel(data);
                break;
            case "del":
                del([data.id]);
                break;
        }
    });
    /* 弹窗 - 新增、修改 */
    function showEditModel(mData) {
        admin.open({
            type: 1,
            area: '600px',
            title: (mData ? '修改' : '添加') + '订单状态',
            content: $('#editDialog').html(),
            success: function (layero, dIndex) {
                layDateRender(mData);
                form.val('detail', mData);
                form.on('submit(editSubmit)', function (data) {
                    var loadIndex = layer.load(2);
                    $.ajax({
                        url: baseUrl+"/flowLog/"+(mData?'update':'add')+"/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: data.field,
                        method: 'POST',
                        success: function (res) {
                            layer.close(loadIndex);
                            if (res.code === 200){
                                layer.close(dIndex);
                                layer.msg(res.msg, {icon: 1});
                                tableReload();
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            }else {
                                layer.msg(res.msg, {icon: 2});
                            }
                        }
                    })
                    return false;
                });
                $(layero).children('.layui-layer-content').css('overflow', 'visible');
                layui.form.render('select');
            }
        });
    }
    /* 删除 */
    function del(ids) {
        layer.confirm('确定要删除选中数据吗?', {
            skin: 'layui-layer-admin',
            shade: .1
        }, function (i) {
            layer.close(i);
            var loadIndex = layer.load(2);
            $.ajax({
                url: baseUrl+"/flowLog/delete/auth",
                headers: {'token': localStorage.getItem('token')},
                data: {ids: ids},
                method: 'POST',
                success: function (res) {
                    layer.close(loadIndex);
                    if (res.code === 200){
                        layer.msg(res.msg, {icon: 1});
                        tableReload();
                    } else if (res.code === 403){
                        top.location.href = baseUrl+"/";
                    } else {
                        layer.msg(res.msg, {icon: 2});
                    }
                }
            })
        });
    }
    // 搜索
    form.on('submit(search)', function (data) {
        pageCurr = 1;
        tableReload(false);
    });
    // 重置
    form.on('submit(reset)', function (data) {
        pageCurr = 1;
        clearFormVal($('#search-box'));
        tableReload(false);
    });
    // 时间选择器
    function layDateRender(data) {
        setTimeout(function () {
            layDate.render({
                elem: '.layui-laydate-range'
                ,type: 'datetime'
                ,range: true
            });
            layDate.render({
                elem: '#appeTime\\$',
                type: 'datetime',
                value: data!==undefined?data['appeTime\\$']:null
            });
        }, 300);
    }
    layDateRender();
});
// 关闭动作
$(document).on('click','#data-detail-close', function () {
    parent.layer.closeAll();
});
function tableReload(child) {
    var searchData = {};
    $.each($('#search-box [name]').serializeArray(), function() {
        searchData[this.name] = this.value;
    });
    tableIns.reload({
        where: searchData,
        page: {curr: pageCurr}
     });
}
src/main/webapp/views/flowLog/flowLog.html
New file
@@ -0,0 +1,230 @@
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all">
    <link rel="stylesheet" href="../../static/css/cool.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form toolbar" id="search-box">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="id" placeholder="编号" autocomplete="off">
                        </div>
                    </div>
                     <div class="layui-inline" style="width: 300px">
                        <div class="layui-input-inline">
                            <input class="layui-input layui-laydate-range" name="create_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">&emsp;
                        <button class="layui-btn icon-btn" lay-filter="search" lay-submit>
                            <i class="layui-icon">&#xe615;</i>搜索
                        </button>
                        <button class="layui-btn icon-btn" lay-filter="reset" lay-submit>
                            <i class="layui-icon">&#xe666;</i>重置
                        </button>
                    </div>
                </div>
            </div>
            <table class="layui-hide" id="flowLog" lay-filter="flowLog"></table>
        </div>
    </div>
</div>
<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
<!--        <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button>-->
<!--        <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button>-->
<!--        <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right">导出</button>-->
    </div>
</script>
<script type="text/html" id="operate">
    <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a>
</script>
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/flowLog/flowLog.js" charset="utf-8"></script>
</body>
<!-- 表单弹窗 -->
<script type="text/html" id="editDialog">
    <form id="detail" lay-filter="detail" class="layui-form admin-form model-form">
        <input name="id" type="hidden">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">数据编号: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="id" placeholder="请输入数据编号" lay-vertype="tips" lay-verify="required">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">流水号: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="fid" placeholder="请输入流水号">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">操作类型: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="opType" placeholder="请输入操作类型">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">订单号: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="orderNo" placeholder="请输入订单号">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">销售单号: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="threeCode" placeholder="请输入销售单号">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">库位号: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="locNo" placeholder="请输入库位号">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">物料号: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="matnr" placeholder="请输入物料号">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">物料名称: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="maktx" placeholder="请输入物料名称">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">订单数量变更前: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="orderPrevious" placeholder="请输入订单数量变更前">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">订单数量变更后: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="orderCurrent" placeholder="请输入订单数量变更后">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">订单数量变更: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="orderChanged" placeholder="请输入订单数量变更">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">作业数量变更前: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="qtyPrevious" placeholder="请输入作业数量变更前">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">作业数量变更后: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="qtyCurrent" placeholder="请输入作业数量变更后">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">作业数量变更: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="qtyChanged" placeholder="请输入作业数量变更">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">变更前数量: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="locPrevious" placeholder="请输入变更前数量">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">变更后数量: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="locCurrent" placeholder="请输入变更后数量">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">变更值: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="locChanged" placeholder="请输入变更值">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备用1: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="spare1" placeholder="请输入备用1">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备用2: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="spare2" placeholder="请输入备用2">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备用3: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="spare3" placeholder="请输入备用3">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备用4: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="spare4" placeholder="请输入备用4">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备用5: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="spare5" placeholder="请输入备用5">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">操作员: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="userId" placeholder="请输入操作员">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">更新时间: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="appeTime" id="appeTime$" placeholder="请输入更新时间">
                    </div>
                </div>
             </div>
        </div>
        <hr class="layui-bg-gray">
        <div class="layui-form-item text-right">
            <button class="layui-btn" lay-filter="editSubmit" lay-submit="">保存</button>
            <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        </div>
    </form>
</script>
</html>