diff --git a/src/pages/new-purchase/bind/coding-bind.vue b/src/pages/new-purchase/bind/coding-bind.vue index 937d537..e273916 100644 --- a/src/pages/new-purchase/bind/coding-bind.vue +++ b/src/pages/new-purchase/bind/coding-bind.vue @@ -66,7 +66,8 @@ @@ -75,7 +76,8 @@ @@ -254,24 +256,26 @@ const onHandlerFill = () => { let passCodeNUm = codeSuffixEnd - codeSuffixStart + 1 > waitBindNum.value ? waitBindNum.value - : codeSuffixEnd - codeSuffixStart + 1 + : codeSuffixEnd - codeSuffixStart + 1 codeBindingList.value = [] - console.log(codeSuffixStart) - console.log(codeSuffixEnd) - console.log(codeSuffixEnd.length) - console.log(passCodeNUm) + console.log(codeSuffixStart) + console.log(codeSuffixEnd) + console.log(codeSuffixEnd.length) + console.log(passCodeNUm) // 循环生成编码 for (let i = 0; i < passCodeNUm; i++) { - let digitNum = -4; - if(codeSuffixEnd.length>4){ - digitNum = 0-codeSuffixEnd.length; - } + let digitNum = -4 + if (codeSuffixEnd.length > 4) { + digitNum = 0 - codeSuffixEnd.length + } const codeItem = { typeName, maTypeName, outFacCode: '', // productDate: "", - maCode: `${codePrefix}${('000000'+Number(Number(codeSuffixStart) + i)).slice(digitNum)}`, + maCode: `${codePrefix}${('000000' + Number(Number(codeSuffixStart) + i)).slice( + digitNum, + )}`, } codeBindingList.value.push(codeItem) } @@ -285,9 +289,7 @@ const onHandelDelete = (index) => { // 编码识别按钮 const onCodeIdentify = () => { uni.navigateTo({ - url: `/pages/new-purchase/bind/ocr-bind?queryParams=${JSON.stringify( - queryParams.value, - )}`, + url: `/pages/new-purchase/bind/ocr-bind?queryParams=${JSON.stringify(queryParams.value)}`, }) } diff --git a/src/pages/new-purchase/bind/coding-scan.vue b/src/pages/new-purchase/bind/coding-scan.vue index 8e159ba..bb6481a 100644 --- a/src/pages/new-purchase/bind/coding-scan.vue +++ b/src/pages/new-purchase/bind/coding-scan.vue @@ -27,15 +27,28 @@ - - + + - + +
@@ -45,9 +58,10 @@ @@ -400,19 +428,19 @@ const onHandleOutbound = async () => { flex-direction: column; background-color: #f7f8fa; padding: 24rpx; - padding-bottom: 120rpx; // 为底部按钮留出空间 - .card { - padding: 5px; - background-color: #fff; - border-radius: 6px; - box-shadow: 0 2upx 4upx 0 rgba(0, 0, 0, 0.1); - } - .form-view { - width: 100%; - height: 100%; - display: flex; - align-items: center; - } + padding-bottom: 120rpx; // 为底部按钮留出空间 + .card { + padding: 5px; + background-color: #fff; + border-radius: 6px; + box-shadow: 0 2upx 4upx 0 rgba(0, 0, 0, 0.1); + } + .form-view { + width: 100%; + height: 100%; + display: flex; + align-items: center; + } .table-list-item { margin: 20rpx 0; padding: 20rpx; @@ -428,7 +456,7 @@ const onHandleOutbound = async () => { :deep(.uni-row) { margin-bottom: 20rpx; - + .uni-col-7 { color: #8c8c8c; font-size: 28rpx; @@ -464,7 +492,8 @@ const onHandleOutbound = async () => { .line { margin: 24rpx 0; height: 2rpx; - background: linear-gradient(90deg, + background: linear-gradient( + 90deg, rgba(232, 232, 232, 0) 0%, rgba(232, 232, 232, 1) 50%, rgba(232, 232, 232, 0) 100% @@ -504,30 +533,30 @@ const onHandleOutbound = async () => { // opacity: 0.9; // } } - - // 底部全选按钮 - .checked-btn { - position: fixed; - bottom: 40rpx; - left: 70%; - // transform: translateX(-1%); - width: 25%; - height: 88rpx; - background: #fff; - text-align: center; - line-height: 88rpx; - color: #000; - border-radius: 12rpx; - font-size: 28rpx; - font-weight: 600; - box-shadow: 0 6rpx 20rpx rgba(55, 132, 251, 0.2); - // transition: all 0.3s ease; - - // &:active { - // transform: translateX(-50%) scale(0.98); - // opacity: 0.9; - // } - } + + // 底部全选按钮 + .checked-btn { + position: fixed; + bottom: 40rpx; + left: 70%; + // transform: translateX(-1%); + width: 25%; + height: 88rpx; + background: #fff; + text-align: center; + line-height: 88rpx; + color: #000; + border-radius: 12rpx; + font-size: 28rpx; + font-weight: 600; + box-shadow: 0 6rpx 20rpx rgba(55, 132, 251, 0.2); + // transition: all 0.3s ease; + + // &:active { + // transform: translateX(-50%) scale(0.98); + // opacity: 0.9; + // } + } } // 加载提示文字