Files
OMS/app/financebase/view/admin/queue_download_task.html
2026-01-04 17:22:44 +08:00

94 lines
2.7 KiB
HTML

<!--
Copyright 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>
.shop-name{
color:red;font-weight:bold;
}
.rules{
margin-bottom: 5px;
}
.rules select{
margin-right: 5px;
}
.rule_tr{
margin: 10px 0;
}
</style>
<div class="tableform">
<div class="division">
<form method="post" action="index.php?app=financebase&ctl=admin_shop_settlement_queue&act=doDownloadTask" id="form-rule">
<input type="hidden" name="id" value="<{$bill_info.id}>">
<table width="100%" cellspacing="0" cellpadding="0" border="0" id="rule-section">
<tbody>
<tr>
<th>所属店铺</th>
<td>
<select name="shop_id" vtype="required">
<{foreach from=$shop_list_alipay item=item}>
<option value="<{$item.shop_id}>"><{$item.name}></option>
<{/foreach}>
</select>
</td>
</tr>
<tr>
<th>任务时间</th>
<td><{input type="date" vtype="required" name="time_from" id="time_from" style="width:95px; font-family:arial;" value=''}>&nbsp;&nbsp;&nbsp;&nbsp;
<{input type="date" vtype="required" name="time_to" id="time_to" style="width:95px; font-family:arial;" value=''}>
</td>
</tr>
</table>
<div class="table-action">
<{button label="确认" type="submit" name="submit" id="btn-rule" class="btn-primary"}>
</div>
</form>
</div>
</div>
<script>
var finder = finderGroup['<{$env.get.finder_id}>'];
$('form-rule').store('target',{
onRequest:function(){
$('btn-rule').set('disabled', 'true');
},
onComplete:function(jsontext){
var json = JSON.decode(jsontext);
if (json.success){
$('btn-rule').set('disabled', 'true');
try{
var _dialogIns = $('btn-rule').getParent('.dialog').retrieve('instance');
}catch(e){}
if(_dialogIns){
_dialogIns.close();
setTimeout(finder.refresh(),30000);
}
}else{
$('btn-rule').set('disabled', '');
}
}
});
</script>