|
|
@ -157,8 +157,8 @@ const buttonTableClick = async (val, row) => { |
|
|
|
// 编辑 |
|
|
|
const rowSplit = JSON.parse(JSON.stringify(row)) |
|
|
|
rowSplit.itemTypes = rowSplit.itemTypes.split(',') |
|
|
|
rowSplit.outLocationTypes = rowSplit.outLocationTypes.split(',') |
|
|
|
rowSplit.inLocationTypes = rowSplit.inLocationTypes.split(',') |
|
|
|
rowSplit.outAreaTypes = rowSplit.outAreaTypes.split(',') |
|
|
|
rowSplit.inAreaTypes = rowSplit.inAreaTypes.split(',') |
|
|
|
rowSplit.outInventoryStatuses = rowSplit.outInventoryStatuses.split(',') |
|
|
|
rowSplit.inInventoryStatuses = rowSplit.inInventoryStatuses.split(',') |
|
|
|
openForm('update', rowSplit) |
|
|
@ -188,8 +188,8 @@ const formsSuccess = async (formType, data) => { |
|
|
|
if (data.activeTime == 0) data.activeTime = null |
|
|
|
if (data.expireTime == 0) data.expireTime = null |
|
|
|
data.itemTypes = data.itemTypes.join(',') |
|
|
|
data.outLocationTypes = data.outLocationTypes.join(',') |
|
|
|
data.inLocationTypes = data.inLocationTypes.join(',') |
|
|
|
data.outAreaTypes = data.outAreaTypes.join(',') |
|
|
|
data.inAreaTypes = data.inAreaTypes.join(',') |
|
|
|
data.outInventoryStatuses = data.outInventoryStatuses.join(',') |
|
|
|
data.inInventoryStatuses = data.inInventoryStatuses.join(',') |
|
|
|
if (formType === 'create') { |
|
|
@ -201,8 +201,8 @@ const formsSuccess = async (formType, data) => { |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
data.itemTypes = data.itemTypes.split(',') |
|
|
|
data.outLocationTypes = data.outLocationTypes.split(',') |
|
|
|
data.inLocationTypes = data.inLocationTypes.split(',') |
|
|
|
data.outAreaTypes = data.outAreaTypes.split(',') |
|
|
|
data.inAreaTypes = data.inAreaTypes.split(',') |
|
|
|
data.outInventoryStatuses = data.outInventoryStatuses.split(',') |
|
|
|
data.inInventoryStatuses = data.inInventoryStatuses.split(',') |
|
|
|
}) |
|
|
@ -215,8 +215,8 @@ const formsSuccess = async (formType, data) => { |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
data.itemTypes = data.itemTypes.split(',') |
|
|
|
data.outLocationTypes = data.outLocationTypes.split(',') |
|
|
|
data.inLocationTypes = data.inLocationTypes.split(',') |
|
|
|
data.outAreaTypes = data.outAreaTypes.split(',') |
|
|
|
data.inAreaTypes = data.inAreaTypes.split(',') |
|
|
|
data.outInventoryStatuses = data.outInventoryStatuses.split(',') |
|
|
|
data.inInventoryStatuses = data.inInventoryStatuses.split(',') |
|
|
|
}) |
|
|
|