|
|
@@ -21,6 +21,8 @@
|
|
|
<th>联系人</th>
|
|
|
<th>联系电话</th>
|
|
|
<th>公司备注</th>
|
|
|
+ <th>日志</th>
|
|
|
+ <th>合同</th>
|
|
|
<th>创建时间</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
@@ -33,6 +35,8 @@
|
|
|
<td>@{{ customer.contact_man }}</td>
|
|
|
<td>@{{ customer.phone }}</td>
|
|
|
<td>@{{ customer.comment }}</td>
|
|
|
+ <td><a href="#" @click="gotoLogs(customer.id)">链接</a></td>
|
|
|
+ <td>#</td>
|
|
|
<td>@{{ customer.created_at }}</td>
|
|
|
<td>
|
|
|
@can("客户-编辑")<a :href="'{{url('customer/customer')}}/'+customer.id+'/edit'"><button class="btn btn-sm btn-outline-info">改</button></a>@endcan
|
|
|
@@ -49,21 +53,7 @@
|
|
|
new Vue({
|
|
|
el:"#container",
|
|
|
data:{
|
|
|
- customers : [
|
|
|
- @foreach($customers as $customer)
|
|
|
- {
|
|
|
- id:"{{$customer->id}}",
|
|
|
- code:"{{$customer->code}}",
|
|
|
- name:"{{$customer->name}}",
|
|
|
- company_name:"{{$customer->company_name}}",
|
|
|
- invoice_address:"{{$customer->invoice_address}}",
|
|
|
- contact_man:"{{$customer->contact_man}}",
|
|
|
- phone:"{{$customer->phone}}",
|
|
|
- comment:"{{$customer->comment}}",
|
|
|
- created_at:"{{$customer->created_at}}",
|
|
|
- },
|
|
|
- @endforeach
|
|
|
- ],
|
|
|
+ customers : {!! $customers->toJson() !!}['data']
|
|
|
},
|
|
|
methods:{
|
|
|
destroy(id,index,name){
|
|
|
@@ -83,6 +73,10 @@
|
|
|
window.tempTip.show("网络错误:"+err);
|
|
|
})
|
|
|
})
|
|
|
+ },
|
|
|
+ gotoLogs(id){
|
|
|
+ let url = '{{ url("customer/customer/customer_logs") }}'+'?id='+id;
|
|
|
+ window.open(url);
|
|
|
}
|
|
|
},
|
|
|
});
|