|
|
@ -149,7 +149,9 @@ |
|
|
|
</view> |
|
|
|
<u-empty v-if="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> |
|
|
|
</scroll-view> |
|
|
|
<button class="cu-btn round bg-green shadow submit" @click="toAgrIn">+农资入库</button> |
|
|
|
|
|
|
|
<button v-if="searchVal.substanceType=='nz'" class="cu-btn round bg-green shadow submit" @click="toPage('agrWarehouse')">+农资入库</button> |
|
|
|
<button v-else class="cu-btn round bg-green shadow submit" @click="toPage('prodWarehouse')">+农产品入库</button> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script> |
|
|
@ -219,9 +221,9 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
toAgrIn(){ |
|
|
|
toPage(page){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:"/pages/stock/agrWarehouse", |
|
|
|
url:`/pages/stock/${page}`, |
|
|
|
events:{update: ()=>{ |
|
|
|
this.clean() |
|
|
|
this.search() |
|
|
|