From 9e0e2b208de72081c4a73713092c3abbcdde9227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Thu, 5 Sep 2024 11:23:55 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E7=AE=A1=E8=8A=AF=E5=85=A5=E5=BA=93/?= =?UTF-8?q?=E7=AE=A1=E8=8A=AF=E5=87=BA=E5=BA=93/=E5=A5=97=E8=BD=B4?= =?UTF-8?q?=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/layout.styl | 194 +++++++----------- pages.json | 26 ++- pages/manage/axis-bind.vue | 181 ++++++++++++++++ pages/manage/mater-in-storage.vue | 122 ----------- ...aterial-transfer.vue => tube-core-out.vue} | 57 +++-- pages/manage/tube-core-storage.vue | 121 +++++++++++ pages/manage/waste-foil-move.vue | 42 +++- utils/getData2.js | 39 ++++ utils/mork2.js | 3 +- 9 files changed, 503 insertions(+), 282 deletions(-) create mode 100644 pages/manage/axis-bind.vue delete mode 100644 pages/manage/mater-in-storage.vue rename pages/manage/{material-transfer.vue => tube-core-out.vue} (52%) create mode 100644 pages/manage/tube-core-storage.vue diff --git a/common/style/layout.styl b/common/style/layout.styl index ae10184..d49c5f7 100644 --- a/common/style/layout.styl +++ b/common/style/layout.styl @@ -116,158 +116,102 @@ uni-button:after { height: 100%; overflow-y: auto; } -.slide_h { - overflow-y: hidden; -} .slide_new table { table-layout: fixed; min-width: 100%; border-collapse: separate; - border-spacing: 0; - border: 0; + -webkit-border-horizontal-spacing: 0px; + -webkit-border-vertical-spacing: 10rpx; + padding-bottom: 8rpx; + background-color: #f5f5f5; } -.slide_new table td, .slide_new table th { +.slide_new table th { + position: sticky; + top: 0; + left: 0; + z-index: 120; + font-size: 26rpx; + line-height: 98rpx; + color: #696969; + font-weight: bold; + text-align: center; box-sizing: border-box; overflow: hidden; + white-space: nowrap; text-overflow: ellipsis; white-space: nowrap; padding: 0 20rpx; - border-bottom: 10rpx solid #f5f5f5; - text-align: center; + background: #d7d7d7; } -.slide_h table td, .slide_h table th { - white-space: wrap; - padding: 0 20rpx; - border-bottom: 10rpx solid #f5f5f5; +.slide_new table th:first-child{ + left: 0; + z-index: 121; + color: #4e6ef2; + font-weight: bold; + box-shadow: 3px 0px 3px 0px rgba(160,160,160,0.20); +} +.slide_new table th.th_2 { + left: 86rpx; + z-index: 122; + box-shadow: 3px 0px 3px 0px rgba(160,160,160,0.20); +} +.slide_new table td { + font-size: 28rpx; + line-height: 98rpx; + color: #323232; text-align: center; + box-sizing: border-box; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + white-space: nowrap; + padding: 0 20rpx; + background: #fff; } .slide_new table td:first-child{ position: sticky; left: 0; - z-index: 31; -} -.slide_new table th:first-child{ - position: sticky; - left: 0; - z-index: 32; -} -.slide_new table thead tr th { - position: sticky; - top: 0; - background: #d7d7d7; - font-size: 26rpx; - line-height: 28rpx; - padding: 35rpx 10rpx; - color: #7d7d7d; - background-color: #dcdfea; + z-index: 100; + color: #4e6ef2; font-weight: bold; - z-index: 30; + box-shadow: 3px 0px 3px 0px rgba(160,160,160,0.20); } -.slide_new table tbody tr td { - font-size: 28rpx; - line-height: 58rpx; - padding: 14rpx 20rpx; - color: #7d7d7d; - background: #fff; +.slide_new table td.td_2 { + position: sticky; + left: 86rpx; + z-index: 101; + box-shadow: 3px 0px 3px 0px rgba(160,160,160,0.20); } -.slide_h table tbody tr td { - font-size: 28rpx; - line-height: 28rpx; - padding: 14rpx 20rpx; - color: #7d7d7d; - background: #fff; -} -.slide_new table tbody tr td .td_input { - width: 230rpx; - font-size: 28rpx; - color: #305fbf; - line-height: 58rpx; - height: 58rpx; - padding: 0 10rpx; - border: 1px solid #889dc7; - box-shadow: 0 0 0 2px rgba(136, 157, 199,.2); - border-radius: 10rpx; - margin: 0 auto; -} -.slide_new table tbody tr td .td_select { - width: 230rpx; - font-size: 28rpx; - color: #305fbf; - line-height: 58rpx; - margin: 0 auto; -} -.slide_new table thead tr th.fontcol1,.slide_new table tbody tr td.fontcol1 { +.slide_new table th.fontcol1,.slide_new table td.fontcol1 { color: #4e6ef2; font-weight: bold; } -.slide_new table tbody tr td.fontcol2 { - color: #000; +.slide_new table th.fontcol2,.slide_new table td.fontcol2 { + color: #d7592f; + font-weight: bold; } -.slide_new table tbody tr td .fontbg{ - font-size: 26rpx; - line-height: 30rpx; - padding: 8rpx 20rpx; - border-radius: 8rpx; - background-color: #F60; +.slide_new table tr.checked { + // background-image: linear-gradient(to top,#c2cde3,#f6f7fb); + background-color: #6190e8; +} +.slide_new table tr.checked td { + background-color: transparent; color: #fff; } -.slide_new table tbody tr td .fontbg1 { - background-color: #cfd2d4; - color: #5e5d5d; +.slide_new table tr.checked td:first-child { + // background-image: linear-gradient(to top,#c2cde3,#f6f7fb); + background-color: #6190e8; } -.slide_new table tbody tr td .fontbg2 { - background-color: #96f3b8; - color: #36744c; +.slide_new table tr.checked td:nth-child(2) { + // background-image: linear-gradient(to top,#c2cde3,#f6f7fb); + background-color: #6190e8; } -.slide_new table tbody tr td .fontbg3 { - background-color: #f3ccb5; - color: #ff5e00; +.slide_new table tr.checked td:first-child { + border-left: 1rpx solid #6798ef; } -.slide_new table tbody tr.checked - td - background-color: #4e6ef2 - color #fff - td.fontcol1, td.fontcol2 - color #fff -.item-wrapper { - width: 100%; - height: auto; +.slide_new table tr.checked td:last-child { + border-right: 1rpx solid #6798ef; } -.item-wrap { - background-color: #fff; - border-radius: 24rpx; - padding: 22rpx 14rpx; - margin-bottom: 20rpx; - box-shadow: 0 4rpx 10rpx 2rpx rgba(0,0,0,.1); -} -.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; @@ -301,6 +245,10 @@ uni-button:after { border: 2rpx solid #ff6a00; border-radius: 10rpx; } +.button-primary_s { + font-size: 26rpx; + line-height: 60rpx; +} .button-info, .submit-button[disabled] { background-color: #c9c9c9; border: 2rpx solid #c9c9c9; diff --git a/pages.json b/pages.json index c321877..56cab47 100644 --- a/pages.json +++ b/pages.json @@ -43,7 +43,23 @@ } ,{ - "path" : "pages/manage/mater-in-storage", + "path" : "pages/manage/tube-core-storage", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/tube-core-out", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/axis-bind", "style" : { "navigationStyle": "custom" @@ -57,14 +73,6 @@ "navigationStyle": "custom" } - } - ,{ - "path" : "pages/manage/material-transfer", - "style" : - { - "navigationStyle": "custom" - } - } ,{ "path" : "pages/manage/modify-process", diff --git a/pages/manage/axis-bind.vue b/pages/manage/axis-bind.vue new file mode 100644 index 0000000..7141a8f --- /dev/null +++ b/pages/manage/axis-bind.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/pages/manage/mater-in-storage.vue b/pages/manage/mater-in-storage.vue deleted file mode 100644 index 05c86cf..0000000 --- a/pages/manage/mater-in-storage.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - - - diff --git a/pages/manage/material-transfer.vue b/pages/manage/tube-core-out.vue similarity index 52% rename from pages/manage/material-transfer.vue rename to pages/manage/tube-core-out.vue index b0a4e55..13c4606 100644 --- a/pages/manage/material-transfer.vue +++ b/pages/manage/tube-core-out.vue @@ -4,31 +4,36 @@ - - 当前点位 + + 物料编码 - + - - - 载具号 + + + 管芯规格 - - + + + + + + + 管芯数量 + + + - - + @@ -36,7 +41,7 @@ + + diff --git a/pages/manage/waste-foil-move.vue b/pages/manage/waste-foil-move.vue index c946a83..8eded0f 100644 --- a/pages/manage/waste-foil-move.vue +++ b/pages/manage/waste-foil-move.vue @@ -17,9 +17,9 @@ - - - + + + @@ -46,12 +46,26 @@ this.title = options.title }, methods: { - async _startMoveWasteFoilv2 () { + async toSure1 () { this.disabled = true if (!this.val1) { this.disabled = false return } + uni.showModal({ + title: '提示', + content: '请开始废箔搬运', + confirmColor: '#ff6a00', + success: (res) => { + if (res.confirm) { + this._startMoveWasteFoilv2() + } else if (res.cancel) { + this.disabled = false + } + } + }) + }, + async _startMoveWasteFoilv2 () { try { let res = await startMoveWasteFoilv2(this.val1) this.clearUp() @@ -63,12 +77,30 @@ this.disabled = false } }, - async _resumeMoveWasteFoilv2 (type) { + toSure2 (type) { this.disabled = true if (!this.val1) { this.disabled = false return } + if (type === '1') { + uni.showModal({ + title: '提示', + content: '请确认废箔搬运', + confirmColor: '#ff6a00', + success: (res) => { + if (res.confirm) { + this._resumeMoveWasteFoilv2(type) + } else if (res.cancel) { + this.disabled = false + } + } + }) + } else { + this._resumeMoveWasteFoilv2(type) + } + }, + async _resumeMoveWasteFoilv2 (type) { try { let res = await resumeMoveWasteFoilv2(type, this.val1) this.clearUp() diff --git a/utils/getData2.js b/utils/getData2.js index 168ad75..2dc1db9 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -52,4 +52,43 @@ export const startMoveWasteFoilv2 = (code) => request({ export const resumeMoveWasteFoilv2 = (flag, code) => request({ url:'api/pda/other/resumeMoveWasteFoil/v2', data: {flag: flag, point_code: code} +}) +// 管芯入库 +export const gxgetGxSpecification = () => request({ + url:'api/pda/gx/getGxSpecification', + data: {} +}) +export const gxconfirmedInStorage = (num, code, spec) => request({ + url:'api/pda/gx/confirmedInStorage', + data: {gx_number: num, material_code: code, material_spec: spec} +}) +export const gxremainingQty = () => request({ + url:'api/pda/gx/remainingQty', + data: {} +}) +// 管芯出库 +export const gxconfirmedOutStorage = (num, code, spec) => request({ + url:'api/pda/gx/confirmedOutStorage', + data: {number: num, material_code: code, material_spec: spec} +}) +// 套轴绑定 +export const getSlitterDeviceBox = () => request({ + url:'api/pda/nbj/getSlitterDeviceBox', + data: {} +}) +export const getSlitterNeedShaftPlans = () => request({ + url:'api/pda/nbj/getSlitterNeedShaftPlans', + data: {point_code: code, device: device} +}) +export const doSendShaft = (code, device) => request({ + url:'api/pda/nbj/doSendShaft', + data: {point_code: code, device: device} +}) +export const doBindingGx = (code, row) => request({ + url:'api/pda/nbj/doBindingGx', + data: {point_code: code, row: row} +}) +export const toCleanCutCacheInventory = (code) => request({ + url:'api/pda/nbj/toCleanCutCacheInventory', + data: {point_code: code} }) \ No newline at end of file diff --git a/utils/mork2.js b/utils/mork2.js index aaab77f..14a5025 100644 --- a/utils/mork2.js +++ b/utils/mork2.js @@ -7,7 +7,8 @@ export const authority = () => { [ {path: 'RF01', title: '收卷辊库', sonTree: [{title: '收卷辊管理', path: '/pages/manage/roll-manage'}]}, {path: 'RF01', title: '检测取样', sonTree: [{title: '呼叫取样', path: '/pages/manage/call-sampling'}]}, - {path: 'RF01', title: '废箔处理', sonTree: [{title: '废箔搬运', path: '/pages/manage/waste-foil-move'}]} + {path: 'RF01', title: '废箔处理', sonTree: [{title: '废箔搬运', path: '/pages/manage/waste-foil-move'}]}, + {path: 'RF01', title: '内包间', sonTree: [{title: '管芯入库', path: '/pages/manage/tube-core-storage'}, {title: '管芯出库', path: '/pages/manage/tube-core-out'}, {title: '套轴绑定', path: '/pages/manage/axis-bind'}]} ] } }}