| | |
| | | </view> |
| | | </view> |
| | | <view class="info-row"> |
| | | <view class="info-label">工单号:</view> |
| | | <view class="info-value"> |
| | | <text class="tag tag-primary">{{orderDetl.standby1 || '-'}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="info-row"> |
| | | <view class="info-label">批号:</view> |
| | | <view class="info-value"> |
| | | <text class="tag tag-warning">{{orderDetl.batch || '-'}}</text> |
| | |
| | | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="bottom-bar"> |
| | | <button class="btn-submit" size="default" type="primary" @click="reset()"> |
| | | <text>重置</text> |
| | | </button> |
| | | <button class="btn-submit" size="default" type="primary" @click="addItems()"> |
| | | <uni-icons type="checkmarkempty" size="18" color="#ffffff"></uni-icons> |
| | | <text>提取选中物料</text> |
| | |
| | | }, |
| | | methods: { |
| | | onFilterInput() { |
| | | let that = this |
| | | // 方法1:分割成数组 |
| | | let arr = that.filterMatnr.split('|') |
| | | // 方法2:遍历每一段 |
| | | arr.forEach((item, index) => { |
| | | switch(index){ |
| | | case 2: that.filterMatnr = item |
| | | break; |
| | | } |
| | | }) |
| | | this.applyFilter() |
| | | }, |
| | | |
| | |
| | | addItem(mat) { |
| | | this.getOpenerEventChannel().emit('sMat', {data: mat}); |
| | | uni.navigateBack({}) |
| | | }, |
| | | reset(){ |
| | | this.filterMatnr = '' |
| | | this.orderNo = '' |
| | | this.dataList = [] |
| | | this.filteredList = [] |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | /* 底部按钮栏 */ |
| | | .bottom-bar { |
| | | display: flex; |
| | | flex-direction: row; |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 0; |