mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
58 lines
2.9 KiB
HTML
58 lines
2.9 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_cainiao&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>
|
|
<{$setting.name}><br>
|
|
选择文件:
|
|
<input type='file' name='import_file' id='ImportCSV'/>
|
|
<!-- <input type='file' name='import_file' accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" id='ImportCSV'/>-->
|
|
|
|
<!-- <button id="downloadTemplate" onclick="javascript:window.location.href='index.php?app=financebase&ctl=admin_shop_settlement_cainiao&act=template&type=<{$setting.type}>'" class="btn filterBtn btn-thirdly" type="button"><span><span>下载模板</span></span></button>-->
|
|
<button id="downloadTemplate" onclick="javascript:window.location.href='/app/financebase/statics/import/cainiao/<{$setting.type}>.xls'" class="btn filterBtn btn-thirdly" type="button"><span><span>下载模板</span></span></button>
|
|
<br />
|
|
<br />
|
|
<{if $setting.type == 'sale'}>
|
|
选择销售周期: <{input type="date" vtype="date" name="start_time" id="start_time" style="width:66px; font-family:arial;" value=''}> 至
|
|
<{input type="date" vtype="date" name="end_time" id="end_time" style="width:66px; font-family:arial;" value=''}>
|
|
<{/if}>
|
|
|
|
<br/>
|
|
<br/>
|
|
<div class="table-action">
|
|
<{button label=$___desktop="导入"|t:'desktop' id="ImportBtn" type="submit"}>
|
|
<!-- <button id="btn-submit" class="btn btn-primary" type="button" onclick="onSub()" disabled=""><span><span>确定</span></span></button>-->
|
|
</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> |