Index.cshtml 22.9 KB
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}

<div id="listForm" class="layui-tab-item layui-show">
    <div id="ImportData" style="padding: 60px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;display: none;">
        <div style="overflow:hidden">
            <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-normal" data-type="btnTemplate"><i class="layui-icon">&#xe663;</i>生成模板</a>
            <br />
            <br />
            <input type="file" name="excelfile" id="excelfile" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
        </div>
    </div>
    <form class="layui-form layui-form-pane" action="" lay-filter="listForm">
        <div class="layui-form-item" id="panelSearch" hidden>
            <fieldset class="layui-elem-field">
                <legend>检索区域 - 请输入相关数据查询</legend>
                <div class="layui-field-box" id="qform">
                    <div class="layui-form-item layui-col-sm12">
                        <div class="layui-inline toolList">
                            <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius" data-type="btnQuery"><i class="layui-icon">&#xe615;</i>查询</a>
                            <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-warm" data-type="btnReset"><i class="layui-icon">&#xe66c;</i>重置</a>
                            <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger" data-type="btnClose"><i class="layui-icon">&#xe6a7;</i>关闭</a>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">流水号</label>
                            <div class="layui-input-inline">
                                <input name="qId" v-model="Id" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">指令类型</label>
                            <div class="layui-input-inline">
                                <input name="qBufferType" v-model="BufferType" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">PLC号</label>
                            <div class="layui-input-inline">
                                <input name="qPlcDevice" v-model="PlcDevice" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">指令长度</label>
                            <div class="layui-input-inline">
                                <input name="qBufferLen" v-model="BufferLen" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">起始X</label>
                            <div class="layui-input-inline">
                                <input name="qStartX" v-model="StartX" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">起始Y</label>
                            <div class="layui-input-inline">
                                <input name="qStartY" v-model="StartY" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">起始Z</label>
                            <div class="layui-input-inline">
                                <input name="qStartZ" v-model="StartZ" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">结束X</label>
                            <div class="layui-input-inline">
                                <input name="qEndX" v-model="EndX" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">结束Y</label>
                            <div class="layui-input-inline">
                                <input name="qEndY" v-model="EndY" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">结束Z</label>
                            <div class="layui-input-inline">
                                <input name="qEndZ" v-model="EndZ" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">任务类型</label>
                            <div class="layui-input-inline">
                                <input name="qTaskType" v-model="TaskType" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">条码</label>
                            <div class="layui-input-inline">
                                <input name="qBarCode" v-model="BarCode" type="text" autocomplete="off" lay-verify="required" maxlength="50" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">条码长度</label>
                            <div class="layui-input-inline">
                                <input name="qBarCodeLen" v-model="BarCodeLen" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">备用位1</label>
                            <div class="layui-input-inline">
                                <input name="qKeep1" v-model="Keep1" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">备用位2</label>
                            <div class="layui-input-inline">
                                <input name="qKeep2" v-model="Keep2" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">备用位3</label>
                            <div class="layui-input-inline">
                                <input name="qKeep3" v-model="Keep3" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">备用位4</label>
                            <div class="layui-input-inline">
                                <input name="qKeep4" v-model="Keep4" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">备用位5</label>
                            <div class="layui-input-inline">
                                <input name="qKeep5" v-model="Keep5" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">备用位6</label>
                            <div class="layui-input-inline">
                                <input name="qKeep6" v-model="Keep6" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">备用位7</label>
                            <div class="layui-input-inline">
                                <input name="qKeep7" v-model="Keep7" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">更新时间</label>
                            <div class="layui-input-inline">
                                <input name="qUpdateTime" v-model="UpdateTime" type="text" autocomplete="off" lay-verify="required" class="layui-input layui-date">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">发送次数</label>
                            <div class="layui-input-inline">
                                <input name="qSendCount" v-model="SendCount" type="text" autocomplete="off" lay-verify="required" class="layui-input NumText">
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    
        <table id="mainList" class="layui-table"
                lay-data="{height: 'full-1', cellMinWidth: 80, page:true, id:'mainList', limit: 20, limits: [20, 50, 100, 200, 500, 1000], defaultToolbar: ['filter'], toolbar: '#toolbarTable'}"
                lay-filter="mainList" lay-size="sm">
            <thead>
                <tr>
                    <th lay-data="{checkbox:true, fixed: true}"></th>
                    <th lay-data="{field:'Id', width:80, sort: true, fixed: false, hide: false}">流水号</th>
                    <th lay-data="{field:'BufferType', width:150, sort: true, fixed: false, hide: false}">指令类型</th>
                    <th lay-data="{field:'PlcDevice', width:150, sort: true, fixed: false, hide: false}">PLC号</th>
                    <th lay-data="{field:'BufferLen', width:150, sort: true, fixed: false, hide: false}">指令长度</th>
                    <th lay-data="{field:'StartX', width:150, sort: true, fixed: false, hide: false}">起始X</th>
                    <th lay-data="{field:'StartY', width:150, sort: true, fixed: false, hide: false}">起始Y</th>
                    <th lay-data="{field:'StartZ', width:150, sort: true, fixed: false, hide: false}">起始Z</th>
                    <th lay-data="{field:'EndX', width:150, sort: true, fixed: false, hide: false}">结束X</th>
                    <th lay-data="{field:'EndY', width:150, sort: true, fixed: false, hide: false}">结束Y</th>
                    <th lay-data="{field:'EndZ', width:150, sort: true, fixed: false, hide: false}">结束Z</th>
                    <th lay-data="{field:'TaskType', width:150, sort: true, fixed: false, hide: false}">任务类型</th>
                    <th lay-data="{field:'BarCode', width:150, sort: true, fixed: false, hide: false}">条码</th>
                    <th lay-data="{field:'BarCodeLen', width:150, sort: true, fixed: false, hide: false}">条码长度</th>
                    <th lay-data="{field:'Keep1', width:150, sort: true, fixed: false, hide: false}">备用位1</th>
                    <th lay-data="{field:'Keep2', width:150, sort: true, fixed: false, hide: false}">备用位2</th>
                    <th lay-data="{field:'Keep3', width:150, sort: true, fixed: false, hide: false}">备用位3</th>
                    <th lay-data="{field:'Keep4', width:150, sort: true, fixed: false, hide: false}">备用位4</th>
                    <th lay-data="{field:'Keep5', width:150, sort: true, fixed: false, hide: false}">备用位5</th>
                    <th lay-data="{field:'Keep6', width:150, sort: true, fixed: false, hide: false}">备用位6</th>
                    <th lay-data="{field:'Keep7', width:150, sort: true, fixed: false, hide: false}">备用位7</th>
                    <th lay-data="{field:'UpdateTime', width:150, sort: true, fixed: false, hide: false}">更新时间</th>
                    <th lay-data="{field:'SendCount', width:150, sort: true, fixed: false, hide: false}">发送次数</th>
                </tr>
            </thead>
        </table>
        <script type="text/html" id="toolbarTable">
            <div class="layui-btn-container">
                <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-normal" lay-event="btnSelect"><i class="layui-icon">&#xe628;</i>检索</a>
                <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-normal" lay-event="btnRefresh"><i class="layui-icon">&#xe9aa;</i>刷新</a>
                {{ loadMenus("WcsSRMBuffer", 1) }}
            </div>
        </script>
    </form>
