|
@@ -109,12 +109,12 @@
|
|
|
<td>@{{ storeCheckingReceiveItem.imported_amount }}</td>
|
|
<td>@{{ storeCheckingReceiveItem.imported_amount }}</td>
|
|
|
<td @click="showInput(storeCheckingReceiveItem.id)" v-if="is_show">
|
|
<td @click="showInput(storeCheckingReceiveItem.id)" v-if="is_show">
|
|
|
<div class="form-inline">
|
|
<div class="form-inline">
|
|
|
- <input @blur="delFocus()" :id = "'counted_amount_'+storeCheckingReceiveItem.id" :value="storeCheckingReceiveItem.counted_amount"
|
|
|
|
|
- class="form-control form-control-sm" type="text" :disabled="disabledItemId == storeCheckingReceiveItem.id ? false : true">
|
|
|
|
|
|
|
+ <input @focus="showInput(storeCheckingReceiveItem.id)" @blur="delFocus()" :id = "'counted_amount_'+storeCheckingReceiveItem.id" :value="storeCheckingReceiveItem.counted_amount"
|
|
|
|
|
+ class="form-control form-control-sm" type="number" :disabled="disabledItemId == storeCheckingReceiveItem.id ? false : true">
|
|
|
<button v-if="disabledItemId == storeCheckingReceiveItem.id" type="button" class="btn btn-sm btn-success ml-1"
|
|
<button v-if="disabledItemId == storeCheckingReceiveItem.id" type="button" class="btn btn-sm btn-success ml-1"
|
|
|
@click="updateCountedAmount(storeCheckingReceiveItem)">确定</button>
|
|
@click="updateCountedAmount(storeCheckingReceiveItem)">确定</button>
|
|
|
<button v-if="disabledItemId == storeCheckingReceiveItem.id" type="button" class="btn btn-sm btn-danger"
|
|
<button v-if="disabledItemId == storeCheckingReceiveItem.id" type="button" class="btn btn-sm btn-danger"
|
|
|
- @click="disabledItemId = ''">取消</button>
|
|
|
|
|
|
|
+ @click.stop="disabledItemId = ''">取消</button>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
<td v-if="!is_show">@{{ storeCheckingReceiveItem.counted_amount }}</td>
|
|
<td v-if="!is_show">@{{ storeCheckingReceiveItem.counted_amount }}</td>
|
|
@@ -125,6 +125,7 @@
|
|
|
<td>@{{ storeCheckingReceiveItem.invalid_at }}</td>
|
|
<td>@{{ storeCheckingReceiveItem.invalid_at }}</td>
|
|
|
<td>@{{ storeCheckingReceiveItem.batch_code }}</td>
|
|
<td>@{{ storeCheckingReceiveItem.batch_code }}</td>
|
|
|
<td>@{{ storeCheckingReceiveItem.unique_code }}</td>
|
|
<td>@{{ storeCheckingReceiveItem.unique_code }}</td>
|
|
|
|
|
+ <td>@can('入库管理-盘收一体-盘收-编辑')<button @click="destroyItem(storeCheckingReceiveItem,i)" class="btn btn-sm btn-outline-danger">删除</button>@endcan</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
@@ -137,7 +138,7 @@
|
|
|
<label class="text-muted">序号:</label>@{{ i+1 }}
|
|
<label class="text-muted">序号:</label>@{{ i+1 }}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-6">
|
|
<div class="col-6">
|
|
|
- <span class="pull-right mr-1 text-muted font-weight-bold">···</span>
|
|
|
|
|
|
|
+ <span class="pull-right mr-1 text-primary font-weight-bold small">点击展开</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -151,8 +152,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
- <div class="col-12">
|
|
|
|
|
- <label class="text-muted">名称:</label>@{{ storeCheckingReceiveItem.commodity_name }}
|
|
|
|
|
|
|
+ <div class="col-12 form-inline">
|
|
|
|
|
+ <label class="text-muted w-25">名称:</label><div class="w-75">@{{ storeCheckingReceiveItem.commodity_name }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -163,6 +164,14 @@
|
|
|
<label class="text-muted">实盘数:</label>@{{ storeCheckingReceiveItem.counted_amount }}
|
|
<label class="text-muted">实盘数:</label>@{{ storeCheckingReceiveItem.counted_amount }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
|
+ <label class="text-muted">导入差异:</label><small class="text-danger font-weight-bold">@{{ storeCheckingReceiveItem.imported_diff_amount }}</small>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
|
+ <label class="text-muted">ASN差异:</label><small class="text-danger font-weight-bold">@{{ storeCheckingReceiveItem.asn_amount }}</small>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<div v-if="signOpenId == storeCheckingReceiveItem.id">
|
|
<div v-if="signOpenId == storeCheckingReceiveItem.id">
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col-6">
|
|
<div class="col-6">
|
|
@@ -172,22 +181,6 @@
|
|
|
<label class="text-muted">ASN数:</label>@{{ storeCheckingReceiveItem.asn_amount }}
|
|
<label class="text-muted">ASN数:</label>@{{ storeCheckingReceiveItem.asn_amount }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="row">
|
|
|
|
|
- <div class="col-6">
|
|
|
|
|
- <label class="text-muted">导入差异:</label>@{{ storeCheckingReceiveItem.imported_diff_amount }}
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="col-6">
|
|
|
|
|
- <label class="text-muted">ASN差异:</label>@{{ storeCheckingReceiveItem.asn_amount }}
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="row">
|
|
|
|
|
- <div class="col-6">
|
|
|
|
|
- <label class="text-muted">导入差异:</label>@{{ storeCheckingReceiveItem.imported_amount }}
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="col-6">
|
|
|
|
|
- <label class="text-muted">ASN差异:</label>@{{ storeCheckingReceiveItem.asn_diff_amount }}
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col-6">
|
|
<div class="col-6">
|
|
|
<label class="text-muted">生产日期:</label>@{{ storeCheckingReceiveItem.produced_at }}
|
|
<label class="text-muted">生产日期:</label>@{{ storeCheckingReceiveItem.produced_at }}
|
|
@@ -204,6 +197,11 @@
|
|
|
<label class="text-muted">批次号码:</label>@{{ storeCheckingReceiveItem.batch_code }}
|
|
<label class="text-muted">批次号码:</label>@{{ storeCheckingReceiveItem.batch_code }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-10 offset-1">
|
|
|
|
|
+ @can('入库管理-盘收一体-盘收-编辑')<button @click.stop="destroyItem(storeCheckingReceiveItem,i)" class="btn btn-sm btn-outline-danger w-100">删除</button>@endcan
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -224,7 +222,7 @@
|
|
|
@foreach($storeCheckingReceive->storeCheckingReceiveItems as $storeCheckingReceiveItem)
|
|
@foreach($storeCheckingReceive->storeCheckingReceiveItems as $storeCheckingReceiveItem)
|
|
|
{id:'{{$storeCheckingReceiveItem->id}}',bin_number:'{{$storeCheckingReceiveItem->bin_number}}',
|
|
{id:'{{$storeCheckingReceiveItem->id}}',bin_number:'{{$storeCheckingReceiveItem->bin_number}}',
|
|
|
commodity_name:"{{$storeCheckingReceiveItem->commodity ? $storeCheckingReceiveItem->commodity->name : ''}}",
|
|
commodity_name:"{{$storeCheckingReceiveItem->commodity ? $storeCheckingReceiveItem->commodity->name : ''}}",
|
|
|
- commodity_barcodes:{!! $storeCheckingReceiveItem->commodity ? ($storeCheckingReceiveItem->commodity->barcodes ? $storeCheckingReceiveItem->commodity->barcodes : []) : [] !!},
|
|
|
|
|
|
|
+ commodity_barcodes:{!! $storeCheckingReceiveItem->commodity ? ($storeCheckingReceiveItem->commodity->barcodes ? $storeCheckingReceiveItem->commodity->barcodes : json_encode([])) : json_encode([]) !!},
|
|
|
imported_amount:'{{$storeCheckingReceiveItem->imported_amount}}',counted_amount:'{{$storeCheckingReceiveItem->counted_amount}}',
|
|
imported_amount:'{{$storeCheckingReceiveItem->imported_amount}}',counted_amount:'{{$storeCheckingReceiveItem->counted_amount}}',
|
|
|
asn_amount:'{{$storeCheckingReceiveItem->asn_amount}}',imported_diff_amount:'{{$storeCheckingReceiveItem->imported_diff_amount}}',
|
|
asn_amount:'{{$storeCheckingReceiveItem->asn_amount}}',imported_diff_amount:'{{$storeCheckingReceiveItem->imported_diff_amount}}',
|
|
|
asn_diff_amount:'{{$storeCheckingReceiveItem->asn_diff_amount}}',produced_at:'{{$storeCheckingReceiveItem->produced_at}}',
|
|
asn_diff_amount:'{{$storeCheckingReceiveItem->asn_diff_amount}}',produced_at:'{{$storeCheckingReceiveItem->produced_at}}',
|
|
@@ -273,6 +271,7 @@
|
|
|
{name:'invalid_at',value: '有效期'},
|
|
{name:'invalid_at',value: '有效期'},
|
|
|
{name:'batch_code',value: '批次号'},
|
|
{name:'batch_code',value: '批次号'},
|
|
|
{name:'unique_code',value: '唯一码'},
|
|
{name:'unique_code',value: '唯一码'},
|
|
|
|
|
+ {name:'operating',value: '操作', neglect: true},
|
|
|
];
|
|
];
|
|
|
let header = new Header({
|
|
let header = new Header({
|
|
|
el: "#header",
|
|
el: "#header",
|
|
@@ -541,9 +540,7 @@
|
|
|
_this.inputting.bin_number = item.bin_number;
|
|
_this.inputting.bin_number = item.bin_number;
|
|
|
_this.commit(item, signIncreasing);
|
|
_this.commit(item, signIncreasing);
|
|
|
}else{
|
|
}else{
|
|
|
- //_this.status.binDisable=false;
|
|
|
|
|
_this.lastScannedBarcode = _this.inputting.barcode;
|
|
_this.lastScannedBarcode = _this.inputting.barcode;
|
|
|
- //_this.inputting.bin_number = item.bin_number;
|
|
|
|
|
_this.focusOutDocument();
|
|
_this.focusOutDocument();
|
|
|
window.tempTip.setInputType('number');
|
|
window.tempTip.setInputType('number');
|
|
|
window.tempTip.inputVal('该条码存在但无隔口号,请输入:', function (bin_number) {
|
|
window.tempTip.inputVal('该条码存在但无隔口号,请输入:', function (bin_number) {
|
|
@@ -699,6 +696,25 @@
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show("网络错误:"+err);
|
|
window.tempTip.show("网络错误:"+err);
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ destroyItem(item,index){
|
|
|
|
|
+ let url = "{{url("store/checkingReceive/destroyItem")}}";
|
|
|
|
|
+ let param = {id:item.id};
|
|
|
|
|
+ window.tempTip.confirm("确定要删除商品“"+item.commodity_name+"”的盘点吗?",()=>{
|
|
|
|
|
+ window.axios.post(url,param).then((res)=>{
|
|
|
|
|
+ if (res.data.success){
|
|
|
|
|
+ this.$delete(this.storeCheckingReceiveItems,index);
|
|
|
|
|
+ window.tempTip.setDuration(2000);
|
|
|
|
|
+ window.tempTip.showSuccess("删除成功");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
|
|
+ window.tempTip.show(res.data.data);
|
|
|
|
|
+ }).catch(err=>{
|
|
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
|
|
+ window.tempTip.show("网络错误:"+err);
|
|
|
|
|
+ })
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|