Commit f8b46852 by 王志慧

fixed

1 parent ac640028
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="goodsImage" slot-scope="scope"> <template slot="goodsImage" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block"> <el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.goodsImage" /> <img class="table-popover-img" :src="scope.scope.goodsImage" />
...@@ -39,7 +38,6 @@ ...@@ -39,7 +38,6 @@
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import shareDialog from '../productGroup/components/shareDialog' import shareDialog from '../productGroup/components/shareDialog'
import { truncate } from 'fs'
export default { export default {
name: 'productGroup', name: 'productGroup',
data() { data() {
...@@ -194,7 +192,7 @@ export default { ...@@ -194,7 +192,7 @@ export default {
fn: '自建查看' fn: '自建查看'
}, },
condition: row => { condition: row => {
return row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3|| row.goodsSource==4) return row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3 || row.goodsSource == 4)
}, },
listeners: { listeners: {
click: row => this.handleEdit(3, row) click: row => this.handleEdit(3, row)
...@@ -337,9 +335,10 @@ export default { ...@@ -337,9 +335,10 @@ export default {
{ {
confId: '3', confId: '3',
confName: '总部商品' confName: '总部商品'
},{ },
confId:'4', {
confName:'配置升级商品' confId: '4',
confName: '配置升级商品'
} }
] ]
} }
...@@ -349,8 +348,7 @@ export default { ...@@ -349,8 +348,7 @@ export default {
components: { components: {
shareDialog shareDialog
}, },
created() { created() {},
},
mounted() { mounted() {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
...@@ -526,7 +524,7 @@ export default { ...@@ -526,7 +524,7 @@ export default {
this.$refs.proGroupRef.tableHeightValues = '' this.$refs.proGroupRef.tableHeightValues = ''
this.$refs.proGroupRef.data.forEach(item => { this.$refs.proGroupRef.data.forEach(item => {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList&&item.specificationDetailList.length > 1) { if (item.specificationDetailList && item.specificationDetailList.length > 1) {
let retailPriceList = JSON.parse(JSON.stringify(item.specificationDetailList)) let retailPriceList = JSON.parse(JSON.stringify(item.specificationDetailList))
retailPriceList.sort((a, b) => { retailPriceList.sort((a, b) => {
return a.retailPrice - b.retailPrice return a.retailPrice - b.retailPrice
...@@ -542,7 +540,7 @@ export default { ...@@ -542,7 +540,7 @@ export default {
item.retailPrice = minRatilPrice == maxRatilPrice ? minRatilPrice.toFixed(2) : minRatilPrice.toFixed(2) + '-' + maxRatilPrice.toFixed(2) item.retailPrice = minRatilPrice == maxRatilPrice ? minRatilPrice.toFixed(2) : minRatilPrice.toFixed(2) + '-' + maxRatilPrice.toFixed(2)
item.minRatilPrice = minRatilPrice.toFixed(2) item.minRatilPrice = minRatilPrice.toFixed(2)
item.goodsStock = minStock == maxStock ? minStock : minStock + '-' + maxStock item.goodsStock = minStock == maxStock ? minStock : minStock + '-' + maxStock
} else if (item.specificationDetailList&&item.specificationDetailList.length == 1) { } else if (item.specificationDetailList && item.specificationDetailList.length == 1) {
item.retailPrice = (item.specificationDetailList[0].retailPrice / 100).toFixed(2) item.retailPrice = (item.specificationDetailList[0].retailPrice / 100).toFixed(2)
item.minRatilPrice = item.retailPrice item.minRatilPrice = item.retailPrice
item.goodsStock = item.specificationDetailList[0].stock item.goodsStock = item.specificationDetailList[0].stock
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!