|
|
@@ -40,6 +40,13 @@
|
|
|
<span class="reject " v-if="item.productStatus =='3'" style="color:#F55D65 ;">未通过</span>
|
|
|
<span class="line"></span>
|
|
|
<span v-if="item.saleStartDate">{{item.saleStartDate.slice(0,10)}}-{{item.saleEndDate.slice(0,10)}}</span>
|
|
|
+ <view class="error insufficient" v-if="item.sellingOvertime && item.stockQuantity ==0">
|
|
|
+ 库存不足
|
|
|
+ </view>
|
|
|
+ <view class="error overtime" v-if="item.sellingOvertime && item.stockQuantity >0">
|
|
|
+ 售卖超时
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
<!-- <span>已售:{{item.num}}</span>
|
|
|
<span>库存:{{item.inventory}}</span> -->
|
|
|
@@ -216,13 +223,13 @@
|
|
|
productStatus: status
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
let that = this
|
|
|
uni.showModal({
|
|
|
title: '确定下架商品?',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
-
|
|
|
+
|
|
|
that.$http.post("/app/product/shelves", shelves)
|
|
|
.then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
@@ -233,7 +240,7 @@
|
|
|
duration: 2000,
|
|
|
icon: 'none'
|
|
|
});
|
|
|
- that.$router.go(0)
|
|
|
+ that.$router.go(0)
|
|
|
that.isManage = false
|
|
|
that.isAll = false
|
|
|
}
|
|
|
@@ -326,7 +333,7 @@
|
|
|
duration: 2000,
|
|
|
icon: 'none'
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
@@ -538,6 +545,7 @@
|
|
|
.status {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ position: relative;
|
|
|
|
|
|
.round {
|
|
|
display: flex;
|
|
|
@@ -608,6 +616,29 @@
|
|
|
background: #d9d9d9;
|
|
|
margin: 0 12rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .error {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ width: 140rpx;
|
|
|
+ height: 53rpx;
|
|
|
+
|
|
|
+ border-radius: 4rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .overtime {
|
|
|
+ background: #FFF2E8;
|
|
|
+ color: #FF7918;
|
|
|
+ }
|
|
|
+
|
|
|
+ .insufficient {
|
|
|
+ background: #FFE8E8;
|
|
|
+ color: #FF1818;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.details {
|