diff --git a/src/api/goods/index.js b/src/api/goods/index.js
index 38491fb..ceca30d 100644
--- a/src/api/goods/index.js
+++ b/src/api/goods/index.js
@@ -15,6 +15,7 @@ const api = {
addPrice:'/goods/addPrice',
exportData:'/goods/import',
jingPin:'/goods/jingpin',
+ batchAddPrice:'/goods/batchAddPrice',
}
// 列表记录
@@ -143,6 +144,17 @@ export function addPrice (data) {
method: 'post',
data: data
})
+}
+/**
+ * 批量加价率
+ * @param {*} data
+ */
+export function batchAddPrice (data) {
+ return axios({
+ url: api.batchAddPrice,
+ method: 'post',
+ data: data
+ })
}/**
* 导出
* @param {*} data
diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js
index 644f8ab..565db99 100644
--- a/src/common/model/goods/MultiSpec.js
+++ b/src/common/model/goods/MultiSpec.js
@@ -141,6 +141,7 @@ export default class MultiSpec {
const specGroupArr = this.specGroupArr()
// sku记录的规格属性集(生成笛卡尔积)
const cartesianList = cartesianProductOf(specGroupArr)
+ console.log(cartesianList,'specGroupArr')
// 合并单元格
const rowSpanArr = this.rowSpanArr(specGroupArr, cartesianList)
// 生成sku字段名
@@ -148,6 +149,7 @@ export default class MultiSpec {
// 生成sku列表数据
this.buildSkuList(cartesianList)
// 返回多规格数据
+ console.log(this.multiSpecData.skuList)
return this.multiSpecData
}
diff --git a/src/components/Modal/GoodsModal/GoodsModal.vue b/src/components/Modal/GoodsModal/GoodsModal.vue
index 52573cf..8b7aef3 100644
--- a/src/components/Modal/GoodsModal/GoodsModal.vue
+++ b/src/components/Modal/GoodsModal/GoodsModal.vue
@@ -53,7 +53,7 @@
/>
- {{ text}}
+ {{ text }}
@@ -112,6 +112,8 @@ export default {
maxNum: PropTypes.integer.def(100),
// 默认选中的列表记录
defaultList: PropTypes.array.def([]),
+ channel: PropTypes.any,
+ source: PropTypes.any.def(0),
},
components: {
STable,
@@ -128,11 +130,16 @@ export default {
// 当前表单元素
searchForm: this.$form.createForm(this),
// 查询参数
- queryParam: {},
+ queryParam: {
+ is_sale: 1,
+ is_pool: 1,
+ },
// table表头
columns,
// 加载数据方法 必须为 Promise 对象
loadData: (param) => {
+ this.queryParam.channel = this.channel
+ this.queryParam = this.source == 1 ? this.queryParam : {}
return GoodsApi.list({ ...param, ...this.queryParam }).then((response) => {
return response.data.list
})
diff --git a/src/components/SelectGoods/SelectGoods.vue b/src/components/SelectGoods/SelectGoods.vue
index 1cfff62..0849f27 100644
--- a/src/components/SelectGoods/SelectGoods.vue
+++ b/src/components/SelectGoods/SelectGoods.vue
@@ -6,6 +6,8 @@
:multiple="multiple"
:maxNum="maxNum"
:defaultList="selectedItems"
+ :channel="channel"
+ :source="source"
@handleSubmit="handleSelectGoodsSubmit"
/>
@@ -53,7 +55,9 @@ export default {
// 最大选择的数量限制, multiple模式下有效
maxNum: PropTypes.integer.def(100),
// 默认选中的商品
- defaultList: PropTypes.array.def([])
+ defaultList: PropTypes.array.def([]),
+ channel:PropTypes.any,
+ source: PropTypes.any.def(0),
},
data () {
return {
diff --git a/src/views/dataCenter/goods/Index.vue b/src/views/dataCenter/goods/Index.vue
index 0e618bf..9939aef 100644
--- a/src/views/dataCenter/goods/Index.vue
+++ b/src/views/dataCenter/goods/Index.vue
@@ -178,6 +178,17 @@
+
+
+ 加价利润率:
+
+
+
分类加价
+ 批量加价
删除
-
+
-