gjy 3 years ago
parent
commit
349e7f0255

+ 15 - 1
src/api/V2/warehouse/index.js

@@ -88,5 +88,19 @@ export const API_POST_EXPORTOUT = '/warehouseBaseInfo/exportOut'
 export const API_GET_PRINT = '/commonConstantFalse/getInfo'
 export const API_GET_PRINT = '/commonConstantFalse/getInfo'
 // 仓位号
 // 仓位号
 export const API_GET_WAREHOUSE_BINNUMBER = '/warehouseBaseInfo/getWarehouse'
 export const API_GET_WAREHOUSE_BINNUMBER = '/warehouseBaseInfo/getWarehouse'
+<<<<<<< HEAD
 // 储量明细
 // 储量明细
-export const API_GET_WAREHOUSE_BASEINFO_RESERVES = '/warehouseBaseInfo/reservesDetails'
+export const API_GET_WAREHOUSE_BASEINFO_RESERVES = '/warehouseBaseInfo/reservesDetails'
+=======
+//添加折转
+export const API_POST_TURNAROUND_ADD = '/turnInfo/api/addTurn'
+//折转列表
+export const API_GET_TURNAROUND_LIST = '/turnInfo/selectTurnInfo'
+//添加折转信息下拉
+export const API_GET_TURNAROUND_XIALA = '/turnInfo/getPositionAndGoodsName'
+//折转后货名
+export const API_get_goodsName_All = '/commonSysParameter/getInfo'
+
+
+
+>>>>>>> origin

+ 11 - 3
src/components/balanceAlert.vue

