修复bug

This commit is contained in:
weipengfei 2023-11-23 18:44:49 +08:00
parent e3e2cf0613
commit 580ea81154
1 changed files with 4 additions and 1 deletions

View File

@ -237,6 +237,7 @@
editGoodsStore: '',
editGoodsShow: false, //
mer_id: 0,
userInfo: {},
searchGoodsShow: false,
searchGoodsName: '',
showModel: false,
@ -283,6 +284,8 @@
},
onLoad(e) {
this.mer_id = e.mer_id
this.userInfo = this.$store.state.app.userInfo;
if(typeof this.userInfo == 'string') this.userInfo = JSON.parse(this.userInfo);
},
onShow() {
@ -343,7 +346,7 @@
delete item.stock;
console.log({...item});
uni.navigateTo({
url: '/pages/product/addGood/addGood?mer_id=42&import=1',
url: `/pages/product/addGood/addGood?mer_id=${this.userInfo.service.mer_id}&import=1`,
success: (e) => {
e.eventChannel.emit('importAttrValue', item);
uni.$once('importAttrValueOK', (e)=>{