| | |
| | | <input placeholder="请扫描容器号" v-model="container" focus></input>
|
| | | <text class='cuIcon-search text-blue' @click="getList"></text>
|
| | | </view>
|
| | | <view class="cu-form-group ">
|
| | | <view class="cu-form-group">
|
| | | <view class="title">批次号</view>
|
| | | <input placeholder="请输入物料批次" v-model="batch"></input>
|
| | | <text class='text-blue'></text>
|
| | | </view>
|
| | | <view class="cu-form-group ">
|
| | | <view class="cu-form-group">
|
| | | <view class="title">物料标签</view>
|
| | | <input placeholder="请扫描物料标签" v-model="barcode"></input>
|
| | | <text class='cuIcon-search text-blue' @click="search"></text>
|
| | |
| | | <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
|
| | | <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm">组盘</button>
|
| | | </view>
|
| | |
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | megreQty: '',
|
| | | list: [],
|
| | | range: [],
|
| | | batch: '',
|
| | | repeatClick: false,
|
| | | isconfirm: false
|
| | | isconfirm: false,
|
| | | batch:''
|
| | | }
|
| | | },
|
| | | computed: {
|
| | |
| | | mounted() {},
|
| | | methods: {
|
| | | async search() {
|
| | | const find = this.list.find(el => el.trackCode === this.barcode);
|
| | | if (this.barcode == undefined || this.barcode == '') { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: '物料标签不能为空!!' |
| | | }) |
| | | return |
| | | } |
| | | const find = this.list.find(el => el.trackCode === this.barcode); |
| | | find ? this.scrollTo() : this.getDet();
|
| | |
|
| | | },
|
| | | async getDet() {
|
| | | const {
|
| | | code,
|
| | | data,
|
| | | msg
|
| | | } = await request('/asnOrderItem/trackCode/' + this.barcode, {}, "get")
|
| | | } = await request('/asnOrderItem/trackCode', {
|
| | | code: this.barcode,
|
| | | batch: this.batch
|
| | | }, "post")
|
| | | if (code === 200) {
|
| | | data && this.list.push(data);
|
| | | } else {
|
| | |
| | | })
|
| | | }
|
| | | },
|
| | | async getList() {
|
| | | async getList() { |
| | | if (this.container == undefined || this.container == '') { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: '容器号不能为空!!' |
| | | }) |
| | | return |
| | | }
|
| | | const {
|
| | | code,
|
| | | data,
|
| | |
| | | msg
|
| | | } = await request('/waitPakin/merge', {
|
| | | items: newArr,
|
| | | barcode: this.container
|
| | | barcode: this.container,
|
| | | batch: this.batch,
|
| | | })
|
| | | if (code === 200) {
|
| | | uni.showToast({
|