@@ -56,7 +56,7 @@ export default {
           // The Web Serial API is supported.
           // The Web Serial API is supported.
           console.log('the Web Serial API is supported.')
           console.log('the Web Serial API is supported.')
           const port = await navigator.serial.requestPort()
           const port = await navigator.serial.requestPort()
-          if (this.deptBudgetList.warehouseName == '白城内陆港') {
+          if (this.deptBudgetList.warehouseName == '白城内陆港'||this.deptBudgetList.warehouseName == '肇东金信库') {
             this.param = 1200
             this.param = 1200
           } else {
           } else {
             this.param = 9600
             this.param = 9600
@@ -106,11 +106,18 @@ export default {
           //     this.deptBudgetList.tare = parseInt(result)
           //     this.deptBudgetList.tare = parseInt(result)
           //   }
           //   }
           // }
           // }
+          
           if(value.length > 3){
           if(value.length > 3){
-            console.log('value23:', value)
              if(value.length <= 6){
              if(value.length <= 6){
               continue
               continue
              }
              }
+            if(this.deptBudgetList.warehouseName == '肇东金信库' && value.length < 10){
+              var start = (new Date()).getTime();
+              while((new Date()).getTime() - start < 200) {
+              }
+              continue
+            }
+            console.log('value23:', value)
           }
           }
           else if(this.deptBudgetList.warehouseName == '白城内陆港'){
           else if(this.deptBudgetList.warehouseName == '白城内陆港'){
             console.log('value:', value)
             console.log('value:', value)
@@ -127,7 +134,8 @@ export default {
               this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库' ||
               this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库' ||
               this.deptBudgetList.warehouseName == '哈尔滨依兰库' ||
               this.deptBudgetList.warehouseName == '哈尔滨依兰库' ||
               this.deptBudgetList.warehouseName == '龙江金信库' ||
               this.deptBudgetList.warehouseName == '龙江金信库' ||
-              this.deptBudgetList.warehouseName == '白城内陆港')
+              this.deptBudgetList.warehouseName == '白城内陆港'||
+              this.deptBudgetList.warehouseName == '肇东金信库')
           ) {
           ) {
             for (var i = 0; i < value.length; i++) {
             for (var i = 0; i < value.length; i++) {
               var tmp = String.fromCharCode(value[i])
               var tmp = String.fromCharCode(value[i])

+ 2 - 1
src/lang/zh.js

@@ -537,6 +537,7 @@ export default {
     warehouseManagementPutOutLook: '查看',
     warehouseManagementPutOutLook: '查看',
     // 新仓库管理
     // 新仓库管理
     newwarehouseManagementList: '新仓库管理',
     newwarehouseManagementList: '新仓库管理',
+    transformation: '折转',
     //客户管理
     //客户管理
     customerList: '客户管理',
     customerList: '客户管理',
     //客户管理
     //客户管理
@@ -4873,7 +4874,7 @@ export default {
     warehouseManagementNoWeightIn: '入库检斤',
     warehouseManagementNoWeightIn: '入库检斤',
     warehouseManagementPutOut: '任务',
     warehouseManagementPutOut: '任务',
     warehouseManagementPutOutLook: '查看',
     warehouseManagementPutOutLook: '查看',
-
+    transformation: '折转',
   },
   },
   //贸易服务
   //贸易服务
   tradeServicesManagement:{
   tradeServicesManagement:{

+ 3 - 4
src/layout/index/top/index.vue

@@ -383,7 +383,6 @@
       ...mapActions('common', ['setLocalVessels']),
       ...mapActions('common', ['setLocalVessels']),
       ...mapActions('user', ['getUserInfo','toSetShow']),
       ...mapActions('user', ['getUserInfo','toSetShow']),
       payCode() {
       payCode() {
-		this.barCode = this.barCode.toLocaleLowerCase()
 		  console.log('input', this.barCode)
 		  console.log('input', this.barCode)
         this.btnStatus = {
         this.btnStatus = {
           status1: false,
           status1: false,
@@ -395,10 +394,10 @@
         }
         }
         // let _userCompId = "2710b21efc1e4393930c5dc800010dc4"
         // let _userCompId = "2710b21efc1e4393930c5dc800010dc4"
         // let _qualityNo = "SGRK202112140060003"
         // let _qualityNo = "SGRK202112140060003"
-        let _userCompId = this.barCode.split('&')[0]
+        let _userCompId = this.barCode.split('&')[0].toLocaleLowerCase()
         let _qualityNo = this.barCode.split('&')[1]
         let _qualityNo = this.barCode.split('&')[1]
-        let _userHouseId = this.barCode.split('&')[2]
-        this.cangid = this.barCode.split('&')[2]
+        let _userHouseId = this.barCode.split('&')[2].toLocaleLowerCase()
+        this.cangid = this.barCode.split('&')[2].toLocaleLowerCase()
         if(_userCompId.indexOf(',') != -1){
         if(_userCompId.indexOf(',') != -1){
          _userCompId =  _userCompId.split(',')[1]
          _userCompId =  _userCompId.split(',')[1]
         }
         }

+ 18 - 2
src/model/warehouse/index.js

@@ -43,7 +43,14 @@ import {
     API_GET_PRINT,
     API_GET_PRINT,
     API_POST_EXPORTOUT,
     API_POST_EXPORTOUT,
     API_GET_WAREHOUSE_BINNUMBER,
     API_GET_WAREHOUSE_BINNUMBER,
+<<<<<<< HEAD
     API_GET_WAREHOUSE_BASEINFO_RESERVES
     API_GET_WAREHOUSE_BASEINFO_RESERVES
+=======
+    API_GET_TURNAROUND_LIST,
+    API_POST_TURNAROUND_ADD,
+    API_GET_TURNAROUND_XIALA,
+    API_get_goodsName_All,
+>>>>>>> origin
 } from '@/api/V2/warehouse'
 } from '@/api/V2/warehouse'
 // import { app } from 'electron'
 // import { app } from 'electron'
 // 列表
 // 列表
@@ -128,9 +135,18 @@ export const postExport = appRx.post(API_POST_EXPORT)
 //导出出库
 //导出出库
 export const postExportOut = appRx.post(API_POST_EXPORTOUT)
 export const postExportOut = appRx.post(API_POST_EXPORTOUT)
 //打印增量
 //打印增量
-export const  printAdd = appRx.get(API_GET_PRINT,errorCatcher, errorHandle, filter)
+export const printAdd = appRx.get(API_GET_PRINT,errorCatcher, errorHandle, filter)
 //仓位号
 //仓位号
-export const  getbinnumber = appRx.get(API_GET_WAREHOUSE_BINNUMBER,errorCatcher, errorHandle, filter)
+export const getbinnumber = appRx.get(API_GET_WAREHOUSE_BINNUMBER,errorCatcher, errorHandle, filter)
+//添加折转
+export const turnAroundAdd = appRx.post(API_POST_TURNAROUND_ADD,errorCatcher, errorHandle, filter)
+//折转列表
+export const turnAroundList = appRx.get(API_GET_TURNAROUND_LIST,errorCatcher, errorHandle, filter)
+//添加折转信息下拉
+export const turnAroundXiaLa = appRx.get(API_GET_TURNAROUND_XIALA,errorCatcher, errorHandle, filter)
+//折转后所有货名
+export const turnAroundGoodsNameAll = appRx.get(API_get_goodsName_All,errorCatcher, errorHandle, filter)
+
 
 
 //储量明细
 //储量明细
 export const  getreserves = appRx.get(API_GET_WAREHOUSE_BASEINFO_RESERVES, errorHandle, filter)
 export const  getreserves = appRx.get(API_GET_WAREHOUSE_BASEINFO_RESERVES, errorHandle, filter)

+ 2 - 2
src/views/houseSelfCollect/inspectInfo.vue

@@ -95,11 +95,11 @@
             </ws-form-item>
             </ws-form-item>
             <ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
             <ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价"
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价"
-                maxlength="10" size="small" :disabled="disabled2" />
+                maxlength="10" size="small"  />
             </ws-form-item>
             </ws-form-item>
             <ws-form-item label="干粮单价(元/公斤)" span="2" prop="dryGrainPrice" v-if="inspect.type == '干粮'">
             <ws-form-item label="干粮单价(元/公斤)" span="2" prop="dryGrainPrice" v-if="inspect.type == '干粮'">
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价"
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价"
-                maxlength="10" size="small" :disabled="disabled2" />
+                maxlength="10" size="small"  />
             </ws-form-item>
             </ws-form-item>
               <ws-form-item label="复检备注" span="2" prop="reMemo" v-if="information == '编辑复检' || statusShow == '已复检'">
               <ws-form-item label="复检备注" span="2" prop="reMemo" v-if="information == '编辑复检' || statusShow == '已复检'">
                 <ws-input type="textarea" v-model="inspect.reMemo" placeholder="请输入复检备注" maxlength="300" v-if="statusShow != '已复检'" />
                 <ws-input type="textarea" v-model="inspect.reMemo" placeholder="请输入复检备注" maxlength="300" v-if="statusShow != '已复检'" />

+ 6 - 1
src/views/tranManagement/tranManagementShippingFeedback.vue

@@ -672,7 +672,9 @@ export default {
             obj.status = v.状态
             obj.status = v.状态
             obj.shipType = v.类型
             obj.shipType = v.类型
             console.log(obj)
             console.log(obj)
-            _this.excelFreightspace.push(obj)
+            // if(obj.caseNo&&obj.titleNo&&obj.binNumber&&obj.positionWeight&&obj.loadNetWeight&&obj.loadingDate&&obj.status&&obj.shipType){
+                _this.excelFreightspace.push(obj)
+            // }
           })
           })
           let _ispushData = true
           let _ispushData = true
           console.log(arr, _this.freightspace)
           console.log(arr, _this.freightspace)
@@ -693,6 +695,9 @@ export default {
               _ispushData = true
               _ispushData = true
             }
             }
           }
           }
+          // // 成功数量
+          // let _number = outdata.length - _this.excelFreightspace.length;
+          // _this.$message.success('共计'+outdata.length+'条,成功导入'+_this.excelFreightspace.length+'条,失败'+_number+'条!')
           _this.$forceUpdate()
           _this.$forceUpdate()
         }
         }
         reader.readAsArrayBuffer(f)
         reader.readAsArrayBuffer(f)

+ 143 - 1
src/views/warehouse/component/router/index.js

@@ -268,6 +268,7 @@
 //     {
 //     {
 //       path: 'warehouseManagementNoComplete',
 //       path: 'warehouseManagementNoComplete',
             
             
+<<<<<<< HEAD
 //       component: () =>
 //       component: () =>
 //         import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementNoComplete'),
 //         import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementNoComplete'),
 //       name: 'warehouseManagementNoComplete',
 //       name: 'warehouseManagementNoComplete',
@@ -390,4 +391,145 @@
 //     },                                     
 //     },                                     
 //   ],
 //   ],
 // };
 // };
-// export default warehouseManagementRouter;
+// export default warehouseManagementRouter;
+=======
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementNoComplete'),
+      name: 'warehouseManagementNoComplete',
+      meta: {
+        title: 'warehouseManagementNoComplete',
+        shortcutEntrance: 'warehouseManagementNoComplete',
+        module: 'warehouseManagement.warehouse.warehouseInfo.view',
+        permissicon: [],
+        keepAlive: true
+      },
+      hidden:true
+    },
+    {
+      path: 'warehouseManagementPerfectput',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementPerfectput'),
+      name: 'warehouseManagementPerfectput',
+      meta: {
+        title: 'warehouseManagementPerfectput',
+        shortcutEntrance: 'warehouseManagementPerfectput',
+        module: 'warehouseManagement.warehouse.warehouseInfo.in',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
+    {
+      path: 'warehouseManagementNoWeightIn',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementNoWeightIn'),
+      name: 'warehouseManagementNoWeightIn',
+      meta: {
+        title: 'warehouseManagementNoWeightIn',
+        shortcutEntrance: 'warehouseManagementNoWeightIn',
+        module: 'warehouseManagement.warehouse.warehouseInfo.in',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
+    {
+      path: 'warehouseManagementPerfectDelivery',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementPerfectDelivery'),
+      name: 'warehouseManagementPerfectDelivery',
+      meta: {
+        title: 'warehouseManagementPerfectDelivery',
+        shortcutEntrance: 'warehouseManagementPerfectDelivery',
+        module: 'warehouseManagement.warehouse.warehouseInfo.out',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
+    {
+      path: 'warehouseManagementNoWeightOut',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementNoWeightOut'),
+      name: 'warehouseManagementNoWeightOut',
+      meta: {
+        title: 'warehouseManagementNoWeightOut',
+        shortcutEntrance: 'warehouseManagementNoWeightOut',
+        module: 'warehouseManagement.warehouse.warehouseInfo.out',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
+    // 出入库任务
+    {
+      path: 'warehouseManagementPutOut',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementPutOut'),
+      name: 'warehouseManagementPutOut',
+      meta: {
+        title: 'warehouseManagementPutOut',
+        shortcutEntrance: 'warehouseManagementPutOut',
+        module: 'warehouse.warehouseManagementPutOut',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
+    // 出入库任务查看
+    {
+      path: 'warehouseManagementPutOutLook',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementPutOutLook'),
+      name: 'warehouseManagementPutOutLook',
+      meta: {
+        title: 'warehouseManagementPutOutLook',
+        shortcutEntrance: 'warehouseManagementPutOutLook',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    }, 
+    // 出入库任务列表
+    {
+      path: 'tranManagementWarehouseInOutTask',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/tranManagementWarehouseInOutTask'),
+      name: 'tranManagementWarehouseInOutTask',
+      meta: {
+        title: 'tranManagementWarehouseInOutTask',
+        shortcutEntrance: 'tranManagementWarehouseInOutTask',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    }, 
+    // 折转
+    {
+      path: 'transformation',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/transformation'),
+      name: 'transformation',
+      meta: {
+        title: 'transformation',
+        shortcutEntrance: 'transformation',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },                                    
+  ],
+};
+export default warehouseManagementRouter;
+>>>>>>> origin

+ 397 - 0
src/views/warehouse/transformation.vue

@@ -0,0 +1,397 @@
+// 仓库折转
+<template>
+  <div class="container">
+    <el-row class="toptitle">
+      <el-col :span="12">
+        <h2 class="bg-left title">折转</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+        <el-button type="primary" size="small" @click="returnsales()">
+          <img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回
+        </el-button>
+      </el-col>
+    </el-row>
+    <div class="center">
+      <el-row>
+        <el-col :span="12">
+          <div class="bg-left centertitle">
+            <h1>{{ warehouseName }}</h1>
+            <span class="temporary" v-show="warehouseType == 2">(临)</span>
+          </div>
+        </el-col>
+        <el-col :span="12" class="bg-right">
+          <el-button type="primary" size="small" @click="addTurnAround()">新增折转</el-button>
+        </el-col>
+      </el-row>
+      <el-table
+        class="forData"
+        :data="transformationList"
+        style="width: 100%; margin-top: 20px"
+        height="780">
+        <el-table-column type="index" label="序号" width="80">
+          <template scope="scope">
+            <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+            <span v-else>{{ scope.$index + 1 }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="beforeBinNo" label="折转前仓位"></el-table-column>
+        <el-table-column prop="beforeGoodsName" label="折转前货名"></el-table-column>
+        <el-table-column prop="beforeWeight" label="折转前重量(吨)"></el-table-column>
+        <el-table-column prop="afterBinNo" label="折转后仓位"></el-table-column>
+        <el-table-column prop="afterGoodsName" label="折转后货名"></el-table-column>
+        <el-table-column prop="afterWeight" label="折转后重量(吨)"></el-table-column>
+        <el-table-column prop="backOffice" label="操作人"></el-table-column>
+        <el-table-column prop="updateDate" label="操作时间"></el-table-column>
+      </el-table>
+    </div>
+    <el-dialog
+      title="折转"
+      :visible.sync="dialogShow"
+      width="40%"
+      top="35vh"
+      :before-close="dialogClose"
+    >
+      <div>
+        <span class="eject-warehouse">{{ warehouseName }}</span
+        ><span v-show="warehouseType == 2">(临)</span>
+      </div>
+      <table class="table_css">
+        <tr>
+          <td></td>
+          <td v-show="warehouseType != 2">仓位</td>
+          <td>货名</td>
+          <td>重量(吨)</td>
+        </tr>
+        <tr>
+          <td class="table_item">折转前</td>
+          <td v-show="warehouseType != 2">
+            <el-select
+              v-model="transformationAdd.beforeBinNo"
+              placeholder="请选择仓位号"
+              @change="binNo"
+            >
+              <el-option
+                v-for="(item, index) in binNoList"
+                :key="item.binNumber"
+                :label="item.binNumber"
+                :value="index"
+              >
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-select
+              v-model="transformationAdd.beforeGoodsName"
+              placeholder="请选择货名"
+              @change="goodsNameChange">
+              <el-option
+                v-for="(item, index) in goodsNameList"
+                :key="item.goodsName"
+                :label="item.goodsName"
+                :value="index">
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-input v-model="transformationAdd.beforeWeight" placeholder="请输入重量" type="number" :validate-event="true" maxlength="10"></el-input>
+          </td>
+        </tr>
+        <tr>
+          <td class="table_item">折转后</td>
+          <td v-show="warehouseType != 2">
+            <el-select
+              v-model="transformationAdd.afterBinNo"
+              placeholder="请选择仓位号"
+              @change="binNo1">
+              <el-option
+                v-for="(item, index) in binNoList"
+                :key="item.binNumber"
+                :label="item.binNumber"
+                :value="index">
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-select v-model="transformationAdd.afterGoodsName" placeholder="请选择货名" @change="goodsNameChange1">
+              <el-option
+                v-for="(item, index) in goodsNameAllList"
+                :key="item.constValue"
+                :label="item.constValue"
+                :value="index">
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-input v-model="transformationAdd.afterWeight"  placeholder="请输入重量" type="number"></el-input>
+          </td>
+        </tr>
+      </table>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogClose">取 消</el-button>
+        <el-button type="primary" @click="submit">确 定 折 转</el-button>
+      </span>
+    </el-dialog>
+    <div style="text-align: center; padding: 10px">
+      <el-pagination
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+        :current-page="currentPage"
+        :page-size="deptCircularPage.pageSize"
+        layout="total, sizes, prev, pager, next, jumper"
+        :total="deptBudgetTotal"
+      >
+      </el-pagination>
+    </div>
+  </div>
+</template>
+<script>
+import {
+  turnAroundList,
+  turnAroundAdd,
+  turnAroundXiaLa,
+  turnAroundGoodsNameAll,
+  getbinnumber,
+} from '@/model/warehouse/index'
+export default {
+  data() {
+    return {
+      dialogShow: false,
+      transformationList: [],
+      warehouseId: '',
+      warehouseName: '',
+      goodsNameList: [],
+      goodsNameAllList: [],
+      binNoList: [],
+      binNumberId: '', //仓位Id
+      warehouseType: '',
+      compId: '',
+      transformationAdd: {},
+      //分页
+      currentPage: 1,
+      pageSize: 10,
+      deptCircularPage: {},
+      deptBudgetTotal: 0,
+      storage: '',
+    }
+  },
+  activated() {
+    this.compId = localStorage.getItem('ws-pf_compId')
+    this.binNumberId = this.$route.query.binNumberId //仓位Id
+    this.warehouseId = this.$route.query.warehouseId //仓库Id
+    this.warehouseName = this.$route.query.warehouseName //仓库名
+    this.warehouseType = this.$route.query.warehouseType //仓库类型
+    this.getList()
+  },
+  methods: {
+    returnsales() {
+      this.$router.go(-1)
+    },
+    goodsNameChange(e) {
+      this.transformationAdd.beforeGoodsName = this.goodsNameList[e].goodsName
+      this.transformationAdd.beforeGoodsNameKey = this.goodsNameList[e].goodsNameKey
+      this.storage = this.goodsNameList[e].storage
+    },
+    goodsNameChange1(e) {
+      this.transformationAdd.afterGoodsName = this.goodsNameAllList[e].constValue
+      this.transformationAdd.afterGoodsNameKey = this.goodsNameAllList[e].constKey
+    },
+    //新增折转
+    addTurnAround() {
+      turnAroundXiaLa({
+        id: this.warehouseId,
+      })
+        .toPromise()
+        .then((response) => {
+          this.goodsNameList = response
+        })
+      turnAroundGoodsNameAll({
+        constId: 'CON2',
+      })
+        .toPromise()
+        .then((response) => {
+          this.goodsNameAllList = response
+        })
+      getbinnumber({
+        id: this.warehouseId,
+      })
+        .toPromise()
+        .then((response) => {
+          this.binNoList = response.warehousePositionInfoList
+        })
+      this.dialogShow = true
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    getList() {
+      // 列表
+      turnAroundList({
+        baseId: this.warehouseId,
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+      })
+        .toPromise()
+        .then((response) => {
+          this.deptCircularPage.currentPage = response.current
+          this.deptCircularPage.pageSize = response.size
+          this.deptBudgetTotal = response.total
+          this.transformationList = response.records
+        })
+    },
+    binNo(e) {
+      this.transformationAdd.beforeBinNo = this.binNoList[e].binNumber
+      this.transformationAdd.positionId = this.binNoList[e].id
+    },
+    binNo1(e) {
+      this.transformationAdd.afterBinNo = this.binNoList[e].binNumber
+      this.transformationAdd.afterPositionId = this.binNoList[e].id
+    },
+    dialogClose() {
+      this.transformationAdd = {}
+      this.dialogShow = false
+    },
+    submit() {
+      if (!this.transformationAdd.beforeBinNo && this.warehouseType != 2) {
+        this.$message.error('请选择折转前仓位')
+        return
+      }
+      if (!this.transformationAdd.beforeGoodsName) {
+        this.$message.error('请选择折转前货名')
+        return
+      }
+      if (!this.transformationAdd.beforeWeight) {
+        this.$message.error('请选择折转前重量')
+        return
+      }
+      if (Number(this.transformationAdd.beforeWeight) > Number(this.storage)) {
+        this.$message.error('折转前重量不能超过现有储量')
+        return
+      }
+      if (!this.transformationAdd.afterBinNo && this.warehouseType != 2) {
+        this.$message.error('请选择折转后仓位')
+        return
+      }
+      if (!this.transformationAdd.afterGoodsName) {
+        this.$message.error('请选择折转后货名')
+        return
+      }
+      if (!this.transformationAdd.afterWeight) {
+        this.$message.error('请选择折转后重量')
+        return
+      }
+      if (Number(this.transformationAdd.afterWeight) > Number(this.transformationAdd.beforeWeight)) {
+        this.$message.error('折转后重量不可超过折转前重量')
+        return
+      }
+      this.$confirm(`确定提交折转信息?`, '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      }).then(() => {
+        this.transformationAdd.backOffice = localStorage.getItem('ws-pf_staffName')
+        // this.transformationAdd.compId = this.compId
+        this.transformationAdd.baseId = this.warehouseId
+        this.transformationAdd.warehouseName = this.warehouseName
+        turnAroundAdd(this.transformationAdd)
+          .toPromise()
+          .then((response) => {
+            if (response == 'OK') {
+              this.$notify({
+                title: '成功',
+                message: '折转信息提交成功!',
+                type: 'success',
+              })
+              this.transformationAdd = {}
+              this.dialogShow = false
+              this.getList()
+            }
+          })
+      })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.toptitle {
+  background: #f6f7fc;
+}
+.bg-left {
+  padding-left: 30px;
+}
+.bg-right {
+  text-align: right;
+  padding: 16px 20px;
+}
+.top-title {
+  width: 50%;
+  display: flex;
+}
+.title {
+  position: relative;
+}
+
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
+.container {
+  overflow: scroll;
+  height: 93vh;
+}
+.center {
+  padding: 0 5%;
+  margin: auto;
+}
+.centertitle {
+  display: flex;
+}
+.temporary {
+  line-height: 80px;
+  font-size: 20px;
+  color: #abaaaa;
+}
+/deep/.forData .cell {
+  text-align: center;
+}
+//弹出框
+.eject-warehouse {
+  font-size: 20px;
+  margin-left: 15px;
+  font-weight: 600;
+}
+.table_css {
+  margin: 20px auto;
+  tr {
+    height: 50px;
+  }
+  .table_item {
+    min-width: 70px;
+  }
+  td {
+    text-align: center;
+    font-size: 18px;
+    font-weight: 600;
+  }
+  .el-select {
+    width: 90%;
+  }
+}
+</style>

File diff suppressed because it is too large
+ 1572 - 1950
src/views/warehouse/warehouseManagementGross.vue


+ 9 - 1
src/views/warehouse/warehouseManagementList.vue

@@ -135,6 +135,7 @@
             <div class="adjustment" v-hasPermission="
             <div class="adjustment" v-hasPermission="
            `warehouseManagement.warehouse.warehouseInfo.view`
            `warehouseManagement.warehouse.warehouseInfo.view`
           " @click="mintor(scope.row)">监控</div>
           " @click="mintor(scope.row)">监控</div>
+           <!-- <div class="adjustment" @click="transformation(scope.row)">折转</div> -->
           </template>
           </template>
         </el-table-column>
         </el-table-column>
       </el-table>
       </el-table>
@@ -203,6 +204,7 @@
             <div class="adjustment" v-if="scope.row.clearStatusFlag == 3">
             <div class="adjustment" v-if="scope.row.clearStatusFlag == 3">
               已清仓
               已清仓
             </div>
             </div>
+              <!-- <div class="adjustment" @click="transformation(scope.row)">折转</div> -->
           </template>
           </template>
         </el-table-column>
         </el-table-column>
       </el-table>
       </el-table>
@@ -344,8 +346,14 @@
       this.getList()
       this.getList()
       this.showType = this.isShow
       this.showType = this.isShow
     },
     },
-
     methods: {
     methods: {
+      // 折转
+      transformation(row){
+        this.$router.push({
+          path: 'transformation', 
+          query:{warehouseId:row.warehouseId,warehouseName:row.warehouseName,binNumberId:row.binNumberId,warehouseType:this.warehouseType}//warehouseType 1常用 2临时
+        })
+      },
       getSummaries(param) {
       getSummaries(param) {
         const {
         const {
           columns,
           columns,

+ 6 - 2
src/views/warehouse/warehouseManagementNoWeight.vue

@@ -278,7 +278,7 @@
               statusFlag: row.statusFlag,
               statusFlag: row.statusFlag,
               tare: row.tare,
               tare: row.tare,
               warehouseName: row.warehouseName,
               warehouseName: row.warehouseName,
-              warehouseInOutDetail: row.warehouseInOutDetail,
+              warehouseInOutDetail: JSON.stringify(row.warehouseInOutDetail),
               warehouseType: this.deptBudgetList.warehouseType,
               warehouseType: this.deptBudgetList.warehouseType,
               createType: this.createType,
               createType: this.createType,
               temporaryOutType: row.temporaryOutType,
               temporaryOutType: row.temporaryOutType,
@@ -295,6 +295,8 @@
               automaticWeightAcquisition: row.automaticWeightAcquisition,
               automaticWeightAcquisition: row.automaticWeightAcquisition,
               outType:row.outType,//运输类型
               outType:row.outType,//运输类型
               carId:row.carId,//派车id
               carId:row.carId,//派车id
+              tranCarNo:row.tranCarNo,//派车编号
+              selfLoading:row.selfLoading,
             },
             },
           })
           })
         } else if (row.inOutFlag == 1) {
         } else if (row.inOutFlag == 1) {
@@ -329,7 +331,7 @@
               statusFlag: row.statusFlag,
               statusFlag: row.statusFlag,
               tare: row.tare,
               tare: row.tare,
               warehouseName: row.warehouseName,
               warehouseName: row.warehouseName,
-              warehouseInOutDetail: row.warehouseInOutDetail,
+              warehouseInOutDetail: JSON.stringify(row.warehouseInOutDetail),
               warehouseType: this.deptBudgetList.warehouseType,
               warehouseType: this.deptBudgetList.warehouseType,
               temporaryOutType: this.temporaryOutType,
               temporaryOutType: this.temporaryOutType,
               cost: row.cost,
               cost: row.cost,
@@ -345,6 +347,8 @@
               automaticWeightAcquisition: row.automaticWeightAcquisition,
               automaticWeightAcquisition: row.automaticWeightAcquisition,
               outType:row.outType,//运输类型
               outType:row.outType,//运输类型
               carId:row.carId,//派车id
               carId:row.carId,//派车id
+              tranCarNo:row.tranCarNo,//派车编号
+              selfLoading:row.selfLoading,
             },
             },
           })
           })
         }
         }

+ 41 - 21
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -100,9 +100,12 @@
                   <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
                   <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
                 </ws-select>
                 </ws-select>
               </ws-form-item>
               </ws-form-item>
-              <ws-form-item label="扣款(元/公斤)" span="1" prop="deductionAmount">
+              <ws-form-item label="扣款(元/)" span="1" prop="deductionAmount">
                 <ws-input @input="kkInput(dataList.deductionAmount)" v-model="dataList.deductionAmount"
                 <ws-input @input="kkInput(dataList.deductionAmount)" v-model="dataList.deductionAmount"
                   placeholder="请输入扣款金额" maxlength="120" size="small" />
                   placeholder="请输入扣款金额" maxlength="120" size="small" />
+              <el-button v-if="dataList.warehouseName=='克东千丰库'" class="bg-bottom" type="primary" size="small"
+                @click="automaticCalculation"> 自动计算
+              </el-button>
               </ws-form-item>
               </ws-form-item>
 
 
               <!-- 品级 -->
               <!-- 品级 -->
@@ -551,7 +554,7 @@
             value: '3',
             value: '3',
           },
           },
         ],
         ],
-        tare: "",
+        tare: '',
       }
       }
     },
     },
     mounted() {},
     mounted() {},
