pang.jiabao
2025-12-21 1fcfeff9911e0b37798d45f2e215eca66b18c8b4
入库启动功能完成
1个文件已修改
60 ■■■■ 已修改文件
pages/pakin/inboundStart.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/inboundStart.vue
@@ -1,5 +1,5 @@
<template>
  <view>
  <view class="container">
    <uni-nav-bar
      left-icon="left"
      title="入库启动"
@@ -10,11 +10,16 @@
    <!-- 输入区 -->
    <view class="code">
      <!-- 入库类型 -->
      <view class="item full-item">
        <view class="code-decs">入库类型:</view>
        <radio-group v-model="type" class="full-radio">
          <radio class="radio" value="1">满箱入库</radio>
          <radio class="radio" value="2">空箱入库</radio>
        <radio-group @change="onTypeChange" class="full-radio">
          <label class="radio">
            <radio value="1" :checked="type === '1'" />满箱入库
          </label>
          <label class="radio">
            <radio value="2" :checked="type === '2'" />空箱入库
          </label>
        </radio-group>
      </view>
    </view>
@@ -33,7 +38,7 @@
    return {
      baseUrl: '',
      token: '',
      type: '1' // 默认选中满箱入库,字符串类型
      type: '1' // 默认满箱入库
    }
  },
  onShow() {
@@ -44,12 +49,15 @@
    back() {
      uni.navigateBack()
    },
    onTypeChange(e) {
      this.type = e.detail.value
    },
    reset() {
      this.type = '1'
    },
    submitCall() {
      uni.request({
        url: this.baseUrl + '/inboundStart/auth',
        url: this.baseUrl + '/mobile/inboundStart/auth',
        method: 'GET',
        header: { token: this.token },
        data: { type: this.type },
@@ -71,45 +79,65 @@
<style>
@import url('../../static/css/wms.css/wms.css');
.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 输入区 */
.code {
  width: 100%;
  background-color: #fff;
  padding-top: 0;
  padding-top: 20rpx; /* 上方留空 */
  padding-bottom: 20rpx; /* 下方留空 */
}
.item {
  display: flex;
  flex-direction: column; /* 左右文字占一行 */
  justify-content: center;
  height: 140rpx; /* 上下间距宽 */
  padding: 0 24rpx;
  flex-direction: column; /* 文字在上,单选框在下 */
  align-items: flex-start;  /* 文字靠左 */
  justify-content: flex-start;
  padding: 30rpx 24rpx;
  border-bottom: 1px solid #ebeef5;
  min-height: 180rpx;
}
.code-decs {
  font-size: 38rpx;
  font-weight: 500;
  color: #303133;
  margin-bottom: 20rpx;
  margin-bottom: 25rpx; /* 文字与单选框间距 */
  text-align: left;     /* 文字靠左 */
}
.full-radio {
  display: flex;
  justify-content: flex-start;
  justify-content: center; /* 单选框居中 */
  flex-wrap: wrap;
}
.radio {
  margin-right: 40rpx;
  padding: 20rpx 50rpx;
  border: 1px solid #dcdcdc;
  border-radius: 16rpx;
  margin: 0 20rpx 20rpx 20rpx;
  font-size: 36rpx;
  display: flex;
  align-items: center;
}
/* radio 本体放大 */
.radio radio {
  transform: scale(1.3);
  margin-right: 10rpx;
}
/* 底部按钮 */
.buttom {
  position: fixed;
  bottom: 20rpx;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 20rpx 0;
}
</style>