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