mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-06 06:55:36 +08:00
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
108 lines
3.5 KiB
HTML
108 lines
3.5 KiB
HTML
<!--
|
||
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
|
||
<table width="100%" cellpadding="0" cellspacing="0" class="finder-header">
|
||
<{if $use_buildin_selectrow}>
|
||
<col class="col-select"></col>
|
||
<{/if}>
|
||
<{$detail_col_html}>
|
||
<{$column_col_html}>
|
||
<col></col>
|
||
<thead>
|
||
<tr>
|
||
<{if $use_buildin_selectrow}>
|
||
<td>
|
||
<{if !$env.get.singleselect}>
|
||
<div class="col-select-opt">
|
||
<div class="col-select-opt-inner">
|
||
<input type="checkbox" class="sellist" onclick='this.blur()'/>
|
||
<{img src="bundle/arrow-down.gif"}>
|
||
</div>
|
||
<div class="col-select-opt-items x-drop-menu">
|
||
<ul class="group">
|
||
<li class="item" onclick="finderGroup['<{$name}>'].selectAll()">选择全部</li>
|
||
<li class="item" onclick="finderGroup['<{$name}>'].selectFav()">选择当页已加星标</li>
|
||
<li class="item" onclick="finderGroup['<{$name}>'].selectunFav()">选择当页未加星标</li>
|
||
<li class="item" onclick="finderGroup['<{$name}>'].unselectAll()">无</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<script>
|
||
(function(){
|
||
var trigger = $$('#finder-header-<{$name}> .col-select-opt')[0];
|
||
if(!trigger) return;
|
||
var menu = trigger.getElement('.x-drop-menu');
|
||
if(!menu) return;
|
||
trigger.store('dropmenu', menu);
|
||
// 显示时注入到 body,避免被 finder-header-wrapper 的 overflow:hidden 裁剪
|
||
function showMenu(){
|
||
if(menu.getParent() !== document.body){
|
||
menu.inject(document.body);
|
||
}
|
||
var top, left;
|
||
if(trigger.getBoundingClientRect){
|
||
var rect = trigger.getBoundingClientRect();
|
||
top = (rect.bottom != null ? rect.bottom : rect.top + trigger.offsetHeight);
|
||
left = (rect.left != null ? rect.left : rect.x);
|
||
} else {
|
||
var scroll = window.getScroll();
|
||
var pos = trigger.getPosition();
|
||
top = pos.y + trigger.offsetHeight - scroll.y;
|
||
left = pos.x - scroll.x;
|
||
}
|
||
menu.setStyle('position', 'fixed');
|
||
menu.setStyles({ top: top + 'px', left: left + 'px', zIndex: 9999 });
|
||
menu.style.display = 'block';
|
||
}
|
||
function hideMenu(){ menu.style.display = 'none'; }
|
||
function bindDocClose(){
|
||
var docClick = function(e){
|
||
var t = e.target;
|
||
if(trigger.contains(t)) return;
|
||
hideMenu();
|
||
document.removeEvent('click', docClick);
|
||
};
|
||
setTimeout(function(){ document.addEvent('click', docClick); }, 0);
|
||
}
|
||
trigger.addEvent('click', function(e){
|
||
if(e.target && e.target.match && e.target.match('input')) return;
|
||
if(menu.style.display === 'block'){
|
||
hideMenu();
|
||
return;
|
||
}
|
||
showMenu();
|
||
bindDocClose();
|
||
});
|
||
})();
|
||
</script>
|
||
<{/if}>
|
||
</td>
|
||
<{/if}>
|
||
<{$detail_td_html}>
|
||
<{$column_td_html}>
|
||
<td> </td>
|
||
</tr>
|
||
</thead>
|
||
</table>
|
||
|
||
<script>
|
||
$ES('.finder-filter-comb').each(function(el,v){
|
||
new DropMenu(el,{offset:{y:20},stopEl:true});
|
||
});
|
||
</script>
|
||
|
||
<{$filterhandle}>
|