From d530e997ca5b1281d5b8a286fd21df9e91f26cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Thu, 19 Sep 2024 17:29:39 +0800 Subject: [PATCH] 1 --- manifest.json | 14 +- pages.json | 9 +- pages/index.vue | 145 ++++++++++++++---- .../materialPreparation/scanAddBatching.vue | 7 + pages/work/index.vue | 34 +--- 5 files changed, 147 insertions(+), 62 deletions(-) diff --git a/manifest.json b/manifest.json index 83b7a0c..280faeb 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,9 @@ { "name" : "DOAN总装车间PDA", - "appid" : "__UNI__25A9D80", + "appid" : "__UNI__EFA389B", "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", + "versionName" : "1.0.1", + "versionCode" : 101, "transformPx" : false, "app-plus" : { "usingComponents" : true, @@ -35,8 +35,12 @@ "" ] }, - "ios" : {}, - "sdkConfigs" : {} + "ios" : { + "dSYMs" : false + }, + "sdkConfigs" : { + "ad" : {} + } } }, "quickapp" : {}, diff --git a/pages.json b/pages.json index 510f98c..68d016f 100644 --- a/pages.json +++ b/pages.json @@ -98,6 +98,13 @@ { "navigationBarTitleText" : "扫码配料" } + }, + { + "path" : "pages/tool/scan", + "style" : + { + "navigationBarTitleText" : "标签扫码" + } } ], "tabBar": { @@ -114,7 +121,7 @@ "pagePath": "pages/work/index", "iconPath": "static/images/tabbar/work.png", "selectedIconPath": "static/images/tabbar/work_.png", - "text": "功能" + "text": "工具箱" }, { "pagePath": "pages/mine/index", "iconPath": "static/images/tabbar/mine.png", diff --git a/pages/index.vue b/pages/index.vue index 438df99..73f0186 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,27 +1,72 @@ - diff --git a/pages/materialManagement/materialPreparation/scanAddBatching.vue b/pages/materialManagement/materialPreparation/scanAddBatching.vue index 2061094..6e66c51 100644 --- a/pages/materialManagement/materialPreparation/scanAddBatching.vue +++ b/pages/materialManagement/materialPreparation/scanAddBatching.vue @@ -105,6 +105,13 @@ export default { }, // 手动校验 formValidate() { + if(this.materialList.length === 0){ + uni.showToast({ + icon: 'none', + title: '无零件' + }); + return false; + } for (let item of this.materialList) { if (item.quantity === 0) { uni.showToast({ diff --git a/pages/work/index.vue b/pages/work/index.vue index 4204cd9..80022cb 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -1,18 +1,7 @@