Commit 6c8af292 authored by 张海景's avatar 张海景

update:修改申请单数据类型

parent b105c727
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
itemId:item.itemId, itemId:item.itemId,
itemName:item.itemName, itemName:item.itemName,
allQuantity: 1, allQuantity: 1,
nextMaintenPeriod: this.$attrs.quantity nextMaintenPeriod: Number(this.$attrs.quantity)
} }
}) })
this.tmToolRequestItemList = this.detailList.concat(this.addList) this.tmToolRequestItemList = this.detailList.concat(this.addList)
...@@ -159,13 +159,13 @@ export default { ...@@ -159,13 +159,13 @@ export default {
this.detailList = response.data.map(item => { this.detailList = response.data.map(item => {
return { return {
...item, ...item,
allQuantity: item.AllQuantity allQuantity: Number(item.AllQuantity)
} }
}); });
this.addList = this.addList.map(item => { this.addList = this.addList.map(item => {
return { return {
...item, ...item,
nextMaintenPeriod: this.$attrs.quantity nextMaintenPeriod: Number(this.$attrs.quantity)
} }
}) })
this.tmToolRequestItemList = this.detailList.concat(this.addList) this.tmToolRequestItemList = this.detailList.concat(this.addList)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment