1
skyouc
2025-11-21 c7e53ce43552cf1ce31b86b6bf8a372e541efe19
pages/check/checkOrder.vue
@@ -1,61 +1,60 @@
<template>
   <view class="has-foot">
      <form>
         <view class="cu-form-group" v-show="!isconfirm">
            <view class="title">波次号</view>
            <input placeholder="请扫描波次号" v-model="barcode" @input="search()" focus></input>
         <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>
@@ -76,11 +75,6 @@
         <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>
@@ -97,17 +91,17 @@
   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'
            },
         }
      },
@@ -121,7 +115,7 @@
         this.search()
      },
      methods: {
         clickTaskItem(index){
         clickTaskItem(index) {
            let that = this
            uni.navigateTo({
               url: "./checkOrderItem",
@@ -131,10 +125,10 @@
                     data: that.list[index]
                  })
               }
            });
            });
         },
         typeChange(e){
         typeChange(e) {
            this.typeSelect = e.value
            this.search()
         },
@@ -147,12 +141,11 @@
               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",
@@ -160,15 +153,15 @@
                  })
               }
               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",
@@ -242,7 +235,7 @@
            }
         },
         DateChange(e, item) {
            item.prodTime = e.detail.value
         }
@@ -275,7 +268,8 @@
      min-height: 80upx;
      align-items: center;
   }
   .content2 {
   .content2 {
      /* background-color: coral; */
      width: 100%;
      display: flex;