AddLocation.cshtml 9.78 KB
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header
    {
    <link rel="stylesheet" href="/css/treetable.css" />
}
<style type="text/css">
    .layui-form-label1 {
        display: table-cell;
        padding: 9px 15px;
        font-weight: bold;
        line-height: 20px;
        text-align: right;
        font-size: 20px;
    }

    .layui-btn-sm {
        height: 40px;
        line-height: 40px;
        padding: 0px 10px;
        font-size: 22px;
    }

    .layui-input {
        height: 40px;
        font-size: 22px;
        border: 1px solid rgba(0,0,0,.2);
    }

    #PalletForm {
        position: relative;
        margin: 5px auto;
        width: 80%;
        background: #fff;
        border-radius: 25px;
        /*padding-bottom: 55%;*/
        box-shadow: 1px 3px 20px rgba(0,0,0,.2);
    }


    .btn {
        text-align: center;
        position: relative;
        width: 70%;
        margin-left: 15%;
    }

    .row {
        margin: 10px auto;
    }

    .font {
        font-size: 20px;
        padding: 2px 5px;
        font-weight: bold;
        line-height: 20px;
        text-align: center
    }

    .c2 {
        padding-bottom: 20px;
    }

    .not {
        font-weight: bold;
        font-size: 22px;
        background-color: #eee;
    }
</style>

