Files
OMS/app/crm/view/admin/gift_detail.html
2025-12-28 23:13:25 +08:00

252 lines
9.5 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.
-->
<style>
#num_rules {
list-style: none;
margin: 0;
padding: 0;
}
#num_rules label {
cursor: pointer;
}
#num_rules li {
color: #999;
padding: 3px 0;
background: #EFEFEF;
display: none;
}
#num_rules li.active {
color: #000;
background: #FFc;
display: block;
}
</style>
<div class="division1 tableform">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th><em class="c-red">*</em><{t}>规则名称:<{/t}></th>
<td><b><{$rule.title}></b>
</td>
</tr>
<tr>
<th><em class="c-red">*</em><{t}>生效时间:<{/t}></th>
<td>
<{assign var="opt" value=array('sendtime'=>'订单处理时间','createtime'=>'订单创建时间','pay_time'=>'订单付款时间')}>
<{$opt[$rule.time_type]}> &nbsp;
<{$rule.start_time|date_format:"%Y-%m-%d"}> ~
<{$rule.end_time|date_format:"%Y-%m-%d"}>
</td>
</tr>
<tr>
<th><em class="c-red">*</em><{t}>是否排他:<{/t}></th>
<td>
<{if $rule.is_exclude=='1'}>是<{/if}>
<{if $rule.is_exclude=='2'}>否<{/if}>
</td>
</tr>
<tr>
<th><{t}>状态:<{/t}></th>
<td>
<{if($rule.status)}>
启用
<{else}>
关闭
<{/if}>
</td>
</tr>
<tr>
<th><{t}>指定店铺:<{/t}></th>
<td>
<{if($rule.shop_ids)}>
<{$rule.shop_ids}>
<{else}>
<font color=gray>无限制</font>
<{/if}>
</td>
</tr>
<tr>
<th><{t}>指定区域:<{/t}></th>
<td>
<{if($rule.filter_arr.province[0] == '_ALL_')}>
<font color=gray>无限制</font>
<{else}>
<{foreach from=$rule.filter_arr.province item=item}>
<{$item}>
<{/foreach}>
<{/if}>
</td>
</tr>
</table>
<{foreach from=$rule_base value=val}>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 15px">
<{if $val.rule_bn}>
<tr>
<th><{t}>赠品规则:<{/t}></th>
<td><b><{$val.rule_bn}>-<{$val.title}></b>
</td>
</tr>
<{/if}>
<tr>
<th><{t}>订单类型:<{/t}></th>
<td>
<{if(!$val.filter_arr.order_types)}><font color=gray>所有订单</font><{/if}>
<{if 'normal'|in_array:$val.filter_arr.order_types}>普通订单&nbsp;<{/if}>
<{if 'presale'|in_array:$val.filter_arr.order_types}>预售订单&nbsp;<{/if}>
</td>
</tr>
<tr>
<th><{t}>支付状态:<{/t}></th>
<td>
<{if(!$val.filter_arr.pay_status)}><font color=gray>无限制</font><{/if}>
<{if $val.filter_arr.pay_status == '3'}>部分支付&nbsp;<{/if}>
<{if $val.filter_arr.pay_status == '1'}>已支付&nbsp;<{/if}>
</td>
</tr>
<tr>
<th><{t}>订单金额:<{/t}></th>
<td>
<{assign var="order_amount_type" value=array('0'=>'无限制','1'=>'单笔付款')}>
<{$order_amount_type[$val.filter_arr.order_amount.type]}>
<{if ($val.filter_arr.order_amount.type==1)}>
<{assign var="order_amount_sign" value=array('between'=>'介于','bthan'=>'大于等于')}>
<{$order_amount_sign[$val.filter_arr.order_amount.sign]}>
<{if($val.filter_arr.order_amount.sign=='between')}>
<{$val.filter_arr.order_amount.min_num}>元 ~
<{/if}>
<{$val.filter_arr.order_amount.max_num}>元
<{/if}>
</td>
</tr>
<tr>
<th><{t}>购买商品:<{/t}></th>
<td>
<{if $val.filter_arr.buy_goods.type == 0}>无限制<{/if}>
<{if $val.filter_arr.buy_goods.type == 1}>指定销售物料<{/if}>
<{if $val.filter_arr.buy_goods.type == 2}>指定基础物料<{/if}>
<{if $val.filter_arr.buy_goods.type != 0}>
<{if $val.filter_arr.buy_goods.buy_type =="any"}>购买了任意一个指定商品<{/if}>
<{if $val.filter_arr.buy_goods.buy_type =="all"}>购买了全部指定商品<{/if}>
<{if $val.filter_arr.buy_goods.buy_type =="none"}>排除购买的指定商品<{/if}>
计算方式:
<{if $val.filter_arr.buy_goods.calculate_type =="appoint"}>购买的指定商品之和<{/if}>
<{if $val.filter_arr.buy_goods.calculate_type =="all"}>购买的全部商品之和<{/if}>
<{if $val.filter_arr.buy_goods.calculate_type =="least"}>购买的指定商品最小值<{/if}>
指定物料编码:
<{foreach from=$val.filter_arr.buy_goods.goods_bn item=data key=k}>
<span style="color:blue"><{$data}></span>
<{/foreach}>
<{/if}>
</td>
</tr>
<tr>
<th><{t}>赠送数量:<{/t}></th>
<td>
<{if $val.filter_arr.buy_goods.num_rule == "fixed"}>
购买
<{if $val.filter_arr.buy_goods.rules_sign =="nequal"}>等于<{/if}>
<{if $val.filter_arr.buy_goods.rules_sign =="between"}>介于<{/if}>
<{if $val.filter_arr.buy_goods.rules_sign =="bthan"}>大于等于<{/if}>
<{$val.filter_arr.buy_goods.min_num}>
<{if $val.filter_arr.buy_goods.rules_sign=='between'}>
~ <{input id="buy_goods_max_num" type="text" name="filter_arr[buy_goods][max_num]" value=$val.filter_arr.buy_goods.max_num size="4" }>
<{/if}>
<{if $val.filter_arr.buy_goods.count_type =="num"}>件<{/if}>
<{if $val.filter_arr.buy_goods.count_type =="paid"}>元<{/if}>
<{if $val.filter_arr.buy_goods.count_type =="sku"}>种<{/if}>
商品时赠送,不累加
<{/if}>
<{if $val.filter_arr.buy_goods.num_rule == "auto"}>
每购买
<{$val.filter_arr.buy_goods.per_num}>
<{if $val.filter_arr.buy_goods.count_type =="num"}>件<{/if}>
<{if $val.filter_arr.buy_goods.count_type =="paid"}>元<{/if}>
<{if $val.filter_arr.buy_goods.count_type =="sku"}>种<{/if}>
赠送<{$val.filter_arr.buy_goods.send_suite}>组赠品,
每订单最多送<{$val.filter_arr.buy_goods.max_send_suite}>组
<{/if}>
</td>
</tr>
<tr>
<th><{t}>限量赠送:<{/t}></th>
<td>
<{if $val.filter_arr.buy_goods.limit_type==1}>
<{if $rule.filter_arr.buy_goods.limit_time_day == 'day'}> 每日 <{/if}>
符合条件的前 <{$val.filter_arr.buy_goods.limit_orders}> 笔订单赠送
<{else}>
<font color=gray>无限制</font>
<{/if}>
</td>
</tr>
<tr>
<th><{t}>每ID第一次购买赠送<{/t}></th>
<td><{if $val.filter_arr.buyer_nick eq '1'}>是<{else}>不限<{/if}></td>
</tr>
<tr>
<th><{t}>赠送品种:<{/t}></th>
<td>
<{if $val.filter_arr.send_goods.kinds =='2' }> 与购买相符的一个品种 <{elseif $val.filter_arr.send_goods.kinds =='1' }> 一个品种 <{else}> 所有选定品种 <{/if}>
</td>
</tr>
<tr>
<th><{t}>指定会员:<{/t}></th>
<td><{$val.filter_arr.member_uname}></td>
</tr>
<tr>
<th><{t}>指定商家备注:<{/t}></th>
<td><{$val.filter_arr.order_remark}></td>
</tr>
<tr>
<th><{t}>指定客户备注:<{/t}></th>
<td><{$val.filter_arr.member_remark}></td>
</tr>
<tr>
<th><{t}>赠品:<{/t}></th>
<td>
<table id="gift_list" class="gridlist">
<thead>
<tr>
<th>序号</th>
<th>商家编码</th>
<th>商品名称</th>
<th>成本价</th>
<th>赠送数量</th>
</tr>
</thead>
<tbody>
<{foreach from=$val['gifts'] item=data key=k}>
<tr>
<td><{$k+1}></td>
<td><{$data.gift_bn}></td>
<td><{$data.gift_name}></td>
<td><{$data.gift_price}></td>
<td><{$data.num}></td>
</tr>
<{/foreach}>
</tbody>
</table>
</td>
</tr>
</table>
<{/foreach}>
</div>