|
|
@@ -1,6 +1,6 @@
|
|
|
<table class="table table-sm table-striped table-bordered table-hover card-body p-0 m-0">
|
|
|
<tr class="text-center">
|
|
|
- <th><input type="checkbox" class="form-check" name="selectAll" id="selectAll" @click="checkAll"></th>
|
|
|
+ <th><label for="selectAll"></label><input type="checkbox" class="form-check" name="selectAll" id="selectAll" @click="checkAll"></th>
|
|
|
<th>序号</th>
|
|
|
<th>预约时间</th>
|
|
|
<th>客户名称</th>
|
|
|
@@ -17,8 +17,10 @@
|
|
|
<th>创建时间</th>
|
|
|
</tr>
|
|
|
<template v-if="dischargeTasks.length > 0">
|
|
|
- <tr v-for="(dischargeTask,index) in dischargeTasks" :key="index" class="text-center" @click="selectTr===index+1?selectTr=0:selectTr=index+1" :class="selectTr===index+1?'focusing' : ''">
|
|
|
- <td><input type="checkbox" class="form-check" :value="dischargeTask.id" v-model="checkData"></td>
|
|
|
+ <tr v-for="(dischargeTask,index) in dischargeTasks" :key="index" class="text-center" @click.self="selectTr===index+1?selectTr=0:selectTr=index+1" :class="selectTr===index+1?'focusing' : ''">
|
|
|
+ <td><label>
|
|
|
+ <input type="checkbox" class="form-check" :value="dischargeTask.id" v-model="checkData">
|
|
|
+ </label></td>
|
|
|
<td>
|
|
|
@{{index+1}}
|
|
|
<template v-if="dischargeTask.status===0">
|
|
|
@@ -34,7 +36,10 @@
|
|
|
<span class="badge badge-pill badge-success">完成</span>
|
|
|
</template>
|
|
|
</td>
|
|
|
- <td>@{{ dischargeTask.income_at }}</td>
|
|
|
+ <td><template v-if="dischargeTask.status === 3">
|
|
|
+ <button class="btn btn-sm btn-success" style="opacity: 0.7" @click="showReceipt(dischargeTask)"
|
|
|
+ @mouseenter="dischargeTask.btnText = '查看'" @mouseleave="dischargeTask.btnText = '查'">@{{ dischargeTask.btnText }}</button>
|
|
|
+ </template>@{{ dischargeTask.income_at }}</td>
|
|
|
<td>@{{ dischargeTask.owner ? dischargeTask.owner.name : '' }}</td>
|
|
|
<td>
|
|
|
@can('人事管理-卸货-编辑')
|
|
|
@@ -101,6 +106,7 @@
|
|
|
<button class="btn btn-sm btn-outline-danger" @click="deleteTask(index,dischargeTask)">删除</button>
|
|
|
@endcan
|
|
|
</td>
|
|
|
+
|
|
|
<td>@{{ dischargeTask.created_at }}</td>
|
|
|
</tr>
|
|
|
</template>
|