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