修复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: '', editGoodsStore: '',
editGoodsShow: false, // editGoodsShow: false, //
mer_id: 0, mer_id: 0,
userInfo: {},
searchGoodsShow: false, searchGoodsShow: false,
searchGoodsName: '', searchGoodsName: '',
showModel: false, showModel: false,
@ -283,6 +284,8 @@
}, },
onLoad(e) { onLoad(e) {
this.mer_id = e.mer_id 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() { onShow() {
@ -343,7 +346,7 @@
delete item.stock; delete item.stock;
console.log({...item}); console.log({...item});
uni.navigateTo({ 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) => { success: (e) => {
e.eventChannel.emit('importAttrValue', item); e.eventChannel.emit('importAttrValue', item);
uni.$once('importAttrValueOK', (e)=>{ uni.$once('importAttrValueOK', (e)=>{