|
@@ -53,9 +53,11 @@
|
|
<span>订单状态: {{$status[$data->order_status]}}@if($data->order_status == 2) <a class = "a_btn add m-l-30" href="javascript:void(0)">接单</a> @endif </span>
|
|
<span>订单状态: {{$status[$data->order_status]}}@if($data->order_status == 2) <a class = "a_btn add m-l-30" href="javascript:void(0)">接单</a> @endif </span>
|
|
<span>病情描述: {{$data->orderPatient->symptoms}}</span>
|
|
<span>病情描述: {{$data->orderPatient->symptoms}}</span>
|
|
<span>图片: </span>
|
|
<span>图片: </span>
|
|
|
|
+ @if(!empty($data->orderPatient) && !empty($ddata->orderPatient->medical_imgs ))
|
|
@foreach($data->orderPatient->medical_imgs as $img)
|
|
@foreach($data->orderPatient->medical_imgs as $img)
|
|
<img class="imgs" src="{{$img}}" alt="">
|
|
<img class="imgs" src="{{$img}}" alt="">
|
|
@endforeach
|
|
@endforeach
|
|
|
|
+ @endif
|
|
@else
|
|
@else
|
|
<span>患者:</span>
|
|
<span>患者:</span>
|
|
<span>年龄:</span>
|
|
<span>年龄:</span>
|
|
@@ -73,13 +75,14 @@
|
|
$('.complet').click(function () {
|
|
$('.complet').click(function () {
|
|
$.post('/cdms/api/update_order',{'id':id,'status':4},function (res) {
|
|
$.post('/cdms/api/update_order',{'id':id,'status':4},function (res) {
|
|
console.log(res)
|
|
console.log(res)
|
|
|
|
+ console.log(typeof(res.code))
|
|
if(res.code == 200){
|
|
if(res.code == 200){
|
|
alert('操作成功')
|
|
alert('操作成功')
|
|
location.reload();
|
|
location.reload();
|
|
} else{
|
|
} else{
|
|
alert('操作失敗')
|
|
alert('操作失敗')
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ },'json');
|
|
})
|
|
})
|
|
$('.add').click(function () {
|
|
$('.add').click(function () {
|
|
$.post('/cdms/api/update_order',{'id':id,'status':3},function (res) {
|
|
$.post('/cdms/api/update_order',{'id':id,'status':3},function (res) {
|
|
@@ -89,6 +92,6 @@
|
|
} else{
|
|
} else{
|
|
alert('接单失敗')
|
|
alert('接单失敗')
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ },'json');
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|