| | |
| | | </view> |
| | | <view class="cu-form-group"> |
| | | <view class="title">票号</view> |
| | | <input placeholder="请扫描现品票号" v-model="fieldsIndex"></input> |
| | | <text class='cuIcon-search text-blue' @click="search"></text> |
| | | <input placeholder="请扫描现品票号" v-model="fieldsIndex" @input="search()" focus></input> |
| | | <!-- <text class='cuIcon-search text-blue' @click="search"></text> --> |
| | | </view> |
| | | <view class="cu-form-group"> |
| | | <view class="title">ASN单号</view> |
| | |
| | | <text class="text-black">可组盘数量:<text |
| | | class="text-grey ">{{item.anfme - item.workQty - item.qty}}</text></text> |
| | | </view> |
| | | <view class="content"> |
| | | <uni-data-checkbox mode="button" multiple v-model="isHalf" |
| | | :localdata="boxs"></uni-data-checkbox> |
| | | </view> |
| | | </view> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | |
| | | barcode: '', |
| | | container: '', |
| | | megreQty: '', |
| | | isHalf: 0, |
| | | boxs: [{ |
| | | text: '半箱', |
| | | value: 1 |
| | | }], |
| | | list: [], |
| | | range: [], |
| | | asnCode: '', |
| | |
| | | mounted() {}, |
| | | methods: { |
| | | async search() { |
| | | if (this.fieldsIndex.length < 30) { |
| | | return; |
| | | } |
| | | const find = this.list.find(el => el.trackCode === this.barcode); |
| | | find ? this.scrollTo() : this.getDet(); |
| | | }, |
| | |
| | | // uni.showLoading({ |
| | | // title: '加载中...' |
| | | // }) |
| | | const { code, data, msg } = await request('/asnOrderItem/trackCode', { |
| | | const { |
| | | code, |
| | | data, |
| | | msg |
| | | } = await request('/asnOrderItem/trackCode', { |
| | | matnrCode: that.matnrCode, |
| | | asnCode: that.asnCode, |
| | | code: that.asnCode, |
| | |
| | | }, |
| | | |
| | | async getList() { |
| | | let that = this |
| | | if (this.container === '' || this.container === null) { |
| | | uni.showToast({ |
| | | title: "容器码为空", |
| | |
| | | }) |
| | | return; |
| | | } |
| | | const { code, data, msg } = await request('/asnOrderItem/container', { |
| | | const { |
| | | code, |
| | | data, |
| | | msg |
| | | } = await request('/asnOrderItem/container', { |
| | | barcode: this.container |
| | | }) |
| | | if (code === 200) { |
| | |
| | | icon: "success", |
| | | position: 'top' |
| | | }) |
| | | that.list.push(...data) |
| | | |
| | | |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | |
| | | showBackData(data) { |
| | | let status; |
| | | data.map(item => { |
| | | item.isHalf = 0; |
| | | this.list.push(item) |
| | | }) |
| | | let oldLength = this.list.length |
| | |
| | | <form> |
| | | <view class="cu-form-group" v-show="!isconfirm"> |
| | | <view class="title">票号:</view> |
| | | <input placeholder="请扫描票号" v-model="fieldsIndex" focus></input> |
| | | <input placeholder="请扫描票号" v-model="fieldsIndex" focus @input="search()"></input> |
| | | <text class='cuIcon-close text-gray margin-right-xs' v-show="fieldsIndex!==''" @click="clearCode"></text> |
| | | <text class='cuIcon-search text-blue' @click="search"></text> |
| | | </view> |
| | | </form> |
| | | </view> |
| | |
| | | }, |
| | | async search() { |
| | | let that = this; |
| | | // if(this.barcode === '' || this.barcode ===null){ |
| | | // return ; |
| | | // } |
| | | if(this.fieldsIndex === '' || this.fieldsIndex.length > 30){ |
| | | return ; |
| | | } |
| | | const { code, data, msg } = await request('/wave/order/items', { |
| | | barcode: this.orderDetl.barcode, |
| | | orderId: that.orderDetl.orderId, |