@@ -590,7 +593,7 @@
       this.dataList.inOutFlag = this.$route.inOutFlag
       this.dataList.inOutFlag = this.$route.inOutFlag
       this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
       this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
       this.dataList.statusFlag = this.$route.statusFlag
       this.dataList.statusFlag = this.$route.statusFlag
-      this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
+      this.dataList.warehouseInOutDetail = JSON.parse(this.$route.query.warehouseInOutDetail) 
       this.dataList.warehouseType = this.$route.query.warehouseType
       this.dataList.warehouseType = this.$route.query.warehouseType
       this.dataList.createType = this.$route.query.createType
       this.dataList.createType = this.$route.query.createType
       this.dataList.temporaryOutType = this.$route.query.temporaryOutType
       this.dataList.temporaryOutType = this.$route.query.temporaryOutType
@@ -602,7 +605,7 @@
       this.dataList.tidalGrainWater = this.$route.query.tidalGrainWater
       this.dataList.tidalGrainWater = this.$route.query.tidalGrainWater
       this.dataList.solidGrainWater = this.$route.query.solidGrainWater
       this.dataList.solidGrainWater = this.$route.query.solidGrainWater
       this.dataList.pureWeight = Math.round(this.$route.query.pureWeight * 1000)
       this.dataList.pureWeight = Math.round(this.$route.query.pureWeight * 1000)
