Commit f2857158 by cwq0219

产品/商品编辑

1 parent 7c231a91
......@@ -528,7 +528,7 @@ export default {
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
merchantDisable: true,
merchantDisable: false,
// 关联商品弹窗
relateProVisible: false,
relateStoreVisible: false,
......@@ -604,13 +604,13 @@ export default {
mounted() {
this.formData = _.cloneDeep(this.originData)
this.merchantDisable = this.addOrEdit === 'edit'
if (this.userInfo.beSuper) {
getParkStore({}).then(res => {
this.parkServiceList = res
})
}
if (this.formData.hasOwnProperty('upgradeGoods')) {
this.merchantDisable = this.addOrEdit === 'edit'
this.profitOldVal = this.formData.upgradeGoods.map(item => item.profitValue)
// this.getGoodsList()
}
......
......@@ -123,7 +123,7 @@ export default {
if (this.addOrEdit === 'edit') {
this.show = false
this.editData = _.cloneDeep(this.$route.params.form)
this.editData.yqMerchantId = this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId
!this.userInfo.beSuper && (this.editData.yqMerchantId = this.userInfo.detail.merchantId)
this.editData.thumbUrlList = [{
content: ''
}]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!