Commit f2857158 by cwq0219

产品/商品编辑

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