Explorar o código

Finish Hotfix-mo-40

莫绍宝 %!s(int64=3) %!d(string=hai) anos
pai
achega
ed54f4b514
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/views/supply/reserve/reserve_list.vue

+ 5 - 1
src/views/supply/reserve/reserve_list.vue

@@ -123,7 +123,11 @@
               <template slot-scope="scope">
                 <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles)">编辑</el-button>
                 <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
-                <el-popconfirm style="margin-left: 10px;" title="确定关闭吗?" @onConfirm="handleClose(scope.row.itemId)" v-if="$checkBtnRole('examine', $route.meta.roles)">
+                <el-popconfirm
+                  style="margin-left: 10px;" 
+                  title="确定关闭吗?" 
+                  @onConfirm="handleClose(scope.row.itemId)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.status === 1">
                   <el-button slot="reference" type="text">关闭</el-button>
                 </el-popconfirm>
               </template>