Commit 810c077c by 朱继来

temp

parent d7884a9a
......@@ -405,6 +405,7 @@ Class OrderController extends Controller
$map['order_sn'] = $request->input('order_sn', '');
$map['erp_sn'] = $request->input('erp_sn', '');
$map['goods_name'] = $request->input('goods_name', '');
$map['select_time_type'] = $request->input('select_time_type', '');
$map['time_start'] = $request->input('time_start', '');
$map['time_end'] = $request->input('time_end', '');
$map['order_status'] = $request->input('order_status', '');
......
......@@ -325,7 +325,7 @@
html += '<tr><th>阶梯</th><th>RMB价格</th>';
if (data.ac_type) {
if (data.ac_type && data.ac_type != 5) { // ac_type = 5 为新客价,目前后台不展示新客价
switch (data.ac_type) {
case 1: html += '<th>限时限量</th>'; break;
case 2: html += '<th>活动价</th>'; break;
......@@ -344,7 +344,7 @@
html += '<tr>';
if (i == 0) {
if (data.ac_type) {
if (data.ac_type && data.ac_type != 5) {
html += '<td><span class="goods-min-num">'+data.tiered[i]['purchases']+'</span></td><td>¥<span class="goods-min-price price-line">'+data.tiered[i]['price_cn']+'</span><td>¥<span>'+data.tiered[i]['price_ac']+'</span></td>';
} else {
html += '<td><span class="goods-min-num">'+data.tiered[i]['purchases']+'</span></td><td>¥<span class="goods-min-price">'+data.tiered[i]['price_cn']+'</span></td>';
......@@ -354,7 +354,7 @@
html += '<td>$<span class="goods-min-price-us">'+data.tiered[i]['price_us']+'</span></td>';
}
} else {
if (data.ac_type) {
if (data.ac_type && data.ac_type != 5) {
html += '<td><span>'+data.tiered[i]['purchases']+'</span></td><td>¥<span class="price-line">'+data.tiered[i]['price_cn']+'</span></td><td>¥<span>'+data.tiered[i]['price_ac']+'</span></td>';
} else {
html += '<td><span>'+data.tiered[i]['purchases']+'</span></td><td>¥<span>'+data.tiered[i]['price_cn']+'</span></td>';
......
......@@ -243,7 +243,7 @@
html += '<tr><th>阶梯</th><th>RMB价格</th>';
if (data.ac_type) {
if (data.ac_type && data.ac_type != 5) { // ac_type = 5 为新客价,目前后台不展示新客价
switch (data.ac_type) {
case 1: html += '<th>限时限量</th>'; break;
case 2: html += '<th>活动价</th>'; break;
......@@ -262,7 +262,7 @@
html += '<tr>';
if (i == 0) {
if (data.ac_type) {
if (data.ac_type && data.ac_type != 5) {
html += '<td><span class="goods-min-num">'+data.tiered[i]['purchases']+'</span></td><td>¥<span class="goods-min-price price-line">'+data.tiered[i]['price_cn']+'</span><td>¥<span>'+data.tiered[i]['price_ac']+'</span></td>';
} else {
html += '<td><span class="goods-min-num">'+data.tiered[i]['purchases']+'</span></td><td>¥<span class="goods-min-price">'+data.tiered[i]['price_cn']+'</span></td>';
......@@ -272,7 +272,7 @@
html += '<td>$<span class="goods-min-price-us">'+data.tiered[i]['price_us']+'</span></td>';
}
} else {
if (data.ac_type) {
if (data.ac_type && data.ac_type != 5) {
html += '<td><span>'+data.tiered[i]['purchases']+'</span></td><td>¥<span class="price-line">'+data.tiered[i]['price_cn']+'</span></td><td>¥<span>'+data.tiered[i]['price_ac']+'</span></td>';
} else {
html += '<td><span>'+data.tiered[i]['purchases']+'</span></td><td>¥<span>'+data.tiered[i]['price_cn']+'</span></td>';
......
......@@ -77,6 +77,7 @@
order_sn = $('input[name=order_sn]').val(),
erp_sn = $('input[name=erp_sn]').val(),
goods_name = $('input[name=goods_name]').val(),
select_time_type = $('#select_time_type').data('default'),
time_start = $('input[name="time_start"]').val(),
time_end = $('input[name="time_end"]').val(),
// order_type_a = $('#order_type_a').data('default'),
......@@ -144,6 +145,10 @@
listUrl += '&goods_name=' + specialStr(goods_name);
}
if (select_time_type) {
listUrl += '&select_time_type=' + select_time_type;
}
if(time_start){
time_start = Date.parse(time_start) / 1000;
......
......@@ -44,11 +44,22 @@
</dd>
</dl>
<dl>
<dt>创建日期: </dt>
<dd style="width:auto !important;">
<input type="text" name="time_start" value="{{ !empty($condition['time_start']) ? date('Y/m/d', $condition['time_start']) : '' }}" class="Wdate " onfocus="WdatePicker({dateFmt:'yyyy/MM/dd'})" placeholder="开始时间" autocomplete="off" />
<dd style="width: 110px;">
<div class="droplist" data-default="{{$condition['select_time_type']}}" id="select_time_type" name="select_time_type">
<ul class="dropdown-menu">
<li class="select_time_type_tab active" data-val="">创建日期</li>
<li class="select_time_type_tab" data-val="1">审核日期</li>
<li class="select_time_type_tab" data-val="2">收款日期</li>
<li class="select_time_type_tab" data-val="3">发货日期</li>
<li class="select_time_type_tab" data-val="4">订单完成</li>
</ul>
</div>
</dd>
<dd style="width:auto !important;">
<!-- <dt>创建日期: </dt> -->
<dd style="width: 120px;">
<input type="text" name="time_start" value="{{ !empty($condition['time_start']) ? date('Y/m/d', $condition['time_start']) : '' }}" class="Wdate " onfocus="WdatePicker({dateFmt:'yyyy/MM/dd'})" placeholder="开始时间" autocomplete="off" style="width: 140px;" />
</dd>
<dd style="width: 120px; margin-left: 20px;">
<input type="text" name="time_end" value="{{ !empty($condition['time_end']) ? date('Y/m/d', $condition['time_end']) : '' }}" class="Wdate " onfocus="WdatePicker({dateFmt:'yyyy/MM/dd'})" placeholder="结束时间" autocomplete="off" />
</dd>
</dl>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment