小小儁爺
2025-05-12 8081e115c0d8ffd0dd572e02a4dfa28818ad2d5a
pages/wlgl/cgrk.vue
@@ -0,0 +1,89 @@
<template>
   <view>
      <page-nav title="采购入库1"></page-nav>
      <view class="body" style="flex-direction: column;">
         <u-button type="primary" icon='plus-circle' size='large' style="width: 96%;margin-left: 2%;margin-top: 70%;"
            :plain="true" :hairline="true" @click="navigateTo" text="选择采购订单"></u-button>
         <u-button type="primary" icon='scan' size='large' style="width: 96%;margin-left: 2%;margin-top: 4%;"
            :plain="true" :hairline="true" @click="navigateTo2" text="扫描到货标签"></u-button>
      </view>
   </view>
</template>
<script>
   // import {
   // } from '../../config/api.js';
   const App = getApp()
   export default {
      onLoad(option) {
      },
      onPullDownRefresh() {
         setTimeout(() => {
            this.init(() => {
               uni.stopPullDownRefresh();
            })
         }, 1000);
      },
      data() {
         return {
         }
      },
      created() {
      },
      mounted() {
         this.init()
      },
      methods: {
         navigateTo() {
            uni.navigateTo({
               url: './cgrk2' //选择采购订单
            });
         },
         navigateTo2() {
            uni.navigateTo({
               url: './cgrk3' //扫描到货标签
            });
         },
         init() {
            uni.stopPullDownRefresh();
         },
      }
   }
</script>
<style lang="scss" scoped>
   @import url('@/style/global.css');
   ::v-deep .uicon-arrow-left>span {
      display: block;
   }
   .body {
      background-color: #f6f7fb !important;
      width: 100%;
      height: 1400rpx;
      display: flex;
      align-items: center;
   }
   .u-button--large {
      position: relative;
   }
   ::v-deep .uicon-plus-circle {
      font-size: 32rpx !important;
   }
</style>