Files
OMS/app/console/view/admin/material/import.html
2025-12-28 23:13:25 +08:00

46 lines
1.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
Copyright © ShopeX http://www.shopex.cn. All rights reserved.
See LICENSE file for license details.
-->
<div class="tableform"><h3>仓储:<{$wms.channel_name}></h3>
<div class="division">
<h5>第一步下载CSV模板文件</h5>
<form method="post" action="index.php?app=wms&ctl=admin_material&act=download_template" class="tableform" target='download' enctype="multipart/form-data">
<{button class="btn-primary" label="下载" type="submit"}>
</form>
<h5>第二步填写CSV文件</h5>
<div class="tableform">打开CSV文件,在里面对应写入上传内容。</div>
<h5>第三步上传填写好的CSV文件</h5>
<form action='index.php?app=wms&ctl=admin_material&act=index&action=to_import' method='post' target="uploadframe" enctype="multipart/form-data" id="import_form" class="tableform">
<div class="division" >
<input type='hidden' name='wms_id' value="<{$wms.channel_id}>" id='wms_id' />
<input type='file' name='import_file' id='ImportCSV'/>
</div>
<div class="table-action">
<{button label=$___desktop="导入"|t:'desktop' id="ImportBtn" type="submit"}>
</div>
</form>
<script>
(function(){
var state;
$('ImportBtn').addEvent('click',function(e){
if(state||!$('ImportCSV').value.length || !$('wms_id').value)return false;
state=true;
this.style.cursor='not-allowed';
});
$('ImportCSV').addEvent('change',function(e){
state=false;
$('ImportBtn').style.cursor='pointer';
});
})();
</script>