|
|
@@ -38,7 +38,7 @@
|
|
|
<span class="form-group mb-5">
|
|
|
<label class="text-muted">货主:</label><span class="font-weight-bold">@{{ inventory.owner.name }}</span>
|
|
|
</span>
|
|
|
- <span class="form-group p-2 mb-5" class="text-muted">
|
|
|
+ <span class="form-group p-2 mb-5">
|
|
|
<label >盘点单号:</label><span>@{{ inventory.id }}</span>
|
|
|
</span>
|
|
|
<span class="form-group p-2 mb-5">
|
|
|
@@ -78,24 +78,26 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
- <form id="form" class="mt-3 form-inline " v-if="!listMode" :class="inventory.status=='盘点中' ||inventory.status=='待盘点'?'row-cols-3':'row-cols-5'">
|
|
|
+ <form id="form" >
|
|
|
+ <div class="mt-3 form-inline " v-if="!listMode" :class="inventory.status=='盘点中' ||inventory.status=='待盘点'?'row-cols-3':'row-cols-5'">
|
|
|
<span class="form-group">
|
|
|
<label for="location" class="text-secondary font-weight-bold">请输库位</label>
|
|
|
<input id="inventoryInput" @keypress="inputSwitch($event)"
|
|
|
name="location" type="text" class="form-control input" autocomplete="off" value="@if(old('location')){{old('location')}}@endif">
|
|
|
</span>
|
|
|
- <span class="form-group ml-4">
|
|
|
+ <span class="form-group ml-4">
|
|
|
<label for="barcode" class="text-secondary font-weight-bold">请输产品条码</label>
|
|
|
<input id="barcode" name="barcode" @keypress="inputSwitch($event)"
|
|
|
- type="text" value="@if(old('barcode')){{old('barcode')}}@endif" class="form-control input" autocomplete="off" @blur="searchBarcode">
|
|
|
- </span>
|
|
|
- <span class="form-group ml-4">
|
|
|
- <label for="count" class="text-secondary font-weight-bold">请输盘点数</label>
|
|
|
- <input type="text" id="count" @keypress="inputSwitch($event)"
|
|
|
- name="count" class="form-control input" value="@if(old('count')){{old('count')}}@endif" autocomplete="off">
|
|
|
+ type="text" value="@if(old('barcode')){{old('barcode')}}@endif" class="form-control input" autocomplete="off" @blur="searchBarcode(inventory.owner.code)">
|
|
|
</span>
|
|
|
+{{-- v-if="inventoryAccountMissions.length>=1"--}}
|
|
|
+ <span class="form-group ml-4" >
|
|
|
+ <label for="count" class="text-secondary font-weight-bold">请输盘点数</label>
|
|
|
+ <input type="text" id="count" @keypress="inputSwitch($event)"
|
|
|
+ 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">
|
|
|
+ <span v-if="inventory.status=='复盘中'" class="form-group ml-4">
|
|
|
<label for="count" class="text-secondary">上一次盘点数:</label>
|
|
|
<span v-if="!inventoryMissionRecord.re_checked_amount">
|
|
|
<span class="font-weight-bold" >@{{ inventoryMissionRecord.verified_amount }}</span>
|
|
|
@@ -105,108 +107,127 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
|
|
|
- <span v-if="inventory.status=='复盘中'" class="form-group ml-4">
|
|
|
+ <span v-if="inventory.status=='复盘中'" class="form-group ml-4">
|
|
|
<label for="count" class="text-secondary">盘点差异数:</label>
|
|
|
<span v-if="inventoryMissionRecord.difference_amount" class="font-weight-bold">@{{ inventoryMissionRecord.difference_amount }}</span>
|
|
|
</span>
|
|
|
+ </div>
|
|
|
+ <div class="row d-none d-xl-block" v-if="inventoryAccountMissions.length>=1">
|
|
|
+ <div class="col-12 col-md-12 col-sm-12">
|
|
|
+ <table class="table table-sm table-bordered table-info mt-2" v-if="!listMode">
|
|
|
+ <tr>
|
|
|
+ <td>操作</td>
|
|
|
+ <td class="font-weight-bold">输入盘点数</td>
|
|
|
+ <td>库位</td>
|
|
|
+ <td>产品名</td>
|
|
|
+ <td>产品条码</td>
|
|
|
+ <td>产品编码</td>
|
|
|
+ <td>生产日期</td>
|
|
|
+ <td>失效时期</td>
|
|
|
+ <td>批号</td>
|
|
|
+ <td>盘点人</td>
|
|
|
+ <th>属性仓</th>
|
|
|
+ <th>质量状态</th>
|
|
|
+ <td>盘点数量</td>
|
|
|
+ <td>复盘数量</td>
|
|
|
+ <td>复盘差异</td>
|
|
|
+ </tr>
|
|
|
+ <tr v-for="inventoryMission in inventoryAccountMissions">
|
|
|
+ <td>
|
|
|
+ <span class="btn btn-sm btn-outline-primary" @click="盘点选中任务(inventoryMission.id,inventoryMission.produced_at,inventoryMission.valid_at,inventoryMission.batch_number)">选定盘点</span>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" id="count" @keypress="inputSwitch($event)"
|
|
|
+ name="count" class="form-control-sm input" value="@if(old('count')){{old('count')}}@endif" autocomplete="off">
|
|
|
+ </td>
|
|
|
+ <td>@{{ inventoryMission.location }}</td>
|
|
|
+ <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.name }}</td>
|
|
|
+ <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.barcode }}</td>
|
|
|
+ <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.sku }}</td>
|
|
|
+ <td>
|
|
|
+ <input type="date" class="form-control-sm" name="produced_at" v-model="inventoryMission.produced_at.substr(0,10)" >
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="date" class="form-control-sm" name="valid_at" v-model="inventoryMission.valid_at.substr(0,10)" >
|
|
|
+ </td>
|
|
|
+ <td class="text-muted">
|
|
|
+ <input type="text" class="form-control-sm" name="batch_number" v-model="inventoryMission.batch_number" >
|
|
|
+ </td>
|
|
|
+ <td v-if="inventoryMission.stockInventoryPersons &&!listMode" class="text-muted" :rowspan="inventoryMission.is_multi_row?2:''">
|
|
|
+ <a href="#" v-if="inventoryMission.stockInventoryPersons.length>0" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
+ @{{ inventoryMission.stockInventoryPersons[0].mark }}<b class="caret"></b>
|
|
|
+ </a>
|
|
|
+ <div style="position: absolute;width:320px;margin-left:-100px;background-color: white;max-height:150px ;overflow-y:auto" class="small mt-0 dropdown-menu">
|
|
|
+ <table class="table table-sm table-striped table-bordered">
|
|
|
+ <tr>
|
|
|
+ <th>盘点人</th>
|
|
|
+ <th>时间</th>
|
|
|
+ </tr>
|
|
|
+ <tr v-for="stockInventoryPerson in inventoryMission.stockInventoryPersons">
|
|
|
+ <td>@{{ stockInventoryPerson.mark }}</td>
|
|
|
+ <td>@{{ stockInventoryPerson.created_at }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </td><td v-if="listMode"></td>
|
|
|
+ <td >@{{ inventoryMission.erp_type_position }}</td>
|
|
|
+ <td >@{{ inventoryMission.quality }}</td>
|
|
|
+ <td>@{{ inventoryMission.verified_amount }}</td>
|
|
|
+ <td>@{{ inventoryMission.re_checked_amount }}</td>
|
|
|
+ <td>@{{ inventoryMission.difference_amount }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</form>
|
|
|
|
|
|
- <div class="row d-none d-xl-block" v-if="inventoryAccountMissions.length>=1">
|
|
|
- <div class="col-12 col-md-12 col-sm-12">
|
|
|
- <table class="table table-sm table-bordered table-info mt-2" v-if="!listMode">
|
|
|
- <tr>
|
|
|
- <td>操作</td>
|
|
|
- <td>库位</td>
|
|
|
- <td>产品名</td>
|
|
|
- <td>产品条码</td>
|
|
|
- <td>产品编码</td>
|
|
|
- <td>生产日期</td>
|
|
|
- <td>失效时期</td>
|
|
|
- <td>批号</td>
|
|
|
- <td>盘点人</td>
|
|
|
- <th>属性仓</th>
|
|
|
- <th>质量状态</th>
|
|
|
- <td>库存数量</td>
|
|
|
- <td>盘点数量</td>
|
|
|
- <td>复盘数量</td>
|
|
|
- <td>复盘差异</td>
|
|
|
- </tr>
|
|
|
- <tr v-for="inventoryMission in inventoryAccountMissions">
|
|
|
- <td>
|
|
|
- <span class="btn btn-sm btn-outline-primary" @click="盘点选中任务(inventoryMission.id,inventoryMission.produced_at,inventoryMission.valid_at,inventoryMission.batch_number)">选定盘点</span>
|
|
|
- </td>
|
|
|
- <td>@{{ inventoryMission.location }}</td>
|
|
|
- <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.name }}</td>
|
|
|
- <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.barcode }}</td>
|
|
|
- <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.sku }}</td>
|
|
|
- <td>
|
|
|
- <input type="date" class="form-control-sm" name="produced_at" v-model="inventoryMission.produced_at.substr(0,10)" >
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="date" class="form-control-sm" name="valid_at" v-model="inventoryMission.valid_at.substr(0,10)" >
|
|
|
- </td>
|
|
|
- <td class="text-muted">
|
|
|
- <input type="text" class="form-control-sm" name="batch_number" v-model="inventoryMission.batch_number" >
|
|
|
- </td>
|
|
|
- <td v-if="inventoryMission.stockInventoryPersons &&!listMode" class="text-muted" :rowspan="inventoryMission.is_multi_row?2:''">
|
|
|
- <a href="#" v-if="inventoryMission.stockInventoryPersons.length>0" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
- @{{ inventoryMission.stockInventoryPersons[0].mark }}<b class="caret"></b>
|
|
|
- </a>
|
|
|
- <div style="position: absolute;width:320px;margin-left:-100px;background-color: white;max-height:150px ;overflow-y:auto" class="small mt-0 dropdown-menu">
|
|
|
- <table class="table table-sm table-striped table-bordered">
|
|
|
- <tr>
|
|
|
- <th>盘点人</th>
|
|
|
- <th>时间</th>
|
|
|
- </tr>
|
|
|
- <tr v-for="stockInventoryPerson in inventoryMission.stockInventoryPersons">
|
|
|
- <td>@{{ stockInventoryPerson.mark }}</td>
|
|
|
- <td>@{{ stockInventoryPerson.created_at }}</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </td><td v-if="listMode"></td>
|
|
|
- <td >@{{ inventoryMission.erp_type_position }}</td>
|
|
|
- <td >@{{ inventoryMission.quality }}</td>
|
|
|
- <td >@{{ inventoryMission.stored_amount }}</td>
|
|
|
- <td>@{{ inventoryMission.verified_amount }}</td>
|
|
|
- <td>@{{ inventoryMission.re_checked_amount }}</td>
|
|
|
- <td>@{{ inventoryMission.difference_amount }}</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
|
|
|
-{{-- <div class="card-header pt-0">--}}
|
|
|
-{{-- <div id="form"></div>--}}
|
|
|
-{{-- </div>--}}
|
|
|
+
|
|
|
+
|
|
|
<div class="card-body pt-1">
|
|
|
<label for="all" class="d-none" id="cloneCheckAll">
|
|
|
<input id="all" type="checkbox" @click="checkAll($event)">全选
|
|
|
</label>
|
|
|
<table class="table table-sm table-bordered d-none text-nowrap " id="headerRoll"></table>
|
|
|
- <table class="table table-sm table-hover table-striped d-none d-xl-block p-0 text-nowrap table-bordered" id="headerParent">
|
|
|
+ <table class="table table-sm table-striped d-none d-xl-block p-0 text-nowrap table-bordered" id="headerParent">
|
|
|
+ {{-- <span style="position: fixed; top:380px; right:50px;"><button class="btn btn-sm btn-outline-secondary d-none d-xl-block" v-if="inventory.type=='动盘'" id="lockLocation">以此为起点</button></span>--}}
|
|
|
<tr class="p-0" id="header"></tr>
|
|
|
- <tr v-for="(inventoryMission,i) in inventoryMissions" v-if="inventoryMission.checked==='是'||inventory.status==='复盘中'||listMode" @click="selectedColor(inventoryMission.id)"
|
|
|
+ <tr v-for="(inventoryMission,i) in inventoryMissions" @click="selectedColor(inventoryMission.id)"
|
|
|
:style="{'font-weight': inventory.id==selectedStyle?'bold':''}" :class="[
|
|
|
inventoryMission.mark==='已复盘有差异'?'td-cool':'',
|
|
|
inventoryMission.mark==='已复盘无差异'?'td-cool text-muted':'',
|
|
|
inventoryMission.mark==='未复盘有差异'?'td-warm font-weight-bold':'',
|
|
|
inventoryMission.mark==='无差异'?'text-muted':'',
|
|
|
inventoryMission.mark==='未盘'?'td-yellow':'',
|
|
|
+ inventoryMission.mark==='跳过'?'td-helpful':'',
|
|
|
]">
|
|
|
<td>
|
|
|
<input type="checkbox" :value="inventoryMission" v-model="checkData">
|
|
|
+ <span :id="'lockLine'+(i+1)"></span>
|
|
|
</td>
|
|
|
<td>@{{ i+1 }}</td>
|
|
|
<td>@{{ inventoryMission.location }}</td>
|
|
|
- <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.name }}</td>
|
|
|
- <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.barcode }}</td>
|
|
|
- <td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.sku }}</td>
|
|
|
- <td >@{{ inventoryMission.produced_at }}</td>
|
|
|
- <td >@{{ inventoryMission.valid_at }}</td>
|
|
|
- <td class="text-muted">@{{ inventoryMission.batch_number }}</td>
|
|
|
+ <td v-if="inventoryMission.commodity"><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.commodity.name }}</span></td>
|
|
|
+ <td>
|
|
|
+ <span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes && inventoryMission.commodity_barcodes.length>0">
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes.length==1">
|
|
|
+ @{{ inventoryMission.commodity_barcodes[0].code }}
|
|
|
+ </span>
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes.length>1">
|
|
|
+ <small v-for="barcode in inventoryMission.commodity_barcodes">@{{ barcode.code }}<br></small>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </td>
|
|
|
|
|
|
- <td v-if="inventoryMission.stockInventoryPersons &&!listMode" class="text-muted" :rowspan="inventoryMission.is_multi_row?2:''">
|
|
|
+ <td v-if="inventoryMission.commodity"><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.commodity.sku }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.produced_at }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.valid_at }}</span></td>
|
|
|
+ <td class="text-muted"><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.batch_number }}</span></td>
|
|
|
+
|
|
|
+ <td v-if="inventoryMission.stockInventoryPersons" class="text-muted" :rowspan="inventoryMission.is_multi_row?2:''">
|
|
|
+ <span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">
|
|
|
<a href="#" v-if="inventoryMission.stockInventoryPersons.length>0" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
@{{ inventoryMission.stockInventoryPersons[0].mark }}<b class="caret"></b>
|
|
|
</a>
|
|
|
@@ -222,27 +243,30 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
- </td><td v-if="listMode"></td>
|
|
|
+ </span>
|
|
|
+ </td>
|
|
|
|
|
|
- <td >@{{ inventoryMission.erp_type_position }}</td>
|
|
|
- <td >
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.erp_type_position }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">
|
|
|
<span v-if="listMode">@{{ inventoryMission.quality }}</span>
|
|
|
<select v-else class="form-control-sm" name="quality" id="quality" v-model="inventoryMission.quality"
|
|
|
@change="updateQuality(inventoryMission.id,inventoryMission.location,inventoryMission.commodity.sku,inventoryMission.quality,inventory.owner.code)">
|
|
|
<option value="正品">正品</option>
|
|
|
<option value="残次">残次</option>
|
|
|
</select>
|
|
|
+ </span>
|
|
|
</td>
|
|
|
- <td >@{{ inventoryMission.stored_amount }}</td>
|
|
|
- <td >@{{ inventoryMission.valid_amount }}</td>
|
|
|
- <td>@{{ inventoryMission.verified_amount }}</td>
|
|
|
- <td>@{{ inventoryMission.re_checked_amount }}</td>
|
|
|
- <td>@{{ inventoryMission.difference_amount }}</td>
|
|
|
- <td>@{{ inventoryMission.occupied_amount }}</td>
|
|
|
- @can('库存管理-盘点-删除')
|
|
|
- <td>
|
|
|
- <span class="btn btn-sm btn-outline-danger" @click="删除盘点记录(inventoryMission.id,inventory.id,inventoryMission.commodity.name)">删除</span>
|
|
|
- </td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.stored_amount }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.valid_amount }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.verified_amount }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.re_checked_amount }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.difference_amount }}</span></td>
|
|
|
+ <td><span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">@{{ inventoryMission.occupied_amount }}</span></td>
|
|
|
+ @can('库存管理-盘点')
|
|
|
+ <td v-if="!listMode">
|
|
|
+ {{-- <span class="btn btn-sm btn-outline-danger" @click="删除盘点记录(inventoryMission.id,inventory.id,inventoryMission.commodity.name)">删除</span>--}}
|
|
|
+ <span class="btn btn-sm btn-outline-secondary" v-if="inventoryMission.checked==='否'" @click="跳过盘点记录(inventoryMission.id,inventory.id,inventoryMission.commodity.name)">跳过</span>
|
|
|
+ </td>
|
|
|
@endcan
|
|
|
</tr>
|
|
|
</table>
|
|
|
@@ -255,7 +279,16 @@
|
|
|
<div style="transform:scale(0.9)" class="pl-0">
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">库位:</span><span >@{{ inventoryMission.location }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">产品名称:</span><span v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.name }}</span></span>
|
|
|
- <span class="mr-3 text-nowrap"><span class="font-weight-bold">产品条码:</span><span v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.barcode }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap"><span class="font-weight-bold">产品条码:</span>
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes && inventoryMission.commodity_barcodes.length>0">
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes.length==1">
|
|
|
+ @{{ inventoryMission.commodity_barcodes[0].code }}
|
|
|
+ </span>
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes.length>1">
|
|
|
+ <small v-for="barcode in inventoryMission.commodity_barcodes">@{{ barcode.code }}<br></small>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">产品编码:</span><span v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.sku }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">生产日期:</span>
|
|
|
<input type="date" class="form-control-sm" name="produced_at" v-model="inventoryMission.produced_at.substr(0,10)">
|
|
|
@@ -291,7 +324,6 @@
|
|
|
<span class="mr-3 text-nowrap"><span >属性仓:</span><span>@{{ inventoryMission.erp_type_position }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span >质量状态:</span><span>@{{ inventoryMission.quality }}</span></span>
|
|
|
<div>
|
|
|
- <span class="mr-3 text-nowrap"><span style="color:#783000" >库存数量:</span><span style="color:#af7651">@{{ inventoryMission.stored_amount }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span style="color:#783000" >盘点数量:</span><span style="color:#af7651">@{{ inventoryMission.verified_amount }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span style="color:#783000" >复盘数量:</span><span style="color:#af7651">@{{ inventoryMission.re_checked_amount }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span style="color:#783000" >盘点差异:</span><span >@{{ inventoryMission.difference_amount }}</span></span>
|
|
|
@@ -308,21 +340,28 @@
|
|
|
</table>
|
|
|
<!--盘点记录移动端-->
|
|
|
<table id="listOnPad" class="table table-striped table-sm table-bordered table-hover p-0 d-table d-xl-none" style="background: rgb(255, 255, 255);" >
|
|
|
+
|
|
|
+ {{-- <span style="position: fixed; top:560px; right:50px;" ><button class="btn btn-sm btn-outline-secondary d-table d-xl-none" v-if="inventory.type=='动盘'" id="lockLocationPhone">以此为起点</button></span>--}}
|
|
|
<tbody>
|
|
|
- <tr v-for="inventoryMission in inventoryMissions" v-if="inventoryMission.checked==='是'||inventory.status==='复盘中'||listMode"
|
|
|
+ <tr v-for="(inventoryMission,i) in inventoryMissions"
|
|
|
:class="[
|
|
|
inventoryMission.mark==='已复盘有差异'?'td-cool':'',
|
|
|
inventoryMission.mark==='已复盘无差异'?'td-cool text-muted':'',
|
|
|
inventoryMission.mark==='未复盘有差异'?'td-warm font-weight-bold':'',
|
|
|
inventoryMission.mark==='无差异'?'text-muted':'',
|
|
|
inventoryMission.mark==='未盘'?'td-yellow':'',
|
|
|
+ inventoryMission.mark==='跳过'?'td-helpful':'',
|
|
|
]">
|
|
|
<td style="filter:grayscale(30%); ">
|
|
|
+ <span :id="'lockLinePhone'+(i+1)"></span>
|
|
|
<div class="mt-3">
|
|
|
<div style="transform:scale(0.9)" class="pl-0">
|
|
|
- <span class="mr-3 text-nowrap"><span class="font-weight-bold">库位:</span><span style="color:#af7651">@{{ inventoryMission.location }}</span></span>
|
|
|
- <span class="mr-3 text-nowrap"><span class="font-weight-bold">产品名称:</span><span style="color:#af7651" v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.name }}</span></span>
|
|
|
- <span class="mr-3 text-nowrap">
|
|
|
+ <span type="hidden">@{{ i+1 }}</span>
|
|
|
+ <span class="mr-3 text-nowrap"><span class="font-weight-bold">库位:</span><span style="color:#af7651" >
|
|
|
+ @{{ inventoryMission.location }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap" v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode"><span class="font-weight-bold">产品名称:</span><span style="color:#af7651" v-if="inventoryMission.commodity">
|
|
|
+ @{{ inventoryMission.commodity.name }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap" v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">
|
|
|
<span class="font-weight-bold">质量状态:</span>
|
|
|
<span v-if="listMode">@{{ inventoryMission.quality }}</span>
|
|
|
<select v-else class="form-control-sm" name="quality" id="quality"
|
|
|
@@ -332,18 +371,35 @@
|
|
|
<option value="残次">残次</option>
|
|
|
</select>
|
|
|
</span>
|
|
|
- <span class="mr-3 text-nowrap"><span class="font-weight-bold">产品条码:</span><span style="color:#af7651" v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.barcode }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap" v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">
|
|
|
+ <span class="font-weight-bold">产品条码:</span>
|
|
|
+
|
|
|
+ <span v-if="inventoryMission.checked==='是'||inventoryMission.checked==='跳过'||inventory.status==='复盘中'||listMode">
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes && inventoryMission.commodity_barcodes.length>0">
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes.length==1">
|
|
|
+ @{{ inventoryMission.commodity_barcodes[0].code }}
|
|
|
+ </span>
|
|
|
+ <span v-if="inventoryMission.commodity_barcodes.length>1">
|
|
|
+ <small v-for="barcode in inventoryMission.commodity_barcodes">@{{ barcode.code }}<br></small>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
<div v-if="inventory.status==='复盘中'">
|
|
|
- <span class="mr-3 text-nowrap"><span style="color:#783000" class="font-weight-bold">盘点数量:</span><span style="color:#af7651">@{{ inventoryMission.verified_amount }}</span></span>
|
|
|
- <span class="mr-3 text-nowrap"><span style="color:#783000" class="font-weight-bold">复盘数量:</span><span style="color:#af7651">@{{ inventoryMission.re_checked_amount }}</span></span>
|
|
|
- <span class="mr-3 text-nowrap"><span style="color:#783000" class="font-weight-bold">盘点差异:</span><span >@{{ inventoryMission.difference_amount }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap"><span style="color:#783000" class="font-weight-bold">盘点数量:</span><span style="color:#af7651">
|
|
|
+ @{{ inventoryMission.verified_amount }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap"><span style="color:#783000" class="font-weight-bold">复盘数量:</span><span style="color:#af7651">
|
|
|
+ @{{ inventoryMission.re_checked_amount }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap"><span style="color:#783000" class="font-weight-bold">盘点差异:</span><span >
|
|
|
+ @{{ inventoryMission.difference_amount }}</span></span>
|
|
|
</div>
|
|
|
- @can('库存管理-盘点-删除')
|
|
|
- <div>
|
|
|
- <span class="mr-3 text-nowrap"><span class="font-weight-bold">操作:</span>
|
|
|
- <span class="btn btn-sm btn-outline-danger" @click="删除盘点记录(inventoryMission.id,inventory.id,inventoryMission.commodity.name)">删除</span>
|
|
|
+ @can('库存管理-盘点')
|
|
|
+ <div>
|
|
|
+ <span class="mr-3 text-nowrap" v-if="!listMode"><span class="font-weight-bold">操作:</span>
|
|
|
+{{-- <span class="btn btn-sm btn-outline-danger" @click="删除盘点记录(inventoryMission.id,inventory.id,inventoryMission.commodity.name)">删除</span>--}}
|
|
|
+ <span class="btn btn-sm btn-outline-secondary" v-if="inventoryMission.checked==='否'" @click="跳过盘点记录(inventoryMission.id,inventory.id,inventoryMission.commodity.name)">跳过</span>
|
|
|
</span>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
@endcan
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -403,7 +459,6 @@
|
|
|
|
|
|
@section('lastScript')
|
|
|
<script type="text/javascript" src="{{asset('js/queryForm/export200818a.js')}}"></script>
|
|
|
- {{-- <script type="text/javascript" src="{{asset('js/queryForm/queryForm200828a.js')}}"></script>--}}
|
|
|
<script type="text/javascript" src="{{asset('js/queryForm/header200826b.js')}}"></script>
|
|
|
<script>
|
|
|
let hideHeaderTitle = function (){
|
|
|
@@ -432,6 +487,11 @@
|
|
|
commodity_barcode:'{{$inventoryMission->commodity ? $inventoryMission->commodity->barcode : ''}}',
|
|
|
commodity:{!! $inventoryMission->commodity !!},
|
|
|
stockInventoryPersons:{!! $inventoryMission->stockInventoryPersons !!},
|
|
|
+ commodity_barcodes:[
|
|
|
+ @foreach($inventoryMission->commodity ? $inventoryMission->commodity->barcodes ?? [] : [] as $barcode)
|
|
|
+ {code:'{{$barcode->code}}'},
|
|
|
+ @endforeach
|
|
|
+ ],
|
|
|
stock_persons:[
|
|
|
@foreach($inventoryMission->stockInventoryPersons ? $inventoryMission->stockInventoryPersons ?? [] : [] as $person)
|
|
|
{name:'{{$person->mark}}'},
|
|
|
@@ -513,7 +573,7 @@
|
|
|
column: column,
|
|
|
data: _this.inventoryMissions,
|
|
|
restorationColumn: 'id',
|
|
|
- fixedTop:($('#form').height())+2,
|
|
|
+ //fixedTop:($('#form').height())+2,
|
|
|
vue:listVue,
|
|
|
});
|
|
|
header.init();
|
|
|
@@ -532,13 +592,22 @@
|
|
|
this.checkData = [];
|
|
|
}
|
|
|
},
|
|
|
- inputSwitch(e){
|
|
|
+ skuKeyPress(e,owner_code){
|
|
|
+ if(e.key==='Enter') {
|
|
|
+ this.inputSwitch(e);
|
|
|
+ this.searchBarcode(owner_code);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ inputSwitch(e,owner_code){
|
|
|
if(e.key==='Enter') {
|
|
|
let inputs = $("#form .input");
|
|
|
let idx = inputs.index($(e.target)); // 获取当前焦点输入框所处的位置
|
|
|
let location=document.getElementById('inventoryInput').value.trim();
|
|
|
- if (idx == 2) { // 判断是否是最后一个输入框
|
|
|
- if (location==''){
|
|
|
+ // if (idx === 1){
|
|
|
+ // this.searchBarcode(owner_code);
|
|
|
+ // inputs.length - 1}
|
|
|
+ if (idx === 2) { // 判断是否是最后一个输入框
|
|
|
+ if (location===''){
|
|
|
document.getElementById('inventoryInput').focus();
|
|
|
return;
|
|
|
}
|
|
|
@@ -559,20 +628,40 @@
|
|
|
this.selectedStyle=id;
|
|
|
},
|
|
|
//验证输入盘点产品条码对应是否有商品并且查询出初盘时的盘点记录
|
|
|
- searchBarcode(){
|
|
|
+ searchBarcode(owner_code){
|
|
|
+ console.log(owner_code)
|
|
|
let _this=this;
|
|
|
let barcode=document.getElementById('barcode').value.trim();
|
|
|
let location=document.getElementById('inventoryInput').value.trim();
|
|
|
let inventoryId=_this.inventory.id;
|
|
|
let barcodes=[];
|
|
|
- setData(location,barcode,inventoryId,count);
|
|
|
+ setData(location,barcode,inventoryId,owner_code);
|
|
|
_this.inventoryMissions.forEach(function (inventoryMission) {
|
|
|
- barcodes.push(inventoryMission.commodity.barcode);
|
|
|
+ if (inventoryMission.commodity_barcodes.length===1){
|
|
|
+ if (!barcodes.includes(inventoryMission.commodity_barcodes[0].code)){
|
|
|
+ barcodes.push(inventoryMission.commodity_barcodes[0].code);
|
|
|
+ }
|
|
|
+ }else if(inventoryMission.commodity_barcodes.length>1){
|
|
|
+ inventoryMission.commodity_barcodes.forEach(function (barcode) {
|
|
|
+ if (!barcodes.includes(barcode)){
|
|
|
+ barcodes.push(barcode.code);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
});
|
|
|
if (!barcodes.includes(barcode)){
|
|
|
+ let url='{{url('inventory/stockInventory/searchCommodityByBarcode')}}';
|
|
|
if (barcode!==''){
|
|
|
- tempTip.setDuration(2000);
|
|
|
- tempTip.show('输入的产品条码没有对应的产品!');
|
|
|
+ axios.post(url,{barcode:barcode,owner_code:owner_code}).then(function (response) {
|
|
|
+ if (!response.data.success){
|
|
|
+ document.getElementById('inventoryInput').focus();
|
|
|
+ tempTip.setDuration(2000);
|
|
|
+ tempTip.show(response.data.data);
|
|
|
+ }
|
|
|
+ }).catch(function (err) {
|
|
|
+ tempTip.setDuration(2000);
|
|
|
+ tempTip.show('网络错误'+err);
|
|
|
+ })
|
|
|
}
|
|
|
}else {
|
|
|
if (location===''){
|
|
|
@@ -595,12 +684,9 @@
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- //拷贝_this.inventoryMissions
|
|
|
- let allData=JSON.stringify(_this.inventoryMissions);
|
|
|
- let allData1=JSON.parse(allData);
|
|
|
- allData1.forEach(function (inventoryMission,i) {
|
|
|
+ _this.inventoryMissions.forEach(function (inventoryMission,i) {
|
|
|
if (inventoryMission.location===location && barcode===inventoryMission.commodity.barcode){
|
|
|
- if (! _this.inventoryAccountMissions.includes(inventoryMission)){
|
|
|
+ if (!_this.inventoryAccountMissions.includes(inventoryMission)){
|
|
|
_this.inventoryAccountMissions.push(inventoryMission);
|
|
|
}
|
|
|
}
|
|
|
@@ -614,6 +700,22 @@
|
|
|
let count=document.getElementById('count').value.trim();
|
|
|
let inventoryId=_this.inventory.id;
|
|
|
let locations=[];
|
|
|
+ let barcodes=[];
|
|
|
+ _this.inventoryMissions.forEach(function (inventoryMission) {
|
|
|
+ if (inventoryMission.commodity_barcodes.length===1){
|
|
|
+ if (!barcodes.includes(inventoryMission.commodity_barcodes[0].code)){
|
|
|
+ barcodes.push(inventoryMission.commodity_barcodes[0].code);
|
|
|
+ }
|
|
|
+ }else if(inventoryMission.commodity_barcodes.length>1){
|
|
|
+ inventoryMission.commodity_barcodes.forEach(function (barcode) {
|
|
|
+ if (!barcodes.includes(barcode)){
|
|
|
+ barcodes.push(barcode.code);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ let arr=getData();
|
|
|
+ let owner_code=arr[3];
|
|
|
_this.inventoryMissions.forEach(function (inventoryMission) {
|
|
|
locations.push(inventoryMission.location);
|
|
|
});
|
|
|
@@ -621,33 +723,48 @@
|
|
|
document.getElementById('inventoryInput').focus();
|
|
|
return;
|
|
|
}
|
|
|
- if (!locations.includes(location)){
|
|
|
+ if (!locations.includes(location)&&!barcodes.includes(barcode)){
|
|
|
+ if (_this.inventory.status==='盘点中'||_this.inventory.status==='待盘点'){
|
|
|
+ if(!confirm('该'+barcode+'条码和'+location+'库位在WAS系统盘点记录中不存在!'+'确定是否需要添加至系统盘点记录中?')){return};
|
|
|
+ let isBarcode='库位和商品新增';
|
|
|
+ this.增加系统之外的盘点记录(location,barcode,count,inventoryId,owner_code,isBarcode);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }else if (!locations.includes(location)){
|
|
|
if (_this.inventory.status==='盘点中'||_this.inventory.status==='待盘点'){
|
|
|
if(!confirm('该'+location+'库位在系统盘点记录中不存在!'+'确定是否需要添加至系统盘点记录中?')){return};
|
|
|
- this.增加系统之外的库位记录(location,barcode,count,inventoryId);
|
|
|
+ let isLocation='库位新增';
|
|
|
+ this.增加系统之外的盘点记录(location,barcode,count,inventoryId,owner_code,isLocation);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }else if (!barcodes.includes(barcode)){
|
|
|
+ if (_this.inventory.status==='盘点中'||_this.inventory.status==='待盘点'){
|
|
|
+ if(!confirm('该'+barcode+'条码在WAS系统盘点记录中不存在!'+'确定是否需要添加至系统盘点记录中?')){return};
|
|
|
+ let isBarcode='商品新增';
|
|
|
+ this.增加系统之外的盘点记录(location,barcode,count,inventoryId,owner_code,isBarcode);
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
if ( _this.inventoryAccountMissions.length>1){
|
|
|
alert('该库位和产品条码下存在多条盘点任务,请选中您需要盘点的任务');
|
|
|
}else {
|
|
|
- if (_this.inventory.status!=='复盘中'){
|
|
|
- _this.inventoryMissions.every(function (inventoryMission,i) {
|
|
|
- if (inventoryMission.location===location && barcode===inventoryMission.commodity.barcode){
|
|
|
- if (inventoryMission.stockInventoryPersons.length>0){
|
|
|
- _this.inventoryMissionRecord=inventoryMission;
|
|
|
- _this.stockInventoryPersons=inventoryMission.stockInventoryPersons;
|
|
|
- $("#lastStockInventoryRecord").modal('show');
|
|
|
- }else{
|
|
|
- //初盘且未盘点过
|
|
|
- _this.盘点(location,barcode,inventoryId,count);
|
|
|
- _this.inventoryAccountMissions=[];
|
|
|
- }
|
|
|
- return false;
|
|
|
+ // if (_this.inventory.status!=='复盘中'){
|
|
|
+ _this.inventoryMissions.every(function (inventoryMission,i) {
|
|
|
+ if (inventoryMission.location===location && barcode===inventoryMission.commodity.barcode){
|
|
|
+ if (inventoryMission.stockInventoryPersons.length>0){
|
|
|
+ _this.inventoryMissionRecord=inventoryMission;
|
|
|
+ _this.stockInventoryPersons=inventoryMission.stockInventoryPersons;
|
|
|
+ $("#lastStockInventoryRecord").modal('show');
|
|
|
+ }else{
|
|
|
+ //初盘且未盘点过
|
|
|
+ _this.盘点(location,barcode,inventoryId,count);
|
|
|
+ _this.inventoryAccountMissions=[];
|
|
|
}
|
|
|
- return true;
|
|
|
- });
|
|
|
- }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ });
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
//结束初盘任务
|
|
|
@@ -690,6 +807,7 @@
|
|
|
_this.已复盘无差异列=[];
|
|
|
_this.无差异列=[];
|
|
|
_this.未盘列=[];
|
|
|
+ _this.跳过列=[];
|
|
|
_this.inventoryMissions.forEach(function (mission,i){
|
|
|
switch(mission.checked){
|
|
|
case '已复核':
|
|
|
@@ -700,6 +818,8 @@
|
|
|
_this.无差异列.push(mission); mission.mark='无差异'; return;
|
|
|
case '否':
|
|
|
_this.未盘列.push(mission); mission.mark='未盘'; return;
|
|
|
+ case '跳过':
|
|
|
+ _this.跳过列.push(mission); mission.mark='跳过'; return;
|
|
|
}
|
|
|
});
|
|
|
_this.已复盘有差异列=_this.按库位排序_且合并SKU一起(_this.已复盘有差异列);
|
|
|
@@ -707,6 +827,7 @@
|
|
|
_this.已复盘无差异列=_this.按库位排序_且合并SKU一起(_this.已复盘无差异列);
|
|
|
_this.无差异列=_this.按库位排序_且合并SKU一起(_this.无差异列);
|
|
|
_this.未盘列=_this.按库位排序_且合并SKU一起(_this.未盘列);
|
|
|
+ _this.跳过列=_this.按库位排序_且合并SKU一起(_this.跳过列);
|
|
|
function 重推入(目标数组,推入数组){
|
|
|
推入数组.forEach(function (元素){
|
|
|
目标数组.push(元素);
|
|
|
@@ -718,6 +839,7 @@
|
|
|
重推入(_this.inventoryMissions,_this.未盘列);
|
|
|
重推入(_this.inventoryMissions,_this.已复盘无差异列);
|
|
|
重推入(_this.inventoryMissions,_this.无差异列);
|
|
|
+ 重推入(_this.inventoryMissions,_this.跳过列);
|
|
|
},
|
|
|
按库位排序_且合并SKU一起(inventoryMissions){
|
|
|
let 结果列=[];
|
|
|
@@ -785,6 +907,32 @@
|
|
|
tempTip.show('删除失败,网络链接错误!'+err);
|
|
|
});
|
|
|
},
|
|
|
+ 跳过盘点记录(inventoryAccountMissionId,inventoryAccountId,name){
|
|
|
+ let _this=this;
|
|
|
+ if(!confirm('确定要跳过商品为:“'+name+'”的盘点记录吗?')){return};
|
|
|
+ let url = '{{url('inventory/跳过盘点记录')}}';
|
|
|
+ axios.post(url,{inventoryAccountMissionId:inventoryAccountMissionId,inventoryAccountId:inventoryAccountId}).then(
|
|
|
+ function (response) {
|
|
|
+ if(!response.data.success){
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show('盘点单号:'+inventoryAccountMissionId+'跳过盘点失败!'+response.data.data);
|
|
|
+ }else {
|
|
|
+ _this.inventoryMissions.every(function (inventoryAccountMission) {
|
|
|
+ if (inventoryAccountMission.id===inventoryAccountMissionId){
|
|
|
+ inventoryAccountMission.checked=response.data.inventoryAccountMission.checked;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ _this.重排序并标记全列表类型(_this.inventoryMissions);
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.showSuccess('盘点记录:'+inventoryAccountMissionId+'跳过盘点成功!');
|
|
|
+ }).catch(function (err) {
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show('跳过盘点记录失败,网络链接错误!'+err);
|
|
|
+ });
|
|
|
+ },
|
|
|
完结盘点任务(id,owner_name,type){
|
|
|
let _this=this;
|
|
|
if(!confirm('确定完结货主为:“'+owner_name+'”的“'+type+'”任务吗?')){return};
|
|
|
@@ -807,14 +955,14 @@
|
|
|
tempTip.show('修改完结状态失败! '+err);
|
|
|
})
|
|
|
},
|
|
|
- 增加系统之外的库位记录(location,barcode,count,inventoryId){
|
|
|
+ 增加系统之外的盘点记录(location,barcode,count,inventoryId,owner_code,param){
|
|
|
let _this=this;
|
|
|
- let url='{{url('inventory/增加系统之外的库位记录')}}';
|
|
|
- axios.post(url,{location:location,barcode:barcode,count:count,inventoryId:inventoryId}).then(
|
|
|
+ let url='{{url('inventory/增加系统之外的盘点记录')}}';
|
|
|
+ axios.post(url,{location:location,barcode:barcode,count:count,inventoryId:inventoryId,owner_code:owner_code,param:param}).then(
|
|
|
function (response) {
|
|
|
if(!response.data.success){
|
|
|
tempTip.setDuration(3000);
|
|
|
- tempTip.show('增加系统之外的库位记录失败!');
|
|
|
+ tempTip.show('增加系统之外的盘点记录失败!');
|
|
|
}else {
|
|
|
_this.inventoryMissions.push(response.data.inventoryAccountMission);
|
|
|
_this.inventoryMissions.every(function (inventoryAccountMission,i) {
|
|
|
@@ -830,12 +978,12 @@
|
|
|
_this.重排序并标记全列表类型(_this.inventoryMissions);
|
|
|
$("#form .input").val(' ');
|
|
|
tempTip.setDuration(3000);
|
|
|
- tempTip.showSuccess('增加系统之外的库位记录成功!');
|
|
|
+ tempTip.showSuccess('增加系统之外的盘点记录成功!');
|
|
|
}
|
|
|
}
|
|
|
).catch(function (err) {
|
|
|
tempTip.setDuration(3000);
|
|
|
- tempTip.show('增加系统之外的库位记录失败,网络链接错误!'+err);
|
|
|
+ tempTip.show('增加系统之外的盘点记录失败,网络链接错误!'+err);
|
|
|
});
|
|
|
},
|
|
|
将相邻同样条目总数匹配的标记_供样式使用(inventoryMissions){
|
|
|
@@ -1039,14 +1187,59 @@
|
|
|
let loc = null;
|
|
|
let code = null;
|
|
|
let inventory_id = 0;
|
|
|
- function setData(location,barcode,inventoryId) {
|
|
|
+ let ownerCode=null;
|
|
|
+ function setData(location,barcode,inventoryId,owner_code) {
|
|
|
loc = location;
|
|
|
code = barcode;
|
|
|
inventory_id = inventoryId;
|
|
|
+ ownerCode =owner_code;
|
|
|
}
|
|
|
function getData() {
|
|
|
- return [loc,code,inventory_id];
|
|
|
+ return [loc,code,inventory_id,ownerCode];
|
|
|
}
|
|
|
+ // $(window).scroll(function(){
|
|
|
+ // let lockLocation_top=$('#lockLocation').offset().top;
|
|
|
+ // //console.log(lockLocation_top)
|
|
|
+ // listVue.inventoryMissions.every(function (inventoryMission,i) {
|
|
|
+ // let lockLine_top=$('#lockLine'+(i+1)).offset().top;
|
|
|
+ // let td=$('#lockLine'+(i+2)).offset().top-$('#lockLine'+(i+1)).offset().top;
|
|
|
+ // //console.log(lockLine_top)
|
|
|
+ // if (lockLine_top>=lockLocation_top-18){
|
|
|
+ // let location=inventoryMission.location;
|
|
|
+ // //console.log(td)
|
|
|
+ // //console.log(location)
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // return true;
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+
|
|
|
+
|
|
|
+ // $(window).scroll(function(){
|
|
|
+ // let lockLocation_top=$('#lockLocationPhone').offset().top;
|
|
|
+ // //console.log(lockLocation_top)
|
|
|
+ // listVue.inventoryMissions.every(function (inventoryMission,i) {
|
|
|
+ // let lockLine_top=$('#lockLinePhone'+(i+1)).offset().top;
|
|
|
+ // let td=$('#lockLinePhone'+(i+2)).offset().top-$('#lockLinePhone'+(i+1)).offset().top;
|
|
|
+ // //console.log(lockLine_top)
|
|
|
+ // if (lockLine_top>=lockLocation_top-75){
|
|
|
+ // let location=inventoryMission.location;
|
|
|
+ // console.log(td)
|
|
|
+ // console.log(location)
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // return true;
|
|
|
+ // });
|
|
|
+ // listVue.inventoryMissions.every(function (inventoryMission,i) {
|
|
|
+ // if (listVue.location===inventoryMission.location){
|
|
|
+ // $('#lockLinePhone'+(i+1)).parent().css("background-color","black");
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // return true;
|
|
|
+ // });
|
|
|
+ // });
|
|
|
</script>
|
|
|
@endsection
|
|
|
|
|
|
+
|
|
|
+
|