فهرست منبع

debug stock-details.vue

chris 3 سال پیش
والد
کامیت
43913f7e4d
2فایلهای تغییر یافته به همراه4 افزوده شده و 25 حذف شده
  1. 2 23
      src/views/modules/warehouse/stock-details.vue
  2. 2 2
      src/views/modules/warehouse/stock.vue

+ 2 - 23
src/views/modules/warehouse/stock-details.vue

@@ -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)
             }

+ 2 - 2
src/views/modules/warehouse/stock.vue

@@ -41,7 +41,7 @@
           label="名称">
         </el-table-column>
         <el-table-column
-            prop="materialTypeId"
+            prop="categoryName"
             header-align="center"
             align="center"
             label="类别">
@@ -95,7 +95,7 @@
           label="来源">
         </el-table-column>
         <el-table-column
-          prop="shelveId"
+          prop="shelveName"
           header-align="center"
           align="center"
           label="存放货架">