|
|
@@ -17,12 +17,13 @@
|
|
|
<span class="form-inline">
|
|
|
<input type="date" @change="hasDateStart" class="form-control form-control-sm ml-5 tooltipTarget" name="date_start" id="date_start" title="选择创建日期的开始时间" style="width: 150px">
|
|
|
<input type="date" @change="hasDateEnd" class="form-control form-control-sm ml-5 tooltipTarget" name="date_end" id="date_end" title="选择创建日期的结束时间" style="width: 150px">
|
|
|
- <input type="text" class="form-control form-control-sm ml-5 tooltipTarget" name="location" id="location" title="选择创建盘点任务库位的前缀字母" placeholder="库位前缀字母" style="width: 150px" autocomplete="off">
|
|
|
- <input type="text" class="form-control form-control-sm ml-5 tooltipTarget" name="barcode" id="barcode" title="商品条码,糊模查找需要在左边打上%符号" placeholder="条码" style="width: 200px" autocomplete="off">
|
|
|
+ <input type="text" @change="hasLocation" class="form-control form-control-sm ml-5 tooltipTarget" name="location" id="location" title="选择创建盘点任务库位的前缀字母" placeholder="库位前缀字母" style="width: 150px" autocomplete="off">
|
|
|
+ <input type="text" @change="hasBarcode" class="form-control form-control-sm ml-5 tooltipTarget" name="barcode" id="barcode" title="商品条码,糊模查找需要在左边打上%符号" placeholder="条码" style="width: 200px" autocomplete="off">
|
|
|
</span>
|
|
|
<span class="ml-5">
|
|
|
@can('库存管理-盘点')
|
|
|
- <span v-if="date_start&&date_end" class="btn btn-sm btn-outline-secondary tooltipTarget" @click="createInventoryMission" title="选择单一指定货主生成盘点任务">生成动盘任务</span>
|
|
|
+ <span v-if="date_start&&date_end&&!location&&!barcode" class="btn btn-sm btn-outline-secondary tooltipTarget" @click="createInventoryMission" title="选择单一指定货主生成盘点任务">生成动盘任务</span>
|
|
|
+ <span v-else-if="location||barcode ||(date_start&&date_end&&location)||(date_start&&date_end&&barcode)" class="btn btn-sm btn-outline-secondary tooltipTarget" @click="createInventoryMission" title="选择单一指定货主生成盘点任务">生成局部盘点任务</span>
|
|
|
<span v-else class="btn btn-sm btn-outline-secondary tooltipTarget" @click="createInventoryMission" title="选择单一指定货主生成盘点任务">生成全盘任务</span>
|
|
|
@endcan
|
|
|
</span>
|
|
|
@@ -55,7 +56,10 @@
|
|
|
<td >@{{ inventory.id }}</td>
|
|
|
<td >@{{ inventory.created_at }}</td>
|
|
|
<td >@{{ inventory.owner_name }}</td>
|
|
|
- <td >@{{ inventory.type }}</td>
|
|
|
+ <td >
|
|
|
+ @{{ inventory.type }}
|
|
|
+ <span v-if="inventory.remark">/@{{ inventory.remark }}</span>
|
|
|
+ </td>
|
|
|
<td >@{{ inventory.start_at }}</td>
|
|
|
<td class="text-muted">@{{ inventory.end_at }}</td>
|
|
|
<td >@{{ inventory.total }}</td>
|
|
|
@@ -103,7 +107,7 @@
|
|
|
returned:'{{$inventory->returned}}', surplus:'{{$inventory->surplus}}',
|
|
|
total:'{{$inventory->total}}',end_at:'{{$inventory->end_at}}',
|
|
|
start_at:'{{$inventory->start_at}}',type:'{{$inventory->type}}',
|
|
|
- difference:'{{$inventory->difference}}'},
|
|
|
+ difference:'{{$inventory->difference}}', remark:'{{$inventory->remark}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
owners:{!! $owners !!},
|
|
|
@@ -111,8 +115,7 @@
|
|
|
selectedStyle:'',
|
|
|
sum:{!! $inventoryAccounts->total() !!},
|
|
|
// formData:{},
|
|
|
- date_end:'',
|
|
|
- date_start:'',
|
|
|
+ date_end:'',location:'',barcode:'', date_start:'',
|
|
|
fakeOwners:'',
|
|
|
},
|
|
|
mounted: function () {
|
|
|
@@ -315,6 +318,12 @@
|
|
|
hasDateEnd(){
|
|
|
this.date_end=document.getElementById('date_end').value;
|
|
|
},
|
|
|
+ hasLocation(){
|
|
|
+ this.location=$('#location').val().trim();
|
|
|
+ },
|
|
|
+ hasBarcode(){
|
|
|
+ this.barcode=$('#barcode').val();
|
|
|
+ },
|
|
|
}
|
|
|
});
|
|
|
</script>
|