From 7a0c694173afd738c700efef3f74ce37d41276a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?=
<9634538+git_rabbit@user.noreply.gitee.com>
Date: Thu, 28 Mar 2024 16:04:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=E5=A4=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.js | 2 +-
pages.json | 29 ++++++---
pages/agv/agv-in/agv-in.vue | 60 ++++++++++++++++++
pages/agv/agv-out/agv-out.vue | 22 +++++++
pages/agv/agv.vue | 78 ++++++++++++++++++++++--
pages/agv/components/dateCheck/index.vue | 32 ++++++++++
pages/agv/components/orderItem/index.vue | 22 +++++++
utils/request.js | 4 +-
8 files changed, 231 insertions(+), 18 deletions(-)
create mode 100644 pages/agv/agv-in/agv-in.vue
create mode 100644 pages/agv/agv-out/agv-out.vue
create mode 100644 pages/agv/components/dateCheck/index.vue
create mode 100644 pages/agv/components/orderItem/index.vue
diff --git a/main.js b/main.js
index d7360dd..270c568 100644
--- a/main.js
+++ b/main.js
@@ -13,7 +13,7 @@ Vue.use(uView)
Vue.component('PdaScanInput',PdaScanInput)
Vue.use(plugins)
-
+uni.$u.config.unit = 'rpx'
Vue.config.productionTip = false
Vue.prototype.$store = store
diff --git a/pages.json b/pages.json
index 57664ee..82d7ed5 100644
--- a/pages.json
+++ b/pages.json
@@ -13,19 +13,13 @@
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/images/tabbar/home.png",
- "selectedIconPath": "static/images/home_.png",
- "text": "首页"
+ "selectedIconPath": "static/images/tabbar/home_.png",
+ "text": "仓库"
},
{
"pagePath": "pages/agv/agv",
"iconPath": "static/images/tabbar/work.png",
- "selectedIconPath": "static/images/work_.png",
- "text": "AGV"
- },
- {
- "pagePath": "pages/agv/agv",
- "iconPath": "static/images/tabbar/work.png",
- "selectedIconPath": "static/images/work_.png",
+ "selectedIconPath": "static/images/tabbar/work_.png",
"text": "AGV"
}
]
@@ -93,8 +87,25 @@
"path": "pages/agv/agv",
"style": {
"navigationBarTitleText": "AGV",
+ "navigationStyle": "custom",
"enablePullDownRefresh": false
}
+ },
+ {
+ "path" : "pages/agv/agv-in/agv-in",
+ "style" :
+ {
+ "navigationBarTitleText" : "入料",
+ "enablePullDownRefresh" : false
+ }
+ },
+ {
+ "path" : "pages/agv/agv-out/agv-out",
+ "style" :
+ {
+ "navigationBarTitleText" : "出料",
+ "enablePullDownRefresh" : false
+ }
}
]
diff --git a/pages/agv/agv-in/agv-in.vue b/pages/agv/agv-in/agv-in.vue
new file mode 100644
index 0000000..a89def3
--- /dev/null
+++ b/pages/agv/agv-in/agv-in.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/agv/agv-out/agv-out.vue b/pages/agv/agv-out/agv-out.vue
new file mode 100644
index 0000000..0cc4450
--- /dev/null
+++ b/pages/agv/agv-out/agv-out.vue
@@ -0,0 +1,22 @@
+
+
+ 出料
+
+
+
+
+
+
diff --git a/pages/agv/agv.vue b/pages/agv/agv.vue
index 8183fd0..f8d23c9 100644
--- a/pages/agv/agv.vue
+++ b/pages/agv/agv.vue
@@ -1,6 +1,15 @@
-
-
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
@@ -8,15 +17,72 @@
export default {
data() {
return {
-
+ gridItemList: [{
+ name: '入料',
+ icon: 'download-filled'
+ },
+ {
+ name: '出料',
+ icon: 'upload-filled'
+ },
+
+ ]
}
},
methods: {
-
+ gridCheck(item) {
+ const index = item.detail?.index;
+ switch (index) {
+ case 1:
+ uni.navigateTo({
+ url: '/pages/agv/agv-in/agv-in'
+ });
+ break;
+ case 2:
+ uni.navigateTo({
+ url: '/pages/agv/agv-out/agv-out'
+ });
+ break;
+ default:
+ break;
+ }
+ }
}
}
-
+ .title-box {
+ width: 100%;
+ height: 150px;
+ }
+
+ .grid-box {
+ width: 100%;
+ height: 100%;
+ }
+
+ .grid-box .item {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .item {
+ background-color: rgba(128, 128, 128, 0.5);
+ }
+
+ .text {
+ font-size: 24px;
+ color: white;
+ }
+
\ No newline at end of file
diff --git a/pages/agv/components/dateCheck/index.vue b/pages/agv/components/dateCheck/index.vue
new file mode 100644
index 0000000..982caba
--- /dev/null
+++ b/pages/agv/components/dateCheck/index.vue
@@ -0,0 +1,32 @@
+
+
+
+ 选择工单日期
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/agv/components/orderItem/index.vue b/pages/agv/components/orderItem/index.vue
new file mode 100644
index 0000000..0746720
--- /dev/null
+++ b/pages/agv/components/orderItem/index.vue
@@ -0,0 +1,22 @@
+
+
+
+ 打开
+
+
+
+
+
+
\ No newline at end of file
diff --git a/utils/request.js b/utils/request.js
index e7ea161..e1148b8 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -18,9 +18,9 @@ import {
let timeout = 10000
const request = config => {
// 浏览器测试用
- const storageBaseUrl = 'http://' + getBaseUrl() + '/api';
+ // const storageBaseUrl = 'http://' + getBaseUrl() + '/api';
// 真机测试以及部署用
- //const storageBaseUrl = 'http://' + getBaseUrl();
+ const storageBaseUrl = 'http://' + getBaseUrl();
// 是否需要设置 token
const isToken = (config.headers || {}).isToken === false
config.header = config.header || {}