diff --git a/src/views/product/productExamine/index.vue b/src/views/product/productExamine/index.vue
index d9173b6..4670504 100644
--- a/src/views/product/productExamine/index.vue
+++ b/src/views/product/productExamine/index.vue
@@ -3,10 +3,12 @@
-
+
-
+
@@ -17,74 +19,86 @@
-
+
-
-
-
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
-
-
+
+
- 批量审核
- 批量强制下架
- 批量不显示
- 批量显示
- 批量设置标签
- 批量设置推荐
+ 批量审核
+ 批量强制下架
+ 批量不显示
+ 批量显示
+ 批量设置标签
+ 批量设置推荐
-
-
+
+
- {{ props.row.storeCategory?props.row.storeCategory.cate_name:'-' }}
+ {{ props.row.storeCategory ? props.row.storeCategory.cate_name : '-' }}
- {{ item.category ? item.category.cate_name : '-' }}
+ {{ item.category ?
+ item.category.cate_name : '-' }}
-
- {{ props.row.brand ? props.row.brand.brand_name: '其它' }}
+ {{ props.row.brand ? props.row.brand.brand_name : '其它' }}
{{ props.row.ot_price | filterEmpty }}
@@ -105,13 +119,15 @@
-
+
- {{ scope.row.spec_type==0 ? '[单规格]' : '[多规格]' }}{{ scope.row.store_name || '-' }}
+ {{ scope.row.spec_type == 0 ? '[单规格]' :
+ '[多规格]' }}{{ scope.row.store_name || '-' }}
@@ -131,7 +147,8 @@
-
+
@@ -142,34 +159,44 @@
详情
- 审核
+ 审核
预览
- 更多
+ 更多
- 编辑商品
+ 编辑商品
-
+
查看评价
- 编辑标签
- 已售数量
- 强制下架
+ 编辑标签
+ 已售数量
+ 强制下架
-
+
-
-
+
+
@@ -179,7 +206,8 @@
- {{ item.name }}
+ {{ item.name
+ }}
@@ -195,48 +223,35 @@
-
+
-
+
-
-
+
+
-
+
-
- {{ item.name }}
+
+ {{ item.name
+ }}
@@ -245,13 +260,8 @@
-
+
@@ -259,7 +269,7 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
+// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
@@ -422,8 +432,15 @@ export default {
this.getLabelLst()
},
methods: {
+
+ tableRowClassName({ row, rowIndex }) {
+ if (this.product_id == row.product_id) {
+ return "success-row"
+ }
+ },
+
/**重置 */
- searchReset(){
+ searchReset() {
this.$refs.searchForm.resetFields()
this.getList(1)
},
@@ -446,6 +463,7 @@ export default {
},
// 预览
handlePreview(id) {
+ this.product_id = id;
this.previewVisible = true
this.goodsId = id
this.previewKey = ''
@@ -490,13 +508,13 @@ export default {
}).catch(res => {
this.$message.error(res.message)
}) :
- updatetProductLabel(this.product_id, this.labelForm).then(({ message }) => {
- this.$message.success(message)
- this.getList('')
- this.dialogLabel = false
- }).catch(res => {
- this.$message.error(res.message)
- })
+ updatetProductLabel(this.product_id, this.labelForm).then(({ message }) => {
+ this.$message.success(message)
+ this.getList('')
+ this.dialogLabel = false
+ }).catch(res => {
+ this.$message.error(res.message)
+ })
} else {
return
}
@@ -532,10 +550,10 @@ export default {
rank: info.rank,
star: info.star
}
- if(info.is_benefit === 1) this.checkboxGroup.push('is_benefit')
- if(info.is_hot === 1) this.checkboxGroup.push('is_hot')
- if(info.is_best === 1) this.checkboxGroup.push('is_best')
- if(info.is_new === 1) this.checkboxGroup.push('is_new')
+ if (info.is_benefit === 1) this.checkboxGroup.push('is_benefit')
+ if (info.is_hot === 1) this.checkboxGroup.push('is_hot')
+ if (info.is_best === 1) this.checkboxGroup.push('is_best')
+ if (info.is_new === 1) this.checkboxGroup.push('is_new')
this.fullscreenLoading = false
}).catch(res => {
this.$message.error(res.message)
@@ -543,6 +561,7 @@ export default {
})
},
onEdit(id) {
+ this.product_id = id;
this.productId = id
this.getInfo(id)
this.dialogVisible = true
@@ -555,7 +574,7 @@ export default {
handleSubmit(name) {
console.log(this.formValidate)
this.$refs[name].validate((valid) => {
- if(valid) {
+ if (valid) {
productUpdateApi(this.productId, this.formValidate).then(async res => {
this.fullscreenLoading = false
this.$message.success(res.message)
@@ -589,7 +608,7 @@ export default {
},
// 批量下架
batchOff() {
- if(this.multipleSelection.length === 0) return this.$message.warning('请先选择商品')
+ if (this.multipleSelection.length === 0) return this.$message.warning('请先选择商品')
this.toOff(this.OffId)
},
// 批量设置标签
@@ -603,15 +622,15 @@ export default {
},
// 批量显示不显示
batchShow(status) {
- if(this.multipleSelection.length === 0) return this.$message.warning('请先选择商品')
- let data = {status: status,ids: this.OffId}
- batchesOnOffApi(data).then(res => {
+ if (this.multipleSelection.length === 0) return this.$message.warning('请先选择商品')
+ let data = { status: status, ids: this.OffId }
+ batchesOnOffApi(data).then(res => {
this.$message.success(res.message)
this.getList('')
})
- .catch(res => {
- this.$message.error(res.message)
- })
+ .catch(res => {
+ this.$message.error(res.message)
+ })
},
// 下架
toOff(id) {
@@ -622,7 +641,7 @@ export default {
inputType: 'textarea',
inputPlaceholder: '请输入强制下架原因',
inputValidator: (value) => {
- if(!value) {
+ if (!value) {
return '请输入强制下架原因'
}
}
@@ -667,7 +686,7 @@ export default {
})
},
batch() {
- if(this.multipleSelection.length === 0) return this.$message.warning('请先选择商品')
+ if (this.multipleSelection.length === 0) return this.$message.warning('请先选择商品')
this.$refs.infoFrom.dialogVisible = true
this.isShow = false
},
@@ -680,6 +699,7 @@ export default {
this.OffId = data
},
toExamine(id) {
+ this.product_id = id;
this.$refs.infoFrom.dialogVisible = true
this.isShow = true
this.$refs.infoFrom.getInfo(id)
@@ -718,15 +738,18 @@ export default {