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