Commit 5ec31432 authored by jingnan's avatar jingnan 👀

返厂出库添加明细时,点击完成无反应bug修改

parent a996e2ff
...@@ -70,23 +70,24 @@ export default { ...@@ -70,23 +70,24 @@ export default {
return !this.basicData.inStorageRequestItems.find(item => r.id === item.inventoryId) return !this.basicData.inStorageRequestItems.find(item => r.id === item.inventoryId)
}) })
if (selection.length) { if (selection.length) {
if (selection.find(row => !row.jobResponse || !row.jobResponse.jobOrder || !row.jobResponse.jobOrder.extMaterial)) return this.$utils.showMessageWarning('所选数据信息不全,请重新选择!')
const data = selection.map(r => { const data = selection.map(r => {
return { return {
'subTypeName': 'OutStorageRecallItem', 'subTypeName': 'OutStorageRecallItem',
'reqStatus': 'Apply', 'reqStatus': 'Apply',
'outStorageId': r.jobResponseId, 'outStorageId': r.jobResponseId,
'outStorageIdType': r.jobResponseIdType, 'outStorageIdType': r.jobResponseIdType,
inventory: r, 'inventory': r,
'inventoryId': r.id, 'inventoryId': r.id,
'inventoryIdType': this.$utils.getModelName4dxClassName(r), 'inventoryIdType': this.$utils.getModelName4dxClassName(r),
'purchaseUnitId': r.jobResponse.jobOrder.extMaterial.extUnitId, 'purchaseUnitId': r.jobResponse.jobOrder.extMaterial.extUnitId,
'purchaseUnitIdType': r.jobResponse.jobOrder.extMaterial.extUnitIdType, 'purchaseUnitIdType': r.jobResponse.jobOrder.extMaterial.extUnitIdType,
'extDxSipplierId': r.jobResponse.jobOrder.extDxSipplierId, 'extDxSipplierId': r.jobResponse.jobOrder.extDxSipplierId,
'extDxSipplierIdType': r.jobResponse.jobOrder.extDxSipplierIdType, 'extDxSipplierIdType': r.jobResponse.jobOrder.extDxSipplierIdType,
extDxSipplier: r.jobResponse.jobOrder.extDxSipplier, 'extDxSipplier': r.jobResponse.jobOrder.extDxSipplier,
extMaterial: r.jobResponse.jobOrder.extMaterial, 'extMaterial': r.jobResponse.jobOrder.extMaterial,
storageZone: r.jobResponse.jobOrder.storageZone, 'storageZone': r.jobResponse.jobOrder.storageZone,
storageCondition: r.jobResponse.jobOrder.storageCondition, 'storageCondition': r.jobResponse.jobOrder.storageCondition,
'extMaterialId': r.jobResponse.jobOrder.extMaterialId, 'extMaterialId': r.jobResponse.jobOrder.extMaterialId,
'extMaterialIdType': r.jobResponse.jobOrder.extMaterialIdType, 'extMaterialIdType': r.jobResponse.jobOrder.extMaterialIdType,
'arrivalDate': r.jobResponse.jobOrder.arrivalDate, 'arrivalDate': r.jobResponse.jobOrder.arrivalDate,
...@@ -103,7 +104,7 @@ export default { ...@@ -103,7 +104,7 @@ export default {
'stockUnitPrice': r.jobResponse.jobOrder.stockUnitPrice, 'stockUnitPrice': r.jobResponse.jobOrder.stockUnitPrice,
'purchaseOrderNo': r.jobResponse.jobOrder.purchaseOrderNo, 'purchaseOrderNo': r.jobResponse.jobOrder.purchaseOrderNo,
'operator': 'ADD', 'operator': 'ADD',
remark: r.jobResponse.jobOrder.remark, 'remark': r.jobResponse.jobOrder.remark,
'isRoot': r.jobResponse.jobOrder.isRoot 'isRoot': r.jobResponse.jobOrder.isRoot
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment