|
@@ -21,7 +21,7 @@
|
|
|
</DescriptionList>
|
|
|
<DescriptionList title="" col="6" :content="dataForm">
|
|
|
<Description term="来源"></Description>
|
|
|
- <Description term="存放仓库">{{dataForm.warehouseId}}</Description>
|
|
|
+ <Description term="存放仓库">{{dataForm.warehouseName}}</Description>
|
|
|
<Description term="存放货架">{{dataForm.shelveName}}</Description>
|
|
|
</DescriptionList>
|
|
|
<DescriptionList title="" col="6" :content="dataForm">
|
|
@@ -43,17 +43,6 @@
|
|
|
return {
|
|
|
visible: false,
|
|
|
dataForm: {
|
|
|
- materialId: 0,
|
|
|
- materialName: '',
|
|
|
- materialTypeId: '',
|
|
|
- specifications: '',
|
|
|
- unitName: '',
|
|
|
- cnt: '',
|
|
|
- price: '',
|
|
|
- amount: '',
|
|
|
- warehouseId: '',
|
|
|
- shelveName: '',
|
|
|
- notes: ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -69,17 +58,7 @@
|
|
|
if (data.code === '200') {
|
|
|
this.dataForm = {}
|
|
|
this.visible = true
|
|
|
- this.dataForm.materialId = data.data.materialId
|
|
|
- this.dataForm.materialName = data.data.materialName
|
|
|
- this.dataForm.materialTypeId = data.data.materialTypeId
|
|
|
- this.dataForm.specifications = data.data.specifications
|
|
|
- this.dataForm.unitName = data.data.unitName
|
|
|
- this.dataForm.cnt = data.data.cnt
|
|
|
- this.dataForm.price = data.data.price
|
|
|
- this.dataForm.amount = data.data.amount
|
|
|
- this.dataForm.warehouseId = data.data.warehouseId
|
|
|
- this.dataForm.shelveName = data.data.shelveName
|
|
|
- this.dataForm.notes = data.data.notes
|
|
|
+ this.dataForm = data.data
|
|
|
} else {
|
|
|
this.$message.error(data.msg)
|
|
|
}
|