浏览代码

improve: 客服库存

From-wh 2 年之前
父节点
当前提交
8834e96877
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 1
      template/admin/src/pages/kefu/appChat/index.vue
  2. 1 4
      template/admin/src/pages/kefu/pc/index.vue

+ 4 - 1
template/admin/src/pages/kefu/appChat/index.vue

@@ -49,7 +49,10 @@
                           </div>
                           </div>
                           <div class="attr">
                           <div class="attr">
                             <span>库存:{{ item.productInfo.stock }}</span>
                             <span>库存:{{ item.productInfo.stock }}</span>
-                            <span>销量:{{ item.productInfo.sales }}</span>
+                            <span>销量:{{
+                                parseInt(item.productInfo.sales) +
+                                parseInt(item.productInfo.ficti ? item.productInfo.ficti : 0)
+                              }}</span>
                           </div>
                           </div>
                           <div class="group">
                           <div class="group">
                             <div class="money">¥{{ item.productInfo.price }}</div>
                             <div class="money">¥{{ item.productInfo.price }}</div>

+ 1 - 4
template/admin/src/pages/kefu/pc/index.vue

@@ -52,10 +52,7 @@
                               {{ item.productInfo.store_name }}
                               {{ item.productInfo.store_name }}
                             </div>
                             </div>
                             <div class="sku">
                             <div class="sku">
-                              库存:{{ item.productInfo.stock }} 销量:{{
-                                parseInt(item.productInfo.sales) +
-                                parseInt(item.productInfo.ficti ? item.productInfo.ficti : 0)
-                              }}
+                              库存:{{ item.productInfo.stock }} 销量:{{ item.productInfo.sales }}
                             </div>
                             </div>
                             <div class="price-box">
                             <div class="price-box">
                               <div class="num">¥ {{ item.productInfo.price }}</div>
                               <div class="num">¥ {{ item.productInfo.price }}</div>