REAPI/app/robot/view/bee_task/setting.html

99 lines
4.9 KiB
HTML
Raw Permalink Normal View History

2024-09-29 15:43:18 +08:00
{extend name="../../admin/view/main"}
{block name="button"}
<button data-open='{:url("/merchant/merchant/index/")}' data-title="返回商户列表" class='layui-btn layui-btn-sm layui-btn-primary'>返回商户列表</button>
{/block}
{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white table-block">
<div class="layui-tab-content think-box-shadow table-block table-block">
<form class="layui-form" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='product'}
<thead>
<tr>
<th class='text-left nowrap' width="100%">为商户 <span class="color-blue">{$vo.name}</span> 设置定时任务参数</th>
<th class='text-left nowrap' width=""></th>
<th></th>
</tr>
</thead>
{/notempty}
<tbody>
{if $product}
{foreach $product as $k=>$v}
<tr>
<td class='text-left nowrap' style="width: 100px;">
<span class="color-blue"><label><input style="width: 42px;height: 20px;margin-top: 9px;" lay-skin="primary" class="list-check-box" value='{$v.vender_id}' lay-ignore name="vender_id" type='radio' {if $v.select == 1}checked="checked"{/if}></label><span class="color-desc"> ├  </span>{$v.vender_name|default=''}</span> <span class="color-desc">{$v.vender_id|default=''}</span> </span>
</td>
<td class='text-left nowrap'>
<p class="color-desc">时间间隔/分钟:</p>
<input class="layui-input" type="number" placeholder="请输入数字" name="times_{$v.vender_id}" value="{$v.times|default=''}"/>
</td>
<td class='text-left nowrap'>
<span class="color-desc">查询条数:</span>
<input class="layui-input" type="number" placeholder="请输入数字" name="order_num_{$v.vender_id}" value="{$v.order_num|default=''}"/>
</td>
<td class='text-left nowrap' style="width: 100px;">
{if $v.operator_id}
<p class="color-desc">运营商:</p>
{foreach $v.operator_id as $k1 => $v1}
<input type="checkbox" style="width: 42px;height: 20px;margin-top: 9px;" lay-skin="primary" lay-ignore name="operator_id_{$v.vender_id}[]" value="{$v1}" title="{$v1}" {if $v.operator_id1 && in_array($v1, $v.operator_id1)}checked="checked"{/if}><span class="color-green margin-right-10 font-w7">{$v1}</span>
{/foreach}
{/if}
</td>
<td class='text-left nowrap' style="width: 100px;">
{if $v.amount}
<p class="color-desc">可选面值(未选择面值则所有面值可用):</p>
{foreach $v.amount as $k1 => $v1}
<input type="checkbox" style="width: 42px;height: 20px;margin-top: 9px;" lay-skin="primary" lay-ignore name="amount_{$v.vender_id}[]" value="{$v1}" title="{$v1}" {if $v.cash && in_array($v1, $v.cash)}checked="checked"{/if}><span class="color-green margin-right-10 font-w7">{$v1}</span>
{if $k1==4}<br/>{elseif $k1%4==0&&$k1>4}<br/>{/if}
{/foreach}
{/if}
</td>
<td class='text-left nowrap' style="width: 100px;">
{if $v.prov_code}
<p class="color-desc">省份:</p>
{foreach $v.prov_code as $k1 => $v1}
<input type="checkbox" style="width: 42px;height: 20px;margin-top: 9px;" lay-skin="primary" lay-ignore name="prov_code_{$v.vender_id}[]" value="{$v1}" title="{$v1}" {if $v.prov_code1 && in_array($v1, $v.prov_code1)}checked="checked"{/if}><span class="color-green margin-right-10 font-w7">{$v1}</span>
{if $k1==4}<br/>{elseif $k1%4==0&&$k1>4}<br/>{/if}
{/foreach}
{/if}
</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
<div class="hr-line-dashed"></div>
<input type='hidden' value='{$vo.id}' name='mid'>
<div class="layui-form-item text-center">
<button class="layui-btn" type='submit'>保存设置</button>
</div>
</form>
</div>
</div>
<script>
layui.use(['form','layer'], function(){
var form = layui.form;
var layer = layui.layer;
});
form.render();
</script>
{/block}