From 4eacf08d80778c9a5a16580955161d22f8ae9455 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期日, 21 十二月 2025 18:05:44 +0800
Subject: [PATCH] 入库启动功能

---
 pages/pakin/inboundStart.vue |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 115 insertions(+), 0 deletions(-)

diff --git a/pages/pakin/inboundStart.vue b/pages/pakin/inboundStart.vue
new file mode 100644
index 0000000..d7f2a84
--- /dev/null
+++ b/pages/pakin/inboundStart.vue
@@ -0,0 +1,115 @@
+<template>
+  <view>
+    <uni-nav-bar
+      left-icon="left"
+      title="鍏ュ簱鍚姩"
+      @clickLeft="back"
+      :fixed="true"
+      :border="false"
+    />
+
+    <!-- 杈撳叆鍖� -->
+    <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>
+      </view>
+    </view>
+
+    <!-- 搴曢儴鎸夐挳 -->
+    <view class="buttom">
+      <button size="mini" @click="reset">閲嶇疆</button>
+      <button size="mini" type="primary" @click="submitCall">纭</button>
+    </view>
+  </view>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      baseUrl: '',
+      token: '',
+      type: '1' // 榛樿閫変腑婊$鍏ュ簱锛屽瓧绗︿覆绫诲瀷
+    }
+  },
+  onShow() {
+    this.baseUrl = uni.getStorageSync('baseUrl')
+    this.token = uni.getStorageSync('token')
+  },
+  methods: {
+    back() {
+      uni.navigateBack()
+    },
+    reset() {
+      this.type = '1'
+    },
+    submitCall() {
+      uni.request({
+        url: this.baseUrl + '/inboundStart/auth',
+        method: 'GET',
+        header: { token: this.token },
+        data: { type: this.type },
+        success: res => {
+          res = res.data
+          if (res.code === 200) {
+            uni.showToast({ title: '鍏ュ簱鍚姩鎴愬姛', icon: 'success' })
+            this.reset()
+          } else {
+            uni.showToast({ title: res.msg || '鍏ュ簱鍚姩澶辫触', icon: 'none' })
+          }
+        }
+      })
+    }
+  }
+}
+</script>
+
+<style>
+@import url('../../static/css/wms.css/wms.css');
+
+.code {
+  width: 100%;
+  background-color: #fff;
+  padding-top: 0;
+}
+
+.item {
+  display: flex;
+  flex-direction: column; /* 宸﹀彸鏂囧瓧鍗犱竴琛� */
+  justify-content: center;
+  height: 140rpx; /* 涓婁笅闂磋窛瀹� */
+  padding: 0 24rpx;
+  border-bottom: 1px solid #ebeef5;
+}
+
+.code-decs {
+  font-size: 38rpx;
+  font-weight: 500;
+  color: #303133;
+  margin-bottom: 20rpx;
+}
+
+.full-radio {
+  display: flex;
+  justify-content: flex-start;
+}
+
+.radio {
+  margin-right: 40rpx;
+  font-size: 36rpx;
+  display: flex;
+  align-items: center;
+}
+
+.buttom {
+  position: fixed;
+  bottom: 20rpx;
+  width: 100%;
+  display: flex;
+  justify-content: space-around;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.1