From 162ef0ef26aa267f1d70f0d636aaf718a3b62b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Tue, 30 Apr 2024 16:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E5=B7=A5?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 26 +- components/calendar/index.vue | 306 ++++++++++++++++++++++ components/loadMore/index.vue | 2 +- components/pickerSelect/index.vue | 119 +++++++++ main.js | 6 + pages.json | 14 +- pages/deviceStatus/deviceCamera.vue | 50 +++- pages/deviceStatus/deviceStatus.vue | 257 ++++++++---------- pages/equipmentManage/bindingDevice.vue | 140 +++++++--- pages/equipmentManage/deviceDetail.vue | 50 ++-- pages/equipmentManage/editDevice.vue | 246 ++++++++++++----- pages/equipmentManage/equipmentManage.vue | 144 ++++++---- pages/index/index.vue | 8 +- pages/index/materialYield.vue | 2 +- pages/person/person.vue | 2 +- pages/production/productionDetail.vue | 6 +- pages/production/productionOrder.vue | 16 +- pages/schedul/list.vue | 270 +++++++++++++++++++ static/css/app.css | 15 ++ static/iconfont/iconfont.css | 10 +- uni.scss | 4 + utils/api.js | 20 +- utils/public.js | 279 +++++++++++++++++++- 23 files changed, 1629 insertions(+), 363 deletions(-) create mode 100644 components/calendar/index.vue create mode 100644 components/pickerSelect/index.vue create mode 100644 pages/schedul/list.vue diff --git a/App.vue b/App.vue index 96333d0..5b7d92c 100644 --- a/App.vue +++ b/App.vue @@ -50,6 +50,7 @@ .font13{font-size: 13px;} .font14{font-size: 14px;} .font15{font-size: 15px;} + .font18{font-size: 18px;} .font20{font-size: 20px;} .font22{font-size: 22px;} .font24{font-size: 24px;} @@ -64,16 +65,19 @@ //布局 .flex_layout{display: flex;} - .flex1{flex: 1;} + .flex1{flex: 1;} + .comView{flex: 1;overflow: hidden;} //paddind .padd_rigth5{padding-right: 5px;} .padd_bot6{padding-bottom: 6px;} .padd_top12{padding-top:12px;} .padd_rigth12{padding-right: 12px;} .padd_bot12{padding-bottom: 12px;} - .padd_left12{padding-left:12px;} + .padd_left12{padding-left:12px;} + .padd12{padding: 12px;} //margin - .mar_top12{margin-top: 12px;} + .mar_top12{margin-top: 12px;} + .mar_bot12{margin-bottom: 12px;} .page_list{margin-bottom: 12px;padding:0 12px;} //有详情的列表 @@ -96,23 +100,32 @@ display: flex; flex-direction: column; .status{ - padding: 3px 10px; background: $uni-bg-color-success-dark; color: $uni-text-color-success; + padding: 3px 10px; border-radius: 4px; font-size: 12px; } .success{ background: $uni-bg-color-success-dark; color: $uni-text-color-success; + padding: 3px 10px; + border-radius: 4px; + font-size: 12px; } .warning{ background: $uni-bg-color-warning-dark; color: $uni-text-color-warning; + padding: 3px 10px; + border-radius: 4px; + font-size: 12px; } .error{ background: $uni-bg-color-error-dark; color: $uni-text-color-danger; + padding: 3px 10px; + border-radius: 4px; + font-size: 12px; } } } @@ -131,13 +144,13 @@ background-color: #060B26; border-top: 1px solid #2E3249; height: 80px; - // bottom: 40px;bottom: 40px;position: fixed;width: calc(100% - 28px); view{width: 50%;text-align: center;margin: 0 20px;border-radius: 19px;background: #DDD;line-height: 38px;height: 38px;margin-top: 6px;} } //底部固定添加按钮 .page_bottom_button{ width: 100%;position: fixed;bottom: 0px;background-color: #060B26;border-top: 1px solid #2E3249;height: 80px; - .page_add{display: flex;justify-content: center;margin: 7px 20px;border-radius: 17.5px;background: #1C2755;line-height: 35px;} + .page_add{display:flex;justify-content:center;align-items: center;margin: 7px 20px;border-radius: 17.5px;background: #1C2755;height: 38px;} + .page_add .icon{margin-right: 4px;} } .bot_padding{padding-bottom: 100px;} @@ -177,6 +190,7 @@ height: 102px; position: relative; overflow: hidden; + border-radius: 50%; background: $uni-bg-color-primary; } diff --git a/components/calendar/index.vue b/components/calendar/index.vue new file mode 100644 index 0000000..ba0b3b1 --- /dev/null +++ b/components/calendar/index.vue @@ -0,0 +1,306 @@ + + + + + \ No newline at end of file diff --git a/components/loadMore/index.vue b/components/loadMore/index.vue index 3a577ad..ed23f99 100644 --- a/components/loadMore/index.vue +++ b/components/loadMore/index.vue @@ -65,6 +65,6 @@ } } .loadBox{ - color: $uni-color-primary; + color: $uni-text-color-loading; } \ No newline at end of file diff --git a/components/pickerSelect/index.vue b/components/pickerSelect/index.vue new file mode 100644 index 0000000..78f5858 --- /dev/null +++ b/components/pickerSelect/index.vue @@ -0,0 +1,119 @@ + + + + + \ No newline at end of file diff --git a/main.js b/main.js index b0d1d26..39fa54e 100644 --- a/main.js +++ b/main.js @@ -7,6 +7,8 @@ import "./static/iconfont/iconfont-weapp/iconfont-weapp-icon.css" import searchView from './components/searchView/index' import loadMore from './components/loadMore/index' import progressBar from './components/progressBar' +import pickerSelect from './components/pickerSelect/index' +import calendar from './components/calendar/index' // #ifndef VUE3 import Vue from 'vue' @@ -16,6 +18,8 @@ import svg from './static/iconfont/svg.js' Vue.component('search-view',searchView); Vue.component('load-more',loadMore); Vue.component('progress-bar',progressBar); +Vue.component('picker-select',pickerSelect); +Vue.component('calendar',calendar); Vue.use(svg); @@ -42,6 +46,8 @@ export function createApp() { app.component('searchView', searchView); app.component('loadMore', loadMore); app.component('progressBar', progressBar); + app.component('pickerSelect', pickerSelect); + app.component('calendar',calendar); app.config.globalProperties.$api = request; app.config.globalProperties.$wf = publicMethods; diff --git a/pages.json b/pages.json index 890e916..89211b7 100644 --- a/pages.json +++ b/pages.json @@ -46,9 +46,17 @@ "navigationBarTitleText" : "生产工单管理", "enablePullDownRefresh" : true, "pullToRefresh":{ - "color":"red" + } } + }, + { + "path" : "pages/schedul/list", + "style" : + { + "navigationBarTitleText" : "工单排程", + "enablePullDownRefresh" : false + } }, { "path" : "pages/index/schedule", @@ -71,14 +79,14 @@ "style" : { "navigationBarTitleText" : "设备管理", - "enablePullDownRefresh" : false + "enablePullDownRefresh" : true } }, { "path" : "pages/equipmentManage/editDevice", "style" : { - "navigationBarTitleText" : "", + "navigationBarTitleText" : "添加设备", "enablePullDownRefresh" : false } }, diff --git a/pages/deviceStatus/deviceCamera.vue b/pages/deviceStatus/deviceCamera.vue index 85aa79c..232f318 100644 --- a/pages/deviceStatus/deviceCamera.vue +++ b/pages/deviceStatus/deviceCamera.vue @@ -1,12 +1,13 @@