Browse Source

库存管理 修改按钮

master
邓宏 2 years ago
parent
commit
abc912cf2b
  1. 8
      pages/stock/mana.vue

8
pages/stock/mana.vue

@ -149,7 +149,9 @@
</view> </view>
<u-empty v-if="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> <u-empty v-if="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/>
</scroll-view> </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> </view>
</template> </template>
<script> <script>
@ -219,9 +221,9 @@ export default {
} }
}) })
}, },
toAgrIn(){ toPage(page){
uni.navigateTo({ uni.navigateTo({
url:"/pages/stock/agrWarehouse", url:`/pages/stock/${page}`,
events:{update: ()=>{ events:{update: ()=>{
this.clean() this.clean()
this.search() this.search()

Loading…
Cancel
Save