修复bug
This commit is contained in:
parent
e3e2cf0613
commit
580ea81154
|
@ -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)=>{
|
||||||
|
|
Loading…
Reference in New Issue