zhongtianhaoyuan hace 2 años
padre
commit
4b83aba2ee
Se han modificado 1 ficheros con 13 adiciones y 14 borrados
  1. 13 14
      src/views/houseSelfCollect/acquisitionManagementAdd.vue

+ 13 - 14
src/views/houseSelfCollect/acquisitionManagementAdd.vue

@@ -1,4 +1,4 @@
-<!-- <!--收购管理新增-->
+<!-- 收购管理新增-->
 <template>
   <el-container class="container">
     <!-- <div class="type">{{type}}</div> -->
@@ -110,7 +110,7 @@
               <div class="right">
                 <div class="line"></div>
                 <div class="jt-style"></div>
-                <div v-for="(item1, index) in item.detailList">
+                <div v-for="(item1, index) in item.detailList" :key="index">
                   <div class="item-style">
                     <div v-if="item1.type != 4" class="item-style-title">
                       <span>{{ item1.name }}{{ item1.index }}</span>
@@ -389,7 +389,6 @@ export default {
           //   this.isSolidFood = false
           //   this.baseInfoForm.bulkDensityStandard = ''
           // }
-
           // this.isSolidFood = false
           // this.baseInfoForm.bulkDensityStandard = ''
           this.baseInfoForm.goodsNameKey = response[0].constKey
@@ -413,7 +412,6 @@ export default {
             //   this.baseInfoForm.bulkDensityStandard = ''
             // }
             this.baseInfoForm.goodsNameKey = _list[0].constKey
-
             // this.isSolidFood = false
             // this.baseInfoForm.bulkDensityStandard = ''
           }
@@ -594,16 +592,7 @@ export default {
         })
     },
     goodsChange(e) {
-      if (e == '玉米淀粉' ||
-        e == '玉米(机收)' ||
-        e == '玉米(酒精)' ||
-        e == '玉米(筛漏)' ||
-        e == '玉米(陈粮)' ||
-        e == '玉米(棒)' ||
-        e == '玉米'
-      ) {
-        // this.isSolidFood = true //true
-        this.baseInfoForm = {
+      this.baseInfoForm = {
           //防止填完数据  后切换货名不清空多余数据
           warehouseId: '',
           warehouseName: '',
@@ -625,10 +614,20 @@ export default {
           detailPrints: [],
           paramType: '1',
         }
+      if (e == '玉米淀粉' ||
+        e == '玉米(机收)' ||
+        e == '玉米(酒精)' ||
+        e == '玉米(筛漏)' ||
+        e == '玉米(陈粮)' ||
+        e == '玉米(棒)' ||
+        e == '玉米'
+      ) {
         this.baseInfoForm.warehouseId = this.$route.query.warehouseId
         this.baseInfoForm.warehouseName = this.$route.query.warehouseName
         this.baseInfoForm.compId = this.$route.query.compId
         this.baseInfoForm.bulkDensityStandard = 1
+      }else{
+        this.baseInfoForm.bulkDensityStandard = ""
       }
       for (let num = 0; num < this.goodnameList.length; num++) {
         if (e == this.goodnameList[num].constValue) {