| | |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" |
| | | :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;"> |
| | | :focus="barcodeFocus" @confirm="barcodeInput()" @input="findMat()" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="square-2"> |
| | | <!-- <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>检索商品</text></view> |
| | |
| | | :focus="focus" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | | <!-- <view class="content-btn"> |
| | | <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+提取</button> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | |
| | | <view class="square-1"> |
| | |
| | | <view><text style="width: 400rpx;">规格:{{item.specs}}</text></view> |
| | | <!-- <view><text style="width: 400rpx;">型号:{{item.model}}</text></view> --> |
| | | <view><text style="width: 400rpx;">批次:{{item.batch}}</text></view> |
| | | <view style="width: 500rpx;"><text>型号:{{item.model}}</text></view> |
| | | <view><text style="width: 400rpx;">库存状态:{{item.cstateid$}}</text></view> |
| | | <!-- <view><text style="width: 400rpx;">备注:{{item.memo}}</text></view> --> |
| | | <view> |
| | | <text style="width: 400rpx;">主数量:{{item.anfme}}</text> |
| | |
| | | |
| | | <label class="label-btn" style="width: 150rpx;"> |
| | | <button class="cu-btn" @click="resst()">重置</button> |
| | | </label> |
| | | <label> |
| | | 总计辅数量:{{ countWeight }} |
| | | </label> |
| | | <label class="label-btn"> |
| | | <button class="cu-btn bg-blue " @click="comb()">组托</button> |
| | |
| | | checkedData:[], |
| | | batch:'', |
| | | tkFlag: null, |
| | | countWeight: 0, |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/mat/back', |
| | | data: { |
| | | matnr:that.matnr |
| | | barcode:that.barcode |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | let res = result.data |
| | | if (res.code === 200 && res.data) { |
| | | that.matData = res.data |
| | | that.matnr = '' |
| | | uni.navigateTo({ |
| | | url: "matQuerySelect", |
| | | events: { |
| | |
| | | } |
| | | if (add) { |
| | | this.matList.unshift(mat) |
| | | |
| | | let count = 0; |
| | | this.matList.forEach((item) => { |
| | | count += item.weight; |
| | | }) |
| | | this.countWeight = count; |
| | | } |
| | | }, |
| | | change(e) { |
| | |
| | | } |
| | | .data-list { |
| | | border-bottom: 1px solid #d8d8d8; |
| | | height: 280rpx; |
| | | height: 480rpx; |
| | | margin: 15rpx; |
| | | border-radius: 20rpx; |
| | | } |