| | |
| | | <text style="text-align: right;color: #409EFF;" @click="findMat()">提取+</text>
|
| | | <uni-icons type="right" color="#c1c1c1"></uni-icons>
|
| | | </view>
|
| | | </view>
|
| | | </view> |
| | | <uni-section title="商品列表" type="line" class="mat-list-title"></uni-section>
|
| | | </view>
|
| | | <view class="mat-list-title">
|
| | | <div>商品列表</div>
|
| | | <view class="list-view">
|
| | | <scroll-view>
|
| | | <view class="list" v-for="(item,i) in dataList" :key="i">
|
| | | <view class="list-left">
|
| | |
| | | // 不设置定时器 会出现扫入的字符串不全
|
| | | setTimeout(() => {
|
| | | var len = this.barcode.length
|
| | | if (len != 8) {
|
| | | uni.showToast({
|
| | | title: '托盘码有误请重试',
|
| | | icon: "none",
|
| | | position: 'top'
|
| | | });
|
| | | // this.barcodeFocuss()
|
| | | return;
|
| | | }
|
| | | // if (len != 8) {
|
| | | // uni.showToast({
|
| | | // title: '托盘码有误请重试',
|
| | | // icon: "none",
|
| | | // position: 'top'
|
| | | // });
|
| | | // // this.barcodeFocuss()
|
| | | // return;
|
| | | // }
|
| | | // this.focuss()
|
| | | }, 200)
|
| | | },
|
| | |
| | | resst() {
|
| | | this.dataList = []
|
| | | this.barcode = ''
|
| | | this.matnr = ''
|
| | | this.barcodeFocuss()
|
| | | },
|
| | | }
|
| | |
| | | </script>
|
| | |
|
| | | <style>
|
| | | @import url('../../static/css/wms.css/wms.css');
|
| | | @import url('../../static/css/wms.css/wms.css'); |
| | | |
| | | .uni-section { |
| | | margin-top: 0rpx; |
| | | |
| | | .uni-section__content-title { |
| | | font-size: 16px !important; |
| | | } |
| | | }
|
| | |
|
| | | .list {
|
| | | border-radius: unset;
|
| | | margin: auto;
|
| | | margin-top: 20rpx;
|
| | | padding: 10rpx;
|
| | | } |
| | | |
| | | .list-view { |
| | | width: 100%; |
| | | position: relative; |
| | | }
|
| | |
|
| | | .list:first-child {
|
| | | margin-top: 20rpx;
|
| | | margin-top: 320rpx;
|
| | | }
|
| | | .code {
|
| | | width: 100%;
|
| | |
| | | line-height: 80rpx;
|
| | | width: 100%;
|
| | | background-color: white;
|
| | | position: fixed;
|
| | | margin-top: 200rpx;
|
| | | position: relative; |
| | | font-weight: 500;
|
| | | z-index: 9;
|
| | | /* border-top: 1px solid #DCDFE6; */
|
| | | text-align: center;
|
| | | /* box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); */
|
| | | }
|
| | | </style>
|