|   | 
| <template> | 
|     <view class="overflow"  style="padding-bottom:100px"> | 
|         <!-- 顶部 --> | 
|         <cu-custom bgColor="bg-white" :isBack="true"> | 
|             <block slot="backText"></block> | 
|             <block slot="content">越库-DO</block> | 
|         </cu-custom> | 
|         <!-- 遮挡层 --> | 
|         <modal-code ref="resmodal" :rescode='rescode' :resmessage='resmessage' /> | 
|         <!-- 收货 --> | 
|         <view class="" v-if="renameFocus"> | 
|             <view style="margin-bottom: 180rpx;" v-show="singlist.length > 0"> | 
|                 <checkbox-group  @change="checkboxChange"> | 
|                     <view v-for="(item, eindex) in singlist" v-if="item.isYueku=='是'" :key="eindex" class="title-wrap"> | 
|                         <view class=" fontSize32rpx background_fff" :class="item.isYueku=='是'? 'bg_item' : '' " style="width: 100vw;"> | 
|                             <u-row> | 
|                                 <u-col span="12"> | 
|                                     <label class="flex align-center"> | 
|                                         <checkbox v-show="item.isYueku=='是'" :value="item.key" :checked="item.checked"/> | 
|                                         <text class="flex justify-center align-center  circkle06">{{ eindex + 1 }}</text> | 
|                                         <view class="color_f18202 padding_left10rpx" style="flex: 1;word-break: break-all;"> | 
|                                             {{item.wareMaterialCode}} -- 是否检验:  <text style="color: #000;font-weight: bold;">{{item.isCheck ? '是' : '否'}}</text> | 
|                                         </view> | 
|                                     </label> | 
|                                 </u-col> | 
|                             </u-row> | 
|   | 
|                             <u-row> | 
|                                 <u-col span="6"> | 
|                                     <view class="" style="padding: 5px 0 0px 10px;color: #808080;"> | 
|                                         行号:{{item.ebelp}} | 
|                                     </view> | 
|                                 </u-col> | 
|                                 <u-col span="6"> | 
|                                     <view class="" style="padding: 5px 0 0px 10px;color: #808080;"> | 
|                                         SAP:{{item.sap_Location}} | 
|                                     </view> | 
|                                 </u-col> | 
|                             </u-row> | 
|   | 
|                             <u-row> | 
|                                 <u-col span="6"> | 
|                                     <view class="text06 color_18"> | 
|                                         *是否可越库:{{item.isYueku}} | 
|                                     </view> | 
|                                 </u-col> | 
|                                 <u-col span="6"> | 
|                                     <view class="" style="padding: 5px 0 0px 10px;color: #808080;"> | 
|                                         采购数:{{item.deliveryQuantity}} | 
|                                     </view> | 
|                                 </u-col> | 
|                             </u-row> | 
|                             <u-row> | 
|                                 <u-col span="10"> | 
|                                     <view class="flex" style="padding: 5px 0 0px 10px;color: #808080;"> | 
|                                         批次:{{ item.batchNo }} | 
|                                     </view> | 
|                                 </u-col> | 
|                             </u-row> | 
|                             <u-row> | 
|                          | 
|                                 <u-col span="6"> | 
|                                     <view class="" style="padding: 5px 0 0px 10px;color: #808080;"> | 
|                                         单位:{{item.unit}} | 
|                                     </view> | 
|                                 </u-col> | 
|                             </u-row> | 
|                             <u-row> | 
|                                 <u-col span="7"> | 
|                                     <view class="" style="padding: 5px 0 0px 10px;color: #808080;"> | 
|                                     </view> | 
|                                 </u-col> | 
|                             </u-row> | 
|                         </view> | 
|                     </view> | 
|                 </checkbox-group> | 
|             </view> | 
|   | 
|             <button-modal :empTytowerShow='true' cleaningTitle="返回" garmenTitle='越库' @submit='goYuKu' @reset='rest' /> | 
|         </view> | 
|     </view> | 
| </template> | 
|   | 
| <script> | 
|     import ButtonModal from '../../../components/buttonModal.vue' | 
|     import ModalCode from '../../../components/ModalCode.vue' | 
|     import tkiBarcode from '@/components/tki-barcode/tki-barcode' | 
|     import bluet from '@/components/blue.vue' | 
|     import mixCheckbox from '@/mixins/checkboxYueKu.js' | 
|     export default { | 
|         mixins: [mixCheckbox], | 
|         data() { | 
|             return { | 
|                 materialCode: '', //物料编号 | 
|                 renameFocus: true, | 
|                 detailshow: false, | 
|                 rescode: 0, | 
|                 autoFoucs:true, | 
|                 resmessage: "", | 
|                 showBtn: 1, | 
|                 current: 0, //滑块默认值 | 
|                 fileList: [], | 
|                 lastlist: [], | 
|                 overlist: [], //收货列表 | 
|                 lacklist: [], //缺料列表 | 
|                 image: '', //当前显示的图片地址 | 
|                 action: this.$myHOST + '/sysFileInfo/uploadImages', | 
|                 singlist: [ | 
|                 {id:1} | 
|                 ], //物料详情 | 
|                 lists: [{ | 
|                     name: '收货(0)' | 
|                 }, { | 
|                     name: '缺料' | 
|                 }], | 
|                 list: [], | 
|                 arr: [], | 
|                 materlist: {}, //物料详情数据 | 
|                 warehouse: { | 
|                     PurchaseNo: '', | 
|                     WareMaterialCode:'',//物料编码 | 
|                     PageSize: 10000, | 
|                     PageNo: 1 | 
|                 }, | 
|                 warehouseRules: { | 
|                     PurchaseNo: [{ | 
|                         required: true, | 
|                         message: '单号不能为空', | 
|                         trigger: 'blur' | 
|                     }] | 
|                 }, | 
|                 options: [{ | 
|                         text: '详情', | 
|                         style: { | 
|                             backgroundColor: '#fc9f35' | 
|                         } | 
|                     }, | 
|                     { | 
|                         text: '删除', | 
|                         style: { | 
|                             backgroundColor: '#fc4b4b' | 
|                         } | 
|                     } | 
|                 ], | 
|                 operator: '', | 
|                 QuantityTotal: 0, //送货总数 | 
|                 collectedTotal: 0, //已收货数 | 
|                 uncollectedTotal: 0, //收货总数 | 
|                 lackTotal: 0, //缺货总数 | 
|                 code: '', | 
|                 addForm: { //打印记录 | 
|                     code: '', | 
|                     name: '', | 
|                     batchNo: '', | 
|                     specificationModel: '' | 
|                 }, | 
|                 lotNo: '', | 
|                 contLabel:1, //打印张数 | 
|                 ermNum:'', | 
|                 detailshow: false, | 
|                 timer:null, | 
|                 printflag:false, | 
|                 sapLocate:'', | 
|                 modalshow2: false, | 
|                 wolist2: [], | 
|                 DeliveryNo:"" | 
|             }; | 
|         }, | 
|         components: { | 
|             ButtonModal, | 
|             ModalCode, | 
|             tkiBarcode, | 
|             bluet | 
|         }, | 
|         onLoad(option) { | 
|             if(option.po) { | 
|                 this.warehouse.PurchaseNo = option.po | 
|                 this.warehouse.DeliveryNo = option.do | 
|   | 
|                 this.materialBlur() | 
|             } | 
|         }, | 
|         onReady() { | 
|         }, | 
|         mounted() { | 
|         }, | 
|         methods: { | 
|          | 
|             //物料查询 | 
|             materialBlur(param) { | 
|                 if(this.warehouse.PurchaseNo==''){ | 
|                     return | 
|                 } | 
|                 let arrRows = uni.getStorageSync('yuKuDoList') | 
|   | 
|                 if (Array.isArray(arrRows) && arrRows.length >= 1) { | 
|                     // 测试 | 
|                     // res.data.rows[1].isYueku='是' | 
|                     arrRows.forEach(( item)  => { | 
|                         item.uncollectedQuantity = ''; | 
|                         item.children = false; | 
|                         item.SortingOrderDetailsList=[]; | 
|                         // item.purchaseNo=item.purchaseNo; | 
|                         // 越库 | 
|                         item.isBig = item.isYueku=='是'?0:1; | 
|                         item.key = item.wareMaterialCode; | 
|                         if(item.isYueku == '是'){ | 
|                             this.arrIds.push(item.wareMaterialCode) | 
|                             item.checked = true | 
|                         }else{ | 
|                             item.checked = false | 
|                         } | 
|                     }) | 
|   | 
|                     // 排序  可以越库的物料排上面 | 
|                     arrRows.sort((a,b)=>{ | 
|                         return a.isBig-b.isBig | 
|                     }) | 
|   | 
|                     let arr1 = arrRows.filter(item => item.isYueku=='是') | 
|                     this.singlist = arr1 | 
|                  | 
|                     if (this.singlist.length == 0) { | 
|                         this.resmessage = '暂无数据' | 
|                         this.rescode = 400 | 
|                         this.$refs.resmodal.show = true | 
|                     } | 
|                 } else { | 
|                     this.resmessage = '暂无数据' | 
|                     this.rescode = 400 | 
|                     this.$refs.resmodal.show = true | 
|                 } | 
|                  | 
|             }, | 
|      | 
|             rest() { | 
|                 uni.navigateTo({ | 
|                     url: '/pages/takeMaterial/orderpiece/orderpiece?po='+this.warehouse.PurchaseNo+'&do='+this.warehouse.DeliveryNo | 
|                 }) | 
|             }, | 
|             reset(back) { | 
|                 if(back){ | 
|                     this.autoFoucs = false | 
|                 } | 
|                 this.renameFocus = true | 
|             }, | 
|             beforeDestroy() { | 
|                 // 销毁定时器 | 
|                 if(this.timer){ | 
|                     clearTimeout(this.timer) | 
|                     this.timer = null | 
|                 } | 
|                  | 
|             }, | 
|             goYuKu(){ | 
|                 if(this.arrIds.length<=0){ | 
|                     return | 
|                 } | 
|                 uni.showModal({ | 
|                     title: '提示', | 
|                     content: '是否确认越库?', | 
|                     showCancel: true, | 
|                     cancelColor: '#333333', | 
|                     success: (res => { | 
|                         if (res.confirm) { | 
|                             uni.navigateTo({ | 
|                                 url: '/pages/crossDock/crossDock?ids='+this.arrIds | 
|                             }) | 
|                         } else if (res.cancel) { | 
|                         } | 
|                     }) | 
|                 }); | 
|             }, | 
|         } | 
|     } | 
| </script> | 
|   | 
| <style lang="scss"> | 
| .title-wrap{ | 
|     margin-bottom: 15rpx; | 
|     border-bottom: 1px solid #f18202; | 
|     border-top: 1px solid #f18202; | 
|     padding: 3px; | 
| } | 
| .bg_item { | 
|     background: #FFEBCD !important; | 
| } | 
| .qhd_wp{ | 
|     padding: 0 20rpx; | 
|     border-top: 1px solid #f18202; | 
| } | 
| .detail_btn{ | 
|     text-align: right; | 
|     padding: 10px; | 
| } | 
| </style> |