Commit 54a68cdd by 朱继来

添加活动名称

parent 188262ff
......@@ -349,6 +349,12 @@ function isLockCheck($order_id)
return $redis->get($key);
}
// 获取活动名称
function getTopicName($order_id)
{
return OrderExtendModel::where('order_id', $order_id)->value('topic_name');
}
Class OrderController extends Controller
{
......@@ -481,6 +487,7 @@ Class OrderController extends Controller
$map['order_remark'] = $request->input('order_remark', '');
$map['pur_time'] = $request->input('pur_time', '');
$map['delivery_place'] = $request->input('delivery_place', '');
$map['topic_name'] = $request->input('topic_name', '');
$perm = new PermController;
......
......@@ -98,18 +98,19 @@
order_type_extend = $('#order_type_extend').val() ? $('#order_type_extend').val() : '',
status_extend = $('#status_extend').val() ? $('#status_extend').val() : '',
is_manager_audit = $('#is_manager_audit').val() ? $('#is_manager_audit').val() : '';
order_remark = $('#order_remark').val() ? $('#order_remark').val() : '',
order_remark = $('#order_remark').val() ? $('#order_remark').val() : '',
topic_name = $('#topic_name').val() ? $('#topic_name').val() : '',
pur_time = $('input[name="pur_time"]').val();
if (url == '/export') {
if (type == 1) { // 联营
if (test_order.length) {
if (!order_contain && !order_sn && !erp_sn && !goods_name && !time_start && !time_end && !order_pay_type && !order_status && !shipping_name && !order_send && !order_source_pf && !order_source_adtag && !order_source_ptag && !delivery_place && !erp_order_id && !is_new && !is_new_order && !order_payment_mode && !test_order.is(':checked') && !is_manager_audit) {
if (!order_contain && !order_sn && !erp_sn && !goods_name && !time_start && !time_end && !order_pay_type && !order_status && !shipping_name && !order_send && !order_source_pf && !order_source_adtag && !order_source_ptag && !delivery_place && !erp_order_id && !is_new && !is_new_order && !order_payment_mode && !test_order.is(':checked') && !is_manager_audit && !topic_name) {
layer.msg('请选择筛选条件,再导出!');
return false;
}
} else {
if (!order_contain && !order_sn && !erp_sn && !goods_name && !time_start && !time_end && !order_pay_type && !order_status && !shipping_name && !order_send && !order_source_pf && !order_source_adtag && !order_source_ptag && !delivery_place && !erp_order_id && !is_new && !is_new_order && !order_payment_mode && !is_manager_audit) {
if (!order_contain && !order_sn && !erp_sn && !goods_name && !time_start && !time_end && !order_pay_type && !order_status && !shipping_name && !order_send && !order_source_pf && !order_source_adtag && !order_source_ptag && !delivery_place && !erp_order_id && !is_new && !is_new_order && !order_payment_mode && !is_manager_audit && !topic_name) {
layer.msg('请选择筛选条件,再导出!');
return false;
}
......@@ -253,6 +254,10 @@
listUrl += '&pur_time='+pur_time;
}
if (topic_name) {
listUrl += '&topic_name=' + topic_name;
}
if (url == '/export') {
listUrl += '&order_goods_type='+type;
}
......
......@@ -272,6 +272,13 @@
</dd>
</dl>
<dl>
<dt>活动名称:</dt>
<dd>
<input id="topic_name" type="text" name="topic_name" value="{{$condition['topic_name']}}" placeholder="请输入活动名称">
</dd>
</dl>
@if (in_array('check_test_order', $userPerms))
<dl>
<dt></dt>
......@@ -320,7 +327,8 @@
<!-- <th class="pl30">同步状态</th> -->
<th class="pl30">收货人</th>
@endif
<th class="pl30">下单时间</th>
<th class="pl30">活动名称</th>
<th class="pl30">下单时间</th>
<th class="pl30">操作</th>
</tr>
</thead>
......@@ -402,7 +410,8 @@
<td class="show-list"><?php echo App\Http\Controllers\getOrderAddress($v['order_id']); ?></td>
@endif
<td>{{App\Http\Controllers\getTopicName($v['order_id'])}}</td>
<td class="show-list">{{$username != 'vpadmin@ichunt.com' ? date('Y-m-d H:i:s', $v['create_time']) : date('Y-m-d', $v['create_time'])}}</td>
<td>
<style>
......
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