Commit c2eb1c6a by 朱继来

自营对账隐藏流水号

parent ac39c42f
......@@ -1387,13 +1387,13 @@ Class OrderController extends Controller
{
if ($request->isMethod('post')) {
$order_id = $request->input('order_id', '');
$serial_number = $request->input('serial_number', '');
// $serial_number = $request->input('serial_number', '');
$operator_id = $request->user->userId;
$url = Config('website.api_domain').'order/selfcheckpay';
$data['order_id'] = $order_id;
$data['serial_number'] = $serial_number;
// $data['serial_number'] = $serial_number;
$data['operator_id'] = $operator_id;
$data['k1'] = time();
......@@ -1410,6 +1410,11 @@ Class OrderController extends Controller
}
$info = $this->orderDetail($request, $id);
if (!$request->input('tags') && $request->input('tags') != 'self') { // 自营订单页面
return redirect('/self_order');
}
$this->pageHeader($request, $info, '自营对账', ["title" => '自营对账', "href" => '#']);
$this->selfOtherData($info, $id);
......
......@@ -1668,12 +1668,12 @@
// 自营对账
$('.self-sure-pay').click(function(){
var order_id = $('#order_id').val();
var serial_number = $('input[name="serial_number"]').val();
// var serial_number = $('input[name="serial_number"]').val();
if (serial_number.length == 0) {
layer.alert('请输入流水号');
return false;
}
// if (serial_number.length == 0) {
// layer.alert('请输入流水号');
// return false;
// }
layer.open({
title: '收款确认',
......@@ -1682,7 +1682,8 @@
btn1:function(){
$.ajax({
url:'/self_check_pay/'+order_id,
data: {order_id : order_id, serial_number : serial_number},
// data: {order_id : order_id, serial_number : serial_number},
data: {order_id : order_id},
type:'post',
dataType: 'json',
success:function(resp){
......
<p style="margin-left: 5px;">对账操作</p>
<div class="tabs-box">
<!-- 判断订单类型 1.全款,2.预付款 -->
<?php
if ($order_info['status'] == 4) {
echo '<p>订单对账正常</p>
<p class="error">订单总金额:'.$order_info['order_amount'].'</p>
<p>流水号:'.$order_pay_log[0]['serial_number'].'</p>';
} else {
$serial_number = isset($order_pay_log[0]['serial_number']) ? $order_pay_log[0]['serial_number'] : '';
echo '<p class="error">订单总金额:'.$order_info['order_amount'].'</p>
<p> 流水号:
<input style="width: 200px;" type="text" name="serial_number" value="'.$serial_number.'">
@if ($order_info['status'] == 4)
<p>订单对账正常</p>
<p class="error">订单总金额:{{ $order_info['order_amount'] }}</p>
<!-- <p>流水号:{{ $order_pay_log[0]['serial_number'] }}</p> -->
@else
<p class="error">订单总金额:{{ $order_info['order_amount'] }}</p>
<!-- <p> 流水号:
<input style="width: 200px;" type="text" name="serial_number" value="{{ isset($order_pay_log[0]['serial_number']) ? $order_pay_log[0]['serial_number'] : '' }}">
<span style="color:orange;">请录入流水号,流水号为英文、数字</span>
</p>
<p style="margin-top: 20px;"><a class="btn btn-default self-sure-pay">确认收款</a></p>';
}
?>
</p> -->
<p style="margin-top: 20px;"><a class="btn btn-default self-sure-pay">确认收款</a></p>
@endif
</div>
<div class="hide" id="sure-pay">
......
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