Index.cshtml 24.1 KB
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@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">
                
                <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">Id</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="qMaterialDistributeTaskHeaderId" v-model="MaterialDistributeTaskHeaderId" 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="qLocationCode" v-model="LocationCode" 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="qProductCode" v-model="ProductCode" 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="qWcsProductType" v-model="WcsProductType" 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="qGroupNumber" v-model="GroupNumber" 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="qStatus" v-model="Status" 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="qCreateTime" v-model="CreateTime" 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="qCreateBy" v-model="CreateBy" type="text" autocomplete="off" lay-verify="required" maxlength="16" class="layui-input">
                            </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="qUpdateBy" v-model="UpdateBy" type="text" autocomplete="off" lay-verify="required" maxlength="16" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>

        <table id="mainList" lay-filter="mainList"></table>
        <script type="text/html" id="ShowDtlId">
            <a href='javascript:;' class='layui-table-link '><u class="MaterialDistributeLoadDetailClass" style='color: cornflowerblue'>{{d.Id}}</u></a>
        </script>
        <script type="text/html" id="toolbarTable">
            <div class="layui-btn-container">
                <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-mini" lay-event="btnSelect"><i class="layui-icon">&#xe628;</i>检索</a>
                <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-mini" lay-event="btnRefresh"><i class="layui-icon">&#xe9aa;</i>刷新</a>
                {{ loadMenus("MaterialDistributeLoadHeader", 1) }}
            </div>
        </script>
        <div class="layui-collapse" lay-filter="DisplayDtl">
            <div class="layui-colla-item" style="display:none" id="DisplayDtlMaterialDistributeLoadDetail">
                <h2 class="layui-colla-title" id="title_MaterialDistributeLoadDetail">装配明细</h2>
                <div class="layui-colla-content">
                    <table id="mainListDtlMaterialDistributeLoadDetail" lay-filter="mainListDtlMaterialDistributeLoadDetail" lay-size="sm"></table>
                    <script type="text/html" id="toolbarTableMaterialDistributeLoadDetail">
                        <div class="layui-btn-container">
                            {{ loadMenus("MaterialDistributeLoadHeader",2) }}
                        </div>
                    </script>
                </div>
            </div>
        </div>
    </form>
</div>

<div id="modifyForm" class="layui-tab-item">
    <form class="layui-form layui-form-pane" action="" lay-filter="modifyForm" onsubmit="return false;">
        <div class="layui-card">
            <div class="layui-row">
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">Id</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 hidden>
                    <label class="layui-form-label layui-col-sm3">AGV任务号</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="MaterialDistributeTaskHeaderId" v-model="MaterialDistributeTaskHeaderId" 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">
                        <select name="ProductCode" v-model="ProductCode" disabled data-model="ProductCode" class="Selector_MaterialDistributeLoadHeader ClearSelector_MaterialDistributeLoadHeader" lay-filter="SelectProductCode"></select>
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">WCS工件类型</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WcsProductType" v-model="WcsProductType" readonly type="text" autocomplete="off" lay-verify="" class="layui-input form-readonly-color">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">需求位置</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <select name="LocationCode" v-model="LocationCode" data-model="LocationCode" disabled class="Selector_MaterialDistributeLoadHeader ClearSelector_MaterialDistributeLoadHeader" lay-filter="SelectLocationCode"></select>
                    </div>
                </div>
                <div hidden class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">需求工位</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="NeedStation" v-model="NeedStation" type="text"  readonly class="layui-input form-readonly-color">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">状态</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Status" v-model="Status" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <table id="tableEdit" class="layui-table" lay-filter="tableEdit" lay-size="sm"></table>
                <!--表单验证按钮-->
                <button class="layui-btn" style="display:none" name="fromAdd" lay-filter="fromAdd" lay-submit>fromAdd</button>
                <button class="layui-btn" style="display:none" name="fromUpdate" lay-filter="fromUpdate" lay-submit>fromUpdate</button>
            </div>
        </div>
    </form>
</div>

