| | |
| | | <view class="cu-form-group margin-top"> |
| | | <view class="title">订单号</view> |
| | | <input placeholder="请输入订单号" v-model="asnCode"></input> |
| | | <text class='cuIcon-search text-blue' @click="search"></text> |
| | | <!-- <text class='cuIcon-search text-blue' @click="search"></text> --> |
| | | </view> |
| | | <view class="cu-form-group"> |
| | | <view class="title">容器号</view> |
| | | <input placeholder="请扫描容器编码" v-model="container" focus></input> |
| | | <text class='cuIcon-search text-blue' @click="getList"></text> |
| | | <input placeholder="请扫描容器编码" v-model="container" @input="getList" focus></input> |
| | | <!-- <text class='cuIcon-search text-blue' @click="getList"></text> --> |
| | | </view> |
| | | <view class="cu-form-group"> |
| | | <view class="title">物料号</view> |
| | |
| | | |
| | | </view> |
| | | |
| | | <view class="padding-lr margin-top-sm"> |
| | | <view class="padding-lr margin-top-sm" style="padding-bottom: 120upx;"> |
| | | <block v-for="(item, index) in list" :key="index"> |
| | | <view class="cu-list det menu sm-border margin-bottom-sm " :class="[item.trackCode===barcode&&'act']" |
| | | :ref="item.trackCode+'ref'"> |
| | |
| | | <view class="form-item"> |
| | | <text class="form-label">目标库区</text> |
| | | <view class="input-wrapper picker-wrapper"> |
| | | <picker mode="selector" :range="rangeText" @change="pickerChange"> |
| | | <picker class="picker" mode="selector" :range="rangeText" @change="pickerChange"> |
| | | <view class="picker-view"> |
| | | <text>{{ whAreaId ? selectedText : '请选择库区' }}</text> |
| | | <text class="cuIcon-right picker-arrow"></text> |
| | |
| | | computed: { |
| | | ...mapState('user', ['dynamicFields']), |
| | | allCount() { |
| | | return this.list.reduce((acc, row) => +row.anfme + acc, 0) || 0 |
| | | return this.list.reduce((acc, row) => +row.receiptQty + acc, 0) || 0 |
| | | }, |
| | | rangeText() { |
| | | return this.range.map(item => item.text) |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getRece() |
| | | // this.getRece() |
| | | // 获取按钮权限 |
| | | this.buttonPermissions = uni.getStorageSync('buttonPermissions') || []; |
| | | console.log('当前页面按钮权限:', this.buttonPermissions); |
| | |
| | | barcode: this.container |
| | | }) |
| | | if (code === 200) { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: "success", |
| | | position: 'top' |
| | | }) |
| | | this.range = data.map(item => ({ |
| | | value: item.id, |
| | | text: item.name |
| | | })); |
| | | |
| | | this.whAreaId = this.range[0].value |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | |
| | | if (code === 200) { |
| | | this.range = data.map(item => ({ |
| | | value: item.id, |
| | | text: item.warehouseId$ + "-- " + item.name |
| | | text: item.name |
| | | })); |
| | | } |
| | | }, |
| | |
| | | color: #333; |
| | | background-color: transparent; |
| | | } |
| | | .picker{ |
| | | width: 100%; |
| | | } |
| | | |
| | | .picker-view { |
| | | width: 100%; |
| | |
| | | font-size: 30rpx; |
| | | color: #333; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | justify-content:space-between; |
| | | align-items: center; |
| | | } |
| | | |