| | |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>商品列表</text></view> |
| | | <label v-show="matList.length != 0" style="float: right;margin-right: 20px;margin-top: 13px;"><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove()"></uni-icons></label> |
| | | <!-- <label v-show="matList.length != 0" style="float: right;margin-right: 20px;margin-top: 13px;"><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove()"></uni-icons></label> --> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | <checkbox-group @change="checkbox"> |
| | | <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" > |
| | | <view class="data-list-left"> |
| | | <view class=""> |
| | | <!-- <view> |
| | | <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" /> |
| | | </view> |
| | | </view> --> |
| | | <view class="matnr"><text style="width: 400rpx;">编码:{{item.matnr}}</text></view> |
| | | <view><text style="width: 400rpx;">品名:{{item.maktx}}</text></view> |
| | | <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view> |
| | |
| | | </view> |
| | | <view class="data-list-right"> |
| | | <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label> |
| | | |
| | | <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> |
| | | </view> |
| | | </view> |
| | | </checkbox-group> |
| | |
| | | |
| | | <!-- 底部按钮 --> |
| | | <view class="footer flex justify-around"> |
| | | <label class="label-btn" style="width: 170rpx;"> |
| | | <!-- <label class="label-btn" style="width: 170rpx;"> |
| | | <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox> |
| | | </label> |
| | | <label class="label-btn" style="width: 100rpx;"> |
| | | <text @click="reChecked()">反选</text> |
| | | </label> |
| | | </label> --> |
| | | |
| | | <label class="label-btn" style="width: 150rpx;"> |
| | | <button class="cu-btn" @click="resst()">重置</button> |
| | |
| | | searchBox: 'hide', |
| | | pick:'hide', |
| | | matnr:'', |
| | | matList:[{matnr:"1100758-10004",maktx:"JK-T9270D-12-2PL-Q-(3/16)",batch:"12",anfme:"1"}], |
| | | matList:[], |
| | | result: '', |
| | | enableQty:'', |
| | | count:'', |
| | |
| | | }, |
| | | onShow() { |
| | | setTimeout(()=>{ |
| | | this.focuss() |
| | | // this.focuss() |
| | | }, 100); |
| | | |
| | | }, |
| | |
| | | resst() { |
| | | this.matList = [] |
| | | this.barcode = '' |
| | | this.focuss() |
| | | this.barcodeFocuss() |
| | | uni.vibrateShort(); |
| | | }, |
| | | removeBarcode() { |
| | |
| | | }, |
| | | // 列表全选 |
| | | allChecked(e){ |
| | | |
| | | if (this.check == true) { |
| | | for (var i = 0; i < this.matList.length;i++) { |
| | | this.$set(this.matList[i],'checked',false) |