Browse Source

修改传值

master
邓宏 2 years ago
parent
commit
78069607f6
  1. 11
      pages/purchase/agrProdList.vue

11
pages/purchase/agrProdList.vue

@ -59,7 +59,7 @@
<d-search v-model="searchVal.goodsName" @search="clean();search()"/>
<scroll-view scroll-y @scrolltolower="search">
<view class="card" v-for="(v,k) in list" :key="k" @click="toAddSepc(v.id)">
<view class="card" v-for="(v,k) in list" :key="k" @click="toAddSepc(v)">
<view class="name">
<text>{{v.detailedParentName}}</text> {{v.goodsName}} <text class="plant-youbian"/>
</view>
@ -121,13 +121,16 @@ export default {
events:{update:()=>{ this.clean();this.search() }}
})
},
toAddSepc(id){
toAddSepc(e){
uni.navigateTo({
url:`/pages/purchase/specs?id=${id}`,
url:`/pages/purchase/specs?goodsId=${e.id}`,
events:{submit: e=>{
uni.navigateBack()
this.eventChannel.emit("submit",e)
}}
}},
success(res){
res.eventChannel.emit("detail",e)
}
})
},
}

Loading…
Cancel
Save