Files
OMS/app/desktop/view/common/export.html
chenping 61783b7d01 1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数

3. 【优化】盘点申请单确认

4. 【修复】采购退货单模拟出库失败问题

5. 【新增】订单金额客户实付与结算金额

6. 【优化】仓库发货统计报表物料名称显示

7. 【优化】自有仓储虚拟发货逻辑

8. 【修复】基础物料分类管理问题
2026-04-01 11:59:17 +08:00

112 lines
4.3 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.
-->
<style>
.tableform table tr th{text-align:left;}
</style>
<form action='<{$thisUrl}>&action=to_export' method='post' id='export_form' enctype="multipart/form-data">
<div class="tableform">
<{if $has_export_cnf}>
<div class="division" >
<label>导出模板:</label>
<input type='radio' id='exportmb1' name='_export_mb' value='1' checked />自定义模板
<input type='radio' id='exportmb2' name='_export_mb' value='2' />已有模板
</div>
<div id="expmbcustom" class="division" style="display:block;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr id="cnfList">
<td class="cnfItem" colspan=2><div title="fields"><{$export_fields_msg}><input type="hidden" name="export_fields" value="<{$export_fields}>"></div></td>
</tr>
<tr>
<th>是否包含明细:</th>
<td>
<input type="radio" class="need_detail" name="need_detail" value="1" checked="checked" /><label>包含</label>
<input type="radio" class="need_detail" name="need_detail" value="2" /><label>不包含</label>
</td>
</tr>
</table>
<div class='table-action' id='cnfaddbtn'>
<button type="button"class='btn cnf-btn'>
<span>
<span>配置</span>
</span>
</button>
<button type="button"class='btn save-btn' ref='<{$export_cnf}>' >
<span>
<span>保存</span>
</span>
</button>
</div>
</div>
<div id="expmbnormal" class="division" style="display:none;">
</div>
<script>
window.addEvent('domready', function(){
$('exportmb1').addEvent('click',function(e){
if(this.checked){
$('expmbcustom').setStyle('display','block');
$('expmbnormal').setStyle('display','none');
}
});
$('exportmb2').addEvent('click',function(e){
if(this.checked){
$('expmbcustom').setStyle('display','none');
$('expmbnormal').setStyle('display','block');
var url="index.php?app=desktop&ctl=export&act=getTemps&type=<{$export_type}>";
new Request.HTML({
update:'expmbnormal',
url:url,
onComplete:function(){
}
}).send();
}
});
$('cnfaddbtn').getElement('.save-btn').addEvent('click',function(){
var cnf = this.get('ref');
var info = Json.evaluate(cnf);
var need =''
$('expmbcustom').getElements('.need_detail').each(function(e){
if(e.checked){
need = e.value;
}
});
new Dialog('index.php?app=desktop&ctl=export&act=addTemp',{width:400,height:150,title:'配置保存',ajaxoptions:{data:{type:info.type,content:info.content,need_detail:need},method:'post'}});
});
$('cnfaddbtn').getElement('.cnf-btn').addEvent('click',function(){
var url = "<{$thisUrl}>&action=exportcnf&finder_aliasname=<{$finder_aliasname}>";
new Dialog(url,{width:300,title:'配置'});
});
});
</script>
<{/if}>
<div class="division" >
<{if $change_type}>
<{t}>导出类型<{/t}>
<input type='radio' name='_export_type' value='1' <{if $change_type==1}>checked<{/if}>/>type1 &nbsp;
<input type='radio' name='_export_type' value='2' <{if $change_type==2}>checked<{/if}>/>type2<br/>
<{/if}>
<input type='hidden' name='_io_type' value='xls' />
<{button type="submit" label=$___desktop="导出"|t:'desktop' app="desktop" icon="btn_get_world.gif"}>
<{toinput from=$env.post}>
</div></div>
</form>