Commit 5ec31432 authored by jingnan's avatar jingnan 👀

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

parent a996e2ff
......@@ -70,23 +70,24 @@ export default {
return !this.basicData.inStorageRequestItems.find(item => r.id === item.inventoryId)
})
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 => {
return {
'subTypeName': 'OutStorageRecallItem',
'reqStatus': 'Apply',
'outStorageId': r.jobResponseId,
'outStorageIdType': r.jobResponseIdType,
inventory: r,
'inventory': r,
'inventoryId': r.id,
'inventoryIdType': this.$utils.getModelName4dxClassName(r),
'purchaseUnitId': r.jobResponse.jobOrder.extMaterial.extUnitId,
'purchaseUnitIdType': r.jobResponse.jobOrder.extMaterial.extUnitIdType,
'extDxSipplierId': r.jobResponse.jobOrder.extDxSipplierId,
'extDxSipplierIdType': r.jobResponse.jobOrder.extDxSipplierIdType,
extDxSipplier: r.jobResponse.jobOrder.extDxSipplier,
extMaterial: r.jobResponse.jobOrder.extMaterial,
storageZone: r.jobResponse.jobOrder.storageZone,
storageCondition: r.jobResponse.jobOrder.storageCondition,
'extDxSipplier': r.jobResponse.jobOrder.extDxSipplier,
'extMaterial': r.jobResponse.jobOrder.extMaterial,
'storageZone': r.jobResponse.jobOrder.storageZone,
'storageCondition': r.jobResponse.jobOrder.storageCondition,
'extMaterialId': r.jobResponse.jobOrder.extMaterialId,
'extMaterialIdType': r.jobResponse.jobOrder.extMaterialIdType,
'arrivalDate': r.jobResponse.jobOrder.arrivalDate,
......@@ -103,7 +104,7 @@ export default {
'stockUnitPrice': r.jobResponse.jobOrder.stockUnitPrice,
'purchaseOrderNo': r.jobResponse.jobOrder.purchaseOrderNo,
'operator': 'ADD',
remark: r.jobResponse.jobOrder.remark,
'remark': r.jobResponse.jobOrder.remark,
'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