<div id="PalletForm">
    <div class="layui-col-sm12" style="padding-top:5%;">
        <div class="layui-col-sm1" style="height:20px;">
            <br />
        </div>
        <div class="layui-col-sm8" style="padding-top:10px;">
            <label class="font" style="color:red">仓库选择:</label>
            <div class="layui-col-sm1" style="height:20px;">
                <br />
            </div>
            <label class="font"><input class="c1" name="IsShou" value="2" type="radio" checked="checked">PP卷仓</label>
            <label class="font"><input class="c1" name="IsShou" value="3" type="radio">PP片仓</label>
            <label class="font"><input class="c1" name="IsShou" value="4" type="radio">铜箔仓</label>
        </div>
    </div>
    <form class="layui-form PalletForm" action="" lay-filter="PalletForm">
        <div class="layui-col-sm12 row">
            <div class="layui-col-sm12 c2">
                <div class="layui-col-sm2">
                    <br />
                </div>
                <label class="layui-form-label1 layui-col-sm1">列:</label>
                <div class="layui-input-inline layui-col-sm1">
                    <input name="line" type="text" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label1 layui-col-sm1">行:</label>
                <div class="layui-input-inline layui-col-sm1">
                    <input name="row" type="text" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label1 layui-col-sm1">层:</label>
                <div class="layui-input-inline layui-col-sm1">
                    <input name="layer" type="text" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-col-sm12">
                <br />
            </div>
            <div class="layui-col-sm12 c2">
                <label class="layui-form-label1 layui-col-sm3">扫码值:</label>
                <div class="layui-input-inline layui-col-sm6">
                    <input name="ContainerId" type="text" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-col-sm12 c2">
                <label class="layui-form-label1 layui-col-sm3">数量:</label>
                <div class="layui-input-inline layui-col-sm6">
                    <input name="Num" type="text" autocomplete="off" maxlength="50" class="layui-input not">
                </div>
            </div>
            <div class="layui-col-sm12 c2">
                <label class="layui-form-label1 layui-col-sm3">批次:</label>
                <div class="layui-input-inline layui-col-sm6">
                    <input name="Batch" type="text" class="layui-input not">
                </div>
            </div>
            <div class="layui-col-sm12 c2">
                <label class="layui-form-label1 layui-col-sm3">单据号:</label>
                <div class="layui-input-inline layui-col-sm6">
                    <input name="SourceCode" v-model="SourceCode" type="text" class="layui-input  not">
                </div>
            </div>
            <div class="layui-col-sm12 c2">
                <label class="layui-form-label1 layui-col-sm3">物料编码:</label>
                <div class="layui-input-inline layui-col-sm6">
                    <input name="MaterialCode" v-model="MaterialCode" type="text" class="layui-input  not">
                </div>
            </div>
            <div class="layui-col-sm12" style="margin-top:20px;" lay-filter="laybtn">
                <div class="btn">
                    <div class="layui-col-sm1 ">
                        <br />
                    </div>
                    <div class="layui-col-sm4 ">
                        <a herf="javascript:;" class="layui-btn layui-btn-sm layui-btn-normal" id="btnInventory"><i class="layui-icon">&#xe679;</i>手动物料添加</a>
                    </div>
                </div>
            </div>
        </div>

    </form>
    <div id="listForm" class="layui-tab-item layui-show">
        <h2 class="layui-colla-title"><strong>物料明细</strong></h2>
        <form class="layui-form layui-form-pane" action="" lay-filter="listForm">
            <table id="mainList" class="layui-table"
                   lay-data="{height: '300', cellMinWidth: 80, page:true, id:'mainList', limit: 20, limits: [20, 50, 100, 200, 500, 1000]}"
                   lay-filter="mainList" lay-size="sm">
                <thead>
                    <tr>
                        <th lay-data="{field:'Id', width:80, sort: true, fixed: false, hide: true}">id</th>
                        <th lay-data="{field:'LocationId', width:150, sort: true, fixed: false, hide: true}">库位id</th>
                        <th lay-data="{field:'LocationCode', width:150, sort: true, fixed: false, hide: true}">库位编号</th>
                        <th lay-data="{field:'ContainerCode', width:150, sort: true, fixed: false, hide: false}">容器编码</th>
                        <th lay-data="{field:'SourceCode', width:150, sort: true, fixed: false, hide: false}">上游系统单号</th>
                        <th lay-data="{field:'SourceLine', width:150, sort: true, fixed: false, hide: true}">上游系统行号</th>
                        <th lay-data="{field:'MaterialId', width:150, sort: true, fixed: false, hide: true}">物料Id</th>
                        <th lay-data="{field:'MaterialCode', width:150, sort: true, fixed: false, hide: false}">物料编码</th>
                        <th lay-data="{field:'ReceiptId', width:150, sort: true, fixed: false, hide: true}">入库单id</th>
                        <th lay-data="{field:'ReceiptCode', width:150, sort: true, fixed: false, hide: false}">入库单编码</th>
                        <th lay-data="{field:'ReceiptDetailId', width:150, sort: true, fixed: false, hide: true}">入库单明细id</th>
                        <th lay-data="{field:'TaskStatus', width:150, sort: true, fixed: false, hide: true, templet: function(d){return GetLabel('TaskStatus', 'DictValue', 'DictLabel', d.TaskStatus)}}">任务状态</th>
                        <th lay-data="{field:'Status', width:150, sort: true, fixed: false, hide: true, templet: function(d){return GetLabel('Status', 'DictValue', 'DictLabel', d.Status)}}">库存状态</th>
                        <th lay-data="{field:'ContainerStatus', width:150, sort: true, fixed: false, hide: false, templet: function(d){return GetLabel('ContainerStatus', 'DictValue', 'DictLabel', d.ContainerStatus)}}">容器状态</th>
                        <th lay-data="{field:'Qty', width:150, sort: true, fixed: false, hide: false}">数量</th>
                        <th lay-data="{field:'Batch', width:150, sort: true, fixed: false, hide: false}">批次</th>
                        <th lay-data="{field:'Lot', width:150, sort: true, fixed: false, hide: true}">批号</th>
                        <th lay-data="{field:'Project', width:150, sort: true, fixed: false, hide: true}">项目号</th>
                        <th lay-data="{field:'ManufactureDate', width:150, sort: true, fixed: false, hide: true}">生产日期</th>
                        <th lay-data="{field:'ExpirationDate', width:150, sort: true, fixed: false, hide: true}">失效日期</th>
                        <th lay-data="{field:'TaskQty', width:150, sort: true, fixed: false, hide: true}">执行预定数量</th>
                        <th lay-data="{field:'CostPrice', width:150, sort: true, fixed: false, hide: true}">成本</th>
                        <th lay-data="{field:'ListPrice', width:150, sort: true, fixed: false, hide: true}">标价</th>
                        <th lay-data="{field:'NetPrice', width:150, sort: true, fixed: false, hide: true}">净价</th>
                        <th lay-data="{field:'CreateTime', width:150, sort: true, fixed: false, hide: true}">创建时间</th>
                        <th lay-data="{field:'CreateBy', width:150, sort: true, fixed: false, hide: true}">创建用户</th>
                        <th lay-data="{field:'UpdateTime', width:150, sort: true, fixed: false, hide: true}">更新时间</th>
                        <th lay-data="{field:'UpdateBy', width:150, sort: true, fixed: false, hide: true}">更新用户</th>
                    </tr>
                </thead>
            </table>
        </form>
    </div>
</div>



<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/productjs/task/AddLocation.js?v=2019.08.19"></script>
<script type="text/javascript" src="/basejs/Common.js?v=2019.08.19"></script>