瀏覽代碼

物资清单列表是否在柜中展示修改为图标

wangyani 9 月之前
父節點
當前提交
edb218fce7
共有 3 個文件被更改,包括 15 次插入7 次删除
  1. 二進制
      src/assets/images/柜中.png
  2. 二進制
      src/assets/images/柜外.png
  3. 15 7
      src/views/mes/material/materialinformation/index.vue

二進制
src/assets/images/柜中.png


二進制
src/assets/images/柜外.png


+ 15 - 7
src/views/mes/material/materialinformation/index.vue

@@ -235,11 +235,7 @@
         align="center"
         prop="propertiesProperty"
       />
-      <el-table-column
-        label="物资规格"
-        align="center"
-        prop="propertiesValue"
-      />
+      <el-table-column label="物资规格" align="center" prop="propertiesValue" />
       <el-table-column label="物资图片" prop="materialsTypePicture" width="90">
         <template slot-scope="scope">
           <div class="img-box" v-if="scope.row.materialsTypePicture">
@@ -275,8 +271,20 @@
           <!--            :options="dict.type.material_status"-->
           <!--            :value="scope.row.loanState"-->
           <!--          />-->
-          <span v-if="scope.row.loanState == '0'">-</span>
-          <span v-if="scope.row.loanState == '1'">√</span>
+          <img
+            src="@/assets/images/柜中.png"
+            v-if="scope.row.loanState == '1'"
+            alt=""
+            style="width: 30px; height: 30px"
+          />
+          <img
+            src="@/assets/images/柜外.png"
+            v-if="scope.row.loanState == '0'"
+            alt=""
+            style="width: 30px; height: 30px"
+          />
+          <!-- <span v-if="scope.row.loanState == '0'">-</span>
+          <span v-if="scope.row.loanState == '1'">√</span> -->
         </template>
       </el-table-column>
       <el-table-column label="状态" align="center" prop="status">