Browse Source

库存余额临时增加标签信息按钮

master
陈薪名 12 months ago
parent
commit
30df9d072b
  1. 11
      src/views/wms/inventoryManage/balance/balance.data.ts
  2. 25
      src/views/wms/inventoryManage/balance/index.vue

11
src/views/wms/inventoryManage/balance/balance.data.ts

@ -385,6 +385,17 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
// TODO: 临时添加 方便操作
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 100,
fixed: 'right'
},
}
])) ]))
// 表单校验 // 表单校验

25
src/views/wms/inventoryManage/balance/index.vue

@ -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)
// }
} }
/** 添加/修改操作 */ /** 添加/修改操作 */

Loading…
Cancel
Save