| | |
| | | <template> |
| | | <view class="has-foot"> |
| | | <form> |
| | | <view class="cu-form-group" v-show="!isconfirm"> |
| | | <view class="cu-form-group " v-show="!isconfirm"> |
| | | <view class="title">盘点单</view> |
| | | <input placeholder="请扫描盘点单号" v-model="barcode" @input="search()" focus></input> |
| | | <text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearCode"></text> |
| | | </view> |
| | | |
| | | </form> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <view class="cu-list det menu sm-border padding"> |
| | | <block v-for="(item, index) in list" :key="index"> |
| | | <view class="cu-list det menu " @click="clickTaskItem(index)"> |
| | | |
| | | |
| | | <view class="cu-bar bg-white solid-bottom margin-top-sm"> |
| | | <view class="action"> |
| | | <view class="index"> |
| | | {{index+1}} |
| | | <block v-for="(item, index) in list" :key="index"> |
| | | <view class="cu-list det menu " @click="clickTaskItem(index)"> |
| | | <view class="cu-bar bg-white solid-bottom margin-top-sm"> |
| | | <view class="action"> |
| | | <view class="index"> |
| | | {{index+1}} |
| | | </view> |
| | | </view> |
| | | <view class="content2"> |
| | | <text class="text-gray"><text class="text-black ">{{item.exceStatus$}}</text></text> |
| | | </view> |
| | | </view> |
| | | <view class="content2"> |
| | | <text class="text-gray"><text class="text-black ">{{item.exceStatus$}}</text></text> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">盘点差异单:<text class="text-black ">{{item.orderCode}}</text></text> |
| | | </view> |
| | | </view> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">创建时间:<text class="text-black ">{{item.createTime$}}</text></text> |
| | | </view> |
| | | </view> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">库面数量:<text class="text-black ">{{item.anfme}}</text></text> |
| | | </view> |
| | | <view class="content"> |
| | | <text class="text-gray">盘点数量:<text class="text-black ">{{item.checkQty}}</text></text> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">盘点差异单:<text class="text-black ">{{item.orderCode}}</text></text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">盘点类型:<text class="text-black ">{{item.checkType$}}</text></text> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">创建时间:<text class="text-black ">{{item.createTime$}}</text></text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <progress :percent="Math.trunc((item.checkQty/item.anfme)*100) " show-info stroke-width="3" /> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">库存数量:<text class="text-black ">{{item.anfme}}</text></text> |
| | | </view> |
| | | <view class="content"> |
| | | <text class="text-gray">盘点数量:<text class="text-black ">{{item.checkQty}}</text></text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">盘点类型:<text class="text-black ">{{item.checkType$}}</text></text> |
| | | </view> |
| | | </view> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <progress :percent="Math.trunc((item.checkQty/item.anfme)*100) " show-info |
| | | stroke-width="3" /> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </block> |
| | | </view> |
| | |
| | | <button class="cu-btn bg-blue shadow-blur" @click="next">下一步</button> |
| | | </view> |
| | | |
| | | <view class="cu-bar btn-group foot" v-show="isconfirm"> |
| | | <button class="cu-btn text-blue line-blue shadow" @click="prev">上一步</button> |
| | | <button class="cu-btn bg-blue shadow-blur" @click="confirm">提交收货</button> |
| | | </view> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | isClickItem:false, |
| | | clickItem:'', |
| | | QRbarcode:null, |
| | | isClickItem: false, |
| | | clickItem: '', |
| | | QRbarcode: null, |
| | | barcode: '', |
| | | whAreaId: '', |
| | | list: [], |
| | | range: [], |
| | | isconfirm: false, |
| | | isconfirm: false, |
| | | itemStyle: { |
| | | backgroundColor: '#42b983', |
| | | borderColor: '#42b983' |
| | | backgroundColor: '#42b983', |
| | | borderColor: '#42b983' |
| | | }, |
| | | } |
| | | }, |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | clickTaskItem(index){ |
| | | clickTaskItem(index) { |
| | | let that = this |
| | | uni.navigateTo({ |
| | | url: "./checkOrderItem", |
| | |
| | | data: that.list[index] |
| | | }) |
| | | } |
| | | |
| | | }); |
| | | |
| | | }); |
| | | }, |
| | | typeChange(e){ |
| | | typeChange(e) { |
| | | this.typeSelect = e.value |
| | | this.search() |
| | | }, |
| | |
| | | code, |
| | | data, |
| | | msg |
| | | } = await request('/getCheckList',{ |
| | | code:this.barcode |
| | | } |
| | | ) |
| | | if (code === 200) { |
| | | if (Object.keys(data).length === 0){ |
| | | } = await request('/getCheckList', { |
| | | code: this.barcode |
| | | }) |
| | | if (code === 200) { |
| | | if (Object.keys(data).length === 0) { |
| | | uni.showToast({ |
| | | title: "未查询到波次数据", |
| | | icon: "none", |
| | |
| | | }) |
| | | } |
| | | this.list.push(...data) |
| | | |
| | | }else if(code == 401){ |
| | | |
| | | } else if (code == 401) { |
| | | setTimeout(() => { |
| | | uni.removeStorageSync('token'); |
| | | uni.reLaunch({ |
| | | url: "/pages/login/login" |
| | | }); |
| | | }, 1000); |
| | | }else { |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: "none", |
| | |
| | | |
| | | } |
| | | }, |
| | | |
| | | |
| | | DateChange(e, item) { |
| | | item.prodTime = e.detail.value |
| | | } |
| | |
| | | min-height: 80upx; |
| | | align-items: center; |
| | | } |
| | | .content2 { |
| | | |
| | | .content2 { |
| | | /* background-color: coral; */ |
| | | width: 100%; |
| | | display: flex; |