Przeglądaj źródła

空盘头和0库存的不能点击

liling 6 dni temu
rodzic
commit
cb4544ae0f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/views/house/pantou/index.vue

+ 1 - 1
src/views/house/pantou/index.vue

@@ -18,7 +18,7 @@
                 <el-table-column label="种类" align="center" prop="name" fixed></el-table-column>
                 <el-table-column label="当前库存" align="center" prop="curr">
                     <template  #default="scope">
-                        <a javascript="void(0)" @click="currDetail(scope.row)" style="color: cornflowerblue;text-decoration: underline;">{{ scope.row.curr }}</a>
+                        <a v-if="scope.row.name.indexOf('空盘头')==-1&&scope.row.curr>0" javascript="void(0)" @click="currDetail(scope.row)" style="color: cornflowerblue;text-decoration: underline;">{{ scope.row.curr }}</a>
                     </template>
                 </el-table-column>
                 <el-table-column label="入库数量" align="center" prop="in"></el-table-column>