mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 10:55:34 +08:00
49 lines
2.0 KiB
HTML
49 lines
2.0 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.
|
|
-->
|
|
|
|
<div id="system-setting" class="tableform tableform-tabs">
|
|
<form action='index.php?app=financebase&ctl=admin_shop_settlement_jdbill&act=doImport&type=<{$setting.type}>&finder_id=<{$env.get.finder_id}>' method='post' target="uploadframe" enctype="multipart/form-data" id="import_form" class="tableform">
|
|
<br>
|
|
<span style="color:red; font-size:14pz; padding-top:5px; line-height:24px;"><{$setting.name}></span>
|
|
<br>
|
|
选择文件:
|
|
<input type='file' name='import_file' id='ImportCSV'/>
|
|
|
|
<button id="downloadTemplate" onclick="javascript:window.location.href='/app/financebase/statics/import/jdbill/<{$setting.type}>.xls'" class="btn filterBtn btn-thirdly" type="button"><span><span>下载模板</span></span></button>
|
|
<br />
|
|
<br/>
|
|
<br/>
|
|
<div class="table-action">
|
|
<{button label=$___desktop="导入"|t:'desktop' id="ImportBtn" type="submit"}>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
(function(){
|
|
var state;
|
|
$('ImportBtn').addEvent('click',function(e){
|
|
if(state||!$('ImportCSV').value.length)return false;
|
|
state=true;
|
|
this.style.cursor='not-allowed';
|
|
});
|
|
|
|
$('ImportCSV').addEvent('change',function(e){
|
|
state=false;
|
|
$('ImportBtn').style.cursor='pointer';
|
|
});
|
|
})();
|
|
</script> |