<div id="modifyFormDtl_MaterialDistributeLoadDetail" class="layui-tab-item">
    <form class="layui-form layui-form-pane" action="" lay-filter="modifyFormDtl_MaterialDistributeLoadDetail">
        <div class="layui-card">
            <div class="layui-row">
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">Id</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="HeaderId" v-model="HeaderId" 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="GroupNumber" v-model="GroupNumber" type="text" autocomplete="off" lay-verify="" maxlength="30" 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="Row" v-model="Row" type="text" autocomplete="off" lay-verify="" maxlength="30" 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="Line" v-model="Line" 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="Layer" v-model="Layer" 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="Amount" v-model="Amount" type="text" autocomplete="off" lay-verify="" maxlength="19" class="layui-input NumDecText">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">建立时间</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="CreateTime" v-model="CreateTime" style="background-color:#eee;" disabled="disabled" type="text" autocomplete="off" lay-verify="" class="layui-input layui-date">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">建立者</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="CreateBy" v-model="CreateBy" style="background-color:#eee;" disabled="disabled" type="text" autocomplete="off" lay-verify="" maxlength="16" class="layui-input">
                    </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 hidden>
                    <label class="layui-form-label layui-col-sm3">更新者</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="UpdateBy" v-model="UpdateBy" style="background-color:#eee;" disabled="disabled" type="text" autocomplete="off" lay-verify="" maxlength="16" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<div id="aLoadMaterialForm" class="layui-tab-item" style="display: none;">
    <form class="layui-form layui-form-pane" action="" lay-filter="aLoadMaterialForm">
        <div class="layui-card">
            <div class="layui-row">
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">Id</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="aId" v-model="aId" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">呼叫头表ID</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="aMaterialCallHeaderId" v-model="aMaterialCallHeaderId" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">配送ID</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input id="aMaterialDistributeTaskHeaderId" name="aMaterialDistributeTaskHeaderId" v-model="aMaterialDistributeTaskHeaderId" 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 id="aTaskNo" name="aTaskNo" v-model="aTaskNo" type="text"  readonly placeholder="请选择配送号" lay-verify="" 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 id="aLocationCode" name="aLocationCode" readonly v-model="aLocationCode" type="text"  lay-verify="" class="layui-input form-readonly-color">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">需求工位</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input id="aNeedStation" name="aNeedStation" v-model="aNeedStation" type="text"readonly 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 id="aProductCode" name="aProductCode" v-model="aProductCode" type="text" readonly maxlength="50" class="layui-input form-readonly-color">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">WCS工件类型</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="aWcsProductType" v-model="aWcsProductType" type="text" autocomplete="off" lay-verify="" 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="aContainerType" v-model="aContainerType" type="text" readonly lay-verify="" maxlength="50" class="layui-input form-readonly-color">
                    </div>
                </div>
                <table id="aLoadMaterialTable" class="layui-table" lay-filter="grouptable" lay-size="sm"></table>
            </div>
        </div>
    </form>
</div>

<div id="cLoadMaterialForm" class="layui-tab-item" style="display: none;">
    <form class="layui-form layui-form-pane" action="" lay-filter="cLoadMaterialForm">
        <div class="layui-card">
            <div class="layui-row">
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">Id</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="cId" v-model="cId" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">配送任务ID</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="cMaterialDistributeTaskHeaderId" v-model="cMaterialDistributeTaskHeaderId" type="text" autocomplete="off" lay-verify="" class="layui-input NumText">
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">呼叫头表ID</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="cMaterialCallHeaderId" v-model="cMaterialCallHeaderId" 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">
                        <select id="cProductCode" name="cProductCode" v-model="cProductCode" data-model="cProductCode" class="Selector_MaterialDistributeLoadHeader ClearSelector_MaterialDistributeLoadHeader" lay-filter="SelectProductCode"></select>
                    </div>
                </div>
                <div hidden>
                    <label class="layui-form-label layui-col-sm3">WCS工件类型</label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input id="cWcsProductType" name="cWcsProductType" v-model="cWcsProductType" type="text" autocomplete="off" lay-verify="" 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">
                        <select id="cLocationCode" name="cLocationCode" v-model="cLocationCode" data-model="LocationCode" class="Selector_MaterialDistributeLoadHeader ClearSelector_MaterialDistributeLoadHeader" lay-filter="SelectLocationCode"></select>
                    </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 id="cNeedStation" name="cNeedStation" readonly v-model="cNeedStation" type="text" class="layui-input form-readonly-color">
                    </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="cContainerType" v-model="cContainerType" readonly type="text" value="C" class="layui-input form-readonly-color">
                    </div>
                </div>
                <table id="cLoadMaterialTable" class="layui-table" lay-filter="cLoadMaterialTable" lay-size="sm"></table>
            </div>
        </div>
    </form>
</div>

@section Scripts
{
    <script type="text/javascript" src="/productjs/distribution/MaterialDistributeLoadHeader.js" asp-append-version="true"></script>
}
<script type="text/html" id="select">
    <a class="layui-btn layui-btn-xs" lay-event="select">选择</a>
</script>