content.blade.php
4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<div class="page-content order-details">
<ul class="nav nav-tabs">
@if (isset($_REQUEST['tags']))
<li><a href="{{URL('erp_order')}}">ERP订单</a></li>
<li><a href="/details/{{$detail['order_id']}}?tags={{$_REQUEST['tags']}}">订单详情</a></li>
@else
<li><a href="{{URL('list')}}">平台订单</a></li>
<li><a href="{{URL('details', ['order_id'=>$detail['order_id']])}}">订单详情</a></li>
@endif
<li class="active"><a href="javascript:;">订单发票信息</a></li>
</ul>
<?php
$route = \Route::current()->getActionName();
$action_name = explode('@', $route)[1];
?>
<input type="hidden" class="action_type" value="{{$action_name}}">
<div class="tabs-box shipping-info">
<form action="{{URL('changeInvoice')}}" method="POST">
<input type="hidden" name="order_id" value="{{$detail['order_id']}}">
<table class="table table-bordered table-hover order-invoice">
<caption><h3>订单发票信息</h3></caption>
<tr>
<td width="10%">发票类型</td>
<td width="40%">
<select name="inv_type" id="inv_type" style="width:164px;">
<option value="1">不开发票</option>
<option value="2">普通发票</option>
<option value="3">增值税发票</option>
</select>
</td>
<td width="10%">开票状态</td>
<td width="40%">
<input type="hidden" name="invoice_status" value="{{$detail['invoice_status']}}">
<?php
switch ($detail['invoice_status']) {
case -1: echo '<span class="error">待确认</span>';break;
case 1: echo '<span class="error">已开票</span>';break;
case 2: echo '<span class="error">已发货</span>';break;
case 3: echo '<span class="error">已签收</span>';break;
}
?>
</td>
</tr>
<tr>
<td>发票抬头</td>
<td class="invoice_title">
<input type="text" name="tax_title" value="{{$detail['tax_title']}}">
</td>
<td class="add_tax">税务登记号</td>
<td class="add_tax">
<input type="text" name="tax_no" value="{{$detail['tax_no']}}">
</td>
</tr>
<tr class="add_tax">
<td>开户银行</td>
<td>
<input type="text" name="bank_name" value="{{$detail['bank_name']}}">
</td>
<td>银行卡号</td>
<td>
<input type="text" name="bank_account" value="{{$detail['bank_account']}}">
</td>
</tr>
<tr class="add_tax">
<td>公司电话</td>
<td>
<input type="text" name="company_phone" value="{{$detail['company_phone']}}">
</td>
<td>公司注册地址</td>
<td>
<textarea name="company_address" id="company_address" cols="30" rows="10" placeholder="请填写详细地址">{{$detail['company_address']}}</textarea>
</td>
</tr>
<tr>
<td colspan="4"><input type="submit" value="保存" class="btn btn-success"></td>
</tr>
</table>
</form>
</div>
</div>
<script>
var tags = "{{isset($_REQUEST['tags']) ? $_REQUEST['tags'] : ''}}";
$.lie.order.details();
var inv_type = '{{$detail['inv_type']}}';
$('#inv_type').val(inv_type);
</script>