-      this.dataList.deductionAmount = this.$route.query.deductionAmount / 1000
+      this.dataList.deductionAmount = this.$route.query.deductionAmount 
       this.dataList.deductionWeight = Math.round(
       this.dataList.deductionWeight = Math.round(
         this.$route.query.deductionWeight * 1000
         this.$route.query.deductionWeight * 1000
       )
       )
@@ -618,6 +621,23 @@
       // }
       // }
     },
     },
     methods: {
     methods: {
+      // 千丰自动计算扣款
+      automaticCalculation() {
+        let _price = 0
+        if (this.dataList.warehouseInOutDetail.waterContent) {
+          let _water = this.dataList.warehouseInOutDetail.waterContent
+          if (Number(_water) > 14.9) {
+            _price = ((Number(_water) - 14.9) * 50).toFixed(3)
+          }
+          this.dataList.deductionAmount = _price
+          this.kkInput(_price)
+        } else {
+          this.$message({
+            message: '自动计算扣款,请先输入水分!',
+            type: 'warning',
+          })
+        }
+      },
       setVal(data) {
       setVal(data) {
         if (this.information == '毛重检斤') {
         if (this.information == '毛重检斤') {
           this.dataList.grossWeight = data
           this.dataList.grossWeight = data
@@ -989,20 +1009,20 @@
           })
           })
           return
           return
         }
         }
