From 89c0f32aa6b2f96f0be1bb318dffc9d5d6c8cac8 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 12 Jun 2025 18:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E5=8A=9F=E8=83=BD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/layout.styl | 5 +- components/NumberInput.vue | 34 +++++ main.js | 4 + pages.json | 8 ++ pages/entry/check-to-store.vue | 204 +++++++++++++++++++++++++++ pages/entry/mater-group-to-store.vue | 10 +- pages/home/home.vue | 6 +- pages/outbound/shelf-bind-2nd.vue | 45 ++++-- pages/outbound/stock-list.vue | 37 ++++- pages/outbound/stock-out-store.vue | 7 +- utils/getData2.js | 21 ++- utils/mork2.js | 54 ++++++- 12 files changed, 407 insertions(+), 28 deletions(-) create mode 100644 components/NumberInput.vue create mode 100644 pages/entry/check-to-store.vue diff --git a/common/style/layout.styl b/common/style/layout.styl index af0d223..c5961d5 100644 --- a/common/style/layout.styl +++ b/common/style/layout.styl @@ -283,8 +283,11 @@ uni-button:after { border-radius: 10rpx; } .button-primary { + display: grid; + place-items: center; /* 垂直和水平居中 */ font-size: 34rpx; - line-height: 88rpx; + line-height: 34rpx; + height: 88rpx; color: #fff; text-align: center; letter-spacing: 4rpx; diff --git a/components/NumberInput.vue b/components/NumberInput.vue new file mode 100644 index 0000000..5a3e3f5 --- /dev/null +++ b/components/NumberInput.vue @@ -0,0 +1,34 @@ + + + diff --git a/main.js b/main.js index 1abc647..dd5f2e7 100644 --- a/main.js +++ b/main.js @@ -25,6 +25,10 @@ Vue.directive('enterNumber', { } }); +Vue.prototype.$getStatusText = function(statusMap, status) { + return statusMap[status] || ''; +}; + import store from '@/vuex/store.js' const app = new Vue({ diff --git a/pages.json b/pages.json index bd8cf31..7b92ee0 100644 --- a/pages.json +++ b/pages.json @@ -306,6 +306,14 @@ } } + ,{ + "path" : "pages/entry/check-to-store", + "style" : + { + "navigationStyle": "custom" + } + + } ], "globalStyle": { // "pageOrientation": "landscape", diff --git a/pages/entry/check-to-store.vue b/pages/entry/check-to-store.vue new file mode 100644 index 0000000..55fb9db --- /dev/null +++ b/pages/entry/check-to-store.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/pages/entry/mater-group-to-store.vue b/pages/entry/mater-group-to-store.vue index eb73625..0393b4c 100644 --- a/pages/entry/mater-group-to-store.vue +++ b/pages/entry/mater-group-to-store.vue @@ -33,7 +33,7 @@ 单位 - + @@ -41,7 +41,7 @@ 物料单重 - + @@ -57,7 +57,7 @@ 物料数量 - + @@ -89,11 +89,13 @@