From 2725e4291941c7f51d4d607b90e8b3b01a7a710f Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 22 Feb 2024 14:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=B7=A5=E6=8E=92=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/layout.css | 68 ++++++++++------- pages.json | 106 ++----------------------- pages/home/home.vue | 2 +- pages/login/login.vue | 6 +- pages/login/setup.vue | 4 +- pages/login/upgrade.vue | 8 +- pages/modules/man-paichan.vue | 140 ++++++++++++++++++++++++++++++++++ utils/getData2.js | 53 ++++++++++++- 8 files changed, 246 insertions(+), 141 deletions(-) create mode 100644 pages/modules/man-paichan.vue diff --git a/common/style/layout.css b/common/style/layout.css index 4bb5315..d727d8d 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -269,22 +269,55 @@ uni-button:after { background: #d7d7d7; font-size: 26rpx; line-height: 98rpx; - color: #696969; + color: #7d7d7d; + background-color: #dcdfea; font-weight: bold; z-index: 100; } -.slide_new table thead tr th:first-child { - background: #d7d7d7; -} .slide_new table tbody tr td { font-size: 28rpx; - line-height: 98rpx; - color: #323232; + line-height: 58rpx; + padding: 14rpx 20rpx; + color: #7d7d7d; background: #fff; } .slide_new table tbody tr.checked td { - background-color: #f2f2f2; - color: #000 + background-color: #f9efb6; +} +.slide_new table tbody tr td .td_input { + width: 150rpx; + font-size: 28rpx; + color: #305fbf; + line-height: 30rpx; + height: 58rpx; + padding: 14rpx; + border: 1px solid #889dc7; + box-shadow: 0 0 0 2px rgba(136, 157, 199,.2); + border-radius: 10rpx; +} +.slide_new table tbody tr td.fontcol1 { + color: #007de7; +} +.slide_new table tbody tr td.fontcol2 { + color: #000; +} +.slide_new table tbody tr td .fontbg{ + font-size: 26rpx; + line-height: 30rpx; + padding: 8rpx 20rpx; + border-radius: 8rpx; +} +.slide_new table tbody tr td .fontbg1 { + background-color: #cfd2d4; + color: #5e5d5d; +} +.slide_new table tbody tr td .fontbg3 { + background-color: #96f3b8; + color: #36744c; +} +.slide_new table tbody tr td .fontbg4 { + background-color: #f3ccb5; + color: #ff5e00; } /** 提交栏 **/ @@ -303,9 +336,6 @@ uni-button:after { box-shadow: 0 0 20rpx 0 rgba(160,160,160,0.7); } .submit-bar_new { - display: flex; - justify-content: space-between; - align-items: center; position: fixed; bottom: 0; left: 0; @@ -328,7 +358,6 @@ uni-button:after { border-radius: 10rpx; } .submit-button_new { - /* width: 35%; */ font-size: 34rpx; line-height: 88rpx; color: #fff; @@ -458,21 +487,6 @@ uni-button:after { .uni-select__input-placeholder,.uni-select__selector-empty, .uni-select__selector-item { font-size: 28rpx !important } -.sin_input { - width: 150rpx; - font-size: 28rpx; - line-height: 150rpx; - height: 68rpx; - color: #323232; - padding: 0 .1rem; - border: 1px solid #a1a1a1; - border-radius: 3px; -} -.layout-t tr.checked td .sin_input { - color: #8a8a8a; - border: 1px solid #ffffff; -} - .flow_wrapper { width: 100%; background-color: #fff; diff --git a/pages.json b/pages.json index c0b0cbd..4fd2b71 100644 --- a/pages.json +++ b/pages.json @@ -24,107 +24,11 @@ "navigationStyle": "custom" } }, - { - "path" : "pages/modules/equip-inspection", - "style": { - "navigationStyle": "custom" - } - } - ,{ - "path" : "pages/modules/equip-operate", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/pallet-bind", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/sort-schedue", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/man-group", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/hunnian-carry", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/forced-rest", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/surplus-mater-instore", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/package-instore", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/call-full-mater", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/call-mupan", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/empty-instore", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/shelf-check", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/press-carry", - "style": { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/modules/hunnian-operate", - "style": { - "navigationStyle": "custom" + { + "path" : "pages/modules/man-paichan", + "style" : + { + "navigationStyle": "custom" } } diff --git a/pages/home/home.vue b/pages/home/home.vue index 7a851e6..612f315 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -32,7 +32,7 @@ return { userName: '', menuList: [ - {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/equip-inspection'}, + {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'}, {id: '2', name: '涂线板', icon: 'RF02', path: '/pages/manage/man-group-disk'}, {id: '3', name: '物料库存', icon: 'RF03', path: '/pages/manage/man-group-disk'} ] diff --git a/pages/login/login.vue b/pages/login/login.vue index 202f41c..f97c9fb 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -75,9 +75,9 @@ }) }, async toLogin() { - uni.redirectTo({ - url: '/pages/home/home' - }) + // uni.redirectTo({ + // url: '/pages/home/home' + // }) this.disabled = true if (this.user === '') { uni.showToast({ diff --git a/pages/login/setup.vue b/pages/login/setup.vue index c196bb1..8b88e02 100644 --- a/pages/login/setup.vue +++ b/pages/login/setup.vue @@ -8,12 +8,12 @@ - + 确认 diff --git a/pages/login/upgrade.vue b/pages/login/upgrade.vue index e3273d9..894053b 100644 --- a/pages/login/upgrade.vue +++ b/pages/login/upgrade.vue @@ -105,12 +105,13 @@ } .mask { - position: fixed; + position: fixed; + z-index: 99; left: 0; top: 0; right: 0; bottom: 0; - background-color: rgba(0, 0, 0, .65); + background-color: rgba(0, 0, 0, .9); } .botton-radius { @@ -119,7 +120,8 @@ } .content { - position: relative; + position: relative; + z-index: 100; top: 0; width: 600rpx; background-color: #fff; diff --git a/pages/modules/man-paichan.vue b/pages/modules/man-paichan.vue new file mode 100644 index 0000000..7791033 --- /dev/null +++ b/pages/modules/man-paichan.vue @@ -0,0 +1,140 @@ + + + + + + + + + + 工单号 + 物料编码 + 物料名称 + 工单状态 + 开工人 + 创建者 + 计划量 + 实际量 + + + + + {{e.workorder_code}} + {{e.material_code}} + {{e.material_name}} + {{textState(e.workorder_status)}} + {{e.operator}} + {{e.create_name}} + + {{e.plan_qty}} + {{e.real_qty}} + + + + + + + + 开工 + 完工 + + + + + + + diff --git a/utils/getData2.js b/utils/getData2.js index b2ba1a4..f85f93c 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -26,10 +26,55 @@ export const handLogin = (user, password) => request({ * 人工排产 */ // 工单 -export const manualSortingOrders = () => request({ - url:'api/pda/manualSorting/orders', - data: {} -}) +// export const manualSortingOrders = () => request({ +// url:'api/pda/manualSorting/orders', +// data: {} +// }) +export const manualSortingOrders = () => { + let res = [ + { + "workorder_code": "231117001", + "material_code": "ZJB", + "material_name": "正极板", + "workorder_status": "1", + "operator": null, + "create_name": "管理员", + "plan_qty": "1111", + "real_qty": "0" + }, + { + "workorder_code": "231128002", + "material_code": "FJB", + "material_name": "负极板", + "workorder_status": "3", + "operator": null, + "create_name": "管理员", + "plan_qty": "2222", + "real_qty": "0" + }, + { + "workorder_code": "231128003", + "material_code": "BFJB", + "material_name": "边负极板", + "workorder_status": "4", + "operator": 'admin', + "create_name": "管理员", + "plan_qty": "1111", + "real_qty": "0" + }, + { + "workorder_code": "231212003", + "material_code": "BFJB", + "material_name": "边负极板", + "workorder_status": "1", + "operator": null, + "create_name": "管理员", + "plan_qty": "8989767", + "real_qty": "0" + } +] + return res +} // 开工 export const productionScheduling = (code, user) => request({ url:'api/pda/manualSorting/productionScheduling',