|
|
@ -149,13 +149,13 @@ const butttondata = [ |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { |
|
|
|
// 编辑 |
|
|
|
// const res = await BusinesstypeApi.getItempackaging(row.id) |
|
|
|
// row.itemTypes = row.itemTypes.split(',') |
|
|
|
// row.outLocationTypes = row.outLocationTypes.split(',') |
|
|
|
// row.inLocationTypes = row.inLocationTypes.split(',') |
|
|
|
// row.outInventoryStatuses = row.outInventoryStatuses.split(',') |
|
|
|
// row.inInventoryStatuses = row.inInventoryStatuses.split(',') |
|
|
|
openForm('update', row) |
|
|
|
const rowSplit = JSON.parse(JSON.stringify(row)) |
|
|
|
rowSplit.itemTypes = rowSplit.itemTypes.split(',') |
|
|
|
rowSplit.outLocationTypes = rowSplit.outLocationTypes.split(',') |
|
|
|
rowSplit.inLocationTypes = rowSplit.inLocationTypes.split(',') |
|
|
|
rowSplit.outInventoryStatuses = rowSplit.outInventoryStatuses.split(',') |
|
|
|
rowSplit.inInventoryStatuses = rowSplit.inInventoryStatuses.split(',') |
|
|
|
openForm('update', rowSplit) |
|
|
|
} else if (val == 'delete') { |
|
|
|
// 删除 |
|
|
|
handleDelete(row.id) |
|
|
@ -165,7 +165,6 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
console.log(row) |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
@ -289,13 +288,6 @@ const searchFormClick = (searchData) => { |
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
await getList() |
|
|
|
// tableObject.tableList.forEach((item) => { |
|
|
|
// item.itemTypes = item.itemTypes.split(',') |
|
|
|
// item.outLocationTypes = item.outLocationTypes.split(',') |
|
|
|
// item.inLocationTypes = item.inLocationTypes.split(',') |
|
|
|
// item.outInventoryStatuses = item.outInventoryStatuses.split(',') |
|
|
|
// item.inInventoryStatuses = item.inInventoryStatuses.split(',') |
|
|
|
// }) |
|
|
|
// console.log(300, tableObject.tableList) |
|
|
|
importTemplateData.templateUrl = await BusinesstypeApi.importTemplate() |
|
|
|
}) |
|
|
|