</div>

<div id="modifyForm" class="layui-tab-item">
    <form class="layui-form layui-form-pane" action="" lay-filter="modifyForm">
        <div class="layui-card">
            <div class="layui-row">
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">流水号</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Id" v-model="Id" style="background-color:#eee;" disabled="disabled" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">指令类型</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="BufferType" v-model="BufferType" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">PLC号</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="PlcDevice" v-model="PlcDevice" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">指令长度</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="BufferLen" v-model="BufferLen" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">起始X</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="StartX" v-model="StartX" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">起始Y</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="StartY" v-model="StartY" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">起始Z</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="StartZ" v-model="StartZ" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">结束X</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="EndX" v-model="EndX" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">结束Y</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="EndY" v-model="EndY" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">结束Z</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="EndZ" v-model="EndZ" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">任务类型</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="TaskType" v-model="TaskType" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">条码</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="BarCode" v-model="BarCode" type="text" autocomplete="off" lay-verify="" maxlength="50" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">条码长度</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="BarCodeLen" v-model="BarCodeLen" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备用位1</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Keep1" v-model="Keep1" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备用位2</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Keep2" v-model="Keep2" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备用位3</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Keep3" v-model="Keep3" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备用位4</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Keep4" v-model="Keep4" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备用位5</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Keep5" v-model="Keep5" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备用位6</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Keep6" v-model="Keep6" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备用位7</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Keep7" v-model="Keep7" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">更新时间</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="UpdateTime" v-model="UpdateTime" style="background-color:#eee;" disabled="disabled" type="text" autocomplete="off" lay-verify="" class="layui-input layui-date">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">发送次数</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="SendCount" v-model="SendCount" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/productjs/wcs/WcsSRMBuffer.js?v=2019.08.28"></script>
<script type="text/javascript" src="/basejs/Common.js?v=2019.08.28"></script>