|
@ -260,14 +260,16 @@ const searchTableSuccess = async(formField, searchField, val, formRef, type, row |
|
|
// row['fromLocationCode'] = val[0]['fromLocationCode'] |
|
|
// row['fromLocationCode'] = val[0]['fromLocationCode'] |
|
|
row['toLocationCode'] = val[0]['toLocationCode'] |
|
|
row['toLocationCode'] = val[0]['toLocationCode'] |
|
|
}else if(formField=='fromLocationCode'){ |
|
|
}else if(formField=='fromLocationCode'){ |
|
|
let params = { |
|
|
// let params = { |
|
|
itemCode: row.itemCode, |
|
|
// itemCode: row.itemCode, |
|
|
batch: row.batch, |
|
|
// batch: row.batch, |
|
|
locationCode:val[0]['code'] |
|
|
// locationCode:val[0]['code'] |
|
|
} |
|
|
// } |
|
|
let aa = await BalanceApi.getSumByConditions(params); |
|
|
// let aa = await BalanceApi.getSumByConditions(params); |
|
|
console.log('23423423',aa); |
|
|
// console.log('23423423',aa); |
|
|
row['inventoryBalance'] = aa//库存余额 |
|
|
// row['inventoryBalance'] = aa//库存余额 |
|
|
|
|
|
}else if(formField=='packingNumber'){ |
|
|
|
|
|
row['inventoryBalance'] = val[0]['qty']//库存余额 |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
@ -491,17 +493,17 @@ const butttondata = (row,$index) => { |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hasPermi: 'wms:purchasereceipt-request-main:update' |
|
|
hasPermi: 'wms:purchasereceipt-request-main:update' |
|
|
}), // 编辑 |
|
|
}), // 编辑 |
|
|
{ |
|
|
// { |
|
|
label: '生成标签', |
|
|
// label: '生成标签', |
|
|
name: 'ssbq', |
|
|
// name: 'ssbq', |
|
|
hide: isShowMainButton(row, ['3']), |
|
|
// hide: isShowMainButton(row, ['3']), |
|
|
type: 'primary', |
|
|
// type: 'primary', |
|
|
icon: '', |
|
|
// icon: '', |
|
|
color: '', |
|
|
// color: '', |
|
|
hasPermi: '', |
|
|
// hasPermi: '', |
|
|
link: true // 文本展现按钮 |
|
|
// link: true // 文本展现按钮 |
|
|
}, |
|
|
// }, |
|
|
defaultButtons.mainListPointBtn({ hide: isShowMainButton(row, ['3','6']) }), // 标签打印 |
|
|
// defaultButtons.mainListPointBtn({ hide: isShowMainButton(row, ['3','6']) }), // 标签打印 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|