gjy 3 years ago
parent
commit
c55de76588

+ 14 - 2
src/views/warehouse/transformation.vue

@@ -203,13 +203,15 @@ export default {
     },
     //新增折转
     addTurnAround() {
-      turnAroundXiaLa({
+      if(this.warehouseType==2){
+        turnAroundXiaLa({
         id: this.warehouseId,
-      })
+        })
         .toPromise()
         .then((response) => {
           this.goodsNameList = response
         })
+      }
       turnAroundGoodsNameAll({
         constId: 'CON2',
       })
@@ -252,6 +254,16 @@ export default {
         })
     },
     binNo(e) {
+      if(this.warehouseType==1){
+        turnAroundXiaLa({
+        id: this.binNoList[e].id,
+      })
+        .toPromise()
+        .then((response) => {
+          this.goodsNameList = response
+        })
+      }
+      
       this.transformationAdd.beforeBinNo = this.binNoList[e].binNumber
       this.transformationAdd.positionId = this.binNoList[e].id
     },

+ 4 - 2
src/views/warehouse/warehouseManagementList.vue

@@ -135,7 +135,8 @@
             <div class="adjustment" v-hasPermission="
            `warehouseManagement.warehouse.warehouseInfo.view`
           " @click="mintor(scope.row)">监控</div>
-           <!-- <div class="adjustment" @click="transformation(scope.row)">折转</div> -->
+           <div v-hasPermission="
+           `warehouseManagement.warehouse.warehouseInfo.turn`" class="adjustment" @click="transformation(scope.row)">折转</div>
           </template>
         </el-table-column>
       </el-table>
@@ -204,7 +205,8 @@
             <div class="adjustment" v-if="scope.row.clearStatusFlag == 3">
               已清仓
             </div>
-              <!-- <div class="adjustment" @click="transformation(scope.row)">折转</div> -->
+              <div v-hasPermission="
+           `warehouseManagement.warehouse.warehouseInfo.turn`" class="adjustment" @click="transformation(scope.row)">折转</div>
           </template>
         </el-table-column>
       </el-table>