|
|
@@ -237,7 +237,7 @@
|
|
|
<div class="deleteKuang" v-show="showDelete">
|
|
|
<div class="kuangContent">
|
|
|
<div class="title">删除信息</div>
|
|
|
- <div class="titleinfo">是否删除此信息</div>
|
|
|
+ <div class="titleinfo">是否删除该产品</div>
|
|
|
<!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
|
|
|
<div class="K_btn">
|
|
|
<div class="cancelBtn" @click="cancelFn()">取消</div>
|
|
|
@@ -245,6 +245,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="deleteKuang" v-show="showoffshelf">
|
|
|
+ <div class="kuangContent">
|
|
|
+ <div class="title">系统信息</div>
|
|
|
+ <div class="titleinfo">是否下架该产品</div>
|
|
|
+ <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
|
|
|
+ <div class="K_btn">
|
|
|
+ <div class="cancelBtn" @click="cancelFn()">取消</div>
|
|
|
+ <div class="answerBtn" @click="offshelfFn()">确定</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="none-state" v-show="StateNone">
|
|
|
<img src="/images/mobile/@2x/empty-collect.png">
|
|
|
<p>暂无数据</p>
|
|
|
@@ -274,7 +285,8 @@
|
|
|
timeoutCount: 0,
|
|
|
EnterprisePage: 1,
|
|
|
chooseItem: {},
|
|
|
- vendorlist: [] // 查看更多信息
|
|
|
+ vendorlist: [], // 查看更多信息
|
|
|
+ showoffshelf: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -283,10 +295,16 @@
|
|
|
this.$router.push('/mobile/center/vendor/productdetails')
|
|
|
},
|
|
|
offProduct(item) {
|
|
|
+ this.showoffshelf = true
|
|
|
+ this.shelfItem = item
|
|
|
+ },
|
|
|
+ offshelfFn() {
|
|
|
+ let item = this.shelfItem
|
|
|
this.$http.put(`/trade/goods/provider/off/shelf?batchCodes=${item.batchCode}`).then(res => {
|
|
|
if (res.data.success) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '下架成功'
|
|
|
+ this.showoffshelf = false
|
|
|
this.seekPage = 1
|
|
|
this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
|
|
|
this.GetEnterpriseListData = null
|
|
|
@@ -409,6 +427,7 @@
|
|
|
},
|
|
|
cancelFn: function() {
|
|
|
this.showDelete = false
|
|
|
+ this.showoffshelf = false
|
|
|
},
|
|
|
// 获取相对应的信息
|
|
|
getResourceProvidor: function() {
|