<div ms-controller="ProductStorageOtherOut">
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian">
        <tbody>
            <tr>
                <!--leftNav-->
                <td width="198" height="450" valign="top" id="tdleft" style="border-bottom: #d2d2d2 1px solid;">
                    <div id="left" ms-widget="leftMenu,productStorageMenu">
                    </div>
                    <!--End leftNav-->
                </td>
                <td width="10">&nbsp;</td>
                <td valign="top" bgcolor="#FFFFFF" height="1" style="vertical-align: top; width: 198px;">
                    <table cellpadding="0" cellspacing="0" height="100%" class="bordergrag top10">
                        <tr>
                            <td style="vertical-align: top;">
                                <div class="boxTitlenoneb">
                                    <h2>
                                        <a href="javascript:void(0)" class="setico" ms-click="typeManage" style="float: right;" title="类别管理"></a>
                                        仓库列表
                                    </h2>
                                    <ul id="storageTypeTree" class='ztree' ms-widget="productCategoryTree,storageTypeTree,storageTypeTreeOpts" style="width: 198px; overflow: auto;"></ul>
                                    <br>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="10">&nbsp;</td>
                <td valign="top" style="padding-right:5px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhTable top10" id="seacrhTable">
                        <tbody>
                            <tr>
                                <td width="440" class="searchico">
                                    <div class="input-append" style="margin-bottom: 0px;">
                                        <strong class="forange" style="font-size: large">时间段从：</strong>
                                        <input type="text" name="StartDate" id="StartDate" ms-duplex="queryData.starttime.val" class="chaoboDate" ms-widget='date,StartDate,dateOpts' style="width: 80px" />
                                        <strong class="forange" style="font-size: large"> - </strong>
                                        &nbsp;&nbsp;&nbsp;
                                        <input type="text" name="EndDate" id="EndDate" class="chaoboDate"  ms-duplex="queryData.endtime.val" style="width: 80px" ms-widget='date,EndDate,dateOpts' />
                                        <input class="input" type="text" ms-duplex="queryData.keyword.val" placeholder="请输入出库编号" ms-keyup="onEnter">
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="doSearch">搜索</button>
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="clear">显示全部</button>
                                    </div>
                                </td>
                                <td class="fgray"></td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhField">
                        <tbody>
                            <tr class="quickword" ms-repeat="queryData" ms-if-loop="$val.items">
                                <td colspan="2">
                                    <span>{{$val.label}}</span>
                                    <div style="display: inline;">
                                        <a ms-repeat-r='$val.items' href="javascript:void(0)" ms-click='addQuery($key, r.val, r.label)' ms-class-selected="r.curr" ms-html='r.label'></a>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="seabox">
                                    <span class="first" ms-html='lang.CurrSearchCondition'></span>
                                    <div style="display: inline;float:left;" ms-repeat="queryData">
                                        <span class="searchItem" ms-if-loop='$val.valLabel'>{{$val.valLabel}}
                                        <i><a href="javascript:void(0)" ms-click='removeQuery($key)'></a></i>
                                        </span>
                                    </div>
                                    <span class="last" ms-visible='hasQuery' ms-click='clearQuery'><a href="javascript:void(0)" ms-html='lang.ClearAll'></a></span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="boxTitlenob top10">
                        <h2>其它出库</h2>
                    </div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" id="tableList" style="margin-bottom: 1px;">
                        <thead>
                            <!--<tr class="dobtn" style="background-color: rgba(0, 0, 0, 0);">
                                <td colspan="9">
                                    <a ms-if="ADD" class="doadd" href="javascript:void(0)" data-permission="ADD" ms-click="doadd">{{lang.AddBtn}}</a>
                                    <a ms-if="DELETE" data-permission="DELETE" href="javascript:void(0)" class="doalldel" ms-click="doRemoveAll" ms-attr-title="{{lang.BtachDelBtn}}">{{lang.BtachDelBtn}}</a>
                                </td>
                            </tr>-->
                            <tr class="head" style="background-color: rgba(0, 0, 0, 0);">
                                <td align="center">出库编号</td>
                                <td align="center">出库类型</td>
                                <td align="center">出库仓库</td>
                                <td align="center">出库金额</td>
                                <td align="center">出库时间</td>
                                <td align="center">添加部门</td>
                                <td align="center">添加人</td>
                                <td align="center">{{lang.Operate}}
                                </td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr align="center" ms-repeat-item="list">
                                <td>
                                    <a href="javascript:void(0)" ms-click="doview(item.Id)">{{item.BillNo}}</a>
                                </td>
                                <td>{{item.Type}}</td>
                                <td>{{item.StorageName}}</td>
                                <td>{{item.TotalMoney}}</td>
                                <td>{{item.ActionTime}}</td>
                                <td>{{item.ActionByGroup}}</td>
                                <td>{{item.FullName}}</td>
                                <td>
                                    <a ms-attr-title="lang.ViewBtn" href="javascript:void(0)" ms-click="doview(item.Id)" class="doview"></a>
                                    <!--<a ms-if="item.EDIT" ms-attr-title="lang.EditBtn" href="javascript:void(0)" ms-click="doedit(item.Id)" class="doedit"></a>
                                    <a ms-if="!item.EDIT" ms-attr-title="lang.EditBtn" href="javascript:void(0)" class="noedit"></a>
                                    <a ms-if="item.DELETE" ms-attr-title="lang.DelBtn" href="javascript:void(0)" ms-click="doRemove(item)" class="dodel" ms-attr-index="$index"></a>
                                    <a ms-if="!item.DELETE" ms-attr-title="lang.DelBtn" href="javascript:void(0)" class="nodel"></a>-->
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="9" ms-widget='paging,storagepage,storagepaing'></td>
                            </tr>
                        </tfoot>
                    </table>

                </td>
            </tr>
        </tbody>
    </table>

    <!--查看出库详情-->
    <noscript id="viewTemplate">
        <div class="tabContent2">
            <table width="98%" cellspacing="1" cellpadding="2" border="0" class="tablecInfo" ms-if="nowStorageIn" ms-repeat-item="nowStorageIn">
                <tbody>
                    <tr>
                        <td>出库编号
                        </td>
                        <td>
                            {{item.BillNo}}
                        </td>
                        <td>出库时间
                        </td>
                        <td>
                            {{item.ActionTime}}
                        </td>
                        <td>出库类别
                        </td>
                        <td>
                            {{item.Type}}
                        </td>
                    </tr>
                    <tr>
                        <td>仓库</td>
                        <td>
                            {{item.StorageName}}
                        </td>
                        <td>出库部门</td>
                        <td colspan="3">
                            {{item.ActionByGroup}}
                        </td>
                    </tr>
                    <tr>
                        <td>出库总价</td>
                        <td>
                            {{item.TotalMoney}}
                        </td>
                        <td>出库人员</td>
                        <td colspan="3">
                            {{item.FullName}}
                        </td>
                    </tr>
                </tbody>
            </table>
            <div style=" height:10px; overflow:hidden;"></div>
            <table width="98%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10">
            <tr class="head">
                <td align="center" bgcolor="#FFFFFF">出库编号</td>
                <td align="center" bgcolor="#FFFFFF">供应商</td>
                <td align="center" bgcolor="#FFFFFF">产品名称</td>
                <td align="center" bgcolor="#FFFFFF">产品型号</td>
                <td align="center" bgcolor="#FFFFFF">产品数量</td>
                <td align="center" bgcolor="#FFFFFF">单价</td>
                <td align="center" bgcolor="#FFFFFF">总折扣额</td>
                <td align="center" bgcolor="#FFFFFF">总税款额</td>
                <td align="center" bgcolor="#FFFFFF">价税小计</td>
                <td align="center" bgcolor="#FFFFFF">出库仓库</td>
                <td align="center" bgcolor="#FFFFFF">仓位</td>
                <td align="center" bgcolor="#FFFFFF">出库时间</td>
                <td align="center" bgcolor="#FFFFFF">出库操作人</td>
            </tr>
            <tbody>
                <tr ms-repeat-item="inlist">
                    <td align="center" bgcolor="#FFFFFF">{{item.BillNo}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.SupplyId==0?"":item.SupplyName}}</td>
                    <td align="center" bgcolor="#FFFFFF" ms-title="item.ProductName">{{item.ProductName|truncate(14,"…")}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.Standard}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.Number}}{{item.Units}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.Price}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.DiscountMoney}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.TaxMoney}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.TotalMony}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.StorageName}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.SpaceName}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.ActionTime}}</td>
                    <td align="center" bgcolor="#FFFFFF">{{item.FullName}}</td>
                </tr>
            </tbody>
        </table>
        </div>
    </noscript>

    <!--分类-->
    <noscript id="typeTmpl">
        <div class="tabContent2" style="width:600px;">
            <table width="98%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10">
            <tr class="head">
                <td width="60%" align="center" bgcolor="#FFFFFF">
                    名称
                </td>
                <td width="30%" align="center" bgcolor="#FFFFFF">排序
                </td>
                <td width="10%" align="center" bgcolor="#FFFFFF">操作
                </td>
            </tr>
            <tbody>
                <tr ms-repeat-item="typeList">
                    <td bgcolor="#FFFFFF">
                        <input type="text" ms-duplex="item.Data" style="width:90%;margin-bottom:3px;text-align:center;">
                    </td>
                    <td bgcolor="#FFFFFF">
                        <input type="text" ms-duplex="item.Sort" style="width:90%;margin-bottom:3px;text-align:center;">
                    </td>
                    <td bgcolor="#FFFFFF" style="text-align:center;">
                        <a ms-if="!$first" title="删除" href="javascript:void(0)" ms-click="removeType($index)" class="dodel"></a>
                        <a ms-if="$first" title="第一条不能删除" href="javascript:void(0)" class="nodel"></a>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <a href="javascript:void(0)" ms-click="addType">+&nbsp;新增一行</a>
                    </td>
                </tr>
            </tbody>
        </table>
        </div>
    </noscript>
</div>
