Browse Source

陈列SKU图片识别

zhujindu 5 months ago
parent
commit
c950beb045

+ 9 - 4
src/views/week/dailyApproval.vue

@@ -392,15 +392,15 @@
               <van-icon size="28" :name="item.visitIMG1Flag ? 'arrow-up' : 'arrow-down'" />
             </div>
             <!-- 生动化陈列 sku -->
-            <template v-if="photoSkuImgSummaryeList && item.photoSkuImgSummaryeList.length">
+            <template v-if="item.photoSkuImgSummaryeList && item.photoSkuImgSummaryeList.length">
               <!-- <div class="skuNum">SKU识别:{{ item.num }}个</div> -->
               <el-table
-                :data="item.productDetail"
+                :data="item.photoSkuImgSummaryeList"
                 border
-                class="table-headermd table-headermdhome"
+                class="table-headermd"
                 style="width: 100%">
                 <el-table-column label="SKU名称" prop="name" align="center" />
-                <el-table-column label="数量" prop="cont" width="80px" align="center" />
+                <el-table-column label="数量" prop="count" width="80px" align="center" />
               </el-table>
             </template>
           </div>
@@ -884,4 +884,9 @@ export default {
   height: 75px;
   border-radius: 6px;
 }
+
+.table-headermd th.el-table__cell {
+  background-color: #1989fa;
+  color: #fff;
+}
 </style>

+ 7 - 2
src/views/week/dailyDetails.vue

@@ -385,10 +385,10 @@
               <van-icon size="28" :name="item.visitIMG1Flag ? 'arrow-up' : 'arrow-down'" />
             </div>
             <!-- 生动化陈列 sku -->
-            <template v-if="item.photoSkuImgSummaryeList">
+            <template v-if="item.photoSkuImgSummaryeList && item.photoSkuImgSummaryeList.length">
               <!-- <div class="skuNum">SKU识别:{{ item.num }}个</div> -->
               <el-table
-                :data="item.productDetail"
+                :data="item.photoSkuImgSummaryeList"
                 border
                 class="table-headermd table-headermdhome"
                 style="width: 100%">
@@ -775,4 +775,9 @@ export default {
     border-radius: 6px;
   }
 }
+
+.table-headermd th.el-table__cell {
+  background-color: #1989fa;
+  color: #fff;
+}
 </style>

+ 9 - 4
src/views/week/dailyHistoricalDetails.vue

@@ -391,15 +391,15 @@
               <van-icon size="28" :name="item.visitIMG1Flag ? 'arrow-up' : 'arrow-down'" />
             </div>
             <!-- 生动化陈列 sku -->
-            <template v-if="item.photoSkuImgSummaryeList">
+            <template v-if="item.photoSkuImgSummaryeList && item.photoSkuImgSummaryeList.length">
               <!-- <div class="skuNum">SKU识别:{{ item.num }}个</div> -->
               <el-table
-                :data="item.productDetail"
+                :data="item.photoSkuImgSummaryeList"
                 border
-                class="table-headermd table-headermdhome"
+                class="table-headermd"
                 style="width: 100%">
                 <el-table-column label="SKU名称" prop="name" align="center" />
-                <el-table-column label="数量" prop="cont" width="80px" align="center" />
+                <el-table-column label="数量" prop="count" width="80px" align="center" />
               </el-table>
             </template>
           </div>
@@ -954,4 +954,9 @@ export default {
   height: 75px;
   border-radius: 6px;
 }
+
+.table-headermd th.el-table__cell {
+  background-color: #1989fa;
+  color: #fff;
+}
 </style>