Commit d38893df by 朱继来

temp

parent ccabf4ef
......@@ -488,6 +488,42 @@ Class OrderController extends Controller
return $info;
}
// 订单其他信息
public function orderOtherInfoLoading(Request $request)
{
// 页面参数
$map['order_type'] = $request->input('order_type', '');
$map['order_contain'] = $request->input('order_contain', '');
$map['time_start'] = $request->input('time_start', '');
$map['time_end'] = $request->input('time_end', '');
$map['order_status'] = $request->input('order_status', '');
$map['sale_type'] = $request->input('sale_type', '');
$map['shipping_name'] = $request->input('shipping_name', '');
$map['order_send'] = $request->input('order_send', '');
$map['test_order'] = $request->input('test_order', '');
$map['order_pay_type'] = $request->input('order_pay_type', '');
$map['order_type_a'] = $request->input('order_type_a', '');
$map['order_source'] = $request->input('order_source', '');
$map['order_source_pf'] = $request->input('order_source_pf', '');
$map['order_source_adtag'] = $request->input('order_source_adtag', '');
$map['order_source_ptag'] = $request->input('order_source_ptag', '');
$map['erp_order_id'] = $request->input('erp_order_id', '');
$map['order_payment_mode'] = $request->input('order_payment_mode', '');
$map['order_invoice_status']= $request->input('order_invoice_status', '');
$map['is_new'] = $request->input('is_new', '');
$map['is_new_order'] = $request->input('is_new_order', '');
$url = Config('website.api_domain').'order/getOrderOtherInfo';
$data['k1'] = time();
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
$data['map'] = $map;
echo '<pre>';
print_r(curlApi($url, $data));die;
$response = json_decode(curlApi($url, $data), true);
}
// erp订单
public function erpOrder(Request $request)
{
......
......@@ -33,6 +33,7 @@ Route::pattern('roleId', '[0-9]+');
Route::group(['middleware' => 'web'], function () {
Route::get('/', 'OrderController@orderList');
Route::get('/list', 'OrderController@orderList');
Route::post('/ajax/orderOtherInfoLoading', 'OrderController@orderOtherInfoLoading');
Route::get('/erp_order', 'OrderController@erpOrder');
Route::get('/export', 'OrderController@export');
......
......@@ -323,9 +323,50 @@
location.href = listUrl;
})
// 订单其他信息
this.orderOtherInfo();
// 填写取消原因
this.cancelorder();
},
// 订单其他信息:已付款, 下单用户数, 付款用户数, 金额
orderOtherInfo:function() {
var datax = {
order_type : $('#order_type').data('default'),
order_contain : $('input[name=order_contain]').val(),
time_start : $('input[name="time_start"]').val(),
time_end : $('input[name="time_end"]').val(),
order_pay_type : $('#order_pay_type').val() ? $('#order_pay_type').val() : '',
order_status : $('#order_status').val() ? $('#order_status').val() : '',
sale_type : $('#sale_type').val() ? $('#sale_type').val() : '',
shipping_name : $('#shipping_name').val() ? $('#shipping_name').val() : '',
order_send : $('#order_send').val(),
order_source_pf : $('#order_source_pf').val() ? $('#order_source_pf').val() : '',
order_invoice_status : $('#order_invoice_status').val() ? $('#order_invoice_status').val() : '',
order_source_adtag : $('input[name="order_source_adtag"]').val(),
order_source_ptag : $('input[name="order_source_ptag"]').val(),
erp_order_id : $('#erp_order_id').val() ? $('#erp_order_id').val() : '',
test_order : $('input[name=test_order]').is(':checked') ? 1 : 0,
is_new : $('#is_new').val() ? $('#is_new').val() : '',
order_payment_mode : $('#order_payment_mode').val() ? $('#order_payment_mode').val() : '',
is_new_order : $('#is_new_order').val() ? $('#is_new_order').val() : '',
};
console.log(datax)
$.ajax({
type: "POST",
url: '/ajax/orderOtherInfoLoading',
data: datax,
dataType: "json",
success: function(resp){
if (resp.errcode != 0) {
layer.msg(resp.errmsg);
return false;
}
},
})
},
// 取消订单弹框
cancelorder:function () {
// 填写订单取消原因
......
......@@ -468,6 +468,7 @@
<span class="error">共有{{$noreason_count}}单已取消订单未填写取消原因</span>
@endif
</span>
<span class="show-other-info"></span>
@endif
<?php echo $page; ?>
......
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