123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <view class="mine">
- <view class="content">
- <view class="camera-content">
- <camera class='scan-camera' mode="scanCode" binderror="cameraError" bindscancode='scancode' frame-size='large'>
- <cover-view class='scan-animation' animation="{{animation}}"></cover-view>
- </camera>
- <view class='cover-corner cover-left-top' src='/images/left-top.png'></view>
- <view class='cover-corner cover-right-top' src='/images/right-top.png'></view>
- <view class='cover-corner cover-left-bottom' src='/images/left-bottom.png'></view>
- <view class='cover-corner cover-right-bottom' src='/images/right-bottom.png'></view>
- </view>
- <view class="cover-tips">
- 请扫描相应的条形码
- </view>
- <view class="total">入库数:{{type=='barcode'?codeList.length+'台':qrCodeList.length+'个'}}</view>
- <view class="code-list">
- <view class="list-info">
- <view class="phone-list">
- <view class="serial">序号</view>
- <text> 机型信息</text>
- <text>设备码</text>
- </view>
- <view class="delete-button"></view>
- </view>
- <!-- 手机 -->
- <view wx:if="{{type=='barcode'}}">
- <view class="list-info" wx:for="{{codeList}}">
- <view class="phone-list">
- <view class="serial">{{index+1}}</view>
- <text>{{item.title}}</text>
- <text>{{item.imei}}</text>
- </view>
- <view class="delete-button" bindtap="onDelete" data-item="{{item}}" data-index="{{index}}">
- <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxrep/delete.png"></image>
- </view>
- </view>
- </view>
- <!-- 耳机 -->
- <view wx:else="">
- <view class="list-info" wx:for="{{qrCodeList}}">
- <view class="phone-list">
- <view class="serial">{{index+1}}</view>
- <text>耳机</text>
- <text>{{item}}</text>
- </view>
- <view class="delete-button" bindtap="onDelete" data-item="{{item}}" data-index="{{index}}">
- <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxrep/delete.png"></image>
- </view>
- </view>
- </view>
- </view>
- <view class="bottom-btn">
- <!-- <view class="btn" bindtap="onOpenShow">填写条码入库</view>
- <view class="btn" bindtap="onCodeInput">编辑更多信息</view> -->
- <view class="btn" bindtap="onCodeInput">清空</view>
- <view class="btn" bindtap="warehousing">入库</view>
- </view>
- </view>
- <van-popup class="code-popup" show="{{ popupShow }}" round bind:close="onClose">
- <view class="vr-code">
- <view class="code-popup-title">箱号数据</view>
- <van-cell-group>
- <van-field model:value="{{ userName }}" type="textarea" placeholder="请输入客户名" autosize />
- <view>
- <van-field model:value="{{ remarks }}" type="textarea" border="{{ false }}" placeholder="备注" autosize />
- </view>
- </van-cell-group>
- <view class="popup-botton">
- <view class="btn close-btn" bindtap="onCloseShow">取消</view>
- <view class="btn add-btn" bindtap="onAddCode">添加</view>
- </view>
- </view>
- </van-popup>
- <van-dialog use-slot title="您将删除该型号" show="{{ againDelete }}" show-cancel-button bind:close="onClose" bind:confirm="onDeleteCode">
- </van-dialog>
- <van-dialog use-slot title="您将清空所有记录" show="{{ deleteOverData }}" show-cancel-button bind:close="onClose" bind:confirm="onDeleteOverData">
- </van-dialog>
- </view>
|