|
|
@@ -104,20 +104,20 @@
|
|
|
name="count" class="form-control input" value="@if(old('count')){{old('count')}}@endif" autocomplete="off">
|
|
|
</span>
|
|
|
|
|
|
- <span v-if="inventory.status=='复盘中'" class="form-group ml-4">
|
|
|
- <label for="count" class="text-secondary">上一次盘点数:</label>
|
|
|
- <span v-if="!指定盘点记录列.re_checked_amount">
|
|
|
- <span class="font-weight-bold" >@{{ 指定盘点记录列.verified_amount }}</span>
|
|
|
- </span>
|
|
|
- <span v-if="指定盘点记录列.re_checked_amount">
|
|
|
- <span class="font-weight-bold">@{{ 指定盘点记录列.re_checked_amount }}</span>
|
|
|
- </span>
|
|
|
- </span>
|
|
|
+{{-- <span v-if="inventory.status=='复盘中'" class="form-group ml-4">--}}
|
|
|
+{{-- <label for="count" class="text-secondary">上一次盘点数:</label>--}}
|
|
|
+{{-- <span v-if="!指定盘点记录列.re_checked_amount">--}}
|
|
|
+{{-- <span class="font-weight-bold" >@{{ 指定盘点记录列.verified_amount }}</span>--}}
|
|
|
+{{-- </span>--}}
|
|
|
+{{-- <span v-if="指定盘点记录列.re_checked_amount">--}}
|
|
|
+{{-- <span class="font-weight-bold">@{{ 指定盘点记录列.re_checked_amount }}</span>--}}
|
|
|
+{{-- </span>--}}
|
|
|
+{{-- </span>--}}
|
|
|
|
|
|
- <span v-if="inventory.status=='复盘中'" class="form-group ml-4">
|
|
|
- <label for="count" class="text-secondary">盘点差异数:</label>
|
|
|
- <span v-if="指定盘点记录列.difference_amount" class="font-weight-bold">@{{ 指定盘点记录列.difference_amount }}</span>
|
|
|
- </span>
|
|
|
+{{-- <span v-if="inventory.status=='复盘中'" class="form-group ml-4">--}}
|
|
|
+{{-- <label for="count" class="text-secondary">盘点差异数:</label>--}}
|
|
|
+{{-- <span v-if="指定盘点记录列.difference_amount" class="font-weight-bold">@{{ 指定盘点记录列.difference_amount }}</span>--}}
|
|
|
+{{-- </span>--}}
|
|
|
</div>
|
|
|
<!--相同库位和条码 pc端-->
|
|
|
<div class="row d-none d-xl-block" v-if="指定盘点记录列.length>=1">
|
|
|
@@ -834,15 +834,19 @@
|
|
|
库位=库位.trim();
|
|
|
let _this=this;
|
|
|
if(!库位)return false;
|
|
|
- if(!条码)return false;
|
|
|
- if (!_this.库位索引_记录[库位]||(!_this.条码索引_记录[条码]&&(await _this.is条码存在于WMS(条码)))) return;
|
|
|
- if(_this.库位索引_记录[条码]){
|
|
|
- let inventoryMission=_this.条码索引_记录[条码];
|
|
|
- if (inventoryMission.location===库位){
|
|
|
- if(!_this.指定盘点记录列.includes(inventoryMission)){
|
|
|
- _this.指定盘点记录列.push(inventoryMission);
|
|
|
+ if(!条码)return false;;
|
|
|
+ if (!_this.库位索引_记录[库位]
|
|
|
+ ||(!_this.条码索引_记录[条码]
|
|
|
+ &&!(await _this.is条码存在于WMS(条码)))
|
|
|
+ ) return;
|
|
|
+ if(Array.isArray(_this.条码索引_记录[条码])){
|
|
|
+ _this.条码索引_记录[条码].forEach(function(inventoryMission){
|
|
|
+ if (inventoryMission.location===库位){
|
|
|
+ if(!_this.指定盘点记录列.includes(inventoryMission)){
|
|
|
+ _this.指定盘点记录列.push(inventoryMission);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
放置焦点光标至正确位置:_.throttle(function(){
|
|
|
@@ -899,16 +903,14 @@
|
|
|
条码 = 条码.trim();
|
|
|
let _this = this;
|
|
|
if (!条码) return false;
|
|
|
- if (!_this.条码索引_记录[条码]) return false;
|
|
|
- return !!_this.条码索引_记录[条码].id;
|
|
|
+ return !!_this.条码索引_记录[条码];
|
|
|
|
|
|
},
|
|
|
is库位存在于当前记录(库位) {
|
|
|
库位 = 库位.trim();
|
|
|
let _this = this;
|
|
|
if (!库位) return false;
|
|
|
- if (!_this.库位索引_记录[库位]) return false;
|
|
|
- return !!_this.库位索引_记录[库位].id;
|
|
|
+ return !!_this.库位索引_记录[库位];
|
|
|
|
|
|
},
|
|
|
提交新增并盘点:async function(){
|
|
|
@@ -1248,9 +1250,11 @@
|
|
|
inventoryAccountMission.valid_at = '';
|
|
|
_this.inventoryMissions.push(inventoryAccountMission);
|
|
|
inventoryAccountMission.commodity_barcodes.forEach(function(barcode){
|
|
|
- _this.条码索引_记录[barcode.code]=inventoryAccountMission;
|
|
|
+ if(!Array.isArray(_this.条码索引_记录[barcode.code])) _this.条码索引_记录[barcode.code]=[];
|
|
|
+ _this.条码索引_记录[barcode.code].push(inventoryAccountMission);
|
|
|
});
|
|
|
- _this.库位索引_记录[location]=inventoryAccountMission;
|
|
|
+ if(!Array.isArray(_this.库位索引_记录[location])) _this.库位索引_记录[location]=[];
|
|
|
+ _this.库位索引_记录[location].push(inventoryAccountMission);
|
|
|
_this.重排序并标记全列表类型(_this.inventoryMissions);
|
|
|
_this.清空inputs();
|
|
|
tempTip.setDuration(3000);
|
|
|
@@ -1350,9 +1354,9 @@
|
|
|
},
|
|
|
function () {
|
|
|
_this.清空inputs();
|
|
|
- tempTip.setDuration(3000);
|
|
|
+ tempTip.setDuration(1500);
|
|
|
tempTip.showSuccess('盘点成功!');
|
|
|
- })
|
|
|
+ },'是','否')
|
|
|
},
|
|
|
清空inputs(){
|
|
|
$locationInput.val('');
|