|
|
@ -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) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|