|
|
@ -110,30 +110,35 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
|
row['toPackingNumber'] = val[0]['packingNumber'] |
|
|
|
row['fromBatch'] = val[0]['batch'] |
|
|
|
row['toBatch'] = val[0]['batch'] |
|
|
|
row['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
row['toInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
row['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
|
row['toContainerNumber'] = val[0]['containerNumber'] |
|
|
|
row['fromQty'] = val[0]['qty'] |
|
|
|
row['toQty'] = val[0]['qty'] |
|
|
|
row['fromOwnerCode'] = val[0]['ownerCode'] |
|
|
|
row['toOwnerCode'] = val[0]['ownerCode'] |
|
|
|
row['fromAltBatch'] = val[0]['altBatch'] |
|
|
|
row['toAltBatch'] = val[0]['altBatch'] |
|
|
|
row['fromArriveDate'] = val[0]['arriveDate'] |
|
|
|
row['toArriveDate'] = val[0]['arriveDate'] |
|
|
|
row['fromProduceDate'] = val[0]['produceDate'] |
|
|
|
row['toProduceDate'] = val[0]['produceDate'] |
|
|
|
row['fromExpireDate'] = val[0]['expireDate'] |
|
|
|
row['toExpireDate'] = val[0]['expireDate'] |
|
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
|
row['locationCode'] = val[0]['locationCode'] |
|
|
|
row['uom'] = val[0]['uom'] |
|
|
|
if(formField=='toOwnerCode'){ |
|
|
|
//到货主代码 |
|
|
|
row['toOwnerCode'] = val[0]['code'] |
|
|
|
}else{ |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
|
row['toPackingNumber'] = val[0]['packingNumber'] |
|
|
|
row['fromBatch'] = val[0]['batch'] |
|
|
|
row['toBatch'] = val[0]['batch'] |
|
|
|
row['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
row['toInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
row['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
|
row['toContainerNumber'] = val[0]['containerNumber'] |
|
|
|
row['fromQty'] = val[0]['qty'] |
|
|
|
row['toQty'] = val[0]['qty'] |
|
|
|
row['fromOwnerCode'] = val[0]['ownerCode'] |
|
|
|
row['fromAltBatch'] = val[0]['altBatch'] |
|
|
|
row['toAltBatch'] = val[0]['altBatch'] |
|
|
|
row['fromArriveDate'] = val[0]['arriveDate'] |
|
|
|
row['toArriveDate'] = val[0]['arriveDate'] |
|
|
|
row['fromProduceDate'] = val[0]['produceDate'] |
|
|
|
row['toProduceDate'] = val[0]['produceDate'] |
|
|
|
row['fromExpireDate'] = val[0]['expireDate'] |
|
|
|
row['toExpireDate'] = val[0]['expireDate'] |
|
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
|
row['locationCode'] = val[0]['locationCode'] |
|
|
|
row['uom'] = val[0]['uom'] |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|