|
|
@ -1,6 +1,5 @@ |
|
|
|
<!-- 盘点任务详情 --> |
|
|
|
<template> |
|
|
|
<!-- <page-meta root-font-size="18px"></page-meta> --> |
|
|
|
<page-meta root-font-size="18px" :page-style="'overflow:'+(isShowScanPopup?'hidden':'visible')"></page-meta> |
|
|
|
<view class="" style="display:flex;flex-direction: column;"> |
|
|
|
<view class=""> |
|
|
@ -11,150 +10,6 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <scroll-view scroll-y="true" class="scroll-detail" :scroll-top="scrollTop" @scrolltoupper="upper" |
|
|
|
@scrolltolower="lower" @scroll="scroll"> |
|
|
|
<view class="top_card"> |
|
|
|
<com-count-scan-detail :jobContent="datacontent" :allCount="allCount" :scanCount="scanCount" |
|
|
|
:newCount="newCount" :location="location"> |
|
|
|
</com-count-scan-detail> |
|
|
|
</view> |
|
|
|
<view class="detail-list" v-for="(item, index) in details" :key="item.id"> |
|
|
|
<uni-swipe-action> |
|
|
|
<uni-swipe-action-item :right-options="options" :auto-close="false" |
|
|
|
@click="swipeClick($event,item,index)"> |
|
|
|
<view class="detail-content common_card"> |
|
|
|
<view class="choose_main"> |
|
|
|
<view class="ljh_box"> |
|
|
|
<view class="ljh_info"> |
|
|
|
<view class="tit_ljh">{{index+1+'.'+item.itemCode }}</view> |
|
|
|
<view class="label_xm font_sm fr">{{ item.packingCode }}</view> |
|
|
|
</view> |
|
|
|
<view class="desc_card uni-flex space-between"> |
|
|
|
<view class="desc_ljh"> |
|
|
|
<view class="font_xs text_lightblue"> {{ item.itemName }}</view> |
|
|
|
<view class="font_xs text_lightblue">{{ item.itemDesc1 }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="list_form"> |
|
|
|
<view> |
|
|
|
<uni-table style="overflow-x: hidden;"> |
|
|
|
<uni-tr> |
|
|
|
<uni-th width="100"></uni-th> |
|
|
|
<uni-th width="100" align="center">库存</uni-th> |
|
|
|
<uni-th width="100" align="center">盘点</uni-th> |
|
|
|
</uni-tr> |
|
|
|
<uni-tr> |
|
|
|
<uni-th width="100">数量({{item.uom}})</uni-th> |
|
|
|
<uni-th width="100" align="center"> |
|
|
|
<text class="text_black">{{item.inventoryQty}}</text> |
|
|
|
</uni-th> |
|
|
|
<uni-th width="100" align="center"> --> |
|
|
|
<!-- <com-number-box v-if="item.scaned && item.packingCode" |
|
|
|
v-model="item.countQty" :max="99999" :min="0" |
|
|
|
@change="qtyChanged($event,item)" |
|
|
|
style='margin-right: 10px;padding: 2px;'> |
|
|
|
</com-number-box> |
|
|
|
<com-number-box v-if="item.packingCode==''" v-model="item.countQty" |
|
|
|
@change="qtyChanged($event,item)" :max="99999" :min="0" |
|
|
|
style='margin-right: 10px;padding: 2px;'> |
|
|
|
</com-number-box> --> |
|
|
|
<!-- <view class="flex" style="align-items: center;justify-content: center;" v-if="item.scaned && item.packingCode"> |
|
|
|
<text class="text_black" |
|
|
|
>{{item.countQty}} </text> |
|
|
|
<view class="photo_btn fr" @click="openEditCount(item)"> |
|
|
|
<text class="fl font_xs" >修改</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="flex" style="align-items: center;justify-content: center;" v-if="item.packingCode==''"> |
|
|
|
<text class="text_black" |
|
|
|
>{{item.countQty}} </text> |
|
|
|
<view class="photo_btn fr" @click="openEditCount(item)"> |
|
|
|
<text class="fl font_xs" >修改</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="" v-else-if="!item.scaned"> |
|
|
|
<text class="text_black" |
|
|
|
>{{item.countQty}}</text> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <text class="text_black" v-if="item.packingCode" |
|
|
|
style="font-size: 1rem;">{{item.countQty}}</text> |
|
|
|
<com-number-box v-else v-model="item.countQty" :max="99999" :min="0" |
|
|
|
style='margin-right: 10px;padding: 2px;'> |
|
|
|
</com-number-box> --> |
|
|
|
|
|
|
|
<!--<uni-easyinput v-model="item.countQty" type="digit" |
|
|
|
@input="qtyInput($event,item)"> |
|
|
|
</uni-easyinput> --> |
|
|
|
<!-- </uni-th> |
|
|
|
</uni-tr> |
|
|
|
</uni-table> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="margin:0 20rpx 20rpx;"> |
|
|
|
<view class="uni-flex uni-row bot_card"> |
|
|
|
<view class="bot_card_item" > |
|
|
|
<label class="icon_bg icon_bg_kw" style="text-align: center;"> |
|
|
|
<text style=" display: block; color: white;text-align: center;font-size: 28rpx;">库</text> --> |
|
|
|
|
|
|
|
<!-- <image class="icon_normal" src="@/static/icons_ui/icon_kw.svg"> |
|
|
|
</image> --> |
|
|
|
<!-- </label> |
|
|
|
<text>{{ item.locationCode }}</text> |
|
|
|
</view> |
|
|
|
<view class="bot_card_item"> |
|
|
|
<label class="icon_bg icon_bg_pc"> |
|
|
|
<text style=" display: block; color: white;text-align: center;font-size: 28rpx;">批</text> --> |
|
|
|
<!-- <image class="icon_normal" src="@/static/icons_ui/icon_pc.svg"> |
|
|
|
</image> --> |
|
|
|
<!-- </label> |
|
|
|
<text>{{item.lot}}</text> |
|
|
|
</view> |
|
|
|
<view class="bot_card_item" style="width: 25%;"> |
|
|
|
<view class="uni-flex" v-if="item.isNew "> --> |
|
|
|
<!-- picker的index默认是0 --> |
|
|
|
<!-- <picker @change="bindPickerChange($event,item)" :value="item.status-1" |
|
|
|
:range="statusArray"> |
|
|
|
<view class="uni-flex " style="padding:5px 0px;"> |
|
|
|
<text class="state_point" |
|
|
|
:class="item.status | statusStyle">{{statusArray[item.status-1]}}</text> |
|
|
|
<image class="icon_normal" |
|
|
|
src="@/static/icons_ui/icon_down.svg"> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
<text v-else class="state_point" :class="item.status | statusStyle"> |
|
|
|
{{ item.status | statusColor}} |
|
|
|
</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="uni-flex space-between" style="margin:0 20rpx 20rpx;" |
|
|
|
v-if="item.scaned || item.packingCode==''"> |
|
|
|
<text class="font_xs" |
|
|
|
style="padding: 5px 2px; text-overflow: ellipsis; overflow: hidden;">{{item.countDescription}}</text> |
|
|
|
<view class="photo_btn fr" @click="openEditCountDesc(item)"> |
|
|
|
<text class="fl font_xs" style="width:65px;">盘点描述</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="item.scaned" class="choose_marked_count" style="background-color: #5FCB94; opacity: 0.65"> |
|
|
|
<view class="" style="background-color: #5FCB94; width: 200rpx;height: 300rpx;"> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
<!-- <image src="@/static/image_marked.svg"></image> --> |
|
|
|
<!-- </view> --> |
|
|
|
<!-- </view> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
|
</view> |
|
|
|
</scroll-view> --> |
|
|
|
<view class="" v-if="allDetails.length>0"> |
|
|
|
<z-paging ref="paging" use-virtual-list @query="queryList"> |
|
|
|
<template #top> |
|
|
@ -583,8 +438,8 @@ |
|
|
|
let item = items[0]; |
|
|
|
this.currentItem = item; |
|
|
|
if (item.scaned) { |
|
|
|
this.setQty(item, item.countQty); |
|
|
|
// this.showMessage('该库存已经完成盘点,请扫描下一标签'); |
|
|
|
// this.setQty(item, item.countQty); |
|
|
|
this.$refs.comMessage.showMessage('箱码【' + packingCode + '】已经完成盘点,请扫描下一标签') |
|
|
|
} else { |
|
|
|
this.setQty(item, item.inventoryQty); |
|
|
|
} |
|
|
|