|
@@ -263,15 +263,13 @@
|
|
|
let temp = JSON.parse(JSON.stringify(this.receiptDto.details));
|
|
|
let details = temp.map(d=>{
|
|
|
return {
|
|
|
- id: d?.id||'',
|
|
|
- skuId: d.itemSku.id,
|
|
|
+ skuId: d.skuId,
|
|
|
amount: d.amount,
|
|
|
quantity: d.quantity,
|
|
|
warehouseId: this.receiptDto.warehouseId,
|
|
|
}
|
|
|
})
|
|
|
this.receiptDto.details = details;
|
|
|
-
|
|
|
this.$api.post('/wms/receiptOrder',this.receiptDto).then(res=>{
|
|
|
if(res.data.code===0){
|
|
|
this.$showToast('入库单新增成功');
|