From f89573097756b78220e3de61fc1b67071214dfd1 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Wed, 13 Mar 2024 15:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E7=82=B9=E4=BD=9C=E4=B8=9A=E3=80=81?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E7=A1=AE=E8=AE=A4=E3=80=81=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/layout.styl | 138 ++++++++------------ common/style/reset.css | 6 + components/NavBar.vue | 16 +-- pages.json | 24 ++++ pages/home/home.vue | 6 +- pages/login/setup.vue | 2 +- pages/manage/fixed-point-task.vue | 146 +++++++++++++++++++++ pages/manage/out-storage-confirm.vue | 174 +++++++++++++++++++++++++ pages/manage/task-manage.vue | 185 +++++++++++++++++++++++++++ utils/api.js | 16 --- utils/getData2.js | 172 +++++++++++++++++++++---- utils/request1.js | 126 ------------------ utils/utils.js | 116 +++++++++++++++++ 13 files changed, 864 insertions(+), 263 deletions(-) create mode 100644 pages/manage/fixed-point-task.vue create mode 100644 pages/manage/out-storage-confirm.vue create mode 100644 pages/manage/task-manage.vue delete mode 100644 utils/api.js delete mode 100644 utils/request1.js create mode 100644 utils/utils.js diff --git a/common/style/layout.styl b/common/style/layout.styl index d37891a..14f1f07 100644 --- a/common/style/layout.styl +++ b/common/style/layout.styl @@ -33,6 +33,15 @@ uni-button:after { margin-bottom: 20rpx; box-shadow: 0 4rpx 10rpx 2rpx rgba(0,0,0,.1); } +.filter_wrapper { + position relative + left -14rpx + width: calc(100% + 28rpx); + height: auto; + background-color: #fff; + padding: 22rpx 22rpx 0 22rpx; + margin-bottom: 20rpx; +} .filter_label { display: block; line-height: 80rpx; @@ -73,23 +82,6 @@ uni-button:after { .filter_input_disabled { background-color: #eee; } -.filter_search { - width: 100rpx; - height: 70rpx; - line-height: 70rpx; - font-size: 28rpx; - color: #323232; - text-align: center; - background-color: #fff; - border: 1px solid #ff6a00; - border-radius: 10rpx; - margin-left: 30rpx; -} -.filter_search_disabled { - background-color: #dcdfe6; - border: 1px solid #dcdfe6; - color: #fff; -} .filter_input_wraper { /* flex: 1; */ width: calc(100% - 170rpx); @@ -100,6 +92,21 @@ uni-button:after { justify-content: flex-start; align-items: center; } +.tab-line { + _wh(32rpx, 10rpx) + background-color #fff + border-radius 10rpx + margin 20rpx auto 0 +} +.tab-line_active { + background-color #4e6ef2 +} +.font-style-1 { + _font(32rpx, 32rpx, #c1c1c3,,center) +} +.font-style-2 { + _font(32rpx, 32rpx, #000,bold,center) +} .grid-wraper { width: 100%; } @@ -224,72 +231,34 @@ uni-button:after { margin-bottom: 20rpx; box-shadow: 0 4rpx 10rpx 2rpx rgba(0,0,0,.1); } -.item-font-1 { - font-size: 28rpx; - color: #42444a; - line-height: 30rpx; - padding: 14rpx 4rpx; -} -.item-font-2 { - font-size: 26rpx; - color: #2b87ff; - line-height: 30rpx; - padding: 14rpx 4rpx; - background-color: #edf6ff; - border-radius: 10rpx; - text-align: center; -} -.item-font-3 { - font-size: 26rpx; - color: #ff8824; - line-height: 30rpx; - padding: 14rpx 4rpx; - background-color: #fff4ea; - border-radius: 10rpx; - text-align: center; -} -.item-font-4 { - font-size: 26rpx; - color: #c1c1c3; - line-height: 30rpx; - padding: 14rpx 4rpx; -} -.item-status { - font-size: 26rpx; - color: #fff; - line-height: 30rpx; - padding: 6rpx 1rpx; - background-color: #fff; - border-radius: 10rpx; - text-align: center; -} -.item-status-1 { - background-color: #cfd2d4; - color: #5e5d5d; -} -.item-status-2 { - color: #bf8836; - background-color: #f0e2cd; -} -.item-status-3 { - background-color: #f3ccb5; - color: #ff5e00; -} -.item-status-4 { - background-color: #96f3b8; - color: #36744c; -} -.item-line-1 { - height: 1rpx; - background-color: #b8b8ba; -} -.item-line-2 { - width: 1rpx; - height: 30rpx; - background-color: #000; - margin: 0 14rpx; -} - +.item-font-1 + _font(30rpx,28rpx,#000,,) +.item-font-2 + _font(24rpx,40rpx,$red,,) +.item-font-3 + width 110rpx + _font(24rpx,26rpx,#333,,) + text-align:justify; + text-align-last: justify; + text-justify: inter-ideograph; +.item-font-4 + width calc(100% - 110rpx) + _font(26rpx,26rpx,#999,,) +.item-font-5 + _font(44rpx,60rpx,$green,,center) + background-color #f6f6f6 +.item-font-6 + width calc(50% - 110rpx) + _font(24rpx,52rpx,#666,,center) + background-color #e5e5e5 + border-radius 26rpx +.item-font-7 + width 110rpx + _font(24rpx,52rpx,#666,,center) +.item-font-8 + _font(24rpx,52rpx,#666,,center) +.isChecked + box-shadow inset 2px 2px 4px 0px rgba(120, 141, 250, 0.7), inset -2px -2px 4px 0px rgba(120, 141, 250, 0.7) /** 提交栏 **/ .submit-bar { position: fixed; @@ -328,6 +297,9 @@ uni-button:after { border: 2rpx solid #c9c9c9; color: #fff; } +uni-button[disabled]:not([type]), uni-button[disabled][type=default] { + border: 2rpx solid #c9c9c9; +} .submit-more { width: 20%; font-size: 34rpx; diff --git a/common/style/reset.css b/common/style/reset.css index ed9bb53..8e5b014 100644 --- a/common/style/reset.css +++ b/common/style/reset.css @@ -53,6 +53,9 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re .jcflexend { justify-content: flex-end !important; } +.jccenter { + justify-content: center !important; +} .zd-row { width: 100%; @@ -146,4 +149,7 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re } .pdr10 { padding-right: 10rpx; +} +.pdt0 { + padding-top: 0 !important } \ No newline at end of file diff --git a/components/NavBar.vue b/components/NavBar.vue index b556c9c..eeb59d1 100644 --- a/components/NavBar.vue +++ b/components/NavBar.vue @@ -4,9 +4,9 @@ {{title}} - + + + @@ -26,9 +26,9 @@ type: Boolean, default: false }, - show1: { + searchActive: { type: Boolean, - default: true + default: false } }, methods: { @@ -43,10 +43,8 @@ }) } }, - backHome () { - uni.redirectTo({ - url: '/pages/home/home' - }) + toSearch () { + this.$emit('toSearch') } } } diff --git a/pages.json b/pages.json index 20e71e0..aec5e87 100644 --- a/pages.json +++ b/pages.json @@ -66,6 +66,30 @@ } } + ,{ + "path" : "pages/manage/fixed-point-task", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/task-manage", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/out-storage-confirm", + "style" : + { + "navigationStyle": "custom" + } + + } ], "globalStyle": { // "pageOrientation": "landscape", diff --git a/pages/home/home.vue b/pages/home/home.vue index 52a4f2e..8fc4492 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -50,9 +50,9 @@ {id: 4, title: '原料出库', icon: 'RF04', path: '/pages/manage/mater-out-storage'}, {id: 5, title: '生产下料', icon: 'RF05', path: '/pages/manage/produce-cut'}, {id: 6, title: '点位更新', icon: 'RF06', path: '/pages/manage/point-update'}, - {id: 7, title: '定点作业', icon: 'RF07', path: ''}, - {id: 8, title: '作业管理', icon: 'RF08', path: ''}, - {id: 9, title: '出库确认', icon: 'RF09', path: ''} + {id: 7, title: '定点作业', icon: 'RF07', path: '/pages/manage/fixed-point-task'}, + {id: 8, title: '作业管理', icon: 'RF08', path: '/pages/manage/task-manage'}, + {id: 9, title: '出库确认', icon: 'RF09', path: '/pages/manage/out-storage-confirm'} ], show: false, secM: [] diff --git a/pages/login/setup.vue b/pages/login/setup.vue index 624398e..22c2b0e 100644 --- a/pages/login/setup.vue +++ b/pages/login/setup.vue @@ -1,6 +1,6 @@