|
|
@ -125,18 +125,33 @@ const buttonBaseClick = (val, item) => { |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = [ |
|
|
|
{ |
|
|
|
label: '标签信息', |
|
|
|
name: 'bqxx', |
|
|
|
hide: false, |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
link: true, |
|
|
|
float:'right', |
|
|
|
hasPermi: '' |
|
|
|
}, |
|
|
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // 删除 |
|
|
|
] |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { // 编辑 |
|
|
|
// const res = await BalanceApi.getItempackaging(row.id) |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
if (val == 'bqxx') { |
|
|
|
let aaa = 'HPQ;V1.0;I'+row.itemCode+';P'+row.packingNumber+';B'+row.batch+';Q'+row.qty+';U'+row.uom |
|
|
|
alert(aaa) |
|
|
|
} |
|
|
|
// if (val == 'edit') { // 编辑 |
|
|
|
// // const res = await BalanceApi.getItempackaging(row.id) |
|
|
|
// openForm('update', row) |
|
|
|
// } else if (val == 'delete') { // 删除 |
|
|
|
// handleDelete(row.id) |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|