Browse Source

Merge remote-tracking branch 'origin/master'

master
zhaoxuebing 11 months ago
parent
commit
54ab60dff6
  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