-        if (
-          this.dataList.deductionAmount < 0 ||
-          this.dataList.deductionAmount > 10000 ||
-          (String(this.dataList.deductionAmount).indexOf('.') != -1 &&
-            String(this.dataList.deductionAmount).length -
-            (String(this.dataList.deductionAmount).indexOf('.') + 1) >
-            2)
-        ) {
-          this.$message({
-            message: '扣款输入错误',
-            type: 'warning',
-          })
-          return
-        }
+        // if (
+        //   this.dataList.deductionAmount < 0 ||
+        //   this.dataList.deductionAmount > 10000 ||
+        //   (String(this.dataList.deductionAmount).indexOf('.') != -1 &&
+        //     String(this.dataList.deductionAmount).length -
+        //     (String(this.dataList.deductionAmount).indexOf('.') + 1) >
+        //     2)
+        // ) {
+        //   this.$message({
+        //     message: '扣款输入错误',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (!this.dataList.cost) {
         if (!this.dataList.cost) {
           this.$message({
           this.$message({
             message: '未获取到成本,请编辑后提交',
             message: '未获取到成本,请编辑后提交',
@@ -1369,9 +1389,9 @@
                 this.dataList.deductionWeight = (
                 this.dataList.deductionWeight = (
                   this.dataList.deductionWeight / 1000
                   this.dataList.deductionWeight / 1000
                 ).toFixed(2)
                 ).toFixed(2)
-                this.dataList.deductionAmount = Math.round(
-                  this.dataList.deductionAmount * 1000
-                )
+                // this.dataList.deductionAmount = Math.round(
+                //   this.dataList.deductionAmount * 1000
+                // )
                 addstorageputList(this.dataList)
                 addstorageputList(this.dataList)
                   .toPromise()
                   .toPromise()
                   .then((response) => {
                   .then((response) => {

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

@@ -542,9 +542,11 @@
       this.dataList.inOutFlag = this.$route.inOutFlag
       this.dataList.inOutFlag = this.$route.inOutFlag
       this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
       this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
       this.dataList.statusFlag = this.$route.statusFlag
       this.dataList.statusFlag = this.$route.statusFlag
-      this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
+      this.dataList.warehouseInOutDetail = JSON.parse(this.$route.query.warehouseInOutDetail)
       this.dataList.outType = this.$route.query.outType//运输方式
       this.dataList.outType = this.$route.query.outType//运输方式
-      this.dataList.selfLoading = this.$route.query.selfLoading//
+      this.dataList.tranCarNo = this.$route.query.tranCarNo,//派车编号
+      this.dataList.selfLoading = this.$route.query.selfLoading,
+      // this.dataList.selfLoading = this.$route.query.selfLoading//
       // if (this.$route.query.automaticWeightAcquisition == '1') {
       // if (this.$route.query.automaticWeightAcquisition == '1') {
       //   this.isShowBalance = true
       //   this.isShowBalance = true
       // }
       // }

+ 2 - 3
src/views/warehouse/warehouseManagementRecord.vue

@@ -131,7 +131,7 @@
 					<el-table-column prop="deductionWeight" label="扣重(吨)"> </el-table-column>
 					<el-table-column prop="deductionWeight" label="扣重(吨)"> </el-table-column>
 					<el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
 					<el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
 					<el-table-column prop="pureWeight" label="纯重(吨)"> </el-table-column>
 					<el-table-column prop="pureWeight" label="纯重(吨)"> </el-table-column>
-					<el-table-column prop="deductionAmount" label="扣款(元/吨)" width="100"> </el-table-column>
+					<el-table-column prop="deductionAmount" label="扣款(元/吨)" width="100"></el-table-column>
 					<el-table-column prop="grade" label="品级" width="80px">
 					<el-table-column prop="grade" label="品级" width="80px">
 						<template slot-scope="scope">
 						<template slot-scope="scope">
 							<span v-if="scope.row.grade == '一等品'" class="top-grade">{{
 							<span v-if="scope.row.grade == '一等品'" class="top-grade">{{
@@ -184,8 +184,7 @@
 						<template slot-scope="scope">
 						<template slot-scope="scope">
 							<!-- <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
 							<!-- <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
 								src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" /> -->
 								src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" /> -->
-          					<el-button @click="print(scope.row)" v-if="scope.row.inOutType != '收购入库'&&scope.row.inOutType != '期初'"  v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button >
-
+          					<el-button @click="print(scope.row)" v-if="scope.row.inOutType != '收购入库'&&scope.row.inOutType != '期初'&& scope.row.inOutType != '折转入库'&& scope.row.inOutType != '折转出库'"  v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button >
 						</template>
 						</template>
 					</el-table-column>
 					</el-table-column>
 					<el-table-column prop="createDate" label="录入时间">
 					<el-table-column prop="createDate" label="录入时间">

+ 397 - 0
src/views/warehousenew/transformation.vue

@@ -0,0 +1,397 @@
+// 仓库折转
+<template>
+  <div class="container">
+    <el-row class="toptitle">
+      <el-col :span="12">
+        <h2 class="bg-left title">折转</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+        <el-button type="primary" size="small" @click="returnsales()">
+          <img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回
+        </el-button>
+      </el-col>
+    </el-row>
+    <div class="center">
+      <el-row>
+        <el-col :span="12">
+          <div class="bg-left centertitle">
+            <h1>{{ warehouseName }}</h1>
+            <span class="temporary" v-show="warehouseType == 2">(临)</span>
+          </div>
+        </el-col>
+        <el-col :span="12" class="bg-right">
+          <el-button type="primary" size="small" @click="addTurnAround()">新增折转</el-button>
+        </el-col>
+      </el-row>
+      <el-table
+        class="forData"
+        :data="transformationList"
+        style="width: 100%; margin-top: 20px"
+        height="780">
+        <el-table-column type="index" label="序号" width="80">
+          <template scope="scope">
+            <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+            <span v-else>{{ scope.$index + 1 }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="beforeBinNo" label="折转前仓位"></el-table-column>
+        <el-table-column prop="beforeGoodsName" label="折转前货名"></el-table-column>
+        <el-table-column prop="beforeWeight" label="折转前重量(吨)"></el-table-column>
+        <el-table-column prop="afterBinNo" label="折转后仓位"></el-table-column>
+        <el-table-column prop="afterGoodsName" label="折转后货名"></el-table-column>
+        <el-table-column prop="afterWeight" label="折转后重量(吨)"></el-table-column>
+        <el-table-column prop="backOffice" label="操作人"></el-table-column>
+        <el-table-column prop="updateDate" label="操作时间"></el-table-column>
+      </el-table>
+    </div>
+    <el-dialog
+      title="折转"
+      :visible.sync="dialogShow"
+      width="40%"
+      top="35vh"
+      :before-close="dialogClose"
+    >
+      <div>
+        <span class="eject-warehouse">{{ warehouseName }}</span
+        ><span v-show="warehouseType == 2">(临)</span>
+      </div>
+      <table class="table_css">
+        <tr>
+          <td></td>
+          <td v-show="warehouseType != 2">仓位</td>
+          <td>货名</td>
+          <td>重量(吨)</td>
+        </tr>
+        <tr>
+          <td class="table_item">折转前</td>
+          <td v-show="warehouseType != 2">
+            <el-select
+              v-model="transformationAdd.beforeBinNo"
+              placeholder="请选择仓位号"
+              @change="binNo"
+            >
+              <el-option
+                v-for="(item, index) in binNoList"
+                :key="item.binNumber"
+                :label="item.binNumber"
+                :value="index"
+              >
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-select
+              v-model="transformationAdd.beforeGoodsName"
+              placeholder="请选择货名"
+              @change="goodsNameChange">
+              <el-option
+                v-for="(item, index) in goodsNameList"
+                :key="item.goodsName"
+                :label="item.goodsName"
+                :value="index">
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-input v-model="transformationAdd.beforeWeight" placeholder="请输入重量" type="number" :validate-event="true" maxlength="10"></el-input>
+          </td>
+        </tr>
+        <tr>
+          <td class="table_item">折转后</td>
+          <td v-show="warehouseType != 2">
+            <el-select
+              v-model="transformationAdd.afterBinNo"
+              placeholder="请选择仓位号"
+              @change="binNo1">
+              <el-option
+                v-for="(item, index) in binNoList"
+                :key="item.binNumber"
+                :label="item.binNumber"
+                :value="index">
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-select v-model="transformationAdd.afterGoodsName" placeholder="请选择货名" @change="goodsNameChange1">
+              <el-option
+                v-for="(item, index) in goodsNameAllList"
+                :key="item.constValue"
+                :label="item.constValue"
+                :value="index">
+              </el-option>
+            </el-select>
+          </td>
+          <td>
+            <el-input v-model="transformationAdd.afterWeight"  placeholder="请输入重量" type="number"></el-input>
+          </td>
+        </tr>
+      </table>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogClose">取 消</el-button>
+        <el-button type="primary" @click="submit">确 定 折 转</el-button>
+      </span>
+    </el-dialog>
+    <div style="text-align: center; padding: 10px">
+      <el-pagination
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+        :current-page="currentPage"
+        :page-size="deptCircularPage.pageSize"
+        layout="total, sizes, prev, pager, next, jumper"
+        :total="deptBudgetTotal"
+      >
+      </el-pagination>
+    </div>
+  </div>
+</template>
+<script>
+import {
+  turnAroundList,
+  turnAroundAdd,
+  turnAroundXiaLa,
+  turnAroundGoodsNameAll,
+  getbinnumber,
+} from '@/model/warehouse/index'
+export default {
+  data() {
+    return {
+      dialogShow: false,
+      transformationList: [],
+      warehouseId: '',
+      warehouseName: '',
+      goodsNameList: [],
+      goodsNameAllList: [],
+      binNoList: [],
+      binNumberId: '', //仓位Id
+      warehouseType: '',
+      compId: '',
+      transformationAdd: {},
+      //分页
+      currentPage: 1,
+      pageSize: 10,
+      deptCircularPage: {},
+      deptBudgetTotal: 0,
+      storage: '',
+    }
+  },
+  activated() {
+    this.compId = localStorage.getItem('ws-pf_compId')
+    this.binNumberId = this.$route.query.binNumberId //仓位Id
+    this.warehouseId = this.$route.query.warehouseId //仓库Id
+    this.warehouseName = this.$route.query.warehouseName //仓库名
+    this.warehouseType = this.$route.query.warehouseType //仓库类型
+    this.getList()
+  },
+  methods: {
+    returnsales() {
+      this.$router.go(-1)
+    },
+    goodsNameChange(e) {
+      this.transformationAdd.beforeGoodsName = this.goodsNameList[e].goodsName
+      this.transformationAdd.beforeGoodsNameKey = this.goodsNameList[e].goodsNameKey
+      this.storage = this.goodsNameList[e].storage
+    },
+    goodsNameChange1(e) {
+      this.transformationAdd.afterGoodsName = this.goodsNameAllList[e].constValue
+      this.transformationAdd.afterGoodsNameKey = this.goodsNameAllList[e].constKey
+    },
+    //新增折转
+    addTurnAround() {
+      turnAroundXiaLa({
+        id: this.warehouseId,
+      })
+        .toPromise()
+        .then((response) => {
+          this.goodsNameList = response
+        })
+      turnAroundGoodsNameAll({
+        constId: 'CON2',
+      })
+        .toPromise()
+        .then((response) => {
+          this.goodsNameAllList = response
+        })
+      getbinnumber({
+        id: this.warehouseId,
+      })
+        .toPromise()
+        .then((response) => {
+          this.binNoList = response.warehousePositionInfoList
+        })
+      this.dialogShow = true
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    getList() {
+      // 列表
+      turnAroundList({
+        baseId: this.warehouseId,
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+      })
+        .toPromise()
+        .then((response) => {
+          this.deptCircularPage.currentPage = response.current
+          this.deptCircularPage.pageSize = response.size
+          this.deptBudgetTotal = response.total
+          this.transformationList = response.records
+        })
+    },
+    binNo(e) {
+      this.transformationAdd.beforeBinNo = this.binNoList[e].binNumber
+      this.transformationAdd.positionId = this.binNoList[e].id
+    },
+    binNo1(e) {
+      this.transformationAdd.afterBinNo = this.binNoList[e].binNumber
+      this.transformationAdd.afterPositionId = this.binNoList[e].id
+    },
+    dialogClose() {
+      this.transformationAdd = {}
+      this.dialogShow = false
+    },
+    submit() {
+      if (!this.transformationAdd.beforeBinNo && this.warehouseType != 2) {
+        this.$message.error('请选择折转前仓位')
+        return
+      }
+      if (!this.transformationAdd.beforeGoodsName) {
+        this.$message.error('请选择折转前货名')
+        return
+      }
+      if (!this.transformationAdd.beforeWeight) {
+        this.$message.error('请选择折转前重量')
+        return
+      }
+      if (Number(this.transformationAdd.beforeWeight) > Number(this.storage)) {
+        this.$message.error('折转前重量不能超过现有储量')
+        return
+      }
+      if (!this.transformationAdd.afterBinNo && this.warehouseType != 2) {
+        this.$message.error('请选择折转后仓位')
+        return
+      }
+      if (!this.transformationAdd.afterGoodsName) {
+        this.$message.error('请选择折转后货名')
+        return
+      }
+      if (!this.transformationAdd.afterWeight) {
+        this.$message.error('请选择折转后重量')
+        return
+      }
+      if (Number(this.transformationAdd.afterWeight) > Number(this.transformationAdd.beforeWeight)) {
+        this.$message.error('折转后重量不可超过折转前重量')
+        return
+      }
+      this.$confirm(`确定提交折转信息?`, '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      }).then(() => {
+        this.transformationAdd.backOffice = localStorage.getItem('ws-pf_staffName')
+        // this.transformationAdd.compId = this.compId
+        this.transformationAdd.baseId = this.warehouseId
+        this.transformationAdd.warehouseName = this.warehouseName
+        turnAroundAdd(this.transformationAdd)
+          .toPromise()
+          .then((response) => {
+            if (response == 'OK') {
+              this.$notify({
+                title: '成功',
+                message: '折转信息提交成功!',
+                type: 'success',
+              })
+              this.transformationAdd = {}
+              this.dialogShow = false
+              this.getList()
+            }
+          })
+      })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.toptitle {
+  background: #f6f7fc;
+}
+.bg-left {
+  padding-left: 30px;
+}
+.bg-right {
+  text-align: right;
+  padding: 16px 20px;
+}
+.top-title {
+  width: 50%;
+  display: flex;
+}
+.title {
+  position: relative;
+}
+
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
+.container {
+  overflow: scroll;
+  height: 93vh;
+}
+.center {
+  padding: 0 5%;
+  margin: auto;
+}
+.centertitle {
+  display: flex;
+}
+.temporary {
+  line-height: 80px;
+  font-size: 20px;
+  color: #abaaaa;
+}
+/deep/.forData .cell {
+  text-align: center;
+}
+//弹出框
+.eject-warehouse {
+  font-size: 20px;
+  margin-left: 15px;
+  font-weight: 600;
+}
+.table_css {
+  margin: 20px auto;
+  tr {
+    height: 50px;
+  }
+  .table_item {
+    min-width: 70px;
+  }
+  td {
+    text-align: center;
+    font-size: 18px;
+    font-weight: 600;
+  }
+  .el-select {
+    width: 90%;
+  }
+}
+</style>

+ 8 - 1
src/views/warehousenew/warehouseManagementList.vue

@@ -83,6 +83,7 @@
            `warehouseManagement.warehouse.warehouseInfo.add`
            `warehouseManagement.warehouse.warehouseInfo.add`
           " @click="outData(1)">导出</ws-button>
           " @click="outData(1)">导出</ws-button>
         <ws-button @click="outData(2)">打印</ws-button>
         <ws-button @click="outData(2)">打印</ws-button>
+        <div class="adjustment" @click="transformation(scope.row)">折转</div>
          <ws-button v-hasPermission="
          <ws-button v-hasPermission="
            `warehouseManagement.warehouse.warehouseInfo.delete`
            `warehouseManagement.warehouse.warehouseInfo.delete`
           " @click="handleall()">全部仓库</ws-button>
           " @click="handleall()">全部仓库</ws-button>
@@ -462,7 +463,13 @@ import { forEach } from 'jszip'
         // sums[sums.length-13]=sums[sums.length-13].toFixed(2)
         // sums[sums.length-13]=sums[sums.length-13].toFixed(2)
         return sums
         return sums
       },
       },
-      
+       // 折转
+      transformation(row){
+        this.$router.push({
+          path: 'transformation', 
+          query:{warehouseId:row.warehouseId,warehouseName:row.warehouseName,binNumberId:row.binNumberId,warehouseType:this.warehouseType}//warehouseType 1常用 2临时
+        })
+      },
       getList() {
       getList() {
         getreserves({compId: localStorage.getItem('ws-pf_compId'),}).toPromise()
         getreserves({compId: localStorage.getItem('ws-pf_compId'),}).toPromise()
           .then((response) => {
           .then((response) => {

Some files were not shown because too many files changed in this diff