浏览代码

预定-过期超时删除

zhuli 3 周之前
父节点
当前提交
d3d92e1edc
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/views/appoinmentManagement/appoinmentInfo.vue

+ 8 - 0
src/views/appoinmentManagement/appoinmentInfo.vue

@@ -65,6 +65,14 @@
           >
             <el-button link type="primary" @click="handleDelete(scope.row)"> 删除 </el-button>
           </template>
+          <template
+            v-else-if="
+              (isOrderStatus(scope.row, 2) || isOrderStatus(scope.row, 7) || isOrderStatus(scope.row, 3)) &&
+              !isMoreThanThreeHoursAfterEnd(scope.row)
+            "
+          >
+            <el-button link type="primary" @click="handleDelete(scope.row)"> 删除 </el-button>
+          </template>
           <template v-else-if="isOrderStatus(scope.row, 7) && !isMoreThanThreeHoursAfterEnd(scope.row)">
             <el-button link type="primary" @click="handleDelete(scope.row)"> 删除 </el-button>
           </template>