| | |
| | | padding: 1upx 30upx;
|
| | | display: flex;
|
| | | align-items: center;
|
| | | min-height: 80upx;
|
| | | min-height: 100upx;
|
| | | justify-content: space-between;
|
| | | }
|
| | |
|
| | |
| | | <template>
|
| | | <view class="has-foot">
|
| | | <form>
|
| | | <view class="cu-form-group margin-top" v-show="!isconfirm">
|
| | | <view class="cu-form-group" v-show="!isconfirm">
|
| | | <view class="title">物料标签</view>
|
| | | <input placeholder="请扫描物料标签" v-model="barcode" focus></input>
|
| | | <text class='cuIcon-close text-gray margin-right-xs' v-show="asncode!==''" @click="clearCode"></text>
|
| | | <input placeholder="请扫描物料标签" v-model="barcode" @input="search()" focus></input>
|
| | | <text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearCode"></text>
|
| | | <text class='cuIcon-search text-blue' @click="search"></text>
|
| | | </view>
|
| | |
|
| | |
| | | data,
|
| | | msg
|
| | | } = await request('/orders/' + this.barcode, {}, "get")
|
| | | if (code === 200) {
|
| | | if (code === 200) { |
| | | if (Object.keys(data).length === 0){
|
| | | uni.showToast({
|
| | | title: "该标签未查询到数据",
|
| | | icon: "none",
|
| | | position: 'top'
|
| | | })
|
| | | }
|
| | | this.list.push(...data)
|
| | | } else {
|
| | | |
| | | }else if(code == 401){
|
| | | setTimeout(() => {
|
| | | uni.removeStorageSync('token');
|
| | | uni.reLaunch({
|
| | | url: "/pages/login/login"
|
| | | });
|
| | | }, 1000);
|
| | | }else {
|
| | | uni.showToast({
|
| | | title: msg,
|
| | | icon: "none",
|
| | |
| | |
|
| | | },
|
| | | clearCode() {
|
| | | this.asncode = ''
|
| | | this.barcode = ''
|
| | | },
|
| | | remove(index) {
|
| | | this.list.splice(index, 1);
|