|
|
@@ -74,7 +74,7 @@
|
|
|
<td>@{{ i+1 }}</td>
|
|
|
<td>
|
|
|
<span v-if="info.status==0">
|
|
|
- @can("入库管理-入库预约-预约管理-签到")<button class="btn btn-sm btn-outline-success" @click="signIn(i,0)" v-if="info.status==0 && info.cars[0].status==0">签到</button>@endcan<br>
|
|
|
+ @can("入库管理-入库预约-预约管理-签到")<button class="btn btn-sm btn-outline-success" @click="signIn(i,0)" v-if="info.status==0 && info.cars[0].status==0 && info.appointment_date==today">签到</button>@endcan<br>
|
|
|
<button type="button" @click="cancel(info.id,i)" class="btn btn-sm btn-outline-danger">取消预约</button><br>
|
|
|
<button type="button" @click="updateDeliveryDate(info,i)" class="btn btn-sm btn-outline-primary">修改预约</button>
|
|
|
</span>
|
|
|
@@ -202,6 +202,7 @@
|
|
|
periods:@json(\App\DeliveryAppointment::PERIOD),
|
|
|
printInfo:{},
|
|
|
infoShow:false,
|
|
|
+ today:"",
|
|
|
},
|
|
|
mounted(){
|
|
|
let status = [];
|
|
|
@@ -235,6 +236,12 @@
|
|
|
$(".up").slideUp();
|
|
|
$("#container").removeClass("d-none");
|
|
|
this._renderingForm();
|
|
|
+
|
|
|
+ let now = new Date();
|
|
|
+ let yy = now.getFullYear();
|
|
|
+ let mm = now.getMonth() + 1;
|
|
|
+ let dd = now.getDate();
|
|
|
+ this.today = yy+'-'+(mm<10 ? '0'+mm : mm)+'-'+(dd<10 ? '0'+dd : dd);
|
|
|
},
|
|
|
watch:{
|
|
|
checkData:{
|