Przeglądaj źródła

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

wangyani 9 miesięcy temu
rodzic
commit
edb218fce7

BIN
src/assets/images/柜中.png


BIN
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">