diff --git a/src/api/yxStoreCombination.js b/src/api/yxStoreCombination.js index 18dca30..671a90a 100644 --- a/src/api/yxStoreCombination.js +++ b/src/api/yxStoreCombination.js @@ -15,11 +15,10 @@ export function del(id) { }) } -export function edit(data) { +export function getCombinationInfo(id) { return request({ - url: 'api/yxStoreCombination', - method: 'put', - data + url: 'api/yxStoreCombination/info/' + id, + method: 'get' }) } diff --git a/src/api/yxStoreProduct.js b/src/api/yxStoreProduct.js index f645aef..40eed23 100644 --- a/src/api/yxStoreProduct.js +++ b/src/api/yxStoreProduct.js @@ -46,6 +46,13 @@ export function isFormatAttr(id, data) { }) } +export function isFormatAttrForActivity(id, data) { + return request({ + url: 'api/yxStoreProduct/isFormatAttrForActivity/' + id, + method: 'post', + data + }) +} export function setAttr(id, data) { return request({ url: 'api/yxStoreProduct/setAttr/' + id, diff --git a/src/views/activity/combination/form.vue b/src/views/activity/combination/form.vue index 0249a9d..2a11384 100644 --- a/src/views/activity/combination/form.vue +++ b/src/views/activity/combination/form.vue @@ -1,101 +1,458 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 是 - 否 - - - 开启 - 关闭 - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 开启 + 关闭 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 单规格 + 多规格{{formValidate.spec_typ}} + + + + + + + + + + + + + + + + {{ scope.row[scope.column.property] }} + + + + + + 不可删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 单独设置 + 默认设置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + + + + - diff --git a/src/views/activity/combination/form1.vue b/src/views/activity/combination/form1.vue new file mode 100644 index 0000000..a804700 --- /dev/null +++ b/src/views/activity/combination/form1.vue @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 是 + 否 + + + 开启 + 关闭 + + + + + + + + + + + + + + diff --git a/src/views/activity/combination/index.vue b/src/views/activity/combination/index.vue index 9b67575..dc8c111 100644 --- a/src/views/activity/combination/index.vue +++ b/src/views/activity/combination/index.vue @@ -16,7 +16,11 @@ type="primary" icon="el-icon-plus" @click="add" - >新增 + > + + 新增 + + 刷新 - + @@ -61,7 +65,15 @@ - + + + 编辑 + + - - + + @@ -532,6 +532,7 @@ export default { }, loading: false, treeSelect: [], + optionsMetaShow: [], tableIndex: 0, ruleValidate: { store_name: [ @@ -578,6 +579,18 @@ export default { this.getInfo(); }, methods: { + dataFilter(val){ + this.value=val + if(val){ + this.optionsMetaShow=this.treeSelect.filter((item=>{ + if (!!~item.label.indexOf(val) || !!~item.label.toUpperCase().indexOf(val.toUpperCase())) { + return true + } + })) + }else{ + this.optionsMetaShow=this.treeSelect + } + }, confirm () { let that = this; that.createBnt = true; @@ -729,6 +742,7 @@ export default { that.treeSelect = res.cateList; that.ruleList = res.ruleList; that.templateList = res.tempList; + that.optionsMetaShow = that.treeSelect }).catch(res => { console.log('err:'+res) diff --git a/src/views/shop/goods/index.vue b/src/views/shop/goods/index.vue index abcb961..b6e4d3d 100644 --- a/src/views/shop/goods/index.vue +++ b/src/views/shop/goods/index.vue @@ -7,8 +7,8 @@ - - + @@ -36,7 +36,6 @@ - @@ -86,13 +85,6 @@ 操作 - - 开启拼团 - { - this.init() + this.init().then(() =>{ + this.optionsMetaShow = this.cateList + }) }) }, methods: { + dataFilter(val){ + this.value=val + if(val){ + this.optionsMetaShow=this.cateList.filter((item=>{ + if (!!~item.label.indexOf(val) || !!~item.label.toUpperCase().indexOf(val.toUpperCase())) { + return true + } + })) + }else{ + this.optionsMetaShow=this.cateList + } + }, checkPermission, beforeInit() { this.url = 'api/yxStoreProduct'